config.pb.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.0
  4. // protoc v3.21.5
  5. // source: proxy/shadowsocks/simplified/config.proto
  6. package simplified
  7. import (
  8. net "github.com/v2fly/v2ray-core/v5/common/net"
  9. packetaddr "github.com/v2fly/v2ray-core/v5/common/net/packetaddr"
  10. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  11. shadowsocks "github.com/v2fly/v2ray-core/v5/proxy/shadowsocks"
  12. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  13. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  14. reflect "reflect"
  15. sync "sync"
  16. )
  17. const (
  18. // Verify that this generated code is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  20. // Verify that runtime/protoimpl is sufficiently up-to-date.
  21. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  22. )
  23. type ServerConfig struct {
  24. state protoimpl.MessageState
  25. sizeCache protoimpl.SizeCache
  26. unknownFields protoimpl.UnknownFields
  27. Method shadowsocks.CipherType `protobuf:"varint,1,opt,name=method,proto3,enum=v2ray.core.proxy.shadowsocks.CipherType" json:"method,omitempty"`
  28. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  29. Network *net.NetworkList `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
  30. PacketEncoding packetaddr.PacketAddrType `protobuf:"varint,4,opt,name=packet_encoding,json=packetEncoding,proto3,enum=v2ray.core.net.packetaddr.PacketAddrType" json:"packet_encoding,omitempty"`
  31. }
  32. func (x *ServerConfig) Reset() {
  33. *x = ServerConfig{}
  34. if protoimpl.UnsafeEnabled {
  35. mi := &file_proxy_shadowsocks_simplified_config_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  38. }
  39. }
  40. func (x *ServerConfig) String() string {
  41. return protoimpl.X.MessageStringOf(x)
  42. }
  43. func (*ServerConfig) ProtoMessage() {}
  44. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  45. mi := &file_proxy_shadowsocks_simplified_config_proto_msgTypes[0]
  46. if protoimpl.UnsafeEnabled && x != nil {
  47. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  48. if ms.LoadMessageInfo() == nil {
  49. ms.StoreMessageInfo(mi)
  50. }
  51. return ms
  52. }
  53. return mi.MessageOf(x)
  54. }
  55. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  56. func (*ServerConfig) Descriptor() ([]byte, []int) {
  57. return file_proxy_shadowsocks_simplified_config_proto_rawDescGZIP(), []int{0}
  58. }
  59. func (x *ServerConfig) GetMethod() shadowsocks.CipherType {
  60. if x != nil {
  61. return x.Method
  62. }
  63. return shadowsocks.CipherType(0)
  64. }
  65. func (x *ServerConfig) GetPassword() string {
  66. if x != nil {
  67. return x.Password
  68. }
  69. return ""
  70. }
  71. func (x *ServerConfig) GetNetwork() *net.NetworkList {
  72. if x != nil {
  73. return x.Network
  74. }
  75. return nil
  76. }
  77. func (x *ServerConfig) GetPacketEncoding() packetaddr.PacketAddrType {
  78. if x != nil {
  79. return x.PacketEncoding
  80. }
  81. return packetaddr.PacketAddrType(0)
  82. }
  83. type ClientConfig struct {
  84. state protoimpl.MessageState
  85. sizeCache protoimpl.SizeCache
  86. unknownFields protoimpl.UnknownFields
  87. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  88. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  89. Method shadowsocks.CipherType `protobuf:"varint,3,opt,name=method,proto3,enum=v2ray.core.proxy.shadowsocks.CipherType" json:"method,omitempty"`
  90. Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
  91. ExperimentReducedIvHeadEntropy bool `protobuf:"varint,90001,opt,name=experiment_reduced_iv_head_entropy,json=experimentReducedIvHeadEntropy,proto3" json:"experiment_reduced_iv_head_entropy,omitempty"`
  92. }
  93. func (x *ClientConfig) Reset() {
  94. *x = ClientConfig{}
  95. if protoimpl.UnsafeEnabled {
  96. mi := &file_proxy_shadowsocks_simplified_config_proto_msgTypes[1]
  97. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  98. ms.StoreMessageInfo(mi)
  99. }
  100. }
  101. func (x *ClientConfig) String() string {
  102. return protoimpl.X.MessageStringOf(x)
  103. }
  104. func (*ClientConfig) ProtoMessage() {}
  105. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  106. mi := &file_proxy_shadowsocks_simplified_config_proto_msgTypes[1]
  107. if protoimpl.UnsafeEnabled && x != nil {
  108. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  109. if ms.LoadMessageInfo() == nil {
  110. ms.StoreMessageInfo(mi)
  111. }
  112. return ms
  113. }
  114. return mi.MessageOf(x)
  115. }
  116. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  117. func (*ClientConfig) Descriptor() ([]byte, []int) {
  118. return file_proxy_shadowsocks_simplified_config_proto_rawDescGZIP(), []int{1}
  119. }
  120. func (x *ClientConfig) GetAddress() *net.IPOrDomain {
  121. if x != nil {
  122. return x.Address
  123. }
  124. return nil
  125. }
  126. func (x *ClientConfig) GetPort() uint32 {
  127. if x != nil {
  128. return x.Port
  129. }
  130. return 0
  131. }
  132. func (x *ClientConfig) GetMethod() shadowsocks.CipherType {
  133. if x != nil {
  134. return x.Method
  135. }
  136. return shadowsocks.CipherType(0)
  137. }
  138. func (x *ClientConfig) GetPassword() string {
  139. if x != nil {
  140. return x.Password
  141. }
  142. return ""
  143. }
  144. func (x *ClientConfig) GetExperimentReducedIvHeadEntropy() bool {
  145. if x != nil {
  146. return x.ExperimentReducedIvHeadEntropy
  147. }
  148. return false
  149. }
  150. var File_proxy_shadowsocks_simplified_config_proto protoreflect.FileDescriptor
  151. var file_proxy_shadowsocks_simplified_config_proto_rawDesc = []byte{
  152. 0x0a, 0x29, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f,
  153. 0x63, 0x6b, 0x73, 0x2f, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x2f, 0x63,
  154. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x76, 0x32, 0x72,
  155. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68,
  156. 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69,
  157. 0x66, 0x69, 0x65, 0x64, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
  158. 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73,
  159. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e,
  160. 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  161. 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74,
  162. 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x63, 0x6f, 0x6d, 0x6d,
  163. 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64,
  164. 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e,
  165. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b,
  166. 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9e,
  167. 0x02, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  168. 0x40, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
  169. 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f,
  170. 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x43,
  171. 0x69, 0x70, 0x68, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f,
  172. 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20,
  173. 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x3c, 0x0a,
  174. 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22,
  175. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  176. 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69,
  177. 0x73, 0x74, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x52, 0x0a, 0x0f, 0x70,
  178. 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x04,
  179. 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  180. 0x65, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61, 0x64, 0x64, 0x72,
  181. 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52,
  182. 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x3a,
  183. 0x1e, 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x82, 0xb5,
  184. 0x18, 0x0d, 0x12, 0x0b, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x22,
  185. 0xac, 0x02, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  186. 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
  187. 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63,
  188. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f,
  189. 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a,
  190. 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72,
  191. 0x74, 0x12, 0x40, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
  192. 0x0e, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70,
  193. 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73,
  194. 0x2e, 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x06, 0x6d, 0x65, 0x74,
  195. 0x68, 0x6f, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18,
  196. 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12,
  197. 0x4c, 0x0a, 0x22, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65,
  198. 0x64, 0x75, 0x63, 0x65, 0x64, 0x5f, 0x69, 0x76, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x5f, 0x65, 0x6e,
  199. 0x74, 0x72, 0x6f, 0x70, 0x79, 0x18, 0x91, 0xbf, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1e, 0x65,
  200. 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x64, 0x75, 0x63, 0x65, 0x64,
  201. 0x49, 0x76, 0x48, 0x65, 0x61, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x6f, 0x70, 0x79, 0x3a, 0x1f, 0x82,
  202. 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x82, 0xb5, 0x18,
  203. 0x0d, 0x12, 0x0b, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x42, 0x96,
  204. 0x01, 0x0a, 0x2b, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  205. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f,
  206. 0x63, 0x6b, 0x73, 0x2e, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x50, 0x01,
  207. 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66,
  208. 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35,
  209. 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63,
  210. 0x6b, 0x73, 0x2f, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0xaa, 0x02, 0x27,
  211. 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79,
  212. 0x2e, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2e, 0x53, 0x69, 0x6d,
  213. 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  214. }
  215. var (
  216. file_proxy_shadowsocks_simplified_config_proto_rawDescOnce sync.Once
  217. file_proxy_shadowsocks_simplified_config_proto_rawDescData = file_proxy_shadowsocks_simplified_config_proto_rawDesc
  218. )
  219. func file_proxy_shadowsocks_simplified_config_proto_rawDescGZIP() []byte {
  220. file_proxy_shadowsocks_simplified_config_proto_rawDescOnce.Do(func() {
  221. file_proxy_shadowsocks_simplified_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_shadowsocks_simplified_config_proto_rawDescData)
  222. })
  223. return file_proxy_shadowsocks_simplified_config_proto_rawDescData
  224. }
  225. var file_proxy_shadowsocks_simplified_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  226. var file_proxy_shadowsocks_simplified_config_proto_goTypes = []interface{}{
  227. (*ServerConfig)(nil), // 0: v2ray.core.proxy.shadowsocks.simplified.ServerConfig
  228. (*ClientConfig)(nil), // 1: v2ray.core.proxy.shadowsocks.simplified.ClientConfig
  229. (shadowsocks.CipherType)(0), // 2: v2ray.core.proxy.shadowsocks.CipherType
  230. (*net.NetworkList)(nil), // 3: v2ray.core.common.net.NetworkList
  231. (packetaddr.PacketAddrType)(0), // 4: v2ray.core.net.packetaddr.PacketAddrType
  232. (*net.IPOrDomain)(nil), // 5: v2ray.core.common.net.IPOrDomain
  233. }
  234. var file_proxy_shadowsocks_simplified_config_proto_depIdxs = []int32{
  235. 2, // 0: v2ray.core.proxy.shadowsocks.simplified.ServerConfig.method:type_name -> v2ray.core.proxy.shadowsocks.CipherType
  236. 3, // 1: v2ray.core.proxy.shadowsocks.simplified.ServerConfig.network:type_name -> v2ray.core.common.net.NetworkList
  237. 4, // 2: v2ray.core.proxy.shadowsocks.simplified.ServerConfig.packet_encoding:type_name -> v2ray.core.net.packetaddr.PacketAddrType
  238. 5, // 3: v2ray.core.proxy.shadowsocks.simplified.ClientConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
  239. 2, // 4: v2ray.core.proxy.shadowsocks.simplified.ClientConfig.method:type_name -> v2ray.core.proxy.shadowsocks.CipherType
  240. 5, // [5:5] is the sub-list for method output_type
  241. 5, // [5:5] is the sub-list for method input_type
  242. 5, // [5:5] is the sub-list for extension type_name
  243. 5, // [5:5] is the sub-list for extension extendee
  244. 0, // [0:5] is the sub-list for field type_name
  245. }
  246. func init() { file_proxy_shadowsocks_simplified_config_proto_init() }
  247. func file_proxy_shadowsocks_simplified_config_proto_init() {
  248. if File_proxy_shadowsocks_simplified_config_proto != nil {
  249. return
  250. }
  251. if !protoimpl.UnsafeEnabled {
  252. file_proxy_shadowsocks_simplified_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  253. switch v := v.(*ServerConfig); i {
  254. case 0:
  255. return &v.state
  256. case 1:
  257. return &v.sizeCache
  258. case 2:
  259. return &v.unknownFields
  260. default:
  261. return nil
  262. }
  263. }
  264. file_proxy_shadowsocks_simplified_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  265. switch v := v.(*ClientConfig); i {
  266. case 0:
  267. return &v.state
  268. case 1:
  269. return &v.sizeCache
  270. case 2:
  271. return &v.unknownFields
  272. default:
  273. return nil
  274. }
  275. }
  276. }
  277. type x struct{}
  278. out := protoimpl.TypeBuilder{
  279. File: protoimpl.DescBuilder{
  280. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  281. RawDescriptor: file_proxy_shadowsocks_simplified_config_proto_rawDesc,
  282. NumEnums: 0,
  283. NumMessages: 2,
  284. NumExtensions: 0,
  285. NumServices: 0,
  286. },
  287. GoTypes: file_proxy_shadowsocks_simplified_config_proto_goTypes,
  288. DependencyIndexes: file_proxy_shadowsocks_simplified_config_proto_depIdxs,
  289. MessageInfos: file_proxy_shadowsocks_simplified_config_proto_msgTypes,
  290. }.Build()
  291. File_proxy_shadowsocks_simplified_config_proto = out.File
  292. file_proxy_shadowsocks_simplified_config_proto_rawDesc = nil
  293. file_proxy_shadowsocks_simplified_config_proto_goTypes = nil
  294. file_proxy_shadowsocks_simplified_config_proto_depIdxs = nil
  295. }