config.pb.go 9.0 KB

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