config.pb.go 11 KB

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