command.pb.go 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135
  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/router/command/command.proto
  6. package command
  7. import (
  8. net "github.com/xtls/xray-core/common/net"
  9. serial "github.com/xtls/xray-core/common/serial"
  10. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12. reflect "reflect"
  13. sync "sync"
  14. unsafe "unsafe"
  15. )
  16. const (
  17. // Verify that this generated code is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  19. // Verify that runtime/protoimpl is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  21. )
  22. // RoutingContext is the context with information relative to routing process.
  23. // It conforms to the structure of xray.features.routing.Context and
  24. // xray.features.routing.Route.
  25. type RoutingContext struct {
  26. state protoimpl.MessageState `protogen:"open.v1"`
  27. InboundTag string `protobuf:"bytes,1,opt,name=InboundTag,proto3" json:"InboundTag,omitempty"`
  28. Network net.Network `protobuf:"varint,2,opt,name=Network,proto3,enum=xray.common.net.Network" json:"Network,omitempty"`
  29. SourceIPs [][]byte `protobuf:"bytes,3,rep,name=SourceIPs,proto3" json:"SourceIPs,omitempty"`
  30. TargetIPs [][]byte `protobuf:"bytes,4,rep,name=TargetIPs,proto3" json:"TargetIPs,omitempty"`
  31. SourcePort uint32 `protobuf:"varint,5,opt,name=SourcePort,proto3" json:"SourcePort,omitempty"`
  32. TargetPort uint32 `protobuf:"varint,6,opt,name=TargetPort,proto3" json:"TargetPort,omitempty"`
  33. TargetDomain string `protobuf:"bytes,7,opt,name=TargetDomain,proto3" json:"TargetDomain,omitempty"`
  34. Protocol string `protobuf:"bytes,8,opt,name=Protocol,proto3" json:"Protocol,omitempty"`
  35. User string `protobuf:"bytes,9,opt,name=User,proto3" json:"User,omitempty"`
  36. Attributes map[string]string `protobuf:"bytes,10,rep,name=Attributes,proto3" json:"Attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  37. OutboundGroupTags []string `protobuf:"bytes,11,rep,name=OutboundGroupTags,proto3" json:"OutboundGroupTags,omitempty"`
  38. OutboundTag string `protobuf:"bytes,12,opt,name=OutboundTag,proto3" json:"OutboundTag,omitempty"`
  39. LocalIPs [][]byte `protobuf:"bytes,13,rep,name=LocalIPs,proto3" json:"LocalIPs,omitempty"`
  40. LocalPort uint32 `protobuf:"varint,14,opt,name=LocalPort,proto3" json:"LocalPort,omitempty"`
  41. VlessRoute uint32 `protobuf:"varint,15,opt,name=VlessRoute,proto3" json:"VlessRoute,omitempty"`
  42. unknownFields protoimpl.UnknownFields
  43. sizeCache protoimpl.SizeCache
  44. }
  45. func (x *RoutingContext) Reset() {
  46. *x = RoutingContext{}
  47. mi := &file_app_router_command_command_proto_msgTypes[0]
  48. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  49. ms.StoreMessageInfo(mi)
  50. }
  51. func (x *RoutingContext) String() string {
  52. return protoimpl.X.MessageStringOf(x)
  53. }
  54. func (*RoutingContext) ProtoMessage() {}
  55. func (x *RoutingContext) ProtoReflect() protoreflect.Message {
  56. mi := &file_app_router_command_command_proto_msgTypes[0]
  57. if x != nil {
  58. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  59. if ms.LoadMessageInfo() == nil {
  60. ms.StoreMessageInfo(mi)
  61. }
  62. return ms
  63. }
  64. return mi.MessageOf(x)
  65. }
  66. // Deprecated: Use RoutingContext.ProtoReflect.Descriptor instead.
  67. func (*RoutingContext) Descriptor() ([]byte, []int) {
  68. return file_app_router_command_command_proto_rawDescGZIP(), []int{0}
  69. }
  70. func (x *RoutingContext) GetInboundTag() string {
  71. if x != nil {
  72. return x.InboundTag
  73. }
  74. return ""
  75. }
  76. func (x *RoutingContext) GetNetwork() net.Network {
  77. if x != nil {
  78. return x.Network
  79. }
  80. return net.Network(0)
  81. }
  82. func (x *RoutingContext) GetSourceIPs() [][]byte {
  83. if x != nil {
  84. return x.SourceIPs
  85. }
  86. return nil
  87. }
  88. func (x *RoutingContext) GetTargetIPs() [][]byte {
  89. if x != nil {
  90. return x.TargetIPs
  91. }
  92. return nil
  93. }
  94. func (x *RoutingContext) GetSourcePort() uint32 {
  95. if x != nil {
  96. return x.SourcePort
  97. }
  98. return 0
  99. }
  100. func (x *RoutingContext) GetTargetPort() uint32 {
  101. if x != nil {
  102. return x.TargetPort
  103. }
  104. return 0
  105. }
  106. func (x *RoutingContext) GetTargetDomain() string {
  107. if x != nil {
  108. return x.TargetDomain
  109. }
  110. return ""
  111. }
  112. func (x *RoutingContext) GetProtocol() string {
  113. if x != nil {
  114. return x.Protocol
  115. }
  116. return ""
  117. }
  118. func (x *RoutingContext) GetUser() string {
  119. if x != nil {
  120. return x.User
  121. }
  122. return ""
  123. }
  124. func (x *RoutingContext) GetAttributes() map[string]string {
  125. if x != nil {
  126. return x.Attributes
  127. }
  128. return nil
  129. }
  130. func (x *RoutingContext) GetOutboundGroupTags() []string {
  131. if x != nil {
  132. return x.OutboundGroupTags
  133. }
  134. return nil
  135. }
  136. func (x *RoutingContext) GetOutboundTag() string {
  137. if x != nil {
  138. return x.OutboundTag
  139. }
  140. return ""
  141. }
  142. func (x *RoutingContext) GetLocalIPs() [][]byte {
  143. if x != nil {
  144. return x.LocalIPs
  145. }
  146. return nil
  147. }
  148. func (x *RoutingContext) GetLocalPort() uint32 {
  149. if x != nil {
  150. return x.LocalPort
  151. }
  152. return 0
  153. }
  154. func (x *RoutingContext) GetVlessRoute() uint32 {
  155. if x != nil {
  156. return x.VlessRoute
  157. }
  158. return 0
  159. }
  160. // SubscribeRoutingStatsRequest subscribes to routing statistics channel if
  161. // opened by xray-core.
  162. // * FieldSelectors selects a subset of fields in routing statistics to return.
  163. // Valid selectors:
  164. // - inbound: Selects connection's inbound tag.
  165. // - network: Selects connection's network.
  166. // - ip: Equivalent as "ip_source" and "ip_target", selects both source and
  167. // target IP.
  168. // - port: Equivalent as "port_source" and "port_target", selects both source
  169. // and target port.
  170. // - domain: Selects target domain.
  171. // - protocol: Select connection's protocol.
  172. // - user: Select connection's inbound user email.
  173. // - attributes: Select connection's additional attributes.
  174. // - outbound: Equivalent as "outbound" and "outbound_group", select both
  175. // outbound tag and outbound group tags.
  176. //
  177. // * If FieldSelectors is left empty, all fields will be returned.
  178. type SubscribeRoutingStatsRequest struct {
  179. state protoimpl.MessageState `protogen:"open.v1"`
  180. FieldSelectors []string `protobuf:"bytes,1,rep,name=FieldSelectors,proto3" json:"FieldSelectors,omitempty"`
  181. unknownFields protoimpl.UnknownFields
  182. sizeCache protoimpl.SizeCache
  183. }
  184. func (x *SubscribeRoutingStatsRequest) Reset() {
  185. *x = SubscribeRoutingStatsRequest{}
  186. mi := &file_app_router_command_command_proto_msgTypes[1]
  187. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  188. ms.StoreMessageInfo(mi)
  189. }
  190. func (x *SubscribeRoutingStatsRequest) String() string {
  191. return protoimpl.X.MessageStringOf(x)
  192. }
  193. func (*SubscribeRoutingStatsRequest) ProtoMessage() {}
  194. func (x *SubscribeRoutingStatsRequest) ProtoReflect() protoreflect.Message {
  195. mi := &file_app_router_command_command_proto_msgTypes[1]
  196. if x != nil {
  197. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  198. if ms.LoadMessageInfo() == nil {
  199. ms.StoreMessageInfo(mi)
  200. }
  201. return ms
  202. }
  203. return mi.MessageOf(x)
  204. }
  205. // Deprecated: Use SubscribeRoutingStatsRequest.ProtoReflect.Descriptor instead.
  206. func (*SubscribeRoutingStatsRequest) Descriptor() ([]byte, []int) {
  207. return file_app_router_command_command_proto_rawDescGZIP(), []int{1}
  208. }
  209. func (x *SubscribeRoutingStatsRequest) GetFieldSelectors() []string {
  210. if x != nil {
  211. return x.FieldSelectors
  212. }
  213. return nil
  214. }
  215. // TestRouteRequest manually tests a routing result according to the routing
  216. // context message.
  217. // * RoutingContext is the routing message without outbound information.
  218. // * FieldSelectors selects the fields to return in the routing result. All
  219. // fields are returned if left empty.
  220. // * PublishResult broadcasts the routing result to routing statistics channel
  221. // if set true.
  222. type TestRouteRequest struct {
  223. state protoimpl.MessageState `protogen:"open.v1"`
  224. RoutingContext *RoutingContext `protobuf:"bytes,1,opt,name=RoutingContext,proto3" json:"RoutingContext,omitempty"`
  225. FieldSelectors []string `protobuf:"bytes,2,rep,name=FieldSelectors,proto3" json:"FieldSelectors,omitempty"`
  226. PublishResult bool `protobuf:"varint,3,opt,name=PublishResult,proto3" json:"PublishResult,omitempty"`
  227. unknownFields protoimpl.UnknownFields
  228. sizeCache protoimpl.SizeCache
  229. }
  230. func (x *TestRouteRequest) Reset() {
  231. *x = TestRouteRequest{}
  232. mi := &file_app_router_command_command_proto_msgTypes[2]
  233. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  234. ms.StoreMessageInfo(mi)
  235. }
  236. func (x *TestRouteRequest) String() string {
  237. return protoimpl.X.MessageStringOf(x)
  238. }
  239. func (*TestRouteRequest) ProtoMessage() {}
  240. func (x *TestRouteRequest) ProtoReflect() protoreflect.Message {
  241. mi := &file_app_router_command_command_proto_msgTypes[2]
  242. if x != nil {
  243. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  244. if ms.LoadMessageInfo() == nil {
  245. ms.StoreMessageInfo(mi)
  246. }
  247. return ms
  248. }
  249. return mi.MessageOf(x)
  250. }
  251. // Deprecated: Use TestRouteRequest.ProtoReflect.Descriptor instead.
  252. func (*TestRouteRequest) Descriptor() ([]byte, []int) {
  253. return file_app_router_command_command_proto_rawDescGZIP(), []int{2}
  254. }
  255. func (x *TestRouteRequest) GetRoutingContext() *RoutingContext {
  256. if x != nil {
  257. return x.RoutingContext
  258. }
  259. return nil
  260. }
  261. func (x *TestRouteRequest) GetFieldSelectors() []string {
  262. if x != nil {
  263. return x.FieldSelectors
  264. }
  265. return nil
  266. }
  267. func (x *TestRouteRequest) GetPublishResult() bool {
  268. if x != nil {
  269. return x.PublishResult
  270. }
  271. return false
  272. }
  273. type PrincipleTargetInfo struct {
  274. state protoimpl.MessageState `protogen:"open.v1"`
  275. Tag []string `protobuf:"bytes,1,rep,name=tag,proto3" json:"tag,omitempty"`
  276. unknownFields protoimpl.UnknownFields
  277. sizeCache protoimpl.SizeCache
  278. }
  279. func (x *PrincipleTargetInfo) Reset() {
  280. *x = PrincipleTargetInfo{}
  281. mi := &file_app_router_command_command_proto_msgTypes[3]
  282. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  283. ms.StoreMessageInfo(mi)
  284. }
  285. func (x *PrincipleTargetInfo) String() string {
  286. return protoimpl.X.MessageStringOf(x)
  287. }
  288. func (*PrincipleTargetInfo) ProtoMessage() {}
  289. func (x *PrincipleTargetInfo) ProtoReflect() protoreflect.Message {
  290. mi := &file_app_router_command_command_proto_msgTypes[3]
  291. if x != nil {
  292. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  293. if ms.LoadMessageInfo() == nil {
  294. ms.StoreMessageInfo(mi)
  295. }
  296. return ms
  297. }
  298. return mi.MessageOf(x)
  299. }
  300. // Deprecated: Use PrincipleTargetInfo.ProtoReflect.Descriptor instead.
  301. func (*PrincipleTargetInfo) Descriptor() ([]byte, []int) {
  302. return file_app_router_command_command_proto_rawDescGZIP(), []int{3}
  303. }
  304. func (x *PrincipleTargetInfo) GetTag() []string {
  305. if x != nil {
  306. return x.Tag
  307. }
  308. return nil
  309. }
  310. type OverrideInfo struct {
  311. state protoimpl.MessageState `protogen:"open.v1"`
  312. Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
  313. unknownFields protoimpl.UnknownFields
  314. sizeCache protoimpl.SizeCache
  315. }
  316. func (x *OverrideInfo) Reset() {
  317. *x = OverrideInfo{}
  318. mi := &file_app_router_command_command_proto_msgTypes[4]
  319. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  320. ms.StoreMessageInfo(mi)
  321. }
  322. func (x *OverrideInfo) String() string {
  323. return protoimpl.X.MessageStringOf(x)
  324. }
  325. func (*OverrideInfo) ProtoMessage() {}
  326. func (x *OverrideInfo) ProtoReflect() protoreflect.Message {
  327. mi := &file_app_router_command_command_proto_msgTypes[4]
  328. if x != nil {
  329. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  330. if ms.LoadMessageInfo() == nil {
  331. ms.StoreMessageInfo(mi)
  332. }
  333. return ms
  334. }
  335. return mi.MessageOf(x)
  336. }
  337. // Deprecated: Use OverrideInfo.ProtoReflect.Descriptor instead.
  338. func (*OverrideInfo) Descriptor() ([]byte, []int) {
  339. return file_app_router_command_command_proto_rawDescGZIP(), []int{4}
  340. }
  341. func (x *OverrideInfo) GetTarget() string {
  342. if x != nil {
  343. return x.Target
  344. }
  345. return ""
  346. }
  347. type BalancerMsg struct {
  348. state protoimpl.MessageState `protogen:"open.v1"`
  349. Override *OverrideInfo `protobuf:"bytes,5,opt,name=override,proto3" json:"override,omitempty"`
  350. PrincipleTarget *PrincipleTargetInfo `protobuf:"bytes,6,opt,name=principle_target,json=principleTarget,proto3" json:"principle_target,omitempty"`
  351. unknownFields protoimpl.UnknownFields
  352. sizeCache protoimpl.SizeCache
  353. }
  354. func (x *BalancerMsg) Reset() {
  355. *x = BalancerMsg{}
  356. mi := &file_app_router_command_command_proto_msgTypes[5]
  357. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  358. ms.StoreMessageInfo(mi)
  359. }
  360. func (x *BalancerMsg) String() string {
  361. return protoimpl.X.MessageStringOf(x)
  362. }
  363. func (*BalancerMsg) ProtoMessage() {}
  364. func (x *BalancerMsg) ProtoReflect() protoreflect.Message {
  365. mi := &file_app_router_command_command_proto_msgTypes[5]
  366. if x != nil {
  367. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  368. if ms.LoadMessageInfo() == nil {
  369. ms.StoreMessageInfo(mi)
  370. }
  371. return ms
  372. }
  373. return mi.MessageOf(x)
  374. }
  375. // Deprecated: Use BalancerMsg.ProtoReflect.Descriptor instead.
  376. func (*BalancerMsg) Descriptor() ([]byte, []int) {
  377. return file_app_router_command_command_proto_rawDescGZIP(), []int{5}
  378. }
  379. func (x *BalancerMsg) GetOverride() *OverrideInfo {
  380. if x != nil {
  381. return x.Override
  382. }
  383. return nil
  384. }
  385. func (x *BalancerMsg) GetPrincipleTarget() *PrincipleTargetInfo {
  386. if x != nil {
  387. return x.PrincipleTarget
  388. }
  389. return nil
  390. }
  391. type GetBalancerInfoRequest struct {
  392. state protoimpl.MessageState `protogen:"open.v1"`
  393. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  394. unknownFields protoimpl.UnknownFields
  395. sizeCache protoimpl.SizeCache
  396. }
  397. func (x *GetBalancerInfoRequest) Reset() {
  398. *x = GetBalancerInfoRequest{}
  399. mi := &file_app_router_command_command_proto_msgTypes[6]
  400. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  401. ms.StoreMessageInfo(mi)
  402. }
  403. func (x *GetBalancerInfoRequest) String() string {
  404. return protoimpl.X.MessageStringOf(x)
  405. }
  406. func (*GetBalancerInfoRequest) ProtoMessage() {}
  407. func (x *GetBalancerInfoRequest) ProtoReflect() protoreflect.Message {
  408. mi := &file_app_router_command_command_proto_msgTypes[6]
  409. if x != nil {
  410. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  411. if ms.LoadMessageInfo() == nil {
  412. ms.StoreMessageInfo(mi)
  413. }
  414. return ms
  415. }
  416. return mi.MessageOf(x)
  417. }
  418. // Deprecated: Use GetBalancerInfoRequest.ProtoReflect.Descriptor instead.
  419. func (*GetBalancerInfoRequest) Descriptor() ([]byte, []int) {
  420. return file_app_router_command_command_proto_rawDescGZIP(), []int{6}
  421. }
  422. func (x *GetBalancerInfoRequest) GetTag() string {
  423. if x != nil {
  424. return x.Tag
  425. }
  426. return ""
  427. }
  428. type GetBalancerInfoResponse struct {
  429. state protoimpl.MessageState `protogen:"open.v1"`
  430. Balancer *BalancerMsg `protobuf:"bytes,1,opt,name=balancer,proto3" json:"balancer,omitempty"`
  431. unknownFields protoimpl.UnknownFields
  432. sizeCache protoimpl.SizeCache
  433. }
  434. func (x *GetBalancerInfoResponse) Reset() {
  435. *x = GetBalancerInfoResponse{}
  436. mi := &file_app_router_command_command_proto_msgTypes[7]
  437. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  438. ms.StoreMessageInfo(mi)
  439. }
  440. func (x *GetBalancerInfoResponse) String() string {
  441. return protoimpl.X.MessageStringOf(x)
  442. }
  443. func (*GetBalancerInfoResponse) ProtoMessage() {}
  444. func (x *GetBalancerInfoResponse) ProtoReflect() protoreflect.Message {
  445. mi := &file_app_router_command_command_proto_msgTypes[7]
  446. if x != nil {
  447. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  448. if ms.LoadMessageInfo() == nil {
  449. ms.StoreMessageInfo(mi)
  450. }
  451. return ms
  452. }
  453. return mi.MessageOf(x)
  454. }
  455. // Deprecated: Use GetBalancerInfoResponse.ProtoReflect.Descriptor instead.
  456. func (*GetBalancerInfoResponse) Descriptor() ([]byte, []int) {
  457. return file_app_router_command_command_proto_rawDescGZIP(), []int{7}
  458. }
  459. func (x *GetBalancerInfoResponse) GetBalancer() *BalancerMsg {
  460. if x != nil {
  461. return x.Balancer
  462. }
  463. return nil
  464. }
  465. type OverrideBalancerTargetRequest struct {
  466. state protoimpl.MessageState `protogen:"open.v1"`
  467. BalancerTag string `protobuf:"bytes,1,opt,name=balancerTag,proto3" json:"balancerTag,omitempty"`
  468. Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
  469. unknownFields protoimpl.UnknownFields
  470. sizeCache protoimpl.SizeCache
  471. }
  472. func (x *OverrideBalancerTargetRequest) Reset() {
  473. *x = OverrideBalancerTargetRequest{}
  474. mi := &file_app_router_command_command_proto_msgTypes[8]
  475. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  476. ms.StoreMessageInfo(mi)
  477. }
  478. func (x *OverrideBalancerTargetRequest) String() string {
  479. return protoimpl.X.MessageStringOf(x)
  480. }
  481. func (*OverrideBalancerTargetRequest) ProtoMessage() {}
  482. func (x *OverrideBalancerTargetRequest) ProtoReflect() protoreflect.Message {
  483. mi := &file_app_router_command_command_proto_msgTypes[8]
  484. if x != nil {
  485. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  486. if ms.LoadMessageInfo() == nil {
  487. ms.StoreMessageInfo(mi)
  488. }
  489. return ms
  490. }
  491. return mi.MessageOf(x)
  492. }
  493. // Deprecated: Use OverrideBalancerTargetRequest.ProtoReflect.Descriptor instead.
  494. func (*OverrideBalancerTargetRequest) Descriptor() ([]byte, []int) {
  495. return file_app_router_command_command_proto_rawDescGZIP(), []int{8}
  496. }
  497. func (x *OverrideBalancerTargetRequest) GetBalancerTag() string {
  498. if x != nil {
  499. return x.BalancerTag
  500. }
  501. return ""
  502. }
  503. func (x *OverrideBalancerTargetRequest) GetTarget() string {
  504. if x != nil {
  505. return x.Target
  506. }
  507. return ""
  508. }
  509. type OverrideBalancerTargetResponse struct {
  510. state protoimpl.MessageState `protogen:"open.v1"`
  511. unknownFields protoimpl.UnknownFields
  512. sizeCache protoimpl.SizeCache
  513. }
  514. func (x *OverrideBalancerTargetResponse) Reset() {
  515. *x = OverrideBalancerTargetResponse{}
  516. mi := &file_app_router_command_command_proto_msgTypes[9]
  517. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  518. ms.StoreMessageInfo(mi)
  519. }
  520. func (x *OverrideBalancerTargetResponse) String() string {
  521. return protoimpl.X.MessageStringOf(x)
  522. }
  523. func (*OverrideBalancerTargetResponse) ProtoMessage() {}
  524. func (x *OverrideBalancerTargetResponse) ProtoReflect() protoreflect.Message {
  525. mi := &file_app_router_command_command_proto_msgTypes[9]
  526. if x != nil {
  527. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  528. if ms.LoadMessageInfo() == nil {
  529. ms.StoreMessageInfo(mi)
  530. }
  531. return ms
  532. }
  533. return mi.MessageOf(x)
  534. }
  535. // Deprecated: Use OverrideBalancerTargetResponse.ProtoReflect.Descriptor instead.
  536. func (*OverrideBalancerTargetResponse) Descriptor() ([]byte, []int) {
  537. return file_app_router_command_command_proto_rawDescGZIP(), []int{9}
  538. }
  539. type AddRuleRequest struct {
  540. state protoimpl.MessageState `protogen:"open.v1"`
  541. Config *serial.TypedMessage `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
  542. ShouldAppend bool `protobuf:"varint,2,opt,name=shouldAppend,proto3" json:"shouldAppend,omitempty"`
  543. unknownFields protoimpl.UnknownFields
  544. sizeCache protoimpl.SizeCache
  545. }
  546. func (x *AddRuleRequest) Reset() {
  547. *x = AddRuleRequest{}
  548. mi := &file_app_router_command_command_proto_msgTypes[10]
  549. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  550. ms.StoreMessageInfo(mi)
  551. }
  552. func (x *AddRuleRequest) String() string {
  553. return protoimpl.X.MessageStringOf(x)
  554. }
  555. func (*AddRuleRequest) ProtoMessage() {}
  556. func (x *AddRuleRequest) ProtoReflect() protoreflect.Message {
  557. mi := &file_app_router_command_command_proto_msgTypes[10]
  558. if x != nil {
  559. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  560. if ms.LoadMessageInfo() == nil {
  561. ms.StoreMessageInfo(mi)
  562. }
  563. return ms
  564. }
  565. return mi.MessageOf(x)
  566. }
  567. // Deprecated: Use AddRuleRequest.ProtoReflect.Descriptor instead.
  568. func (*AddRuleRequest) Descriptor() ([]byte, []int) {
  569. return file_app_router_command_command_proto_rawDescGZIP(), []int{10}
  570. }
  571. func (x *AddRuleRequest) GetConfig() *serial.TypedMessage {
  572. if x != nil {
  573. return x.Config
  574. }
  575. return nil
  576. }
  577. func (x *AddRuleRequest) GetShouldAppend() bool {
  578. if x != nil {
  579. return x.ShouldAppend
  580. }
  581. return false
  582. }
  583. type AddRuleResponse struct {
  584. state protoimpl.MessageState `protogen:"open.v1"`
  585. unknownFields protoimpl.UnknownFields
  586. sizeCache protoimpl.SizeCache
  587. }
  588. func (x *AddRuleResponse) Reset() {
  589. *x = AddRuleResponse{}
  590. mi := &file_app_router_command_command_proto_msgTypes[11]
  591. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  592. ms.StoreMessageInfo(mi)
  593. }
  594. func (x *AddRuleResponse) String() string {
  595. return protoimpl.X.MessageStringOf(x)
  596. }
  597. func (*AddRuleResponse) ProtoMessage() {}
  598. func (x *AddRuleResponse) ProtoReflect() protoreflect.Message {
  599. mi := &file_app_router_command_command_proto_msgTypes[11]
  600. if x != nil {
  601. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  602. if ms.LoadMessageInfo() == nil {
  603. ms.StoreMessageInfo(mi)
  604. }
  605. return ms
  606. }
  607. return mi.MessageOf(x)
  608. }
  609. // Deprecated: Use AddRuleResponse.ProtoReflect.Descriptor instead.
  610. func (*AddRuleResponse) Descriptor() ([]byte, []int) {
  611. return file_app_router_command_command_proto_rawDescGZIP(), []int{11}
  612. }
  613. type RemoveRuleRequest struct {
  614. state protoimpl.MessageState `protogen:"open.v1"`
  615. RuleTag string `protobuf:"bytes,1,opt,name=ruleTag,proto3" json:"ruleTag,omitempty"`
  616. unknownFields protoimpl.UnknownFields
  617. sizeCache protoimpl.SizeCache
  618. }
  619. func (x *RemoveRuleRequest) Reset() {
  620. *x = RemoveRuleRequest{}
  621. mi := &file_app_router_command_command_proto_msgTypes[12]
  622. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  623. ms.StoreMessageInfo(mi)
  624. }
  625. func (x *RemoveRuleRequest) String() string {
  626. return protoimpl.X.MessageStringOf(x)
  627. }
  628. func (*RemoveRuleRequest) ProtoMessage() {}
  629. func (x *RemoveRuleRequest) ProtoReflect() protoreflect.Message {
  630. mi := &file_app_router_command_command_proto_msgTypes[12]
  631. if x != nil {
  632. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  633. if ms.LoadMessageInfo() == nil {
  634. ms.StoreMessageInfo(mi)
  635. }
  636. return ms
  637. }
  638. return mi.MessageOf(x)
  639. }
  640. // Deprecated: Use RemoveRuleRequest.ProtoReflect.Descriptor instead.
  641. func (*RemoveRuleRequest) Descriptor() ([]byte, []int) {
  642. return file_app_router_command_command_proto_rawDescGZIP(), []int{12}
  643. }
  644. func (x *RemoveRuleRequest) GetRuleTag() string {
  645. if x != nil {
  646. return x.RuleTag
  647. }
  648. return ""
  649. }
  650. type RemoveRuleResponse struct {
  651. state protoimpl.MessageState `protogen:"open.v1"`
  652. unknownFields protoimpl.UnknownFields
  653. sizeCache protoimpl.SizeCache
  654. }
  655. func (x *RemoveRuleResponse) Reset() {
  656. *x = RemoveRuleResponse{}
  657. mi := &file_app_router_command_command_proto_msgTypes[13]
  658. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  659. ms.StoreMessageInfo(mi)
  660. }
  661. func (x *RemoveRuleResponse) String() string {
  662. return protoimpl.X.MessageStringOf(x)
  663. }
  664. func (*RemoveRuleResponse) ProtoMessage() {}
  665. func (x *RemoveRuleResponse) ProtoReflect() protoreflect.Message {
  666. mi := &file_app_router_command_command_proto_msgTypes[13]
  667. if x != nil {
  668. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  669. if ms.LoadMessageInfo() == nil {
  670. ms.StoreMessageInfo(mi)
  671. }
  672. return ms
  673. }
  674. return mi.MessageOf(x)
  675. }
  676. // Deprecated: Use RemoveRuleResponse.ProtoReflect.Descriptor instead.
  677. func (*RemoveRuleResponse) Descriptor() ([]byte, []int) {
  678. return file_app_router_command_command_proto_rawDescGZIP(), []int{13}
  679. }
  680. type ListRuleRequest struct {
  681. state protoimpl.MessageState `protogen:"open.v1"`
  682. unknownFields protoimpl.UnknownFields
  683. sizeCache protoimpl.SizeCache
  684. }
  685. func (x *ListRuleRequest) Reset() {
  686. *x = ListRuleRequest{}
  687. mi := &file_app_router_command_command_proto_msgTypes[14]
  688. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  689. ms.StoreMessageInfo(mi)
  690. }
  691. func (x *ListRuleRequest) String() string {
  692. return protoimpl.X.MessageStringOf(x)
  693. }
  694. func (*ListRuleRequest) ProtoMessage() {}
  695. func (x *ListRuleRequest) ProtoReflect() protoreflect.Message {
  696. mi := &file_app_router_command_command_proto_msgTypes[14]
  697. if x != nil {
  698. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  699. if ms.LoadMessageInfo() == nil {
  700. ms.StoreMessageInfo(mi)
  701. }
  702. return ms
  703. }
  704. return mi.MessageOf(x)
  705. }
  706. // Deprecated: Use ListRuleRequest.ProtoReflect.Descriptor instead.
  707. func (*ListRuleRequest) Descriptor() ([]byte, []int) {
  708. return file_app_router_command_command_proto_rawDescGZIP(), []int{14}
  709. }
  710. type ListRuleItem struct {
  711. state protoimpl.MessageState `protogen:"open.v1"`
  712. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  713. RuleTag string `protobuf:"bytes,2,opt,name=ruleTag,proto3" json:"ruleTag,omitempty"`
  714. unknownFields protoimpl.UnknownFields
  715. sizeCache protoimpl.SizeCache
  716. }
  717. func (x *ListRuleItem) Reset() {
  718. *x = ListRuleItem{}
  719. mi := &file_app_router_command_command_proto_msgTypes[15]
  720. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  721. ms.StoreMessageInfo(mi)
  722. }
  723. func (x *ListRuleItem) String() string {
  724. return protoimpl.X.MessageStringOf(x)
  725. }
  726. func (*ListRuleItem) ProtoMessage() {}
  727. func (x *ListRuleItem) ProtoReflect() protoreflect.Message {
  728. mi := &file_app_router_command_command_proto_msgTypes[15]
  729. if x != nil {
  730. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  731. if ms.LoadMessageInfo() == nil {
  732. ms.StoreMessageInfo(mi)
  733. }
  734. return ms
  735. }
  736. return mi.MessageOf(x)
  737. }
  738. // Deprecated: Use ListRuleItem.ProtoReflect.Descriptor instead.
  739. func (*ListRuleItem) Descriptor() ([]byte, []int) {
  740. return file_app_router_command_command_proto_rawDescGZIP(), []int{15}
  741. }
  742. func (x *ListRuleItem) GetTag() string {
  743. if x != nil {
  744. return x.Tag
  745. }
  746. return ""
  747. }
  748. func (x *ListRuleItem) GetRuleTag() string {
  749. if x != nil {
  750. return x.RuleTag
  751. }
  752. return ""
  753. }
  754. type ListRuleResponse struct {
  755. state protoimpl.MessageState `protogen:"open.v1"`
  756. Rules []*ListRuleItem `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
  757. unknownFields protoimpl.UnknownFields
  758. sizeCache protoimpl.SizeCache
  759. }
  760. func (x *ListRuleResponse) Reset() {
  761. *x = ListRuleResponse{}
  762. mi := &file_app_router_command_command_proto_msgTypes[16]
  763. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  764. ms.StoreMessageInfo(mi)
  765. }
  766. func (x *ListRuleResponse) String() string {
  767. return protoimpl.X.MessageStringOf(x)
  768. }
  769. func (*ListRuleResponse) ProtoMessage() {}
  770. func (x *ListRuleResponse) ProtoReflect() protoreflect.Message {
  771. mi := &file_app_router_command_command_proto_msgTypes[16]
  772. if x != nil {
  773. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  774. if ms.LoadMessageInfo() == nil {
  775. ms.StoreMessageInfo(mi)
  776. }
  777. return ms
  778. }
  779. return mi.MessageOf(x)
  780. }
  781. // Deprecated: Use ListRuleResponse.ProtoReflect.Descriptor instead.
  782. func (*ListRuleResponse) Descriptor() ([]byte, []int) {
  783. return file_app_router_command_command_proto_rawDescGZIP(), []int{16}
  784. }
  785. func (x *ListRuleResponse) GetRules() []*ListRuleItem {
  786. if x != nil {
  787. return x.Rules
  788. }
  789. return nil
  790. }
  791. type Config struct {
  792. state protoimpl.MessageState `protogen:"open.v1"`
  793. unknownFields protoimpl.UnknownFields
  794. sizeCache protoimpl.SizeCache
  795. }
  796. func (x *Config) Reset() {
  797. *x = Config{}
  798. mi := &file_app_router_command_command_proto_msgTypes[17]
  799. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  800. ms.StoreMessageInfo(mi)
  801. }
  802. func (x *Config) String() string {
  803. return protoimpl.X.MessageStringOf(x)
  804. }
  805. func (*Config) ProtoMessage() {}
  806. func (x *Config) ProtoReflect() protoreflect.Message {
  807. mi := &file_app_router_command_command_proto_msgTypes[17]
  808. if x != nil {
  809. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  810. if ms.LoadMessageInfo() == nil {
  811. ms.StoreMessageInfo(mi)
  812. }
  813. return ms
  814. }
  815. return mi.MessageOf(x)
  816. }
  817. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  818. func (*Config) Descriptor() ([]byte, []int) {
  819. return file_app_router_command_command_proto_rawDescGZIP(), []int{17}
  820. }
  821. var File_app_router_command_command_proto protoreflect.FileDescriptor
  822. const file_app_router_command_command_proto_rawDesc = "" +
  823. "\n" +
  824. " app/router/command/command.proto\x12\x17xray.app.router.command\x1a\x18common/net/network.proto\x1a!common/serial/typed_message.proto\"\xf6\x04\n" +
  825. "\x0eRoutingContext\x12\x1e\n" +
  826. "\n" +
  827. "InboundTag\x18\x01 \x01(\tR\n" +
  828. "InboundTag\x122\n" +
  829. "\aNetwork\x18\x02 \x01(\x0e2\x18.xray.common.net.NetworkR\aNetwork\x12\x1c\n" +
  830. "\tSourceIPs\x18\x03 \x03(\fR\tSourceIPs\x12\x1c\n" +
  831. "\tTargetIPs\x18\x04 \x03(\fR\tTargetIPs\x12\x1e\n" +
  832. "\n" +
  833. "SourcePort\x18\x05 \x01(\rR\n" +
  834. "SourcePort\x12\x1e\n" +
  835. "\n" +
  836. "TargetPort\x18\x06 \x01(\rR\n" +
  837. "TargetPort\x12\"\n" +
  838. "\fTargetDomain\x18\a \x01(\tR\fTargetDomain\x12\x1a\n" +
  839. "\bProtocol\x18\b \x01(\tR\bProtocol\x12\x12\n" +
  840. "\x04User\x18\t \x01(\tR\x04User\x12W\n" +
  841. "\n" +
  842. "Attributes\x18\n" +
  843. " \x03(\v27.xray.app.router.command.RoutingContext.AttributesEntryR\n" +
  844. "Attributes\x12,\n" +
  845. "\x11OutboundGroupTags\x18\v \x03(\tR\x11OutboundGroupTags\x12 \n" +
  846. "\vOutboundTag\x18\f \x01(\tR\vOutboundTag\x12\x1a\n" +
  847. "\bLocalIPs\x18\r \x03(\fR\bLocalIPs\x12\x1c\n" +
  848. "\tLocalPort\x18\x0e \x01(\rR\tLocalPort\x12\x1e\n" +
  849. "\n" +
  850. "VlessRoute\x18\x0f \x01(\rR\n" +
  851. "VlessRoute\x1a=\n" +
  852. "\x0fAttributesEntry\x12\x10\n" +
  853. "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
  854. "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"F\n" +
  855. "\x1cSubscribeRoutingStatsRequest\x12&\n" +
  856. "\x0eFieldSelectors\x18\x01 \x03(\tR\x0eFieldSelectors\"\xb1\x01\n" +
  857. "\x10TestRouteRequest\x12O\n" +
  858. "\x0eRoutingContext\x18\x01 \x01(\v2'.xray.app.router.command.RoutingContextR\x0eRoutingContext\x12&\n" +
  859. "\x0eFieldSelectors\x18\x02 \x03(\tR\x0eFieldSelectors\x12$\n" +
  860. "\rPublishResult\x18\x03 \x01(\bR\rPublishResult\"'\n" +
  861. "\x13PrincipleTargetInfo\x12\x10\n" +
  862. "\x03tag\x18\x01 \x03(\tR\x03tag\"&\n" +
  863. "\fOverrideInfo\x12\x16\n" +
  864. "\x06target\x18\x02 \x01(\tR\x06target\"\xa9\x01\n" +
  865. "\vBalancerMsg\x12A\n" +
  866. "\boverride\x18\x05 \x01(\v2%.xray.app.router.command.OverrideInfoR\boverride\x12W\n" +
  867. "\x10principle_target\x18\x06 \x01(\v2,.xray.app.router.command.PrincipleTargetInfoR\x0fprincipleTarget\"*\n" +
  868. "\x16GetBalancerInfoRequest\x12\x10\n" +
  869. "\x03tag\x18\x01 \x01(\tR\x03tag\"[\n" +
  870. "\x17GetBalancerInfoResponse\x12@\n" +
  871. "\bbalancer\x18\x01 \x01(\v2$.xray.app.router.command.BalancerMsgR\bbalancer\"Y\n" +
  872. "\x1dOverrideBalancerTargetRequest\x12 \n" +
  873. "\vbalancerTag\x18\x01 \x01(\tR\vbalancerTag\x12\x16\n" +
  874. "\x06target\x18\x02 \x01(\tR\x06target\" \n" +
  875. "\x1eOverrideBalancerTargetResponse\"n\n" +
  876. "\x0eAddRuleRequest\x128\n" +
  877. "\x06config\x18\x01 \x01(\v2 .xray.common.serial.TypedMessageR\x06config\x12\"\n" +
  878. "\fshouldAppend\x18\x02 \x01(\bR\fshouldAppend\"\x11\n" +
  879. "\x0fAddRuleResponse\"-\n" +
  880. "\x11RemoveRuleRequest\x12\x18\n" +
  881. "\aruleTag\x18\x01 \x01(\tR\aruleTag\"\x14\n" +
  882. "\x12RemoveRuleResponse\"\x11\n" +
  883. "\x0fListRuleRequest\":\n" +
  884. "\fListRuleItem\x12\x10\n" +
  885. "\x03tag\x18\x01 \x01(\tR\x03tag\x12\x18\n" +
  886. "\aruleTag\x18\x02 \x01(\tR\aruleTag\"O\n" +
  887. "\x10ListRuleResponse\x12;\n" +
  888. "\x05rules\x18\x01 \x03(\v2%.xray.app.router.command.ListRuleItemR\x05rules\"\b\n" +
  889. "\x06Config2\xa2\x06\n" +
  890. "\x0eRoutingService\x12{\n" +
  891. "\x15SubscribeRoutingStats\x125.xray.app.router.command.SubscribeRoutingStatsRequest\x1a'.xray.app.router.command.RoutingContext\"\x000\x01\x12a\n" +
  892. "\tTestRoute\x12).xray.app.router.command.TestRouteRequest\x1a'.xray.app.router.command.RoutingContext\"\x00\x12v\n" +
  893. "\x0fGetBalancerInfo\x12/.xray.app.router.command.GetBalancerInfoRequest\x1a0.xray.app.router.command.GetBalancerInfoResponse\"\x00\x12\x8b\x01\n" +
  894. "\x16OverrideBalancerTarget\x126.xray.app.router.command.OverrideBalancerTargetRequest\x1a7.xray.app.router.command.OverrideBalancerTargetResponse\"\x00\x12^\n" +
  895. "\aAddRule\x12'.xray.app.router.command.AddRuleRequest\x1a(.xray.app.router.command.AddRuleResponse\"\x00\x12g\n" +
  896. "\n" +
  897. "RemoveRule\x12*.xray.app.router.command.RemoveRuleRequest\x1a+.xray.app.router.command.RemoveRuleResponse\"\x00\x12a\n" +
  898. "\bListRule\x12(.xray.app.router.command.ListRuleRequest\x1a).xray.app.router.command.ListRuleResponse\"\x00Bg\n" +
  899. "\x1bcom.xray.app.router.commandP\x01Z,github.com/xtls/xray-core/app/router/command\xaa\x02\x17Xray.App.Router.Commandb\x06proto3"
  900. var (
  901. file_app_router_command_command_proto_rawDescOnce sync.Once
  902. file_app_router_command_command_proto_rawDescData []byte
  903. )
  904. func file_app_router_command_command_proto_rawDescGZIP() []byte {
  905. file_app_router_command_command_proto_rawDescOnce.Do(func() {
  906. file_app_router_command_command_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_app_router_command_command_proto_rawDesc), len(file_app_router_command_command_proto_rawDesc)))
  907. })
  908. return file_app_router_command_command_proto_rawDescData
  909. }
  910. var file_app_router_command_command_proto_msgTypes = make([]protoimpl.MessageInfo, 19)
  911. var file_app_router_command_command_proto_goTypes = []any{
  912. (*RoutingContext)(nil), // 0: xray.app.router.command.RoutingContext
  913. (*SubscribeRoutingStatsRequest)(nil), // 1: xray.app.router.command.SubscribeRoutingStatsRequest
  914. (*TestRouteRequest)(nil), // 2: xray.app.router.command.TestRouteRequest
  915. (*PrincipleTargetInfo)(nil), // 3: xray.app.router.command.PrincipleTargetInfo
  916. (*OverrideInfo)(nil), // 4: xray.app.router.command.OverrideInfo
  917. (*BalancerMsg)(nil), // 5: xray.app.router.command.BalancerMsg
  918. (*GetBalancerInfoRequest)(nil), // 6: xray.app.router.command.GetBalancerInfoRequest
  919. (*GetBalancerInfoResponse)(nil), // 7: xray.app.router.command.GetBalancerInfoResponse
  920. (*OverrideBalancerTargetRequest)(nil), // 8: xray.app.router.command.OverrideBalancerTargetRequest
  921. (*OverrideBalancerTargetResponse)(nil), // 9: xray.app.router.command.OverrideBalancerTargetResponse
  922. (*AddRuleRequest)(nil), // 10: xray.app.router.command.AddRuleRequest
  923. (*AddRuleResponse)(nil), // 11: xray.app.router.command.AddRuleResponse
  924. (*RemoveRuleRequest)(nil), // 12: xray.app.router.command.RemoveRuleRequest
  925. (*RemoveRuleResponse)(nil), // 13: xray.app.router.command.RemoveRuleResponse
  926. (*ListRuleRequest)(nil), // 14: xray.app.router.command.ListRuleRequest
  927. (*ListRuleItem)(nil), // 15: xray.app.router.command.ListRuleItem
  928. (*ListRuleResponse)(nil), // 16: xray.app.router.command.ListRuleResponse
  929. (*Config)(nil), // 17: xray.app.router.command.Config
  930. nil, // 18: xray.app.router.command.RoutingContext.AttributesEntry
  931. (net.Network)(0), // 19: xray.common.net.Network
  932. (*serial.TypedMessage)(nil), // 20: xray.common.serial.TypedMessage
  933. }
  934. var file_app_router_command_command_proto_depIdxs = []int32{
  935. 19, // 0: xray.app.router.command.RoutingContext.Network:type_name -> xray.common.net.Network
  936. 18, // 1: xray.app.router.command.RoutingContext.Attributes:type_name -> xray.app.router.command.RoutingContext.AttributesEntry
  937. 0, // 2: xray.app.router.command.TestRouteRequest.RoutingContext:type_name -> xray.app.router.command.RoutingContext
  938. 4, // 3: xray.app.router.command.BalancerMsg.override:type_name -> xray.app.router.command.OverrideInfo
  939. 3, // 4: xray.app.router.command.BalancerMsg.principle_target:type_name -> xray.app.router.command.PrincipleTargetInfo
  940. 5, // 5: xray.app.router.command.GetBalancerInfoResponse.balancer:type_name -> xray.app.router.command.BalancerMsg
  941. 20, // 6: xray.app.router.command.AddRuleRequest.config:type_name -> xray.common.serial.TypedMessage
  942. 15, // 7: xray.app.router.command.ListRuleResponse.rules:type_name -> xray.app.router.command.ListRuleItem
  943. 1, // 8: xray.app.router.command.RoutingService.SubscribeRoutingStats:input_type -> xray.app.router.command.SubscribeRoutingStatsRequest
  944. 2, // 9: xray.app.router.command.RoutingService.TestRoute:input_type -> xray.app.router.command.TestRouteRequest
  945. 6, // 10: xray.app.router.command.RoutingService.GetBalancerInfo:input_type -> xray.app.router.command.GetBalancerInfoRequest
  946. 8, // 11: xray.app.router.command.RoutingService.OverrideBalancerTarget:input_type -> xray.app.router.command.OverrideBalancerTargetRequest
  947. 10, // 12: xray.app.router.command.RoutingService.AddRule:input_type -> xray.app.router.command.AddRuleRequest
  948. 12, // 13: xray.app.router.command.RoutingService.RemoveRule:input_type -> xray.app.router.command.RemoveRuleRequest
  949. 14, // 14: xray.app.router.command.RoutingService.ListRule:input_type -> xray.app.router.command.ListRuleRequest
  950. 0, // 15: xray.app.router.command.RoutingService.SubscribeRoutingStats:output_type -> xray.app.router.command.RoutingContext
  951. 0, // 16: xray.app.router.command.RoutingService.TestRoute:output_type -> xray.app.router.command.RoutingContext
  952. 7, // 17: xray.app.router.command.RoutingService.GetBalancerInfo:output_type -> xray.app.router.command.GetBalancerInfoResponse
  953. 9, // 18: xray.app.router.command.RoutingService.OverrideBalancerTarget:output_type -> xray.app.router.command.OverrideBalancerTargetResponse
  954. 11, // 19: xray.app.router.command.RoutingService.AddRule:output_type -> xray.app.router.command.AddRuleResponse
  955. 13, // 20: xray.app.router.command.RoutingService.RemoveRule:output_type -> xray.app.router.command.RemoveRuleResponse
  956. 16, // 21: xray.app.router.command.RoutingService.ListRule:output_type -> xray.app.router.command.ListRuleResponse
  957. 15, // [15:22] is the sub-list for method output_type
  958. 8, // [8:15] is the sub-list for method input_type
  959. 8, // [8:8] is the sub-list for extension type_name
  960. 8, // [8:8] is the sub-list for extension extendee
  961. 0, // [0:8] is the sub-list for field type_name
  962. }
  963. func init() { file_app_router_command_command_proto_init() }
  964. func file_app_router_command_command_proto_init() {
  965. if File_app_router_command_command_proto != nil {
  966. return
  967. }
  968. type x struct{}
  969. out := protoimpl.TypeBuilder{
  970. File: protoimpl.DescBuilder{
  971. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  972. RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_router_command_command_proto_rawDesc), len(file_app_router_command_command_proto_rawDesc)),
  973. NumEnums: 0,
  974. NumMessages: 19,
  975. NumExtensions: 0,
  976. NumServices: 1,
  977. },
  978. GoTypes: file_app_router_command_command_proto_goTypes,
  979. DependencyIndexes: file_app_router_command_command_proto_depIdxs,
  980. MessageInfos: file_app_router_command_command_proto_msgTypes,
  981. }.Build()
  982. File_app_router_command_command_proto = out.File
  983. file_app_router_command_command_proto_goTypes = nil
  984. file_app_router_command_command_proto_depIdxs = nil
  985. }