config.pb.go 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372
  1. package router
  2. import (
  3. routercommon "github.com/v2fly/v2ray-core/v5/app/router/routercommon"
  4. net "github.com/v2fly/v2ray-core/v5/common/net"
  5. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  6. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  7. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  8. anypb "google.golang.org/protobuf/types/known/anypb"
  9. reflect "reflect"
  10. sync "sync"
  11. )
  12. const (
  13. // Verify that this generated code is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  15. // Verify that runtime/protoimpl is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  17. )
  18. type DomainStrategy int32
  19. const (
  20. // Use domain as is.
  21. DomainStrategy_AsIs DomainStrategy = 0
  22. // Always resolve IP for domains.
  23. DomainStrategy_UseIp DomainStrategy = 1
  24. // Resolve to IP if the domain doesn't match any rules.
  25. DomainStrategy_IpIfNonMatch DomainStrategy = 2
  26. // Resolve to IP if any rule requires IP matching.
  27. DomainStrategy_IpOnDemand DomainStrategy = 3
  28. )
  29. // Enum value maps for DomainStrategy.
  30. var (
  31. DomainStrategy_name = map[int32]string{
  32. 0: "AsIs",
  33. 1: "UseIp",
  34. 2: "IpIfNonMatch",
  35. 3: "IpOnDemand",
  36. }
  37. DomainStrategy_value = map[string]int32{
  38. "AsIs": 0,
  39. "UseIp": 1,
  40. "IpIfNonMatch": 2,
  41. "IpOnDemand": 3,
  42. }
  43. )
  44. func (x DomainStrategy) Enum() *DomainStrategy {
  45. p := new(DomainStrategy)
  46. *p = x
  47. return p
  48. }
  49. func (x DomainStrategy) String() string {
  50. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  51. }
  52. func (DomainStrategy) Descriptor() protoreflect.EnumDescriptor {
  53. return file_app_router_config_proto_enumTypes[0].Descriptor()
  54. }
  55. func (DomainStrategy) Type() protoreflect.EnumType {
  56. return &file_app_router_config_proto_enumTypes[0]
  57. }
  58. func (x DomainStrategy) Number() protoreflect.EnumNumber {
  59. return protoreflect.EnumNumber(x)
  60. }
  61. // Deprecated: Use DomainStrategy.Descriptor instead.
  62. func (DomainStrategy) EnumDescriptor() ([]byte, []int) {
  63. return file_app_router_config_proto_rawDescGZIP(), []int{0}
  64. }
  65. type RoutingRule struct {
  66. state protoimpl.MessageState
  67. sizeCache protoimpl.SizeCache
  68. unknownFields protoimpl.UnknownFields
  69. // Types that are assignable to TargetTag:
  70. //
  71. // *RoutingRule_Tag
  72. // *RoutingRule_BalancingTag
  73. TargetTag isRoutingRule_TargetTag `protobuf_oneof:"target_tag"`
  74. // List of domains for target domain matching.
  75. Domain []*routercommon.Domain `protobuf:"bytes,2,rep,name=domain,proto3" json:"domain,omitempty"`
  76. // List of CIDRs for target IP address matching.
  77. // Deprecated. Use geoip below.
  78. //
  79. // Deprecated: Do not use.
  80. Cidr []*routercommon.CIDR `protobuf:"bytes,3,rep,name=cidr,proto3" json:"cidr,omitempty"`
  81. // List of GeoIPs for target IP address matching. If this entry exists, the
  82. // cidr above will have no effect. GeoIP fields with the same country code are
  83. // supposed to contain exactly same content. They will be merged during
  84. // runtime. For customized GeoIPs, please leave country code empty.
  85. Geoip []*routercommon.GeoIP `protobuf:"bytes,10,rep,name=geoip,proto3" json:"geoip,omitempty"`
  86. // A range of port [from, to]. If the destination port is in this range, this
  87. // rule takes effect. Deprecated. Use port_list.
  88. //
  89. // Deprecated: Do not use.
  90. PortRange *net.PortRange `protobuf:"bytes,4,opt,name=port_range,json=portRange,proto3" json:"port_range,omitempty"`
  91. // List of ports.
  92. PortList *net.PortList `protobuf:"bytes,14,opt,name=port_list,json=portList,proto3" json:"port_list,omitempty"`
  93. // List of networks. Deprecated. Use networks.
  94. //
  95. // Deprecated: Do not use.
  96. NetworkList *net.NetworkList `protobuf:"bytes,5,opt,name=network_list,json=networkList,proto3" json:"network_list,omitempty"`
  97. // List of networks for matching.
  98. Networks []net.Network `protobuf:"varint,13,rep,packed,name=networks,proto3,enum=v2ray.core.common.net.Network" json:"networks,omitempty"`
  99. // List of CIDRs for source IP address matching.
  100. //
  101. // Deprecated: Do not use.
  102. SourceCidr []*routercommon.CIDR `protobuf:"bytes,6,rep,name=source_cidr,json=sourceCidr,proto3" json:"source_cidr,omitempty"`
  103. // List of GeoIPs for source IP address matching. If this entry exists, the
  104. // source_cidr above will have no effect.
  105. SourceGeoip []*routercommon.GeoIP `protobuf:"bytes,11,rep,name=source_geoip,json=sourceGeoip,proto3" json:"source_geoip,omitempty"`
  106. // List of ports for source port matching.
  107. SourcePortList *net.PortList `protobuf:"bytes,16,opt,name=source_port_list,json=sourcePortList,proto3" json:"source_port_list,omitempty"`
  108. UserEmail []string `protobuf:"bytes,7,rep,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"`
  109. InboundTag []string `protobuf:"bytes,8,rep,name=inbound_tag,json=inboundTag,proto3" json:"inbound_tag,omitempty"`
  110. Protocol []string `protobuf:"bytes,9,rep,name=protocol,proto3" json:"protocol,omitempty"`
  111. Attributes string `protobuf:"bytes,15,opt,name=attributes,proto3" json:"attributes,omitempty"`
  112. DomainMatcher string `protobuf:"bytes,17,opt,name=domain_matcher,json=domainMatcher,proto3" json:"domain_matcher,omitempty"`
  113. // geo_domain instruct simplified config loader to load geo domain rule and fill in domain field.
  114. GeoDomain []*routercommon.GeoSite `protobuf:"bytes,68001,rep,name=geo_domain,json=geoDomain,proto3" json:"geo_domain,omitempty"`
  115. }
  116. func (x *RoutingRule) Reset() {
  117. *x = RoutingRule{}
  118. if protoimpl.UnsafeEnabled {
  119. mi := &file_app_router_config_proto_msgTypes[0]
  120. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  121. ms.StoreMessageInfo(mi)
  122. }
  123. }
  124. func (x *RoutingRule) String() string {
  125. return protoimpl.X.MessageStringOf(x)
  126. }
  127. func (*RoutingRule) ProtoMessage() {}
  128. func (x *RoutingRule) ProtoReflect() protoreflect.Message {
  129. mi := &file_app_router_config_proto_msgTypes[0]
  130. if protoimpl.UnsafeEnabled && x != nil {
  131. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  132. if ms.LoadMessageInfo() == nil {
  133. ms.StoreMessageInfo(mi)
  134. }
  135. return ms
  136. }
  137. return mi.MessageOf(x)
  138. }
  139. // Deprecated: Use RoutingRule.ProtoReflect.Descriptor instead.
  140. func (*RoutingRule) Descriptor() ([]byte, []int) {
  141. return file_app_router_config_proto_rawDescGZIP(), []int{0}
  142. }
  143. func (m *RoutingRule) GetTargetTag() isRoutingRule_TargetTag {
  144. if m != nil {
  145. return m.TargetTag
  146. }
  147. return nil
  148. }
  149. func (x *RoutingRule) GetTag() string {
  150. if x, ok := x.GetTargetTag().(*RoutingRule_Tag); ok {
  151. return x.Tag
  152. }
  153. return ""
  154. }
  155. func (x *RoutingRule) GetBalancingTag() string {
  156. if x, ok := x.GetTargetTag().(*RoutingRule_BalancingTag); ok {
  157. return x.BalancingTag
  158. }
  159. return ""
  160. }
  161. func (x *RoutingRule) GetDomain() []*routercommon.Domain {
  162. if x != nil {
  163. return x.Domain
  164. }
  165. return nil
  166. }
  167. // Deprecated: Do not use.
  168. func (x *RoutingRule) GetCidr() []*routercommon.CIDR {
  169. if x != nil {
  170. return x.Cidr
  171. }
  172. return nil
  173. }
  174. func (x *RoutingRule) GetGeoip() []*routercommon.GeoIP {
  175. if x != nil {
  176. return x.Geoip
  177. }
  178. return nil
  179. }
  180. // Deprecated: Do not use.
  181. func (x *RoutingRule) GetPortRange() *net.PortRange {
  182. if x != nil {
  183. return x.PortRange
  184. }
  185. return nil
  186. }
  187. func (x *RoutingRule) GetPortList() *net.PortList {
  188. if x != nil {
  189. return x.PortList
  190. }
  191. return nil
  192. }
  193. // Deprecated: Do not use.
  194. func (x *RoutingRule) GetNetworkList() *net.NetworkList {
  195. if x != nil {
  196. return x.NetworkList
  197. }
  198. return nil
  199. }
  200. func (x *RoutingRule) GetNetworks() []net.Network {
  201. if x != nil {
  202. return x.Networks
  203. }
  204. return nil
  205. }
  206. // Deprecated: Do not use.
  207. func (x *RoutingRule) GetSourceCidr() []*routercommon.CIDR {
  208. if x != nil {
  209. return x.SourceCidr
  210. }
  211. return nil
  212. }
  213. func (x *RoutingRule) GetSourceGeoip() []*routercommon.GeoIP {
  214. if x != nil {
  215. return x.SourceGeoip
  216. }
  217. return nil
  218. }
  219. func (x *RoutingRule) GetSourcePortList() *net.PortList {
  220. if x != nil {
  221. return x.SourcePortList
  222. }
  223. return nil
  224. }
  225. func (x *RoutingRule) GetUserEmail() []string {
  226. if x != nil {
  227. return x.UserEmail
  228. }
  229. return nil
  230. }
  231. func (x *RoutingRule) GetInboundTag() []string {
  232. if x != nil {
  233. return x.InboundTag
  234. }
  235. return nil
  236. }
  237. func (x *RoutingRule) GetProtocol() []string {
  238. if x != nil {
  239. return x.Protocol
  240. }
  241. return nil
  242. }
  243. func (x *RoutingRule) GetAttributes() string {
  244. if x != nil {
  245. return x.Attributes
  246. }
  247. return ""
  248. }
  249. func (x *RoutingRule) GetDomainMatcher() string {
  250. if x != nil {
  251. return x.DomainMatcher
  252. }
  253. return ""
  254. }
  255. func (x *RoutingRule) GetGeoDomain() []*routercommon.GeoSite {
  256. if x != nil {
  257. return x.GeoDomain
  258. }
  259. return nil
  260. }
  261. type isRoutingRule_TargetTag interface {
  262. isRoutingRule_TargetTag()
  263. }
  264. type RoutingRule_Tag struct {
  265. // Tag of outbound that this rule is pointing to.
  266. Tag string `protobuf:"bytes,1,opt,name=tag,proto3,oneof"`
  267. }
  268. type RoutingRule_BalancingTag struct {
  269. // Tag of routing balancer.
  270. BalancingTag string `protobuf:"bytes,12,opt,name=balancing_tag,json=balancingTag,proto3,oneof"`
  271. }
  272. func (*RoutingRule_Tag) isRoutingRule_TargetTag() {}
  273. func (*RoutingRule_BalancingTag) isRoutingRule_TargetTag() {}
  274. type BalancingRule struct {
  275. state protoimpl.MessageState
  276. sizeCache protoimpl.SizeCache
  277. unknownFields protoimpl.UnknownFields
  278. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  279. OutboundSelector []string `protobuf:"bytes,2,rep,name=outbound_selector,json=outboundSelector,proto3" json:"outbound_selector,omitempty"`
  280. Strategy string `protobuf:"bytes,3,opt,name=strategy,proto3" json:"strategy,omitempty"`
  281. StrategySettings *anypb.Any `protobuf:"bytes,4,opt,name=strategy_settings,json=strategySettings,proto3" json:"strategy_settings,omitempty"`
  282. FallbackTag string `protobuf:"bytes,5,opt,name=fallback_tag,json=fallbackTag,proto3" json:"fallback_tag,omitempty"`
  283. }
  284. func (x *BalancingRule) Reset() {
  285. *x = BalancingRule{}
  286. if protoimpl.UnsafeEnabled {
  287. mi := &file_app_router_config_proto_msgTypes[1]
  288. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  289. ms.StoreMessageInfo(mi)
  290. }
  291. }
  292. func (x *BalancingRule) String() string {
  293. return protoimpl.X.MessageStringOf(x)
  294. }
  295. func (*BalancingRule) ProtoMessage() {}
  296. func (x *BalancingRule) ProtoReflect() protoreflect.Message {
  297. mi := &file_app_router_config_proto_msgTypes[1]
  298. if protoimpl.UnsafeEnabled && x != nil {
  299. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  300. if ms.LoadMessageInfo() == nil {
  301. ms.StoreMessageInfo(mi)
  302. }
  303. return ms
  304. }
  305. return mi.MessageOf(x)
  306. }
  307. // Deprecated: Use BalancingRule.ProtoReflect.Descriptor instead.
  308. func (*BalancingRule) Descriptor() ([]byte, []int) {
  309. return file_app_router_config_proto_rawDescGZIP(), []int{1}
  310. }
  311. func (x *BalancingRule) GetTag() string {
  312. if x != nil {
  313. return x.Tag
  314. }
  315. return ""
  316. }
  317. func (x *BalancingRule) GetOutboundSelector() []string {
  318. if x != nil {
  319. return x.OutboundSelector
  320. }
  321. return nil
  322. }
  323. func (x *BalancingRule) GetStrategy() string {
  324. if x != nil {
  325. return x.Strategy
  326. }
  327. return ""
  328. }
  329. func (x *BalancingRule) GetStrategySettings() *anypb.Any {
  330. if x != nil {
  331. return x.StrategySettings
  332. }
  333. return nil
  334. }
  335. func (x *BalancingRule) GetFallbackTag() string {
  336. if x != nil {
  337. return x.FallbackTag
  338. }
  339. return ""
  340. }
  341. type StrategyWeight struct {
  342. state protoimpl.MessageState
  343. sizeCache protoimpl.SizeCache
  344. unknownFields protoimpl.UnknownFields
  345. Regexp bool `protobuf:"varint,1,opt,name=regexp,proto3" json:"regexp,omitempty"`
  346. Match string `protobuf:"bytes,2,opt,name=match,proto3" json:"match,omitempty"`
  347. Value float32 `protobuf:"fixed32,3,opt,name=value,proto3" json:"value,omitempty"`
  348. }
  349. func (x *StrategyWeight) Reset() {
  350. *x = StrategyWeight{}
  351. if protoimpl.UnsafeEnabled {
  352. mi := &file_app_router_config_proto_msgTypes[2]
  353. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  354. ms.StoreMessageInfo(mi)
  355. }
  356. }
  357. func (x *StrategyWeight) String() string {
  358. return protoimpl.X.MessageStringOf(x)
  359. }
  360. func (*StrategyWeight) ProtoMessage() {}
  361. func (x *StrategyWeight) ProtoReflect() protoreflect.Message {
  362. mi := &file_app_router_config_proto_msgTypes[2]
  363. if protoimpl.UnsafeEnabled && x != nil {
  364. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  365. if ms.LoadMessageInfo() == nil {
  366. ms.StoreMessageInfo(mi)
  367. }
  368. return ms
  369. }
  370. return mi.MessageOf(x)
  371. }
  372. // Deprecated: Use StrategyWeight.ProtoReflect.Descriptor instead.
  373. func (*StrategyWeight) Descriptor() ([]byte, []int) {
  374. return file_app_router_config_proto_rawDescGZIP(), []int{2}
  375. }
  376. func (x *StrategyWeight) GetRegexp() bool {
  377. if x != nil {
  378. return x.Regexp
  379. }
  380. return false
  381. }
  382. func (x *StrategyWeight) GetMatch() string {
  383. if x != nil {
  384. return x.Match
  385. }
  386. return ""
  387. }
  388. func (x *StrategyWeight) GetValue() float32 {
  389. if x != nil {
  390. return x.Value
  391. }
  392. return 0
  393. }
  394. type StrategyRandomConfig struct {
  395. state protoimpl.MessageState
  396. sizeCache protoimpl.SizeCache
  397. unknownFields protoimpl.UnknownFields
  398. }
  399. func (x *StrategyRandomConfig) Reset() {
  400. *x = StrategyRandomConfig{}
  401. if protoimpl.UnsafeEnabled {
  402. mi := &file_app_router_config_proto_msgTypes[3]
  403. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  404. ms.StoreMessageInfo(mi)
  405. }
  406. }
  407. func (x *StrategyRandomConfig) String() string {
  408. return protoimpl.X.MessageStringOf(x)
  409. }
  410. func (*StrategyRandomConfig) ProtoMessage() {}
  411. func (x *StrategyRandomConfig) ProtoReflect() protoreflect.Message {
  412. mi := &file_app_router_config_proto_msgTypes[3]
  413. if protoimpl.UnsafeEnabled && x != nil {
  414. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  415. if ms.LoadMessageInfo() == nil {
  416. ms.StoreMessageInfo(mi)
  417. }
  418. return ms
  419. }
  420. return mi.MessageOf(x)
  421. }
  422. // Deprecated: Use StrategyRandomConfig.ProtoReflect.Descriptor instead.
  423. func (*StrategyRandomConfig) Descriptor() ([]byte, []int) {
  424. return file_app_router_config_proto_rawDescGZIP(), []int{3}
  425. }
  426. type StrategyLeastPingConfig struct {
  427. state protoimpl.MessageState
  428. sizeCache protoimpl.SizeCache
  429. unknownFields protoimpl.UnknownFields
  430. ObserverTag string `protobuf:"bytes,7,opt,name=observer_tag,json=observerTag,proto3" json:"observer_tag,omitempty"`
  431. }
  432. func (x *StrategyLeastPingConfig) Reset() {
  433. *x = StrategyLeastPingConfig{}
  434. if protoimpl.UnsafeEnabled {
  435. mi := &file_app_router_config_proto_msgTypes[4]
  436. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  437. ms.StoreMessageInfo(mi)
  438. }
  439. }
  440. func (x *StrategyLeastPingConfig) String() string {
  441. return protoimpl.X.MessageStringOf(x)
  442. }
  443. func (*StrategyLeastPingConfig) ProtoMessage() {}
  444. func (x *StrategyLeastPingConfig) ProtoReflect() protoreflect.Message {
  445. mi := &file_app_router_config_proto_msgTypes[4]
  446. if protoimpl.UnsafeEnabled && x != nil {
  447. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  448. if ms.LoadMessageInfo() == nil {
  449. ms.StoreMessageInfo(mi)
  450. }
  451. return ms
  452. }
  453. return mi.MessageOf(x)
  454. }
  455. // Deprecated: Use StrategyLeastPingConfig.ProtoReflect.Descriptor instead.
  456. func (*StrategyLeastPingConfig) Descriptor() ([]byte, []int) {
  457. return file_app_router_config_proto_rawDescGZIP(), []int{4}
  458. }
  459. func (x *StrategyLeastPingConfig) GetObserverTag() string {
  460. if x != nil {
  461. return x.ObserverTag
  462. }
  463. return ""
  464. }
  465. type StrategyLeastLoadConfig struct {
  466. state protoimpl.MessageState
  467. sizeCache protoimpl.SizeCache
  468. unknownFields protoimpl.UnknownFields
  469. // weight settings
  470. Costs []*StrategyWeight `protobuf:"bytes,2,rep,name=costs,proto3" json:"costs,omitempty"`
  471. // RTT baselines for selecting, int64 values of time.Duration
  472. Baselines []int64 `protobuf:"varint,3,rep,packed,name=baselines,proto3" json:"baselines,omitempty"`
  473. // expected nodes count to select
  474. Expected int32 `protobuf:"varint,4,opt,name=expected,proto3" json:"expected,omitempty"`
  475. // max acceptable rtt, filter away high delay nodes. defalut 0
  476. MaxRTT int64 `protobuf:"varint,5,opt,name=maxRTT,proto3" json:"maxRTT,omitempty"`
  477. // acceptable failure rate
  478. Tolerance float32 `protobuf:"fixed32,6,opt,name=tolerance,proto3" json:"tolerance,omitempty"`
  479. ObserverTag string `protobuf:"bytes,7,opt,name=observer_tag,json=observerTag,proto3" json:"observer_tag,omitempty"`
  480. }
  481. func (x *StrategyLeastLoadConfig) Reset() {
  482. *x = StrategyLeastLoadConfig{}
  483. if protoimpl.UnsafeEnabled {
  484. mi := &file_app_router_config_proto_msgTypes[5]
  485. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  486. ms.StoreMessageInfo(mi)
  487. }
  488. }
  489. func (x *StrategyLeastLoadConfig) String() string {
  490. return protoimpl.X.MessageStringOf(x)
  491. }
  492. func (*StrategyLeastLoadConfig) ProtoMessage() {}
  493. func (x *StrategyLeastLoadConfig) ProtoReflect() protoreflect.Message {
  494. mi := &file_app_router_config_proto_msgTypes[5]
  495. if protoimpl.UnsafeEnabled && x != nil {
  496. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  497. if ms.LoadMessageInfo() == nil {
  498. ms.StoreMessageInfo(mi)
  499. }
  500. return ms
  501. }
  502. return mi.MessageOf(x)
  503. }
  504. // Deprecated: Use StrategyLeastLoadConfig.ProtoReflect.Descriptor instead.
  505. func (*StrategyLeastLoadConfig) Descriptor() ([]byte, []int) {
  506. return file_app_router_config_proto_rawDescGZIP(), []int{5}
  507. }
  508. func (x *StrategyLeastLoadConfig) GetCosts() []*StrategyWeight {
  509. if x != nil {
  510. return x.Costs
  511. }
  512. return nil
  513. }
  514. func (x *StrategyLeastLoadConfig) GetBaselines() []int64 {
  515. if x != nil {
  516. return x.Baselines
  517. }
  518. return nil
  519. }
  520. func (x *StrategyLeastLoadConfig) GetExpected() int32 {
  521. if x != nil {
  522. return x.Expected
  523. }
  524. return 0
  525. }
  526. func (x *StrategyLeastLoadConfig) GetMaxRTT() int64 {
  527. if x != nil {
  528. return x.MaxRTT
  529. }
  530. return 0
  531. }
  532. func (x *StrategyLeastLoadConfig) GetTolerance() float32 {
  533. if x != nil {
  534. return x.Tolerance
  535. }
  536. return 0
  537. }
  538. func (x *StrategyLeastLoadConfig) GetObserverTag() string {
  539. if x != nil {
  540. return x.ObserverTag
  541. }
  542. return ""
  543. }
  544. type Config struct {
  545. state protoimpl.MessageState
  546. sizeCache protoimpl.SizeCache
  547. unknownFields protoimpl.UnknownFields
  548. DomainStrategy DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=v2ray.core.app.router.DomainStrategy" json:"domain_strategy,omitempty"`
  549. Rule []*RoutingRule `protobuf:"bytes,2,rep,name=rule,proto3" json:"rule,omitempty"`
  550. BalancingRule []*BalancingRule `protobuf:"bytes,3,rep,name=balancing_rule,json=balancingRule,proto3" json:"balancing_rule,omitempty"`
  551. }
  552. func (x *Config) Reset() {
  553. *x = Config{}
  554. if protoimpl.UnsafeEnabled {
  555. mi := &file_app_router_config_proto_msgTypes[6]
  556. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  557. ms.StoreMessageInfo(mi)
  558. }
  559. }
  560. func (x *Config) String() string {
  561. return protoimpl.X.MessageStringOf(x)
  562. }
  563. func (*Config) ProtoMessage() {}
  564. func (x *Config) ProtoReflect() protoreflect.Message {
  565. mi := &file_app_router_config_proto_msgTypes[6]
  566. if protoimpl.UnsafeEnabled && x != nil {
  567. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  568. if ms.LoadMessageInfo() == nil {
  569. ms.StoreMessageInfo(mi)
  570. }
  571. return ms
  572. }
  573. return mi.MessageOf(x)
  574. }
  575. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  576. func (*Config) Descriptor() ([]byte, []int) {
  577. return file_app_router_config_proto_rawDescGZIP(), []int{6}
  578. }
  579. func (x *Config) GetDomainStrategy() DomainStrategy {
  580. if x != nil {
  581. return x.DomainStrategy
  582. }
  583. return DomainStrategy_AsIs
  584. }
  585. func (x *Config) GetRule() []*RoutingRule {
  586. if x != nil {
  587. return x.Rule
  588. }
  589. return nil
  590. }
  591. func (x *Config) GetBalancingRule() []*BalancingRule {
  592. if x != nil {
  593. return x.BalancingRule
  594. }
  595. return nil
  596. }
  597. type SimplifiedRoutingRule struct {
  598. state protoimpl.MessageState
  599. sizeCache protoimpl.SizeCache
  600. unknownFields protoimpl.UnknownFields
  601. // Types that are assignable to TargetTag:
  602. //
  603. // *SimplifiedRoutingRule_Tag
  604. // *SimplifiedRoutingRule_BalancingTag
  605. TargetTag isSimplifiedRoutingRule_TargetTag `protobuf_oneof:"target_tag"`
  606. // List of domains for target domain matching.
  607. Domain []*routercommon.Domain `protobuf:"bytes,2,rep,name=domain,proto3" json:"domain,omitempty"`
  608. // List of GeoIPs for target IP address matching. If this entry exists, the
  609. // cidr above will have no effect. GeoIP fields with the same country code are
  610. // supposed to contain exactly same content. They will be merged during
  611. // runtime. For customized GeoIPs, please leave country code empty.
  612. Geoip []*routercommon.GeoIP `protobuf:"bytes,10,rep,name=geoip,proto3" json:"geoip,omitempty"`
  613. // List of ports.
  614. PortList string `protobuf:"bytes,14,opt,name=port_list,json=portList,proto3" json:"port_list,omitempty"`
  615. // List of networks for matching.
  616. Networks *net.NetworkList `protobuf:"bytes,13,opt,name=networks,proto3" json:"networks,omitempty"`
  617. // List of GeoIPs for source IP address matching. If this entry exists, the
  618. // source_cidr above will have no effect.
  619. SourceGeoip []*routercommon.GeoIP `protobuf:"bytes,11,rep,name=source_geoip,json=sourceGeoip,proto3" json:"source_geoip,omitempty"`
  620. // List of ports for source port matching.
  621. SourcePortList string `protobuf:"bytes,16,opt,name=source_port_list,json=sourcePortList,proto3" json:"source_port_list,omitempty"`
  622. UserEmail []string `protobuf:"bytes,7,rep,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"`
  623. InboundTag []string `protobuf:"bytes,8,rep,name=inbound_tag,json=inboundTag,proto3" json:"inbound_tag,omitempty"`
  624. Protocol []string `protobuf:"bytes,9,rep,name=protocol,proto3" json:"protocol,omitempty"`
  625. Attributes string `protobuf:"bytes,15,opt,name=attributes,proto3" json:"attributes,omitempty"`
  626. DomainMatcher string `protobuf:"bytes,17,opt,name=domain_matcher,json=domainMatcher,proto3" json:"domain_matcher,omitempty"`
  627. // geo_domain instruct simplified config loader to load geo domain rule and fill in domain field.
  628. GeoDomain []*routercommon.GeoSite `protobuf:"bytes,68001,rep,name=geo_domain,json=geoDomain,proto3" json:"geo_domain,omitempty"`
  629. }
  630. func (x *SimplifiedRoutingRule) Reset() {
  631. *x = SimplifiedRoutingRule{}
  632. if protoimpl.UnsafeEnabled {
  633. mi := &file_app_router_config_proto_msgTypes[7]
  634. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  635. ms.StoreMessageInfo(mi)
  636. }
  637. }
  638. func (x *SimplifiedRoutingRule) String() string {
  639. return protoimpl.X.MessageStringOf(x)
  640. }
  641. func (*SimplifiedRoutingRule) ProtoMessage() {}
  642. func (x *SimplifiedRoutingRule) ProtoReflect() protoreflect.Message {
  643. mi := &file_app_router_config_proto_msgTypes[7]
  644. if protoimpl.UnsafeEnabled && x != nil {
  645. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  646. if ms.LoadMessageInfo() == nil {
  647. ms.StoreMessageInfo(mi)
  648. }
  649. return ms
  650. }
  651. return mi.MessageOf(x)
  652. }
  653. // Deprecated: Use SimplifiedRoutingRule.ProtoReflect.Descriptor instead.
  654. func (*SimplifiedRoutingRule) Descriptor() ([]byte, []int) {
  655. return file_app_router_config_proto_rawDescGZIP(), []int{7}
  656. }
  657. func (m *SimplifiedRoutingRule) GetTargetTag() isSimplifiedRoutingRule_TargetTag {
  658. if m != nil {
  659. return m.TargetTag
  660. }
  661. return nil
  662. }
  663. func (x *SimplifiedRoutingRule) GetTag() string {
  664. if x, ok := x.GetTargetTag().(*SimplifiedRoutingRule_Tag); ok {
  665. return x.Tag
  666. }
  667. return ""
  668. }
  669. func (x *SimplifiedRoutingRule) GetBalancingTag() string {
  670. if x, ok := x.GetTargetTag().(*SimplifiedRoutingRule_BalancingTag); ok {
  671. return x.BalancingTag
  672. }
  673. return ""
  674. }
  675. func (x *SimplifiedRoutingRule) GetDomain() []*routercommon.Domain {
  676. if x != nil {
  677. return x.Domain
  678. }
  679. return nil
  680. }
  681. func (x *SimplifiedRoutingRule) GetGeoip() []*routercommon.GeoIP {
  682. if x != nil {
  683. return x.Geoip
  684. }
  685. return nil
  686. }
  687. func (x *SimplifiedRoutingRule) GetPortList() string {
  688. if x != nil {
  689. return x.PortList
  690. }
  691. return ""
  692. }
  693. func (x *SimplifiedRoutingRule) GetNetworks() *net.NetworkList {
  694. if x != nil {
  695. return x.Networks
  696. }
  697. return nil
  698. }
  699. func (x *SimplifiedRoutingRule) GetSourceGeoip() []*routercommon.GeoIP {
  700. if x != nil {
  701. return x.SourceGeoip
  702. }
  703. return nil
  704. }
  705. func (x *SimplifiedRoutingRule) GetSourcePortList() string {
  706. if x != nil {
  707. return x.SourcePortList
  708. }
  709. return ""
  710. }
  711. func (x *SimplifiedRoutingRule) GetUserEmail() []string {
  712. if x != nil {
  713. return x.UserEmail
  714. }
  715. return nil
  716. }
  717. func (x *SimplifiedRoutingRule) GetInboundTag() []string {
  718. if x != nil {
  719. return x.InboundTag
  720. }
  721. return nil
  722. }
  723. func (x *SimplifiedRoutingRule) GetProtocol() []string {
  724. if x != nil {
  725. return x.Protocol
  726. }
  727. return nil
  728. }
  729. func (x *SimplifiedRoutingRule) GetAttributes() string {
  730. if x != nil {
  731. return x.Attributes
  732. }
  733. return ""
  734. }
  735. func (x *SimplifiedRoutingRule) GetDomainMatcher() string {
  736. if x != nil {
  737. return x.DomainMatcher
  738. }
  739. return ""
  740. }
  741. func (x *SimplifiedRoutingRule) GetGeoDomain() []*routercommon.GeoSite {
  742. if x != nil {
  743. return x.GeoDomain
  744. }
  745. return nil
  746. }
  747. type isSimplifiedRoutingRule_TargetTag interface {
  748. isSimplifiedRoutingRule_TargetTag()
  749. }
  750. type SimplifiedRoutingRule_Tag struct {
  751. // Tag of outbound that this rule is pointing to.
  752. Tag string `protobuf:"bytes,1,opt,name=tag,proto3,oneof"`
  753. }
  754. type SimplifiedRoutingRule_BalancingTag struct {
  755. // Tag of routing balancer.
  756. BalancingTag string `protobuf:"bytes,12,opt,name=balancing_tag,json=balancingTag,proto3,oneof"`
  757. }
  758. func (*SimplifiedRoutingRule_Tag) isSimplifiedRoutingRule_TargetTag() {}
  759. func (*SimplifiedRoutingRule_BalancingTag) isSimplifiedRoutingRule_TargetTag() {}
  760. type SimplifiedConfig struct {
  761. state protoimpl.MessageState
  762. sizeCache protoimpl.SizeCache
  763. unknownFields protoimpl.UnknownFields
  764. DomainStrategy DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=v2ray.core.app.router.DomainStrategy" json:"domain_strategy,omitempty"`
  765. Rule []*SimplifiedRoutingRule `protobuf:"bytes,2,rep,name=rule,proto3" json:"rule,omitempty"`
  766. BalancingRule []*BalancingRule `protobuf:"bytes,3,rep,name=balancing_rule,json=balancingRule,proto3" json:"balancing_rule,omitempty"`
  767. }
  768. func (x *SimplifiedConfig) Reset() {
  769. *x = SimplifiedConfig{}
  770. if protoimpl.UnsafeEnabled {
  771. mi := &file_app_router_config_proto_msgTypes[8]
  772. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  773. ms.StoreMessageInfo(mi)
  774. }
  775. }
  776. func (x *SimplifiedConfig) String() string {
  777. return protoimpl.X.MessageStringOf(x)
  778. }
  779. func (*SimplifiedConfig) ProtoMessage() {}
  780. func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
  781. mi := &file_app_router_config_proto_msgTypes[8]
  782. if protoimpl.UnsafeEnabled && x != nil {
  783. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  784. if ms.LoadMessageInfo() == nil {
  785. ms.StoreMessageInfo(mi)
  786. }
  787. return ms
  788. }
  789. return mi.MessageOf(x)
  790. }
  791. // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
  792. func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
  793. return file_app_router_config_proto_rawDescGZIP(), []int{8}
  794. }
  795. func (x *SimplifiedConfig) GetDomainStrategy() DomainStrategy {
  796. if x != nil {
  797. return x.DomainStrategy
  798. }
  799. return DomainStrategy_AsIs
  800. }
  801. func (x *SimplifiedConfig) GetRule() []*SimplifiedRoutingRule {
  802. if x != nil {
  803. return x.Rule
  804. }
  805. return nil
  806. }
  807. func (x *SimplifiedConfig) GetBalancingRule() []*BalancingRule {
  808. if x != nil {
  809. return x.BalancingRule
  810. }
  811. return nil
  812. }
  813. var File_app_router_config_proto protoreflect.FileDescriptor
  814. var file_app_router_config_proto_rawDesc = []byte{
  815. 0x0a, 0x17, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e,
  816. 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x76, 0x32, 0x72, 0x61, 0x79,
  817. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  818. 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  819. 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x63, 0x6f, 0x6d,
  820. 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f,
  821. 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e,
  822. 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f,
  823. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78,
  824. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24,
  825. 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65,
  826. 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70,
  827. 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x80, 0x08, 0x0a, 0x0b, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67,
  828. 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
  829. 0x09, 0x48, 0x00, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x61, 0x6c, 0x61,
  830. 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x48,
  831. 0x00, 0x52, 0x0c, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x67, 0x12,
  832. 0x42, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
  833. 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  834. 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f,
  835. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x06, 0x64, 0x6f, 0x6d,
  836. 0x61, 0x69, 0x6e, 0x12, 0x40, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28,
  837. 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  838. 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  839. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x42, 0x02, 0x18, 0x01, 0x52,
  840. 0x04, 0x63, 0x69, 0x64, 0x72, 0x12, 0x3f, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x0a,
  841. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  842. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75,
  843. 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52,
  844. 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x43, 0x0a, 0x0a, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72,
  845. 0x61, 0x6e, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72,
  846. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e,
  847. 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x42, 0x02, 0x18, 0x01,
  848. 0x52, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x3c, 0x0a, 0x09, 0x70,
  849. 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f,
  850. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  851. 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52,
  852. 0x08, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x0c, 0x6e, 0x65, 0x74,
  853. 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
  854. 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
  855. 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c,
  856. 0x69, 0x73, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  857. 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73,
  858. 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  859. 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e,
  860. 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73,
  861. 0x12, 0x4d, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x69, 0x64, 0x72, 0x18,
  862. 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  863. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f,
  864. 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x42,
  865. 0x02, 0x18, 0x01, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x69, 0x64, 0x72, 0x12,
  866. 0x4c, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18,
  867. 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  868. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f,
  869. 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50,
  870. 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x47, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x49, 0x0a,
  871. 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73,
  872. 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  873. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e,
  874. 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
  875. 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72,
  876. 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73,
  877. 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x62, 0x6f, 0x75,
  878. 0x6e, 0x64, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e,
  879. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74,
  880. 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74,
  881. 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
  882. 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62,
  883. 0x75, 0x74, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6d,
  884. 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x6f,
  885. 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 0x4c, 0x0a, 0x0a, 0x67,
  886. 0x65, 0x6f, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0xa1, 0x93, 0x04, 0x20, 0x03, 0x28,
  887. 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  888. 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  889. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x53, 0x69, 0x74, 0x65, 0x52, 0x09,
  890. 0x67, 0x65, 0x6f, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x0c, 0x0a, 0x0a, 0x74, 0x61, 0x72,
  891. 0x67, 0x65, 0x74, 0x5f, 0x74, 0x61, 0x67, 0x22, 0xd0, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x6c, 0x61,
  892. 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67,
  893. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x2b, 0x0a, 0x11, 0x6f,
  894. 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72,
  895. 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64,
  896. 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x74, 0x72, 0x61,
  897. 0x74, 0x65, 0x67, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x72, 0x61,
  898. 0x74, 0x65, 0x67, 0x79, 0x12, 0x41, 0x0a, 0x11, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  899. 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
  900. 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  901. 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x10, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x53,
  902. 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x61, 0x6c, 0x6c, 0x62,
  903. 0x61, 0x63, 0x6b, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66,
  904. 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x54, 0x61, 0x67, 0x22, 0x54, 0x0a, 0x0e, 0x53, 0x74,
  905. 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x16, 0x0a, 0x06,
  906. 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65,
  907. 0x67, 0x65, 0x78, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x02, 0x20,
  908. 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
  909. 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  910. 0x22, 0x32, 0x0a, 0x14, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x61, 0x6e, 0x64,
  911. 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x1a, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08,
  912. 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x82, 0xb5, 0x18, 0x08, 0x12, 0x06, 0x72, 0x61,
  913. 0x6e, 0x64, 0x6f, 0x6d, 0x22, 0x5b, 0x0a, 0x17, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  914. 0x4c, 0x65, 0x61, 0x73, 0x74, 0x50, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  915. 0x21, 0x0a, 0x0c, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x67, 0x18,
  916. 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54,
  917. 0x61, 0x67, 0x3a, 0x1d, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63,
  918. 0x65, 0x72, 0x82, 0xb5, 0x18, 0x0b, 0x12, 0x09, 0x6c, 0x65, 0x61, 0x73, 0x74, 0x70, 0x69, 0x6e,
  919. 0x67, 0x22, 0x88, 0x02, 0x0a, 0x17, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x4c, 0x65,
  920. 0x61, 0x73, 0x74, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a,
  921. 0x05, 0x63, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x76,
  922. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f,
  923. 0x75, 0x74, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x57, 0x65, 0x69,
  924. 0x67, 0x68, 0x74, 0x52, 0x05, 0x63, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x61,
  925. 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x62,
  926. 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x70, 0x65,
  927. 0x63, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, 0x78, 0x70, 0x65,
  928. 0x63, 0x74, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x78, 0x52, 0x54, 0x54, 0x18, 0x05,
  929. 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x52, 0x54, 0x54, 0x12, 0x1c, 0x0a, 0x09,
  930. 0x74, 0x6f, 0x6c, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x52,
  931. 0x09, 0x74, 0x6f, 0x6c, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x62,
  932. 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
  933. 0x52, 0x0b, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x61, 0x67, 0x3a, 0x1d, 0x82,
  934. 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x82, 0xb5, 0x18,
  935. 0x0b, 0x12, 0x09, 0x6c, 0x65, 0x61, 0x73, 0x74, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xdd, 0x01, 0x0a,
  936. 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4e, 0x0a, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69,
  937. 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
  938. 0x32, 0x25, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  939. 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53,
  940. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53,
  941. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x36, 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18,
  942. 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  943. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x6f,
  944. 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x12,
  945. 0x4b, 0x0a, 0x0e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c,
  946. 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  947. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e,
  948. 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x62,
  949. 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x22, 0xab, 0x05, 0x0a,
  950. 0x15, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x69,
  951. 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20,
  952. 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x61,
  953. 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28,
  954. 0x09, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x54, 0x61,
  955. 0x67, 0x12, 0x42, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28,
  956. 0x0b, 0x32, 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  957. 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  958. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x06, 0x64,
  959. 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3f, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x0a,
  960. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  961. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75,
  962. 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52,
  963. 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c,
  964. 0x69, 0x73, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x72, 0x74, 0x4c,
  965. 0x69, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x18,
  966. 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  967. 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65,
  968. 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f,
  969. 0x72, 0x6b, 0x73, 0x12, 0x4c, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x65,
  970. 0x6f, 0x69, 0x70, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61,
  971. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
  972. 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47,
  973. 0x65, 0x6f, 0x49, 0x50, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x47, 0x65, 0x6f, 0x69,
  974. 0x70, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74,
  975. 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75,
  976. 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75,
  977. 0x73, 0x65, 0x72, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52,
  978. 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e,
  979. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52,
  980. 0x0a, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x70,
  981. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70,
  982. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69,
  983. 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x74, 0x74,
  984. 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69,
  985. 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52,
  986. 0x0d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 0x4c,
  987. 0x0a, 0x0a, 0x67, 0x65, 0x6f, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0xa1, 0x93, 0x04,
  988. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  989. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75,
  990. 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x53, 0x69, 0x74,
  991. 0x65, 0x52, 0x09, 0x67, 0x65, 0x6f, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x0c, 0x0a, 0x0a,
  992. 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x61, 0x67, 0x22, 0x8c, 0x02, 0x0a, 0x10, 0x53,
  993. 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  994. 0x4e, 0x0a, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65,
  995. 0x67, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  996. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  997. 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52,
  998. 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12,
  999. 0x40, 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e,
  1000. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72,
  1001. 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64,
  1002. 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x75, 0x6c,
  1003. 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x72,
  1004. 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61,
  1005. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
  1006. 0x72, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52,
  1007. 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x3a, 0x19,
  1008. 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x82, 0xb5, 0x18,
  1009. 0x08, 0x12, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2a, 0x47, 0x0a, 0x0e, 0x44, 0x6f, 0x6d,
  1010. 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x08, 0x0a, 0x04, 0x41,
  1011. 0x73, 0x49, 0x73, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x73, 0x65, 0x49, 0x70, 0x10, 0x01,
  1012. 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x70, 0x49, 0x66, 0x4e, 0x6f, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68,
  1013. 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x70, 0x4f, 0x6e, 0x44, 0x65, 0x6d, 0x61, 0x6e, 0x64,
  1014. 0x10, 0x03, 0x42, 0x60, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  1015. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x50,
  1016. 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32,
  1017. 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76,
  1018. 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0xaa, 0x02, 0x15, 0x56,
  1019. 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x52, 0x6f,
  1020. 0x75, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1021. }
  1022. var (
  1023. file_app_router_config_proto_rawDescOnce sync.Once
  1024. file_app_router_config_proto_rawDescData = file_app_router_config_proto_rawDesc
  1025. )
  1026. func file_app_router_config_proto_rawDescGZIP() []byte {
  1027. file_app_router_config_proto_rawDescOnce.Do(func() {
  1028. file_app_router_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_router_config_proto_rawDescData)
  1029. })
  1030. return file_app_router_config_proto_rawDescData
  1031. }
  1032. var file_app_router_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  1033. var file_app_router_config_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
  1034. var file_app_router_config_proto_goTypes = []interface{}{
  1035. (DomainStrategy)(0), // 0: v2ray.core.app.router.DomainStrategy
  1036. (*RoutingRule)(nil), // 1: v2ray.core.app.router.RoutingRule
  1037. (*BalancingRule)(nil), // 2: v2ray.core.app.router.BalancingRule
  1038. (*StrategyWeight)(nil), // 3: v2ray.core.app.router.StrategyWeight
  1039. (*StrategyRandomConfig)(nil), // 4: v2ray.core.app.router.StrategyRandomConfig
  1040. (*StrategyLeastPingConfig)(nil), // 5: v2ray.core.app.router.StrategyLeastPingConfig
  1041. (*StrategyLeastLoadConfig)(nil), // 6: v2ray.core.app.router.StrategyLeastLoadConfig
  1042. (*Config)(nil), // 7: v2ray.core.app.router.Config
  1043. (*SimplifiedRoutingRule)(nil), // 8: v2ray.core.app.router.SimplifiedRoutingRule
  1044. (*SimplifiedConfig)(nil), // 9: v2ray.core.app.router.SimplifiedConfig
  1045. (*routercommon.Domain)(nil), // 10: v2ray.core.app.router.routercommon.Domain
  1046. (*routercommon.CIDR)(nil), // 11: v2ray.core.app.router.routercommon.CIDR
  1047. (*routercommon.GeoIP)(nil), // 12: v2ray.core.app.router.routercommon.GeoIP
  1048. (*net.PortRange)(nil), // 13: v2ray.core.common.net.PortRange
  1049. (*net.PortList)(nil), // 14: v2ray.core.common.net.PortList
  1050. (*net.NetworkList)(nil), // 15: v2ray.core.common.net.NetworkList
  1051. (net.Network)(0), // 16: v2ray.core.common.net.Network
  1052. (*routercommon.GeoSite)(nil), // 17: v2ray.core.app.router.routercommon.GeoSite
  1053. (*anypb.Any)(nil), // 18: google.protobuf.Any
  1054. }
  1055. var file_app_router_config_proto_depIdxs = []int32{
  1056. 10, // 0: v2ray.core.app.router.RoutingRule.domain:type_name -> v2ray.core.app.router.routercommon.Domain
  1057. 11, // 1: v2ray.core.app.router.RoutingRule.cidr:type_name -> v2ray.core.app.router.routercommon.CIDR
  1058. 12, // 2: v2ray.core.app.router.RoutingRule.geoip:type_name -> v2ray.core.app.router.routercommon.GeoIP
  1059. 13, // 3: v2ray.core.app.router.RoutingRule.port_range:type_name -> v2ray.core.common.net.PortRange
  1060. 14, // 4: v2ray.core.app.router.RoutingRule.port_list:type_name -> v2ray.core.common.net.PortList
  1061. 15, // 5: v2ray.core.app.router.RoutingRule.network_list:type_name -> v2ray.core.common.net.NetworkList
  1062. 16, // 6: v2ray.core.app.router.RoutingRule.networks:type_name -> v2ray.core.common.net.Network
  1063. 11, // 7: v2ray.core.app.router.RoutingRule.source_cidr:type_name -> v2ray.core.app.router.routercommon.CIDR
  1064. 12, // 8: v2ray.core.app.router.RoutingRule.source_geoip:type_name -> v2ray.core.app.router.routercommon.GeoIP
  1065. 14, // 9: v2ray.core.app.router.RoutingRule.source_port_list:type_name -> v2ray.core.common.net.PortList
  1066. 17, // 10: v2ray.core.app.router.RoutingRule.geo_domain:type_name -> v2ray.core.app.router.routercommon.GeoSite
  1067. 18, // 11: v2ray.core.app.router.BalancingRule.strategy_settings:type_name -> google.protobuf.Any
  1068. 3, // 12: v2ray.core.app.router.StrategyLeastLoadConfig.costs:type_name -> v2ray.core.app.router.StrategyWeight
  1069. 0, // 13: v2ray.core.app.router.Config.domain_strategy:type_name -> v2ray.core.app.router.DomainStrategy
  1070. 1, // 14: v2ray.core.app.router.Config.rule:type_name -> v2ray.core.app.router.RoutingRule
  1071. 2, // 15: v2ray.core.app.router.Config.balancing_rule:type_name -> v2ray.core.app.router.BalancingRule
  1072. 10, // 16: v2ray.core.app.router.SimplifiedRoutingRule.domain:type_name -> v2ray.core.app.router.routercommon.Domain
  1073. 12, // 17: v2ray.core.app.router.SimplifiedRoutingRule.geoip:type_name -> v2ray.core.app.router.routercommon.GeoIP
  1074. 15, // 18: v2ray.core.app.router.SimplifiedRoutingRule.networks:type_name -> v2ray.core.common.net.NetworkList
  1075. 12, // 19: v2ray.core.app.router.SimplifiedRoutingRule.source_geoip:type_name -> v2ray.core.app.router.routercommon.GeoIP
  1076. 17, // 20: v2ray.core.app.router.SimplifiedRoutingRule.geo_domain:type_name -> v2ray.core.app.router.routercommon.GeoSite
  1077. 0, // 21: v2ray.core.app.router.SimplifiedConfig.domain_strategy:type_name -> v2ray.core.app.router.DomainStrategy
  1078. 8, // 22: v2ray.core.app.router.SimplifiedConfig.rule:type_name -> v2ray.core.app.router.SimplifiedRoutingRule
  1079. 2, // 23: v2ray.core.app.router.SimplifiedConfig.balancing_rule:type_name -> v2ray.core.app.router.BalancingRule
  1080. 24, // [24:24] is the sub-list for method output_type
  1081. 24, // [24:24] is the sub-list for method input_type
  1082. 24, // [24:24] is the sub-list for extension type_name
  1083. 24, // [24:24] is the sub-list for extension extendee
  1084. 0, // [0:24] is the sub-list for field type_name
  1085. }
  1086. func init() { file_app_router_config_proto_init() }
  1087. func file_app_router_config_proto_init() {
  1088. if File_app_router_config_proto != nil {
  1089. return
  1090. }
  1091. if !protoimpl.UnsafeEnabled {
  1092. file_app_router_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1093. switch v := v.(*RoutingRule); i {
  1094. case 0:
  1095. return &v.state
  1096. case 1:
  1097. return &v.sizeCache
  1098. case 2:
  1099. return &v.unknownFields
  1100. default:
  1101. return nil
  1102. }
  1103. }
  1104. file_app_router_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1105. switch v := v.(*BalancingRule); i {
  1106. case 0:
  1107. return &v.state
  1108. case 1:
  1109. return &v.sizeCache
  1110. case 2:
  1111. return &v.unknownFields
  1112. default:
  1113. return nil
  1114. }
  1115. }
  1116. file_app_router_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1117. switch v := v.(*StrategyWeight); i {
  1118. case 0:
  1119. return &v.state
  1120. case 1:
  1121. return &v.sizeCache
  1122. case 2:
  1123. return &v.unknownFields
  1124. default:
  1125. return nil
  1126. }
  1127. }
  1128. file_app_router_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1129. switch v := v.(*StrategyRandomConfig); i {
  1130. case 0:
  1131. return &v.state
  1132. case 1:
  1133. return &v.sizeCache
  1134. case 2:
  1135. return &v.unknownFields
  1136. default:
  1137. return nil
  1138. }
  1139. }
  1140. file_app_router_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1141. switch v := v.(*StrategyLeastPingConfig); i {
  1142. case 0:
  1143. return &v.state
  1144. case 1:
  1145. return &v.sizeCache
  1146. case 2:
  1147. return &v.unknownFields
  1148. default:
  1149. return nil
  1150. }
  1151. }
  1152. file_app_router_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1153. switch v := v.(*StrategyLeastLoadConfig); i {
  1154. case 0:
  1155. return &v.state
  1156. case 1:
  1157. return &v.sizeCache
  1158. case 2:
  1159. return &v.unknownFields
  1160. default:
  1161. return nil
  1162. }
  1163. }
  1164. file_app_router_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1165. switch v := v.(*Config); i {
  1166. case 0:
  1167. return &v.state
  1168. case 1:
  1169. return &v.sizeCache
  1170. case 2:
  1171. return &v.unknownFields
  1172. default:
  1173. return nil
  1174. }
  1175. }
  1176. file_app_router_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1177. switch v := v.(*SimplifiedRoutingRule); i {
  1178. case 0:
  1179. return &v.state
  1180. case 1:
  1181. return &v.sizeCache
  1182. case 2:
  1183. return &v.unknownFields
  1184. default:
  1185. return nil
  1186. }
  1187. }
  1188. file_app_router_config_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1189. switch v := v.(*SimplifiedConfig); i {
  1190. case 0:
  1191. return &v.state
  1192. case 1:
  1193. return &v.sizeCache
  1194. case 2:
  1195. return &v.unknownFields
  1196. default:
  1197. return nil
  1198. }
  1199. }
  1200. }
  1201. file_app_router_config_proto_msgTypes[0].OneofWrappers = []interface{}{
  1202. (*RoutingRule_Tag)(nil),
  1203. (*RoutingRule_BalancingTag)(nil),
  1204. }
  1205. file_app_router_config_proto_msgTypes[7].OneofWrappers = []interface{}{
  1206. (*SimplifiedRoutingRule_Tag)(nil),
  1207. (*SimplifiedRoutingRule_BalancingTag)(nil),
  1208. }
  1209. type x struct{}
  1210. out := protoimpl.TypeBuilder{
  1211. File: protoimpl.DescBuilder{
  1212. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1213. RawDescriptor: file_app_router_config_proto_rawDesc,
  1214. NumEnums: 1,
  1215. NumMessages: 9,
  1216. NumExtensions: 0,
  1217. NumServices: 0,
  1218. },
  1219. GoTypes: file_app_router_config_proto_goTypes,
  1220. DependencyIndexes: file_app_router_config_proto_depIdxs,
  1221. EnumInfos: file_app_router_config_proto_enumTypes,
  1222. MessageInfos: file_app_router_config_proto_msgTypes,
  1223. }.Build()
  1224. File_app_router_config_proto = out.File
  1225. file_app_router_config_proto_rawDesc = nil
  1226. file_app_router_config_proto_goTypes = nil
  1227. file_app_router_config_proto_depIdxs = nil
  1228. }