command.pb.go 22 KB

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