config.pb.go 44 KB

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