config.pb.go 14 KB

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