config.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.35.1
  4. // protoc v5.28.2
  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=xray.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. mi := &file_app_reverse_config_proto_msgTypes[0]
  66. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  67. ms.StoreMessageInfo(mi)
  68. }
  69. func (x *Control) String() string {
  70. return protoimpl.X.MessageStringOf(x)
  71. }
  72. func (*Control) ProtoMessage() {}
  73. func (x *Control) ProtoReflect() protoreflect.Message {
  74. mi := &file_app_reverse_config_proto_msgTypes[0]
  75. if x != nil {
  76. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  77. if ms.LoadMessageInfo() == nil {
  78. ms.StoreMessageInfo(mi)
  79. }
  80. return ms
  81. }
  82. return mi.MessageOf(x)
  83. }
  84. // Deprecated: Use Control.ProtoReflect.Descriptor instead.
  85. func (*Control) Descriptor() ([]byte, []int) {
  86. return file_app_reverse_config_proto_rawDescGZIP(), []int{0}
  87. }
  88. func (x *Control) GetState() Control_State {
  89. if x != nil {
  90. return x.State
  91. }
  92. return Control_ACTIVE
  93. }
  94. func (x *Control) GetRandom() []byte {
  95. if x != nil {
  96. return x.Random
  97. }
  98. return nil
  99. }
  100. type BridgeConfig struct {
  101. state protoimpl.MessageState
  102. sizeCache protoimpl.SizeCache
  103. unknownFields protoimpl.UnknownFields
  104. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  105. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  106. }
  107. func (x *BridgeConfig) Reset() {
  108. *x = BridgeConfig{}
  109. mi := &file_app_reverse_config_proto_msgTypes[1]
  110. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  111. ms.StoreMessageInfo(mi)
  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 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. mi := &file_app_reverse_config_proto_msgTypes[2]
  154. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  155. ms.StoreMessageInfo(mi)
  156. }
  157. func (x *PortalConfig) String() string {
  158. return protoimpl.X.MessageStringOf(x)
  159. }
  160. func (*PortalConfig) ProtoMessage() {}
  161. func (x *PortalConfig) ProtoReflect() protoreflect.Message {
  162. mi := &file_app_reverse_config_proto_msgTypes[2]
  163. if x != nil {
  164. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  165. if ms.LoadMessageInfo() == nil {
  166. ms.StoreMessageInfo(mi)
  167. }
  168. return ms
  169. }
  170. return mi.MessageOf(x)
  171. }
  172. // Deprecated: Use PortalConfig.ProtoReflect.Descriptor instead.
  173. func (*PortalConfig) Descriptor() ([]byte, []int) {
  174. return file_app_reverse_config_proto_rawDescGZIP(), []int{2}
  175. }
  176. func (x *PortalConfig) GetTag() string {
  177. if x != nil {
  178. return x.Tag
  179. }
  180. return ""
  181. }
  182. func (x *PortalConfig) GetDomain() string {
  183. if x != nil {
  184. return x.Domain
  185. }
  186. return ""
  187. }
  188. type Config struct {
  189. state protoimpl.MessageState
  190. sizeCache protoimpl.SizeCache
  191. unknownFields protoimpl.UnknownFields
  192. BridgeConfig []*BridgeConfig `protobuf:"bytes,1,rep,name=bridge_config,json=bridgeConfig,proto3" json:"bridge_config,omitempty"`
  193. PortalConfig []*PortalConfig `protobuf:"bytes,2,rep,name=portal_config,json=portalConfig,proto3" json:"portal_config,omitempty"`
  194. }
  195. func (x *Config) Reset() {
  196. *x = Config{}
  197. mi := &file_app_reverse_config_proto_msgTypes[3]
  198. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  199. ms.StoreMessageInfo(mi)
  200. }
  201. func (x *Config) String() string {
  202. return protoimpl.X.MessageStringOf(x)
  203. }
  204. func (*Config) ProtoMessage() {}
  205. func (x *Config) ProtoReflect() protoreflect.Message {
  206. mi := &file_app_reverse_config_proto_msgTypes[3]
  207. if x != nil {
  208. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  209. if ms.LoadMessageInfo() == nil {
  210. ms.StoreMessageInfo(mi)
  211. }
  212. return ms
  213. }
  214. return mi.MessageOf(x)
  215. }
  216. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  217. func (*Config) Descriptor() ([]byte, []int) {
  218. return file_app_reverse_config_proto_rawDescGZIP(), []int{3}
  219. }
  220. func (x *Config) GetBridgeConfig() []*BridgeConfig {
  221. if x != nil {
  222. return x.BridgeConfig
  223. }
  224. return nil
  225. }
  226. func (x *Config) GetPortalConfig() []*PortalConfig {
  227. if x != nil {
  228. return x.PortalConfig
  229. }
  230. return nil
  231. }
  232. var File_app_reverse_config_proto protoreflect.FileDescriptor
  233. var file_app_reverse_config_proto_rawDesc = []byte{
  234. 0x0a, 0x18, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2f, 0x63, 0x6f,
  235. 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x78, 0x72, 0x61, 0x79,
  236. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x22, 0x78, 0x0a, 0x07,
  237. 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x12, 0x35, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65,
  238. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70,
  239. 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
  240. 0x6c, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16,
  241. 0x0a, 0x06, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x18, 0x63, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06,
  242. 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x22, 0x1e, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,
  243. 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x44,
  244. 0x52, 0x41, 0x49, 0x4e, 0x10, 0x01, 0x22, 0x38, 0x0a, 0x0c, 0x42, 0x72, 0x69, 0x64, 0x67, 0x65,
  245. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20,
  246. 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61,
  247. 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  248. 0x22, 0x38, 0x0a, 0x0c, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  249. 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74,
  250. 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01,
  251. 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x92, 0x01, 0x0a, 0x06, 0x43,
  252. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x43, 0x0a, 0x0d, 0x62, 0x72, 0x69, 0x64, 0x67, 0x65, 0x5f,
  253. 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x78,
  254. 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x2e,
  255. 0x42, 0x72, 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x62, 0x72,
  256. 0x69, 0x64, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x43, 0x0a, 0x0d, 0x70, 0x6f,
  257. 0x72, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x03, 0x28,
  258. 0x0b, 0x32, 0x1e, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x65, 0x76,
  259. 0x65, 0x72, 0x73, 0x65, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  260. 0x67, 0x52, 0x0c, 0x70, 0x6f, 0x72, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42,
  261. 0x56, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  262. 0x79, 0x2e, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x50, 0x01, 0x5a, 0x25, 0x67, 0x69, 0x74,
  263. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61,
  264. 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x65, 0x76, 0x65, 0x72,
  265. 0x73, 0x65, 0xaa, 0x02, 0x12, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e,
  266. 0x52, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  267. }
  268. var (
  269. file_app_reverse_config_proto_rawDescOnce sync.Once
  270. file_app_reverse_config_proto_rawDescData = file_app_reverse_config_proto_rawDesc
  271. )
  272. func file_app_reverse_config_proto_rawDescGZIP() []byte {
  273. file_app_reverse_config_proto_rawDescOnce.Do(func() {
  274. file_app_reverse_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_reverse_config_proto_rawDescData)
  275. })
  276. return file_app_reverse_config_proto_rawDescData
  277. }
  278. var file_app_reverse_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  279. var file_app_reverse_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  280. var file_app_reverse_config_proto_goTypes = []any{
  281. (Control_State)(0), // 0: xray.app.reverse.Control.State
  282. (*Control)(nil), // 1: xray.app.reverse.Control
  283. (*BridgeConfig)(nil), // 2: xray.app.reverse.BridgeConfig
  284. (*PortalConfig)(nil), // 3: xray.app.reverse.PortalConfig
  285. (*Config)(nil), // 4: xray.app.reverse.Config
  286. }
  287. var file_app_reverse_config_proto_depIdxs = []int32{
  288. 0, // 0: xray.app.reverse.Control.state:type_name -> xray.app.reverse.Control.State
  289. 2, // 1: xray.app.reverse.Config.bridge_config:type_name -> xray.app.reverse.BridgeConfig
  290. 3, // 2: xray.app.reverse.Config.portal_config:type_name -> xray.app.reverse.PortalConfig
  291. 3, // [3:3] is the sub-list for method output_type
  292. 3, // [3:3] is the sub-list for method input_type
  293. 3, // [3:3] is the sub-list for extension type_name
  294. 3, // [3:3] is the sub-list for extension extendee
  295. 0, // [0:3] is the sub-list for field type_name
  296. }
  297. func init() { file_app_reverse_config_proto_init() }
  298. func file_app_reverse_config_proto_init() {
  299. if File_app_reverse_config_proto != nil {
  300. return
  301. }
  302. type x struct{}
  303. out := protoimpl.TypeBuilder{
  304. File: protoimpl.DescBuilder{
  305. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  306. RawDescriptor: file_app_reverse_config_proto_rawDesc,
  307. NumEnums: 1,
  308. NumMessages: 4,
  309. NumExtensions: 0,
  310. NumServices: 0,
  311. },
  312. GoTypes: file_app_reverse_config_proto_goTypes,
  313. DependencyIndexes: file_app_reverse_config_proto_depIdxs,
  314. EnumInfos: file_app_reverse_config_proto_enumTypes,
  315. MessageInfos: file_app_reverse_config_proto_msgTypes,
  316. }.Build()
  317. File_app_reverse_config_proto = out.File
  318. file_app_reverse_config_proto_rawDesc = nil
  319. file_app_reverse_config_proto_goTypes = nil
  320. file_app_reverse_config_proto_depIdxs = nil
  321. }