config.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  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. unsafe "unsafe"
  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 `protogen:"open.v1"`
  59. State Control_State `protobuf:"varint,1,opt,name=state,proto3,enum=xray.app.reverse.Control_State" json:"state,omitempty"`
  60. Random []byte `protobuf:"bytes,99,opt,name=random,proto3" json:"random,omitempty"`
  61. unknownFields protoimpl.UnknownFields
  62. sizeCache protoimpl.SizeCache
  63. }
  64. func (x *Control) Reset() {
  65. *x = Control{}
  66. mi := &file_app_reverse_config_proto_msgTypes[0]
  67. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  68. ms.StoreMessageInfo(mi)
  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_app_reverse_config_proto_msgTypes[0]
  76. if 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_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 `protogen:"open.v1"`
  103. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  104. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  105. unknownFields protoimpl.UnknownFields
  106. sizeCache protoimpl.SizeCache
  107. }
  108. func (x *BridgeConfig) Reset() {
  109. *x = BridgeConfig{}
  110. mi := &file_app_reverse_config_proto_msgTypes[1]
  111. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  112. ms.StoreMessageInfo(mi)
  113. }
  114. func (x *BridgeConfig) String() string {
  115. return protoimpl.X.MessageStringOf(x)
  116. }
  117. func (*BridgeConfig) ProtoMessage() {}
  118. func (x *BridgeConfig) ProtoReflect() protoreflect.Message {
  119. mi := &file_app_reverse_config_proto_msgTypes[1]
  120. if x != nil {
  121. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  122. if ms.LoadMessageInfo() == nil {
  123. ms.StoreMessageInfo(mi)
  124. }
  125. return ms
  126. }
  127. return mi.MessageOf(x)
  128. }
  129. // Deprecated: Use BridgeConfig.ProtoReflect.Descriptor instead.
  130. func (*BridgeConfig) Descriptor() ([]byte, []int) {
  131. return file_app_reverse_config_proto_rawDescGZIP(), []int{1}
  132. }
  133. func (x *BridgeConfig) GetTag() string {
  134. if x != nil {
  135. return x.Tag
  136. }
  137. return ""
  138. }
  139. func (x *BridgeConfig) GetDomain() string {
  140. if x != nil {
  141. return x.Domain
  142. }
  143. return ""
  144. }
  145. type PortalConfig struct {
  146. state protoimpl.MessageState `protogen:"open.v1"`
  147. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  148. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  149. unknownFields protoimpl.UnknownFields
  150. sizeCache protoimpl.SizeCache
  151. }
  152. func (x *PortalConfig) Reset() {
  153. *x = PortalConfig{}
  154. mi := &file_app_reverse_config_proto_msgTypes[2]
  155. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  156. ms.StoreMessageInfo(mi)
  157. }
  158. func (x *PortalConfig) String() string {
  159. return protoimpl.X.MessageStringOf(x)
  160. }
  161. func (*PortalConfig) ProtoMessage() {}
  162. func (x *PortalConfig) ProtoReflect() protoreflect.Message {
  163. mi := &file_app_reverse_config_proto_msgTypes[2]
  164. if x != nil {
  165. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  166. if ms.LoadMessageInfo() == nil {
  167. ms.StoreMessageInfo(mi)
  168. }
  169. return ms
  170. }
  171. return mi.MessageOf(x)
  172. }
  173. // Deprecated: Use PortalConfig.ProtoReflect.Descriptor instead.
  174. func (*PortalConfig) Descriptor() ([]byte, []int) {
  175. return file_app_reverse_config_proto_rawDescGZIP(), []int{2}
  176. }
  177. func (x *PortalConfig) GetTag() string {
  178. if x != nil {
  179. return x.Tag
  180. }
  181. return ""
  182. }
  183. func (x *PortalConfig) GetDomain() string {
  184. if x != nil {
  185. return x.Domain
  186. }
  187. return ""
  188. }
  189. type Config struct {
  190. state protoimpl.MessageState `protogen:"open.v1"`
  191. BridgeConfig []*BridgeConfig `protobuf:"bytes,1,rep,name=bridge_config,json=bridgeConfig,proto3" json:"bridge_config,omitempty"`
  192. PortalConfig []*PortalConfig `protobuf:"bytes,2,rep,name=portal_config,json=portalConfig,proto3" json:"portal_config,omitempty"`
  193. unknownFields protoimpl.UnknownFields
  194. sizeCache protoimpl.SizeCache
  195. }
  196. func (x *Config) Reset() {
  197. *x = Config{}
  198. mi := &file_app_reverse_config_proto_msgTypes[3]
  199. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  200. ms.StoreMessageInfo(mi)
  201. }
  202. func (x *Config) String() string {
  203. return protoimpl.X.MessageStringOf(x)
  204. }
  205. func (*Config) ProtoMessage() {}
  206. func (x *Config) ProtoReflect() protoreflect.Message {
  207. mi := &file_app_reverse_config_proto_msgTypes[3]
  208. if x != nil {
  209. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  210. if ms.LoadMessageInfo() == nil {
  211. ms.StoreMessageInfo(mi)
  212. }
  213. return ms
  214. }
  215. return mi.MessageOf(x)
  216. }
  217. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  218. func (*Config) Descriptor() ([]byte, []int) {
  219. return file_app_reverse_config_proto_rawDescGZIP(), []int{3}
  220. }
  221. func (x *Config) GetBridgeConfig() []*BridgeConfig {
  222. if x != nil {
  223. return x.BridgeConfig
  224. }
  225. return nil
  226. }
  227. func (x *Config) GetPortalConfig() []*PortalConfig {
  228. if x != nil {
  229. return x.PortalConfig
  230. }
  231. return nil
  232. }
  233. var File_app_reverse_config_proto protoreflect.FileDescriptor
  234. const file_app_reverse_config_proto_rawDesc = "" +
  235. "\n" +
  236. "\x18app/reverse/config.proto\x12\x10xray.app.reverse\"x\n" +
  237. "\aControl\x125\n" +
  238. "\x05state\x18\x01 \x01(\x0e2\x1f.xray.app.reverse.Control.StateR\x05state\x12\x16\n" +
  239. "\x06random\x18c \x01(\fR\x06random\"\x1e\n" +
  240. "\x05State\x12\n" +
  241. "\n" +
  242. "\x06ACTIVE\x10\x00\x12\t\n" +
  243. "\x05DRAIN\x10\x01\"8\n" +
  244. "\fBridgeConfig\x12\x10\n" +
  245. "\x03tag\x18\x01 \x01(\tR\x03tag\x12\x16\n" +
  246. "\x06domain\x18\x02 \x01(\tR\x06domain\"8\n" +
  247. "\fPortalConfig\x12\x10\n" +
  248. "\x03tag\x18\x01 \x01(\tR\x03tag\x12\x16\n" +
  249. "\x06domain\x18\x02 \x01(\tR\x06domain\"\x92\x01\n" +
  250. "\x06Config\x12C\n" +
  251. "\rbridge_config\x18\x01 \x03(\v2\x1e.xray.app.reverse.BridgeConfigR\fbridgeConfig\x12C\n" +
  252. "\rportal_config\x18\x02 \x03(\v2\x1e.xray.app.reverse.PortalConfigR\fportalConfigBV\n" +
  253. "\x16com.xray.proxy.reverseP\x01Z%github.com/xtls/xray-core/app/reverse\xaa\x02\x12Xray.Proxy.Reverseb\x06proto3"
  254. var (
  255. file_app_reverse_config_proto_rawDescOnce sync.Once
  256. file_app_reverse_config_proto_rawDescData []byte
  257. )
  258. func file_app_reverse_config_proto_rawDescGZIP() []byte {
  259. file_app_reverse_config_proto_rawDescOnce.Do(func() {
  260. file_app_reverse_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_app_reverse_config_proto_rawDesc), len(file_app_reverse_config_proto_rawDesc)))
  261. })
  262. return file_app_reverse_config_proto_rawDescData
  263. }
  264. var file_app_reverse_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  265. var file_app_reverse_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  266. var file_app_reverse_config_proto_goTypes = []any{
  267. (Control_State)(0), // 0: xray.app.reverse.Control.State
  268. (*Control)(nil), // 1: xray.app.reverse.Control
  269. (*BridgeConfig)(nil), // 2: xray.app.reverse.BridgeConfig
  270. (*PortalConfig)(nil), // 3: xray.app.reverse.PortalConfig
  271. (*Config)(nil), // 4: xray.app.reverse.Config
  272. }
  273. var file_app_reverse_config_proto_depIdxs = []int32{
  274. 0, // 0: xray.app.reverse.Control.state:type_name -> xray.app.reverse.Control.State
  275. 2, // 1: xray.app.reverse.Config.bridge_config:type_name -> xray.app.reverse.BridgeConfig
  276. 3, // 2: xray.app.reverse.Config.portal_config:type_name -> xray.app.reverse.PortalConfig
  277. 3, // [3:3] is the sub-list for method output_type
  278. 3, // [3:3] is the sub-list for method input_type
  279. 3, // [3:3] is the sub-list for extension type_name
  280. 3, // [3:3] is the sub-list for extension extendee
  281. 0, // [0:3] is the sub-list for field type_name
  282. }
  283. func init() { file_app_reverse_config_proto_init() }
  284. func file_app_reverse_config_proto_init() {
  285. if File_app_reverse_config_proto != nil {
  286. return
  287. }
  288. type x struct{}
  289. out := protoimpl.TypeBuilder{
  290. File: protoimpl.DescBuilder{
  291. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  292. RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_reverse_config_proto_rawDesc), len(file_app_reverse_config_proto_rawDesc)),
  293. NumEnums: 1,
  294. NumMessages: 4,
  295. NumExtensions: 0,
  296. NumServices: 0,
  297. },
  298. GoTypes: file_app_reverse_config_proto_goTypes,
  299. DependencyIndexes: file_app_reverse_config_proto_depIdxs,
  300. EnumInfos: file_app_reverse_config_proto_enumTypes,
  301. MessageInfos: file_app_reverse_config_proto_msgTypes,
  302. }.Build()
  303. File_app_reverse_config_proto = out.File
  304. file_app_reverse_config_proto_goTypes = nil
  305. file_app_reverse_config_proto_depIdxs = nil
  306. }