config.pb.go 15 KB

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