config.pb.go 12 KB

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