config.pb.go 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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, 0x8e, 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. 0x15, 0x82, 0xb5, 0x18, 0x11, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12,
  135. 0x05, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x42, 0x7e, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32,
  136. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76,
  137. 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x50, 0x01, 0x5a,
  138. 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c,
  139. 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f,
  140. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x6f, 0x75, 0x74, 0x62,
  141. 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 0x1f, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72,
  142. 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x4f, 0x75,
  143. 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  144. }
  145. var (
  146. file_proxy_vmess_outbound_config_proto_rawDescOnce sync.Once
  147. file_proxy_vmess_outbound_config_proto_rawDescData = file_proxy_vmess_outbound_config_proto_rawDesc
  148. )
  149. func file_proxy_vmess_outbound_config_proto_rawDescGZIP() []byte {
  150. file_proxy_vmess_outbound_config_proto_rawDescOnce.Do(func() {
  151. file_proxy_vmess_outbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_outbound_config_proto_rawDescData)
  152. })
  153. return file_proxy_vmess_outbound_config_proto_rawDescData
  154. }
  155. var file_proxy_vmess_outbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  156. var file_proxy_vmess_outbound_config_proto_goTypes = []interface{}{
  157. (*Config)(nil), // 0: v2ray.core.proxy.vmess.outbound.Config
  158. (*SimplifiedConfig)(nil), // 1: v2ray.core.proxy.vmess.outbound.SimplifiedConfig
  159. (*protocol.ServerEndpoint)(nil), // 2: v2ray.core.common.protocol.ServerEndpoint
  160. (*net.IPOrDomain)(nil), // 3: v2ray.core.common.net.IPOrDomain
  161. }
  162. var file_proxy_vmess_outbound_config_proto_depIdxs = []int32{
  163. 2, // 0: v2ray.core.proxy.vmess.outbound.Config.Receiver:type_name -> v2ray.core.common.protocol.ServerEndpoint
  164. 3, // 1: v2ray.core.proxy.vmess.outbound.SimplifiedConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
  165. 2, // [2:2] is the sub-list for method output_type
  166. 2, // [2:2] is the sub-list for method input_type
  167. 2, // [2:2] is the sub-list for extension type_name
  168. 2, // [2:2] is the sub-list for extension extendee
  169. 0, // [0:2] is the sub-list for field type_name
  170. }
  171. func init() { file_proxy_vmess_outbound_config_proto_init() }
  172. func file_proxy_vmess_outbound_config_proto_init() {
  173. if File_proxy_vmess_outbound_config_proto != nil {
  174. return
  175. }
  176. if !protoimpl.UnsafeEnabled {
  177. file_proxy_vmess_outbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  178. switch v := v.(*Config); i {
  179. case 0:
  180. return &v.state
  181. case 1:
  182. return &v.sizeCache
  183. case 2:
  184. return &v.unknownFields
  185. default:
  186. return nil
  187. }
  188. }
  189. file_proxy_vmess_outbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  190. switch v := v.(*SimplifiedConfig); i {
  191. case 0:
  192. return &v.state
  193. case 1:
  194. return &v.sizeCache
  195. case 2:
  196. return &v.unknownFields
  197. default:
  198. return nil
  199. }
  200. }
  201. }
  202. type x struct{}
  203. out := protoimpl.TypeBuilder{
  204. File: protoimpl.DescBuilder{
  205. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  206. RawDescriptor: file_proxy_vmess_outbound_config_proto_rawDesc,
  207. NumEnums: 0,
  208. NumMessages: 2,
  209. NumExtensions: 0,
  210. NumServices: 0,
  211. },
  212. GoTypes: file_proxy_vmess_outbound_config_proto_goTypes,
  213. DependencyIndexes: file_proxy_vmess_outbound_config_proto_depIdxs,
  214. MessageInfos: file_proxy_vmess_outbound_config_proto_msgTypes,
  215. }.Build()
  216. File_proxy_vmess_outbound_config_proto = out.File
  217. file_proxy_vmess_outbound_config_proto_rawDesc = nil
  218. file_proxy_vmess_outbound_config_proto_goTypes = nil
  219. file_proxy_vmess_outbound_config_proto_depIdxs = nil
  220. }