config.pb.go 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. package outbound
  2. import (
  3. net "github.com/v2fly/v2ray-core/v5/common/net"
  4. protocol "github.com/v2fly/v2ray-core/v5/common/protocol"
  5. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  6. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  7. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  8. reflect "reflect"
  9. sync "sync"
  10. )
  11. const (
  12. // Verify that this generated code is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  14. // Verify that runtime/protoimpl is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  16. )
  17. type Config struct {
  18. state protoimpl.MessageState
  19. sizeCache protoimpl.SizeCache
  20. unknownFields protoimpl.UnknownFields
  21. Receiver []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=Receiver,proto3" json:"Receiver,omitempty"`
  22. }
  23. func (x *Config) Reset() {
  24. *x = Config{}
  25. if protoimpl.UnsafeEnabled {
  26. mi := &file_proxy_vmess_outbound_config_proto_msgTypes[0]
  27. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  28. ms.StoreMessageInfo(mi)
  29. }
  30. }
  31. func (x *Config) String() string {
  32. return protoimpl.X.MessageStringOf(x)
  33. }
  34. func (*Config) ProtoMessage() {}
  35. func (x *Config) ProtoReflect() protoreflect.Message {
  36. mi := &file_proxy_vmess_outbound_config_proto_msgTypes[0]
  37. if protoimpl.UnsafeEnabled && x != nil {
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. if ms.LoadMessageInfo() == nil {
  40. ms.StoreMessageInfo(mi)
  41. }
  42. return ms
  43. }
  44. return mi.MessageOf(x)
  45. }
  46. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  47. func (*Config) Descriptor() ([]byte, []int) {
  48. return file_proxy_vmess_outbound_config_proto_rawDescGZIP(), []int{0}
  49. }
  50. func (x *Config) GetReceiver() []*protocol.ServerEndpoint {
  51. if x != nil {
  52. return x.Receiver
  53. }
  54. return nil
  55. }
  56. type SimplifiedConfig struct {
  57. state protoimpl.MessageState
  58. sizeCache protoimpl.SizeCache
  59. unknownFields protoimpl.UnknownFields
  60. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  61. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  62. Uuid string `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid,omitempty"`
  63. }
  64. func (x *SimplifiedConfig) Reset() {
  65. *x = SimplifiedConfig{}
  66. if protoimpl.UnsafeEnabled {
  67. mi := &file_proxy_vmess_outbound_config_proto_msgTypes[1]
  68. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  69. ms.StoreMessageInfo(mi)
  70. }
  71. }
  72. func (x *SimplifiedConfig) String() string {
  73. return protoimpl.X.MessageStringOf(x)
  74. }
  75. func (*SimplifiedConfig) ProtoMessage() {}
  76. func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
  77. mi := &file_proxy_vmess_outbound_config_proto_msgTypes[1]
  78. if protoimpl.UnsafeEnabled && x != nil {
  79. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  80. if ms.LoadMessageInfo() == nil {
  81. ms.StoreMessageInfo(mi)
  82. }
  83. return ms
  84. }
  85. return mi.MessageOf(x)
  86. }
  87. // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
  88. func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
  89. return file_proxy_vmess_outbound_config_proto_rawDescGZIP(), []int{1}
  90. }
  91. func (x *SimplifiedConfig) GetAddress() *net.IPOrDomain {
  92. if x != nil {
  93. return x.Address
  94. }
  95. return nil
  96. }
  97. func (x *SimplifiedConfig) GetPort() uint32 {
  98. if x != nil {
  99. return x.Port
  100. }
  101. return 0
  102. }
  103. func (x *SimplifiedConfig) GetUuid() string {
  104. if x != nil {
  105. return x.Uuid
  106. }
  107. return ""
  108. }
  109. var File_proxy_vmess_outbound_config_proto protoreflect.FileDescriptor
  110. var file_proxy_vmess_outbound_config_proto_rawDesc = []byte{
  111. 0x0a, 0x21, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x6f, 0x75,
  112. 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72,
  113. 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  114. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x6f, 0x75, 0x74, 0x62,
  115. 0x6f, 0x75, 0x6e, 0x64, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f,
  116. 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65,
  117. 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f,
  118. 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  119. 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65,
  120. 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
  121. 0x6f, 0x74, 0x6f, 0x22, 0x50, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x46, 0x0a,
  122. 0x08, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
  123. 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
  124. 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x53, 0x65, 0x72,
  125. 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x08, 0x52, 0x65, 0x63,
  126. 0x65, 0x69, 0x76, 0x65, 0x72, 0x22, 0x92, 0x01, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69,
  127. 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64,
  128. 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32,
  129. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  130. 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07,
  131. 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18,
  132. 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x75,
  133. 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x3a,
  134. 0x19, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x82,
  135. 0xb5, 0x18, 0x07, 0x12, 0x05, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x42, 0x7e, 0x0a, 0x23, 0x63, 0x6f,
  136. 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f,
  137. 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e,
  138. 0x64, 0x50, 0x01, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  139. 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65,
  140. 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f,
  141. 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 0x1f, 0x56, 0x32, 0x52, 0x61, 0x79,
  142. 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65, 0x73,
  143. 0x73, 0x2e, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  144. 0x6f, 0x33,
  145. }
  146. var (
  147. file_proxy_vmess_outbound_config_proto_rawDescOnce sync.Once
  148. file_proxy_vmess_outbound_config_proto_rawDescData = file_proxy_vmess_outbound_config_proto_rawDesc
  149. )
  150. func file_proxy_vmess_outbound_config_proto_rawDescGZIP() []byte {
  151. file_proxy_vmess_outbound_config_proto_rawDescOnce.Do(func() {
  152. file_proxy_vmess_outbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_outbound_config_proto_rawDescData)
  153. })
  154. return file_proxy_vmess_outbound_config_proto_rawDescData
  155. }
  156. var file_proxy_vmess_outbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  157. var file_proxy_vmess_outbound_config_proto_goTypes = []interface{}{
  158. (*Config)(nil), // 0: v2ray.core.proxy.vmess.outbound.Config
  159. (*SimplifiedConfig)(nil), // 1: v2ray.core.proxy.vmess.outbound.SimplifiedConfig
  160. (*protocol.ServerEndpoint)(nil), // 2: v2ray.core.common.protocol.ServerEndpoint
  161. (*net.IPOrDomain)(nil), // 3: v2ray.core.common.net.IPOrDomain
  162. }
  163. var file_proxy_vmess_outbound_config_proto_depIdxs = []int32{
  164. 2, // 0: v2ray.core.proxy.vmess.outbound.Config.Receiver:type_name -> v2ray.core.common.protocol.ServerEndpoint
  165. 3, // 1: v2ray.core.proxy.vmess.outbound.SimplifiedConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
  166. 2, // [2:2] is the sub-list for method output_type
  167. 2, // [2:2] is the sub-list for method input_type
  168. 2, // [2:2] is the sub-list for extension type_name
  169. 2, // [2:2] is the sub-list for extension extendee
  170. 0, // [0:2] is the sub-list for field type_name
  171. }
  172. func init() { file_proxy_vmess_outbound_config_proto_init() }
  173. func file_proxy_vmess_outbound_config_proto_init() {
  174. if File_proxy_vmess_outbound_config_proto != nil {
  175. return
  176. }
  177. if !protoimpl.UnsafeEnabled {
  178. file_proxy_vmess_outbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  179. switch v := v.(*Config); i {
  180. case 0:
  181. return &v.state
  182. case 1:
  183. return &v.sizeCache
  184. case 2:
  185. return &v.unknownFields
  186. default:
  187. return nil
  188. }
  189. }
  190. file_proxy_vmess_outbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  191. switch v := v.(*SimplifiedConfig); i {
  192. case 0:
  193. return &v.state
  194. case 1:
  195. return &v.sizeCache
  196. case 2:
  197. return &v.unknownFields
  198. default:
  199. return nil
  200. }
  201. }
  202. }
  203. type x struct{}
  204. out := protoimpl.TypeBuilder{
  205. File: protoimpl.DescBuilder{
  206. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  207. RawDescriptor: file_proxy_vmess_outbound_config_proto_rawDesc,
  208. NumEnums: 0,
  209. NumMessages: 2,
  210. NumExtensions: 0,
  211. NumServices: 0,
  212. },
  213. GoTypes: file_proxy_vmess_outbound_config_proto_goTypes,
  214. DependencyIndexes: file_proxy_vmess_outbound_config_proto_depIdxs,
  215. MessageInfos: file_proxy_vmess_outbound_config_proto_msgTypes,
  216. }.Build()
  217. File_proxy_vmess_outbound_config_proto = out.File
  218. file_proxy_vmess_outbound_config_proto_rawDesc = nil
  219. file_proxy_vmess_outbound_config_proto_goTypes = nil
  220. file_proxy_vmess_outbound_config_proto_depIdxs = nil
  221. }