config.pb.go 15 KB

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