config.pb.go 14 KB

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