config.pb.go 14 KB

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