command.pb.go 43 KB

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