command.pb.go 22 KB

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