config.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. package reverse
  2. import (
  3. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. unsafe "unsafe"
  9. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. type Control_State int32
  17. const (
  18. Control_ACTIVE Control_State = 0
  19. Control_DRAIN Control_State = 1
  20. )
  21. // Enum value maps for Control_State.
  22. var (
  23. Control_State_name = map[int32]string{
  24. 0: "ACTIVE",
  25. 1: "DRAIN",
  26. }
  27. Control_State_value = map[string]int32{
  28. "ACTIVE": 0,
  29. "DRAIN": 1,
  30. }
  31. )
  32. func (x Control_State) Enum() *Control_State {
  33. p := new(Control_State)
  34. *p = x
  35. return p
  36. }
  37. func (x Control_State) String() string {
  38. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  39. }
  40. func (Control_State) Descriptor() protoreflect.EnumDescriptor {
  41. return file_app_reverse_config_proto_enumTypes[0].Descriptor()
  42. }
  43. func (Control_State) Type() protoreflect.EnumType {
  44. return &file_app_reverse_config_proto_enumTypes[0]
  45. }
  46. func (x Control_State) Number() protoreflect.EnumNumber {
  47. return protoreflect.EnumNumber(x)
  48. }
  49. // Deprecated: Use Control_State.Descriptor instead.
  50. func (Control_State) EnumDescriptor() ([]byte, []int) {
  51. return file_app_reverse_config_proto_rawDescGZIP(), []int{0, 0}
  52. }
  53. type Control struct {
  54. state protoimpl.MessageState `protogen:"open.v1"`
  55. State Control_State `protobuf:"varint,1,opt,name=state,proto3,enum=v2ray.core.app.reverse.Control_State" json:"state,omitempty"`
  56. Random []byte `protobuf:"bytes,99,opt,name=random,proto3" json:"random,omitempty"`
  57. unknownFields protoimpl.UnknownFields
  58. sizeCache protoimpl.SizeCache
  59. }
  60. func (x *Control) Reset() {
  61. *x = Control{}
  62. mi := &file_app_reverse_config_proto_msgTypes[0]
  63. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  64. ms.StoreMessageInfo(mi)
  65. }
  66. func (x *Control) String() string {
  67. return protoimpl.X.MessageStringOf(x)
  68. }
  69. func (*Control) ProtoMessage() {}
  70. func (x *Control) ProtoReflect() protoreflect.Message {
  71. mi := &file_app_reverse_config_proto_msgTypes[0]
  72. if x != nil {
  73. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  74. if ms.LoadMessageInfo() == nil {
  75. ms.StoreMessageInfo(mi)
  76. }
  77. return ms
  78. }
  79. return mi.MessageOf(x)
  80. }
  81. // Deprecated: Use Control.ProtoReflect.Descriptor instead.
  82. func (*Control) Descriptor() ([]byte, []int) {
  83. return file_app_reverse_config_proto_rawDescGZIP(), []int{0}
  84. }
  85. func (x *Control) GetState() Control_State {
  86. if x != nil {
  87. return x.State
  88. }
  89. return Control_ACTIVE
  90. }
  91. func (x *Control) GetRandom() []byte {
  92. if x != nil {
  93. return x.Random
  94. }
  95. return nil
  96. }
  97. type BridgeConfig struct {
  98. state protoimpl.MessageState `protogen:"open.v1"`
  99. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  100. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  101. unknownFields protoimpl.UnknownFields
  102. sizeCache protoimpl.SizeCache
  103. }
  104. func (x *BridgeConfig) Reset() {
  105. *x = BridgeConfig{}
  106. mi := &file_app_reverse_config_proto_msgTypes[1]
  107. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  108. ms.StoreMessageInfo(mi)
  109. }
  110. func (x *BridgeConfig) String() string {
  111. return protoimpl.X.MessageStringOf(x)
  112. }
  113. func (*BridgeConfig) ProtoMessage() {}
  114. func (x *BridgeConfig) ProtoReflect() protoreflect.Message {
  115. mi := &file_app_reverse_config_proto_msgTypes[1]
  116. if x != nil {
  117. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  118. if ms.LoadMessageInfo() == nil {
  119. ms.StoreMessageInfo(mi)
  120. }
  121. return ms
  122. }
  123. return mi.MessageOf(x)
  124. }
  125. // Deprecated: Use BridgeConfig.ProtoReflect.Descriptor instead.
  126. func (*BridgeConfig) Descriptor() ([]byte, []int) {
  127. return file_app_reverse_config_proto_rawDescGZIP(), []int{1}
  128. }
  129. func (x *BridgeConfig) GetTag() string {
  130. if x != nil {
  131. return x.Tag
  132. }
  133. return ""
  134. }
  135. func (x *BridgeConfig) GetDomain() string {
  136. if x != nil {
  137. return x.Domain
  138. }
  139. return ""
  140. }
  141. type PortalConfig struct {
  142. state protoimpl.MessageState `protogen:"open.v1"`
  143. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  144. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  145. unknownFields protoimpl.UnknownFields
  146. sizeCache protoimpl.SizeCache
  147. }
  148. func (x *PortalConfig) Reset() {
  149. *x = PortalConfig{}
  150. mi := &file_app_reverse_config_proto_msgTypes[2]
  151. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  152. ms.StoreMessageInfo(mi)
  153. }
  154. func (x *PortalConfig) String() string {
  155. return protoimpl.X.MessageStringOf(x)
  156. }
  157. func (*PortalConfig) ProtoMessage() {}
  158. func (x *PortalConfig) ProtoReflect() protoreflect.Message {
  159. mi := &file_app_reverse_config_proto_msgTypes[2]
  160. if x != nil {
  161. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  162. if ms.LoadMessageInfo() == nil {
  163. ms.StoreMessageInfo(mi)
  164. }
  165. return ms
  166. }
  167. return mi.MessageOf(x)
  168. }
  169. // Deprecated: Use PortalConfig.ProtoReflect.Descriptor instead.
  170. func (*PortalConfig) Descriptor() ([]byte, []int) {
  171. return file_app_reverse_config_proto_rawDescGZIP(), []int{2}
  172. }
  173. func (x *PortalConfig) GetTag() string {
  174. if x != nil {
  175. return x.Tag
  176. }
  177. return ""
  178. }
  179. func (x *PortalConfig) GetDomain() string {
  180. if x != nil {
  181. return x.Domain
  182. }
  183. return ""
  184. }
  185. type Config struct {
  186. state protoimpl.MessageState `protogen:"open.v1"`
  187. BridgeConfig []*BridgeConfig `protobuf:"bytes,1,rep,name=bridge_config,json=bridgeConfig,proto3" json:"bridge_config,omitempty"`
  188. PortalConfig []*PortalConfig `protobuf:"bytes,2,rep,name=portal_config,json=portalConfig,proto3" json:"portal_config,omitempty"`
  189. unknownFields protoimpl.UnknownFields
  190. sizeCache protoimpl.SizeCache
  191. }
  192. func (x *Config) Reset() {
  193. *x = Config{}
  194. mi := &file_app_reverse_config_proto_msgTypes[3]
  195. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  196. ms.StoreMessageInfo(mi)
  197. }
  198. func (x *Config) String() string {
  199. return protoimpl.X.MessageStringOf(x)
  200. }
  201. func (*Config) ProtoMessage() {}
  202. func (x *Config) ProtoReflect() protoreflect.Message {
  203. mi := &file_app_reverse_config_proto_msgTypes[3]
  204. if x != nil {
  205. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  206. if ms.LoadMessageInfo() == nil {
  207. ms.StoreMessageInfo(mi)
  208. }
  209. return ms
  210. }
  211. return mi.MessageOf(x)
  212. }
  213. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  214. func (*Config) Descriptor() ([]byte, []int) {
  215. return file_app_reverse_config_proto_rawDescGZIP(), []int{3}
  216. }
  217. func (x *Config) GetBridgeConfig() []*BridgeConfig {
  218. if x != nil {
  219. return x.BridgeConfig
  220. }
  221. return nil
  222. }
  223. func (x *Config) GetPortalConfig() []*PortalConfig {
  224. if x != nil {
  225. return x.PortalConfig
  226. }
  227. return nil
  228. }
  229. var File_app_reverse_config_proto protoreflect.FileDescriptor
  230. var file_app_reverse_config_proto_rawDesc = string([]byte{
  231. 0x0a, 0x18, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2f, 0x63, 0x6f,
  232. 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x76, 0x32, 0x72, 0x61,
  233. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72,
  234. 0x73, 0x65, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  235. 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
  236. 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7e, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12,
  237. 0x3b, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25,
  238. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  239. 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e,
  240. 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06,
  241. 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x18, 0x63, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x72, 0x61,
  242. 0x6e, 0x64, 0x6f, 0x6d, 0x22, 0x1e, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0a, 0x0a,
  243. 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x52, 0x41,
  244. 0x49, 0x4e, 0x10, 0x01, 0x22, 0x38, 0x0a, 0x0c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f,
  245. 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
  246. 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  247. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x38,
  248. 0x0a, 0x0c, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10,
  249. 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67,
  250. 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  251. 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xb6, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e,
  252. 0x66, 0x69, 0x67, 0x12, 0x49, 0x0a, 0x0d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x63, 0x6f,
  253. 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72,
  254. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65,
  255. 0x72, 0x73, 0x65, 0x2e, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  256. 0x52, 0x0c, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x49,
  257. 0x0a, 0x0d, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18,
  258. 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  259. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2e, 0x50,
  260. 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x70, 0x6f, 0x72,
  261. 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x16, 0x82, 0xb5, 0x18, 0x12, 0x0a,
  262. 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73,
  263. 0x65, 0x42, 0x67, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  264. 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73,
  265. 0x65, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  266. 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65,
  267. 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0xaa,
  268. 0x02, 0x18, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f,
  269. 0x78, 0x79, 0x2e, 0x52, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  270. 0x6f, 0x33,
  271. })
  272. var (
  273. file_app_reverse_config_proto_rawDescOnce sync.Once
  274. file_app_reverse_config_proto_rawDescData []byte
  275. )
  276. func file_app_reverse_config_proto_rawDescGZIP() []byte {
  277. file_app_reverse_config_proto_rawDescOnce.Do(func() {
  278. file_app_reverse_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_app_reverse_config_proto_rawDesc), len(file_app_reverse_config_proto_rawDesc)))
  279. })
  280. return file_app_reverse_config_proto_rawDescData
  281. }
  282. var file_app_reverse_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  283. var file_app_reverse_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  284. var file_app_reverse_config_proto_goTypes = []any{
  285. (Control_State)(0), // 0: v2ray.core.app.reverse.Control.State
  286. (*Control)(nil), // 1: v2ray.core.app.reverse.Control
  287. (*BridgeConfig)(nil), // 2: v2ray.core.app.reverse.BridgeConfig
  288. (*PortalConfig)(nil), // 3: v2ray.core.app.reverse.PortalConfig
  289. (*Config)(nil), // 4: v2ray.core.app.reverse.Config
  290. }
  291. var file_app_reverse_config_proto_depIdxs = []int32{
  292. 0, // 0: v2ray.core.app.reverse.Control.state:type_name -> v2ray.core.app.reverse.Control.State
  293. 2, // 1: v2ray.core.app.reverse.Config.bridge_config:type_name -> v2ray.core.app.reverse.BridgeConfig
  294. 3, // 2: v2ray.core.app.reverse.Config.portal_config:type_name -> v2ray.core.app.reverse.PortalConfig
  295. 3, // [3:3] is the sub-list for method output_type
  296. 3, // [3:3] is the sub-list for method input_type
  297. 3, // [3:3] is the sub-list for extension type_name
  298. 3, // [3:3] is the sub-list for extension extendee
  299. 0, // [0:3] is the sub-list for field type_name
  300. }
  301. func init() { file_app_reverse_config_proto_init() }
  302. func file_app_reverse_config_proto_init() {
  303. if File_app_reverse_config_proto != nil {
  304. return
  305. }
  306. type x struct{}
  307. out := protoimpl.TypeBuilder{
  308. File: protoimpl.DescBuilder{
  309. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  310. RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_reverse_config_proto_rawDesc), len(file_app_reverse_config_proto_rawDesc)),
  311. NumEnums: 1,
  312. NumMessages: 4,
  313. NumExtensions: 0,
  314. NumServices: 0,
  315. },
  316. GoTypes: file_app_reverse_config_proto_goTypes,
  317. DependencyIndexes: file_app_reverse_config_proto_depIdxs,
  318. EnumInfos: file_app_reverse_config_proto_enumTypes,
  319. MessageInfos: file_app_reverse_config_proto_msgTypes,
  320. }.Build()
  321. File_app_reverse_config_proto = out.File
  322. file_app_reverse_config_proto_goTypes = nil
  323. file_app_reverse_config_proto_depIdxs = nil
  324. }