config.pb.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  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. )
  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. type Control_State int32
  16. const (
  17. Control_ACTIVE Control_State = 0
  18. Control_DRAIN Control_State = 1
  19. )
  20. // Enum value maps for Control_State.
  21. var (
  22. Control_State_name = map[int32]string{
  23. 0: "ACTIVE",
  24. 1: "DRAIN",
  25. }
  26. Control_State_value = map[string]int32{
  27. "ACTIVE": 0,
  28. "DRAIN": 1,
  29. }
  30. )
  31. func (x Control_State) Enum() *Control_State {
  32. p := new(Control_State)
  33. *p = x
  34. return p
  35. }
  36. func (x Control_State) String() string {
  37. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  38. }
  39. func (Control_State) Descriptor() protoreflect.EnumDescriptor {
  40. return file_app_reverse_config_proto_enumTypes[0].Descriptor()
  41. }
  42. func (Control_State) Type() protoreflect.EnumType {
  43. return &file_app_reverse_config_proto_enumTypes[0]
  44. }
  45. func (x Control_State) Number() protoreflect.EnumNumber {
  46. return protoreflect.EnumNumber(x)
  47. }
  48. // Deprecated: Use Control_State.Descriptor instead.
  49. func (Control_State) EnumDescriptor() ([]byte, []int) {
  50. return file_app_reverse_config_proto_rawDescGZIP(), []int{0, 0}
  51. }
  52. type Control struct {
  53. state protoimpl.MessageState
  54. sizeCache protoimpl.SizeCache
  55. unknownFields protoimpl.UnknownFields
  56. State Control_State `protobuf:"varint,1,opt,name=state,proto3,enum=v2ray.core.app.reverse.Control_State" json:"state,omitempty"`
  57. Random []byte `protobuf:"bytes,99,opt,name=random,proto3" json:"random,omitempty"`
  58. }
  59. func (x *Control) Reset() {
  60. *x = Control{}
  61. if protoimpl.UnsafeEnabled {
  62. mi := &file_app_reverse_config_proto_msgTypes[0]
  63. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  64. ms.StoreMessageInfo(mi)
  65. }
  66. }
  67. func (x *Control) String() string {
  68. return protoimpl.X.MessageStringOf(x)
  69. }
  70. func (*Control) ProtoMessage() {}
  71. func (x *Control) ProtoReflect() protoreflect.Message {
  72. mi := &file_app_reverse_config_proto_msgTypes[0]
  73. if protoimpl.UnsafeEnabled && x != nil {
  74. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  75. if ms.LoadMessageInfo() == nil {
  76. ms.StoreMessageInfo(mi)
  77. }
  78. return ms
  79. }
  80. return mi.MessageOf(x)
  81. }
  82. // Deprecated: Use Control.ProtoReflect.Descriptor instead.
  83. func (*Control) Descriptor() ([]byte, []int) {
  84. return file_app_reverse_config_proto_rawDescGZIP(), []int{0}
  85. }
  86. func (x *Control) GetState() Control_State {
  87. if x != nil {
  88. return x.State
  89. }
  90. return Control_ACTIVE
  91. }
  92. func (x *Control) GetRandom() []byte {
  93. if x != nil {
  94. return x.Random
  95. }
  96. return nil
  97. }
  98. type BridgeConfig struct {
  99. state protoimpl.MessageState
  100. sizeCache protoimpl.SizeCache
  101. unknownFields protoimpl.UnknownFields
  102. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  103. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  104. }
  105. func (x *BridgeConfig) Reset() {
  106. *x = BridgeConfig{}
  107. if protoimpl.UnsafeEnabled {
  108. mi := &file_app_reverse_config_proto_msgTypes[1]
  109. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  110. ms.StoreMessageInfo(mi)
  111. }
  112. }
  113. func (x *BridgeConfig) String() string {
  114. return protoimpl.X.MessageStringOf(x)
  115. }
  116. func (*BridgeConfig) ProtoMessage() {}
  117. func (x *BridgeConfig) ProtoReflect() protoreflect.Message {
  118. mi := &file_app_reverse_config_proto_msgTypes[1]
  119. if protoimpl.UnsafeEnabled && x != nil {
  120. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  121. if ms.LoadMessageInfo() == nil {
  122. ms.StoreMessageInfo(mi)
  123. }
  124. return ms
  125. }
  126. return mi.MessageOf(x)
  127. }
  128. // Deprecated: Use BridgeConfig.ProtoReflect.Descriptor instead.
  129. func (*BridgeConfig) Descriptor() ([]byte, []int) {
  130. return file_app_reverse_config_proto_rawDescGZIP(), []int{1}
  131. }
  132. func (x *BridgeConfig) GetTag() string {
  133. if x != nil {
  134. return x.Tag
  135. }
  136. return ""
  137. }
  138. func (x *BridgeConfig) GetDomain() string {
  139. if x != nil {
  140. return x.Domain
  141. }
  142. return ""
  143. }
  144. type PortalConfig struct {
  145. state protoimpl.MessageState
  146. sizeCache protoimpl.SizeCache
  147. unknownFields protoimpl.UnknownFields
  148. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  149. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  150. }
  151. func (x *PortalConfig) Reset() {
  152. *x = PortalConfig{}
  153. if protoimpl.UnsafeEnabled {
  154. mi := &file_app_reverse_config_proto_msgTypes[2]
  155. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  156. ms.StoreMessageInfo(mi)
  157. }
  158. }
  159. func (x *PortalConfig) String() string {
  160. return protoimpl.X.MessageStringOf(x)
  161. }
  162. func (*PortalConfig) ProtoMessage() {}
  163. func (x *PortalConfig) ProtoReflect() protoreflect.Message {
  164. mi := &file_app_reverse_config_proto_msgTypes[2]
  165. if protoimpl.UnsafeEnabled && x != nil {
  166. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  167. if ms.LoadMessageInfo() == nil {
  168. ms.StoreMessageInfo(mi)
  169. }
  170. return ms
  171. }
  172. return mi.MessageOf(x)
  173. }
  174. // Deprecated: Use PortalConfig.ProtoReflect.Descriptor instead.
  175. func (*PortalConfig) Descriptor() ([]byte, []int) {
  176. return file_app_reverse_config_proto_rawDescGZIP(), []int{2}
  177. }
  178. func (x *PortalConfig) GetTag() string {
  179. if x != nil {
  180. return x.Tag
  181. }
  182. return ""
  183. }
  184. func (x *PortalConfig) GetDomain() string {
  185. if x != nil {
  186. return x.Domain
  187. }
  188. return ""
  189. }
  190. type Config struct {
  191. state protoimpl.MessageState
  192. sizeCache protoimpl.SizeCache
  193. unknownFields protoimpl.UnknownFields
  194. BridgeConfig []*BridgeConfig `protobuf:"bytes,1,rep,name=bridge_config,json=bridgeConfig,proto3" json:"bridge_config,omitempty"`
  195. PortalConfig []*PortalConfig `protobuf:"bytes,2,rep,name=portal_config,json=portalConfig,proto3" json:"portal_config,omitempty"`
  196. }
  197. func (x *Config) Reset() {
  198. *x = Config{}
  199. if protoimpl.UnsafeEnabled {
  200. mi := &file_app_reverse_config_proto_msgTypes[3]
  201. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  202. ms.StoreMessageInfo(mi)
  203. }
  204. }
  205. func (x *Config) String() string {
  206. return protoimpl.X.MessageStringOf(x)
  207. }
  208. func (*Config) ProtoMessage() {}
  209. func (x *Config) ProtoReflect() protoreflect.Message {
  210. mi := &file_app_reverse_config_proto_msgTypes[3]
  211. if protoimpl.UnsafeEnabled && x != nil {
  212. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  213. if ms.LoadMessageInfo() == nil {
  214. ms.StoreMessageInfo(mi)
  215. }
  216. return ms
  217. }
  218. return mi.MessageOf(x)
  219. }
  220. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  221. func (*Config) Descriptor() ([]byte, []int) {
  222. return file_app_reverse_config_proto_rawDescGZIP(), []int{3}
  223. }
  224. func (x *Config) GetBridgeConfig() []*BridgeConfig {
  225. if x != nil {
  226. return x.BridgeConfig
  227. }
  228. return nil
  229. }
  230. func (x *Config) GetPortalConfig() []*PortalConfig {
  231. if x != nil {
  232. return x.PortalConfig
  233. }
  234. return nil
  235. }
  236. var File_app_reverse_config_proto protoreflect.FileDescriptor
  237. var file_app_reverse_config_proto_rawDesc = []byte{
  238. 0x0a, 0x18, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2f, 0x63, 0x6f,
  239. 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x76, 0x32, 0x72, 0x61,
  240. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72,
  241. 0x73, 0x65, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  242. 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
  243. 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7e, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12,
  244. 0x3b, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25,
  245. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  246. 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2e,
  247. 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06,
  248. 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x18, 0x63, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x72, 0x61,
  249. 0x6e, 0x64, 0x6f, 0x6d, 0x22, 0x1e, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0a, 0x0a,
  250. 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x52, 0x41,
  251. 0x49, 0x4e, 0x10, 0x01, 0x22, 0x38, 0x0a, 0x0c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f,
  252. 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
  253. 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  254. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x38,
  255. 0x0a, 0x0c, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10,
  256. 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67,
  257. 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  258. 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xb6, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e,
  259. 0x66, 0x69, 0x67, 0x12, 0x49, 0x0a, 0x0d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f, 0x63, 0x6f,
  260. 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72,
  261. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65,
  262. 0x72, 0x73, 0x65, 0x2e, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  263. 0x52, 0x0c, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x49,
  264. 0x0a, 0x0d, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18,
  265. 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  266. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2e, 0x50,
  267. 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x70, 0x6f, 0x72,
  268. 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x16, 0x82, 0xb5, 0x18, 0x12, 0x0a,
  269. 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x07, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73,
  270. 0x65, 0x42, 0x67, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  271. 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73,
  272. 0x65, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  273. 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65,
  274. 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0xaa,
  275. 0x02, 0x18, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f,
  276. 0x78, 0x79, 0x2e, 0x52, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  277. 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. }