config.pb.go 15 KB

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