config.pb.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.17.3
  5. // source: proxy/shadowsocks/config.proto
  6. package shadowsocks
  7. import (
  8. net "github.com/v2fly/v2ray-core/v5/common/net"
  9. packetaddr "github.com/v2fly/v2ray-core/v5/common/net/packetaddr"
  10. protocol "github.com/v2fly/v2ray-core/v5/common/protocol"
  11. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  12. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  13. reflect "reflect"
  14. sync "sync"
  15. )
  16. const (
  17. // Verify that this generated code is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  19. // Verify that runtime/protoimpl is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  21. )
  22. type CipherType int32
  23. const (
  24. CipherType_UNKNOWN CipherType = 0
  25. CipherType_AES_128_GCM CipherType = 1
  26. CipherType_AES_256_GCM CipherType = 2
  27. CipherType_CHACHA20_POLY1305 CipherType = 3
  28. CipherType_NONE CipherType = 4
  29. )
  30. // Enum value maps for CipherType.
  31. var (
  32. CipherType_name = map[int32]string{
  33. 0: "UNKNOWN",
  34. 1: "AES_128_GCM",
  35. 2: "AES_256_GCM",
  36. 3: "CHACHA20_POLY1305",
  37. 4: "NONE",
  38. }
  39. CipherType_value = map[string]int32{
  40. "UNKNOWN": 0,
  41. "AES_128_GCM": 1,
  42. "AES_256_GCM": 2,
  43. "CHACHA20_POLY1305": 3,
  44. "NONE": 4,
  45. }
  46. )
  47. func (x CipherType) Enum() *CipherType {
  48. p := new(CipherType)
  49. *p = x
  50. return p
  51. }
  52. func (x CipherType) String() string {
  53. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  54. }
  55. func (CipherType) Descriptor() protoreflect.EnumDescriptor {
  56. return file_proxy_shadowsocks_config_proto_enumTypes[0].Descriptor()
  57. }
  58. func (CipherType) Type() protoreflect.EnumType {
  59. return &file_proxy_shadowsocks_config_proto_enumTypes[0]
  60. }
  61. func (x CipherType) Number() protoreflect.EnumNumber {
  62. return protoreflect.EnumNumber(x)
  63. }
  64. // Deprecated: Use CipherType.Descriptor instead.
  65. func (CipherType) EnumDescriptor() ([]byte, []int) {
  66. return file_proxy_shadowsocks_config_proto_rawDescGZIP(), []int{0}
  67. }
  68. type Account struct {
  69. state protoimpl.MessageState
  70. sizeCache protoimpl.SizeCache
  71. unknownFields protoimpl.UnknownFields
  72. Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
  73. CipherType CipherType `protobuf:"varint,2,opt,name=cipher_type,json=cipherType,proto3,enum=v2ray.core.proxy.shadowsocks.CipherType" json:"cipher_type,omitempty"`
  74. IvCheck bool `protobuf:"varint,3,opt,name=iv_check,json=ivCheck,proto3" json:"iv_check,omitempty"`
  75. ExperimentReducedInitialIvEntropy bool `protobuf:"varint,90001,opt,name=experiment_reduced_initial_iv_entropy,json=experimentReducedInitialIvEntropy,proto3" json:"experiment_reduced_initial_iv_entropy,omitempty"`
  76. }
  77. func (x *Account) Reset() {
  78. *x = Account{}
  79. if protoimpl.UnsafeEnabled {
  80. mi := &file_proxy_shadowsocks_config_proto_msgTypes[0]
  81. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  82. ms.StoreMessageInfo(mi)
  83. }
  84. }
  85. func (x *Account) String() string {
  86. return protoimpl.X.MessageStringOf(x)
  87. }
  88. func (*Account) ProtoMessage() {}
  89. func (x *Account) ProtoReflect() protoreflect.Message {
  90. mi := &file_proxy_shadowsocks_config_proto_msgTypes[0]
  91. if protoimpl.UnsafeEnabled && x != nil {
  92. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  93. if ms.LoadMessageInfo() == nil {
  94. ms.StoreMessageInfo(mi)
  95. }
  96. return ms
  97. }
  98. return mi.MessageOf(x)
  99. }
  100. // Deprecated: Use Account.ProtoReflect.Descriptor instead.
  101. func (*Account) Descriptor() ([]byte, []int) {
  102. return file_proxy_shadowsocks_config_proto_rawDescGZIP(), []int{0}
  103. }
  104. func (x *Account) GetPassword() string {
  105. if x != nil {
  106. return x.Password
  107. }
  108. return ""
  109. }
  110. func (x *Account) GetCipherType() CipherType {
  111. if x != nil {
  112. return x.CipherType
  113. }
  114. return CipherType_UNKNOWN
  115. }
  116. func (x *Account) GetIvCheck() bool {
  117. if x != nil {
  118. return x.IvCheck
  119. }
  120. return false
  121. }
  122. func (x *Account) GetExperimentReducedInitialIvEntropy() bool {
  123. if x != nil {
  124. return x.ExperimentReducedInitialIvEntropy
  125. }
  126. return false
  127. }
  128. type ServerConfig struct {
  129. state protoimpl.MessageState
  130. sizeCache protoimpl.SizeCache
  131. unknownFields protoimpl.UnknownFields
  132. // UdpEnabled specified whether or not to enable UDP for Shadowsocks.
  133. // Deprecated. Use 'network' field.
  134. //
  135. // Deprecated: Do not use.
  136. UdpEnabled bool `protobuf:"varint,1,opt,name=udp_enabled,json=udpEnabled,proto3" json:"udp_enabled,omitempty"`
  137. User *protocol.User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
  138. Network []net.Network `protobuf:"varint,3,rep,packed,name=network,proto3,enum=v2ray.core.common.net.Network" json:"network,omitempty"`
  139. PacketEncoding packetaddr.PacketAddrType `protobuf:"varint,4,opt,name=packet_encoding,json=packetEncoding,proto3,enum=v2ray.core.net.packetaddr.PacketAddrType" json:"packet_encoding,omitempty"`
  140. }
  141. func (x *ServerConfig) Reset() {
  142. *x = ServerConfig{}
  143. if protoimpl.UnsafeEnabled {
  144. mi := &file_proxy_shadowsocks_config_proto_msgTypes[1]
  145. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  146. ms.StoreMessageInfo(mi)
  147. }
  148. }
  149. func (x *ServerConfig) String() string {
  150. return protoimpl.X.MessageStringOf(x)
  151. }
  152. func (*ServerConfig) ProtoMessage() {}
  153. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  154. mi := &file_proxy_shadowsocks_config_proto_msgTypes[1]
  155. if protoimpl.UnsafeEnabled && x != nil {
  156. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  157. if ms.LoadMessageInfo() == nil {
  158. ms.StoreMessageInfo(mi)
  159. }
  160. return ms
  161. }
  162. return mi.MessageOf(x)
  163. }
  164. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  165. func (*ServerConfig) Descriptor() ([]byte, []int) {
  166. return file_proxy_shadowsocks_config_proto_rawDescGZIP(), []int{1}
  167. }
  168. // Deprecated: Do not use.
  169. func (x *ServerConfig) GetUdpEnabled() bool {
  170. if x != nil {
  171. return x.UdpEnabled
  172. }
  173. return false
  174. }
  175. func (x *ServerConfig) GetUser() *protocol.User {
  176. if x != nil {
  177. return x.User
  178. }
  179. return nil
  180. }
  181. func (x *ServerConfig) GetNetwork() []net.Network {
  182. if x != nil {
  183. return x.Network
  184. }
  185. return nil
  186. }
  187. func (x *ServerConfig) GetPacketEncoding() packetaddr.PacketAddrType {
  188. if x != nil {
  189. return x.PacketEncoding
  190. }
  191. return packetaddr.PacketAddrType(0)
  192. }
  193. type ClientConfig struct {
  194. state protoimpl.MessageState
  195. sizeCache protoimpl.SizeCache
  196. unknownFields protoimpl.UnknownFields
  197. Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"`
  198. }
  199. func (x *ClientConfig) Reset() {
  200. *x = ClientConfig{}
  201. if protoimpl.UnsafeEnabled {
  202. mi := &file_proxy_shadowsocks_config_proto_msgTypes[2]
  203. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  204. ms.StoreMessageInfo(mi)
  205. }
  206. }
  207. func (x *ClientConfig) String() string {
  208. return protoimpl.X.MessageStringOf(x)
  209. }
  210. func (*ClientConfig) ProtoMessage() {}
  211. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  212. mi := &file_proxy_shadowsocks_config_proto_msgTypes[2]
  213. if protoimpl.UnsafeEnabled && x != nil {
  214. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  215. if ms.LoadMessageInfo() == nil {
  216. ms.StoreMessageInfo(mi)
  217. }
  218. return ms
  219. }
  220. return mi.MessageOf(x)
  221. }
  222. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  223. func (*ClientConfig) Descriptor() ([]byte, []int) {
  224. return file_proxy_shadowsocks_config_proto_rawDescGZIP(), []int{2}
  225. }
  226. func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint {
  227. if x != nil {
  228. return x.Server
  229. }
  230. return nil
  231. }
  232. var File_proxy_shadowsocks_config_proto protoreflect.FileDescriptor
  233. var file_proxy_shadowsocks_config_proto_rawDesc = []byte{
  234. 0x0a, 0x1e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f,
  235. 0x63, 0x6b, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  236. 0x12, 0x1c, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f,
  237. 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x1a, 0x18,
  238. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f,
  239. 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  240. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70,
  241. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
  242. 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65,
  243. 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f,
  244. 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2f, 0x63,
  245. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x01, 0x0a, 0x07,
  246. 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
  247. 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
  248. 0x6f, 0x72, 0x64, 0x12, 0x49, 0x0a, 0x0b, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x5f, 0x74, 0x79,
  249. 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  250. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64,
  251. 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x54, 0x79,
  252. 0x70, 0x65, 0x52, 0x0a, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19,
  253. 0x0a, 0x08, 0x69, 0x76, 0x5f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
  254. 0x52, 0x07, 0x69, 0x76, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x52, 0x0a, 0x25, 0x65, 0x78, 0x70,
  255. 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x64, 0x75, 0x63, 0x65, 0x64, 0x5f,
  256. 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x69, 0x76, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x6f,
  257. 0x70, 0x79, 0x18, 0x91, 0xbf, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x21, 0x65, 0x78, 0x70, 0x65,
  258. 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x64, 0x75, 0x63, 0x65, 0x64, 0x49, 0x6e, 0x69,
  259. 0x74, 0x69, 0x61, 0x6c, 0x49, 0x76, 0x45, 0x6e, 0x74, 0x72, 0x6f, 0x70, 0x79, 0x22, 0xf7, 0x01,
  260. 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23,
  261. 0x0a, 0x0b, 0x75, 0x64, 0x70, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20,
  262. 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0a, 0x75, 0x64, 0x70, 0x45, 0x6e, 0x61, 0x62,
  263. 0x6c, 0x65, 0x64, 0x12, 0x34, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,
  264. 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63,
  265. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55,
  266. 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x07, 0x6e, 0x65, 0x74,
  267. 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72,
  268. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e,
  269. 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77,
  270. 0x6f, 0x72, 0x6b, 0x12, 0x52, 0x0a, 0x0f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x65, 0x6e,
  271. 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x76,
  272. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x61,
  273. 0x63, 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41,
  274. 0x64, 0x64, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x45,
  275. 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x22, 0x52, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e,
  276. 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x42, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65,
  277. 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  278. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  279. 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f,
  280. 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2a, 0x5c, 0x0a, 0x0a, 0x43,
  281. 0x69, 0x70, 0x68, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b,
  282. 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x31, 0x32,
  283. 0x38, 0x5f, 0x47, 0x43, 0x4d, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x45, 0x53, 0x5f, 0x32,
  284. 0x35, 0x36, 0x5f, 0x47, 0x43, 0x4d, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x48, 0x41, 0x43,
  285. 0x48, 0x41, 0x32, 0x30, 0x5f, 0x50, 0x4f, 0x4c, 0x59, 0x31, 0x33, 0x30, 0x35, 0x10, 0x03, 0x12,
  286. 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x04, 0x42, 0x75, 0x0a, 0x20, 0x63, 0x6f, 0x6d,
  287. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  288. 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x50, 0x01, 0x5a,
  289. 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c,
  290. 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f,
  291. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b,
  292. 0x73, 0xaa, 0x02, 0x1c, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50,
  293. 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73,
  294. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  295. }
  296. var (
  297. file_proxy_shadowsocks_config_proto_rawDescOnce sync.Once
  298. file_proxy_shadowsocks_config_proto_rawDescData = file_proxy_shadowsocks_config_proto_rawDesc
  299. )
  300. func file_proxy_shadowsocks_config_proto_rawDescGZIP() []byte {
  301. file_proxy_shadowsocks_config_proto_rawDescOnce.Do(func() {
  302. file_proxy_shadowsocks_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_shadowsocks_config_proto_rawDescData)
  303. })
  304. return file_proxy_shadowsocks_config_proto_rawDescData
  305. }
  306. var file_proxy_shadowsocks_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  307. var file_proxy_shadowsocks_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  308. var file_proxy_shadowsocks_config_proto_goTypes = []interface{}{
  309. (CipherType)(0), // 0: v2ray.core.proxy.shadowsocks.CipherType
  310. (*Account)(nil), // 1: v2ray.core.proxy.shadowsocks.Account
  311. (*ServerConfig)(nil), // 2: v2ray.core.proxy.shadowsocks.ServerConfig
  312. (*ClientConfig)(nil), // 3: v2ray.core.proxy.shadowsocks.ClientConfig
  313. (*protocol.User)(nil), // 4: v2ray.core.common.protocol.User
  314. (net.Network)(0), // 5: v2ray.core.common.net.Network
  315. (packetaddr.PacketAddrType)(0), // 6: v2ray.core.net.packetaddr.PacketAddrType
  316. (*protocol.ServerEndpoint)(nil), // 7: v2ray.core.common.protocol.ServerEndpoint
  317. }
  318. var file_proxy_shadowsocks_config_proto_depIdxs = []int32{
  319. 0, // 0: v2ray.core.proxy.shadowsocks.Account.cipher_type:type_name -> v2ray.core.proxy.shadowsocks.CipherType
  320. 4, // 1: v2ray.core.proxy.shadowsocks.ServerConfig.user:type_name -> v2ray.core.common.protocol.User
  321. 5, // 2: v2ray.core.proxy.shadowsocks.ServerConfig.network:type_name -> v2ray.core.common.net.Network
  322. 6, // 3: v2ray.core.proxy.shadowsocks.ServerConfig.packet_encoding:type_name -> v2ray.core.net.packetaddr.PacketAddrType
  323. 7, // 4: v2ray.core.proxy.shadowsocks.ClientConfig.server:type_name -> v2ray.core.common.protocol.ServerEndpoint
  324. 5, // [5:5] is the sub-list for method output_type
  325. 5, // [5:5] is the sub-list for method input_type
  326. 5, // [5:5] is the sub-list for extension type_name
  327. 5, // [5:5] is the sub-list for extension extendee
  328. 0, // [0:5] is the sub-list for field type_name
  329. }
  330. func init() { file_proxy_shadowsocks_config_proto_init() }
  331. func file_proxy_shadowsocks_config_proto_init() {
  332. if File_proxy_shadowsocks_config_proto != nil {
  333. return
  334. }
  335. if !protoimpl.UnsafeEnabled {
  336. file_proxy_shadowsocks_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  337. switch v := v.(*Account); i {
  338. case 0:
  339. return &v.state
  340. case 1:
  341. return &v.sizeCache
  342. case 2:
  343. return &v.unknownFields
  344. default:
  345. return nil
  346. }
  347. }
  348. file_proxy_shadowsocks_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  349. switch v := v.(*ServerConfig); i {
  350. case 0:
  351. return &v.state
  352. case 1:
  353. return &v.sizeCache
  354. case 2:
  355. return &v.unknownFields
  356. default:
  357. return nil
  358. }
  359. }
  360. file_proxy_shadowsocks_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  361. switch v := v.(*ClientConfig); i {
  362. case 0:
  363. return &v.state
  364. case 1:
  365. return &v.sizeCache
  366. case 2:
  367. return &v.unknownFields
  368. default:
  369. return nil
  370. }
  371. }
  372. }
  373. type x struct{}
  374. out := protoimpl.TypeBuilder{
  375. File: protoimpl.DescBuilder{
  376. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  377. RawDescriptor: file_proxy_shadowsocks_config_proto_rawDesc,
  378. NumEnums: 1,
  379. NumMessages: 3,
  380. NumExtensions: 0,
  381. NumServices: 0,
  382. },
  383. GoTypes: file_proxy_shadowsocks_config_proto_goTypes,
  384. DependencyIndexes: file_proxy_shadowsocks_config_proto_depIdxs,
  385. EnumInfos: file_proxy_shadowsocks_config_proto_enumTypes,
  386. MessageInfos: file_proxy_shadowsocks_config_proto_msgTypes,
  387. }.Build()
  388. File_proxy_shadowsocks_config_proto = out.File
  389. file_proxy_shadowsocks_config_proto_rawDesc = nil
  390. file_proxy_shadowsocks_config_proto_goTypes = nil
  391. file_proxy_shadowsocks_config_proto_depIdxs = nil
  392. }