config.pb.go 14 KB

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