command.pb.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.14.0
  5. // source: app/router/command/command.proto
  6. package command
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. net "github.com/xtls/xray-core/v1/common/net"
  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. // This is a compile-time assertion that a sufficiently up-to-date version
  22. // of the legacy proto package is being used.
  23. const _ = proto.ProtoPackageIsVersion4
  24. // RoutingContext is the context with information relative to routing process.
  25. // It conforms to the structure of xray.features.routing.Context and
  26. // xray.features.routing.Route.
  27. type RoutingContext struct {
  28. state protoimpl.MessageState
  29. sizeCache protoimpl.SizeCache
  30. unknownFields protoimpl.UnknownFields
  31. InboundTag string `protobuf:"bytes,1,opt,name=InboundTag,proto3" json:"InboundTag,omitempty"`
  32. Network net.Network `protobuf:"varint,2,opt,name=Network,proto3,enum=xray.common.net.Network" json:"Network,omitempty"`
  33. SourceIPs [][]byte `protobuf:"bytes,3,rep,name=SourceIPs,proto3" json:"SourceIPs,omitempty"`
  34. TargetIPs [][]byte `protobuf:"bytes,4,rep,name=TargetIPs,proto3" json:"TargetIPs,omitempty"`
  35. SourcePort uint32 `protobuf:"varint,5,opt,name=SourcePort,proto3" json:"SourcePort,omitempty"`
  36. TargetPort uint32 `protobuf:"varint,6,opt,name=TargetPort,proto3" json:"TargetPort,omitempty"`
  37. TargetDomain string `protobuf:"bytes,7,opt,name=TargetDomain,proto3" json:"TargetDomain,omitempty"`
  38. Protocol string `protobuf:"bytes,8,opt,name=Protocol,proto3" json:"Protocol,omitempty"`
  39. User string `protobuf:"bytes,9,opt,name=User,proto3" json:"User,omitempty"`
  40. 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"`
  41. OutboundGroupTags []string `protobuf:"bytes,11,rep,name=OutboundGroupTags,proto3" json:"OutboundGroupTags,omitempty"`
  42. OutboundTag string `protobuf:"bytes,12,opt,name=OutboundTag,proto3" json:"OutboundTag,omitempty"`
  43. }
  44. func (x *RoutingContext) Reset() {
  45. *x = RoutingContext{}
  46. if protoimpl.UnsafeEnabled {
  47. mi := &file_app_router_command_command_proto_msgTypes[0]
  48. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  49. ms.StoreMessageInfo(mi)
  50. }
  51. }
  52. func (x *RoutingContext) String() string {
  53. return protoimpl.X.MessageStringOf(x)
  54. }
  55. func (*RoutingContext) ProtoMessage() {}
  56. func (x *RoutingContext) ProtoReflect() protoreflect.Message {
  57. mi := &file_app_router_command_command_proto_msgTypes[0]
  58. if protoimpl.UnsafeEnabled && x != nil {
  59. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  60. if ms.LoadMessageInfo() == nil {
  61. ms.StoreMessageInfo(mi)
  62. }
  63. return ms
  64. }
  65. return mi.MessageOf(x)
  66. }
  67. // Deprecated: Use RoutingContext.ProtoReflect.Descriptor instead.
  68. func (*RoutingContext) Descriptor() ([]byte, []int) {
  69. return file_app_router_command_command_proto_rawDescGZIP(), []int{0}
  70. }
  71. func (x *RoutingContext) GetInboundTag() string {
  72. if x != nil {
  73. return x.InboundTag
  74. }
  75. return ""
  76. }
  77. func (x *RoutingContext) GetNetwork() net.Network {
  78. if x != nil {
  79. return x.Network
  80. }
  81. return net.Network_Unknown
  82. }
  83. func (x *RoutingContext) GetSourceIPs() [][]byte {
  84. if x != nil {
  85. return x.SourceIPs
  86. }
  87. return nil
  88. }
  89. func (x *RoutingContext) GetTargetIPs() [][]byte {
  90. if x != nil {
  91. return x.TargetIPs
  92. }
  93. return nil
  94. }
  95. func (x *RoutingContext) GetSourcePort() uint32 {
  96. if x != nil {
  97. return x.SourcePort
  98. }
  99. return 0
  100. }
  101. func (x *RoutingContext) GetTargetPort() uint32 {
  102. if x != nil {
  103. return x.TargetPort
  104. }
  105. return 0
  106. }
  107. func (x *RoutingContext) GetTargetDomain() string {
  108. if x != nil {
  109. return x.TargetDomain
  110. }
  111. return ""
  112. }
  113. func (x *RoutingContext) GetProtocol() string {
  114. if x != nil {
  115. return x.Protocol
  116. }
  117. return ""
  118. }
  119. func (x *RoutingContext) GetUser() string {
  120. if x != nil {
  121. return x.User
  122. }
  123. return ""
  124. }
  125. func (x *RoutingContext) GetAttributes() map[string]string {
  126. if x != nil {
  127. return x.Attributes
  128. }
  129. return nil
  130. }
  131. func (x *RoutingContext) GetOutboundGroupTags() []string {
  132. if x != nil {
  133. return x.OutboundGroupTags
  134. }
  135. return nil
  136. }
  137. func (x *RoutingContext) GetOutboundTag() string {
  138. if x != nil {
  139. return x.OutboundTag
  140. }
  141. return ""
  142. }
  143. // SubscribeRoutingStatsRequest subscribes to routing statistics channel if
  144. // opened by xray-core.
  145. // * FieldSelectors selects a subset of fields in routing statistics to return.
  146. // Valid selectors:
  147. // - inbound: Selects connection's inbound tag.
  148. // - network: Selects connection's network.
  149. // - ip: Equivalent as "ip_source" and "ip_target", selects both source and
  150. // target IP.
  151. // - port: Equivalent as "port_source" and "port_target", selects both source
  152. // and target port.
  153. // - domain: Selects target domain.
  154. // - protocol: Select connection's protocol.
  155. // - user: Select connection's inbound user email.
  156. // - attributes: Select connection's additional attributes.
  157. // - outbound: Equivalent as "outbound" and "outbound_group", select both
  158. // outbound tag and outbound group tags.
  159. // * If FieldSelectors is left empty, all fields will be returned.
  160. type SubscribeRoutingStatsRequest struct {
  161. state protoimpl.MessageState
  162. sizeCache protoimpl.SizeCache
  163. unknownFields protoimpl.UnknownFields
  164. FieldSelectors []string `protobuf:"bytes,1,rep,name=FieldSelectors,proto3" json:"FieldSelectors,omitempty"`
  165. }
  166. func (x *SubscribeRoutingStatsRequest) Reset() {
  167. *x = SubscribeRoutingStatsRequest{}
  168. if protoimpl.UnsafeEnabled {
  169. mi := &file_app_router_command_command_proto_msgTypes[1]
  170. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  171. ms.StoreMessageInfo(mi)
  172. }
  173. }
  174. func (x *SubscribeRoutingStatsRequest) String() string {
  175. return protoimpl.X.MessageStringOf(x)
  176. }
  177. func (*SubscribeRoutingStatsRequest) ProtoMessage() {}
  178. func (x *SubscribeRoutingStatsRequest) ProtoReflect() protoreflect.Message {
  179. mi := &file_app_router_command_command_proto_msgTypes[1]
  180. if protoimpl.UnsafeEnabled && x != nil {
  181. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  182. if ms.LoadMessageInfo() == nil {
  183. ms.StoreMessageInfo(mi)
  184. }
  185. return ms
  186. }
  187. return mi.MessageOf(x)
  188. }
  189. // Deprecated: Use SubscribeRoutingStatsRequest.ProtoReflect.Descriptor instead.
  190. func (*SubscribeRoutingStatsRequest) Descriptor() ([]byte, []int) {
  191. return file_app_router_command_command_proto_rawDescGZIP(), []int{1}
  192. }
  193. func (x *SubscribeRoutingStatsRequest) GetFieldSelectors() []string {
  194. if x != nil {
  195. return x.FieldSelectors
  196. }
  197. return nil
  198. }
  199. // TestRouteRequest manually tests a routing result according to the routing
  200. // context message.
  201. // * RoutingContext is the routing message without outbound information.
  202. // * FieldSelectors selects the fields to return in the routing result. All
  203. // fields are returned if left empty.
  204. // * PublishResult broadcasts the routing result to routing statistics channel
  205. // if set true.
  206. type TestRouteRequest struct {
  207. state protoimpl.MessageState
  208. sizeCache protoimpl.SizeCache
  209. unknownFields protoimpl.UnknownFields
  210. RoutingContext *RoutingContext `protobuf:"bytes,1,opt,name=RoutingContext,proto3" json:"RoutingContext,omitempty"`
  211. FieldSelectors []string `protobuf:"bytes,2,rep,name=FieldSelectors,proto3" json:"FieldSelectors,omitempty"`
  212. PublishResult bool `protobuf:"varint,3,opt,name=PublishResult,proto3" json:"PublishResult,omitempty"`
  213. }
  214. func (x *TestRouteRequest) Reset() {
  215. *x = TestRouteRequest{}
  216. if protoimpl.UnsafeEnabled {
  217. mi := &file_app_router_command_command_proto_msgTypes[2]
  218. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  219. ms.StoreMessageInfo(mi)
  220. }
  221. }
  222. func (x *TestRouteRequest) String() string {
  223. return protoimpl.X.MessageStringOf(x)
  224. }
  225. func (*TestRouteRequest) ProtoMessage() {}
  226. func (x *TestRouteRequest) ProtoReflect() protoreflect.Message {
  227. mi := &file_app_router_command_command_proto_msgTypes[2]
  228. if protoimpl.UnsafeEnabled && x != nil {
  229. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  230. if ms.LoadMessageInfo() == nil {
  231. ms.StoreMessageInfo(mi)
  232. }
  233. return ms
  234. }
  235. return mi.MessageOf(x)
  236. }
  237. // Deprecated: Use TestRouteRequest.ProtoReflect.Descriptor instead.
  238. func (*TestRouteRequest) Descriptor() ([]byte, []int) {
  239. return file_app_router_command_command_proto_rawDescGZIP(), []int{2}
  240. }
  241. func (x *TestRouteRequest) GetRoutingContext() *RoutingContext {
  242. if x != nil {
  243. return x.RoutingContext
  244. }
  245. return nil
  246. }
  247. func (x *TestRouteRequest) GetFieldSelectors() []string {
  248. if x != nil {
  249. return x.FieldSelectors
  250. }
  251. return nil
  252. }
  253. func (x *TestRouteRequest) GetPublishResult() bool {
  254. if x != nil {
  255. return x.PublishResult
  256. }
  257. return false
  258. }
  259. type Config struct {
  260. state protoimpl.MessageState
  261. sizeCache protoimpl.SizeCache
  262. unknownFields protoimpl.UnknownFields
  263. }
  264. func (x *Config) Reset() {
  265. *x = Config{}
  266. if protoimpl.UnsafeEnabled {
  267. mi := &file_app_router_command_command_proto_msgTypes[3]
  268. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  269. ms.StoreMessageInfo(mi)
  270. }
  271. }
  272. func (x *Config) String() string {
  273. return protoimpl.X.MessageStringOf(x)
  274. }
  275. func (*Config) ProtoMessage() {}
  276. func (x *Config) ProtoReflect() protoreflect.Message {
  277. mi := &file_app_router_command_command_proto_msgTypes[3]
  278. if protoimpl.UnsafeEnabled && x != nil {
  279. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  280. if ms.LoadMessageInfo() == nil {
  281. ms.StoreMessageInfo(mi)
  282. }
  283. return ms
  284. }
  285. return mi.MessageOf(x)
  286. }
  287. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  288. func (*Config) Descriptor() ([]byte, []int) {
  289. return file_app_router_command_command_proto_rawDescGZIP(), []int{3}
  290. }
  291. var File_app_router_command_command_proto protoreflect.FileDescriptor
  292. var file_app_router_command_command_proto_rawDesc = []byte{
  293. 0x0a, 0x20, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6d,
  294. 0x6d, 0x61, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f,
  295. 0x74, 0x6f, 0x12, 0x17, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75,
  296. 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x1a, 0x18, 0x63, 0x6f, 0x6d,
  297. 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e,
  298. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x04, 0x0a, 0x0e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e,
  299. 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x49, 0x6e, 0x62, 0x6f,
  300. 0x75, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x49, 0x6e,
  301. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x12, 0x32, 0x0a, 0x07, 0x4e, 0x65, 0x74, 0x77,
  302. 0x6f, 0x72, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x78, 0x72, 0x61, 0x79,
  303. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77,
  304. 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x1c, 0x0a, 0x09,
  305. 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x50, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52,
  306. 0x09, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x50, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x54, 0x61,
  307. 0x72, 0x67, 0x65, 0x74, 0x49, 0x50, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x09, 0x54,
  308. 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x50, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x53, 0x6f, 0x75, 0x72,
  309. 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x53, 0x6f,
  310. 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x54, 0x61, 0x72, 0x67,
  311. 0x65, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x54, 0x61,
  312. 0x72, 0x67, 0x65, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x54, 0x61, 0x72, 0x67,
  313. 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
  314. 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x08,
  315. 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
  316. 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72,
  317. 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x57, 0x0a, 0x0a,
  318. 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b,
  319. 0x32, 0x37, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74,
  320. 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69,
  321. 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62,
  322. 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x41, 0x74, 0x74, 0x72, 0x69,
  323. 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x11, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e,
  324. 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x61, 0x67, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09,
  325. 0x52, 0x11, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54,
  326. 0x61, 0x67, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x54,
  327. 0x61, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75,
  328. 0x6e, 0x64, 0x54, 0x61, 0x67, 0x1a, 0x3d, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75,
  329. 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
  330. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
  331. 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  332. 0x3a, 0x02, 0x38, 0x01, 0x22, 0x46, 0x0a, 0x1c, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62,
  333. 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71,
  334. 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, 0x65, 0x6c,
  335. 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x46, 0x69,
  336. 0x65, 0x6c, 0x64, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x22, 0xb1, 0x01, 0x0a,
  337. 0x10, 0x54, 0x65, 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  338. 0x74, 0x12, 0x4f, 0x0a, 0x0e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74,
  339. 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x78, 0x72, 0x61, 0x79,
  340. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  341. 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65,
  342. 0x78, 0x74, 0x52, 0x0e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65,
  343. 0x78, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, 0x65, 0x6c, 0x65, 0x63,
  344. 0x74, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x46, 0x69, 0x65, 0x6c,
  345. 0x64, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x50, 0x75,
  346. 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
  347. 0x08, 0x52, 0x0d, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74,
  348. 0x22, 0x08, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32, 0xf0, 0x01, 0x0a, 0x0e, 0x52,
  349. 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7b, 0x0a,
  350. 0x15, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e,
  351. 0x67, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x35, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70,
  352. 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64,
  353. 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e,
  354. 0x67, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e,
  355. 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e,
  356. 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x43,
  357. 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x22, 0x00, 0x30, 0x01, 0x12, 0x61, 0x0a, 0x09, 0x54, 0x65,
  358. 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x29, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61,
  359. 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
  360. 0x64, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
  361. 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f,
  362. 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x6f, 0x75,
  363. 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x22, 0x00, 0x42, 0x6a, 0x0a,
  364. 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f,
  365. 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x2f,
  366. 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f,
  367. 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x70, 0x70,
  368. 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0xaa,
  369. 0x02, 0x17, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65,
  370. 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  371. 0x33,
  372. }
  373. var (
  374. file_app_router_command_command_proto_rawDescOnce sync.Once
  375. file_app_router_command_command_proto_rawDescData = file_app_router_command_command_proto_rawDesc
  376. )
  377. func file_app_router_command_command_proto_rawDescGZIP() []byte {
  378. file_app_router_command_command_proto_rawDescOnce.Do(func() {
  379. file_app_router_command_command_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_router_command_command_proto_rawDescData)
  380. })
  381. return file_app_router_command_command_proto_rawDescData
  382. }
  383. var file_app_router_command_command_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  384. var file_app_router_command_command_proto_goTypes = []interface{}{
  385. (*RoutingContext)(nil), // 0: xray.app.router.command.RoutingContext
  386. (*SubscribeRoutingStatsRequest)(nil), // 1: xray.app.router.command.SubscribeRoutingStatsRequest
  387. (*TestRouteRequest)(nil), // 2: xray.app.router.command.TestRouteRequest
  388. (*Config)(nil), // 3: xray.app.router.command.Config
  389. nil, // 4: xray.app.router.command.RoutingContext.AttributesEntry
  390. (net.Network)(0), // 5: xray.common.net.Network
  391. }
  392. var file_app_router_command_command_proto_depIdxs = []int32{
  393. 5, // 0: xray.app.router.command.RoutingContext.Network:type_name -> xray.common.net.Network
  394. 4, // 1: xray.app.router.command.RoutingContext.Attributes:type_name -> xray.app.router.command.RoutingContext.AttributesEntry
  395. 0, // 2: xray.app.router.command.TestRouteRequest.RoutingContext:type_name -> xray.app.router.command.RoutingContext
  396. 1, // 3: xray.app.router.command.RoutingService.SubscribeRoutingStats:input_type -> xray.app.router.command.SubscribeRoutingStatsRequest
  397. 2, // 4: xray.app.router.command.RoutingService.TestRoute:input_type -> xray.app.router.command.TestRouteRequest
  398. 0, // 5: xray.app.router.command.RoutingService.SubscribeRoutingStats:output_type -> xray.app.router.command.RoutingContext
  399. 0, // 6: xray.app.router.command.RoutingService.TestRoute:output_type -> xray.app.router.command.RoutingContext
  400. 5, // [5:7] is the sub-list for method output_type
  401. 3, // [3:5] is the sub-list for method input_type
  402. 3, // [3:3] is the sub-list for extension type_name
  403. 3, // [3:3] is the sub-list for extension extendee
  404. 0, // [0:3] is the sub-list for field type_name
  405. }
  406. func init() { file_app_router_command_command_proto_init() }
  407. func file_app_router_command_command_proto_init() {
  408. if File_app_router_command_command_proto != nil {
  409. return
  410. }
  411. if !protoimpl.UnsafeEnabled {
  412. file_app_router_command_command_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  413. switch v := v.(*RoutingContext); i {
  414. case 0:
  415. return &v.state
  416. case 1:
  417. return &v.sizeCache
  418. case 2:
  419. return &v.unknownFields
  420. default:
  421. return nil
  422. }
  423. }
  424. file_app_router_command_command_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  425. switch v := v.(*SubscribeRoutingStatsRequest); i {
  426. case 0:
  427. return &v.state
  428. case 1:
  429. return &v.sizeCache
  430. case 2:
  431. return &v.unknownFields
  432. default:
  433. return nil
  434. }
  435. }
  436. file_app_router_command_command_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  437. switch v := v.(*TestRouteRequest); i {
  438. case 0:
  439. return &v.state
  440. case 1:
  441. return &v.sizeCache
  442. case 2:
  443. return &v.unknownFields
  444. default:
  445. return nil
  446. }
  447. }
  448. file_app_router_command_command_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  449. switch v := v.(*Config); i {
  450. case 0:
  451. return &v.state
  452. case 1:
  453. return &v.sizeCache
  454. case 2:
  455. return &v.unknownFields
  456. default:
  457. return nil
  458. }
  459. }
  460. }
  461. type x struct{}
  462. out := protoimpl.TypeBuilder{
  463. File: protoimpl.DescBuilder{
  464. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  465. RawDescriptor: file_app_router_command_command_proto_rawDesc,
  466. NumEnums: 0,
  467. NumMessages: 5,
  468. NumExtensions: 0,
  469. NumServices: 1,
  470. },
  471. GoTypes: file_app_router_command_command_proto_goTypes,
  472. DependencyIndexes: file_app_router_command_command_proto_depIdxs,
  473. MessageInfos: file_app_router_command_command_proto_msgTypes,
  474. }.Build()
  475. File_app_router_command_command_proto = out.File
  476. file_app_router_command_command_proto_rawDesc = nil
  477. file_app_router_command_command_proto_goTypes = nil
  478. file_app_router_command_command_proto_depIdxs = nil
  479. }