config.pb.go 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373
  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 SimplifiedRoutingRule struct {
  602. state protoimpl.MessageState
  603. sizeCache protoimpl.SizeCache
  604. unknownFields protoimpl.UnknownFields
  605. // Types that are assignable to TargetTag:
  606. // *SimplifiedRoutingRule_Tag
  607. // *SimplifiedRoutingRule_BalancingTag
  608. TargetTag isSimplifiedRoutingRule_TargetTag `protobuf_oneof:"target_tag"`
  609. // List of domains for target domain matching.
  610. Domain []*routercommon.Domain `protobuf:"bytes,2,rep,name=domain,proto3" json:"domain,omitempty"`
  611. // List of GeoIPs for target IP address matching. If this entry exists, the
  612. // cidr above will have no effect. GeoIP fields with the same country code are
  613. // supposed to contain exactly same content. They will be merged during
  614. // runtime. For customized GeoIPs, please leave country code empty.
  615. Geoip []*routercommon.GeoIP `protobuf:"bytes,10,rep,name=geoip,proto3" json:"geoip,omitempty"`
  616. // List of ports.
  617. PortList string `protobuf:"bytes,14,opt,name=port_list,json=portList,proto3" json:"port_list,omitempty"`
  618. // List of networks for matching.
  619. Networks string `protobuf:"bytes,13,opt,name=networks,proto3" json:"networks,omitempty"`
  620. // List of GeoIPs for source IP address matching. If this entry exists, the
  621. // source_cidr above will have no effect.
  622. SourceGeoip []*routercommon.GeoIP `protobuf:"bytes,11,rep,name=source_geoip,json=sourceGeoip,proto3" json:"source_geoip,omitempty"`
  623. // List of ports for source port matching.
  624. SourcePortList string `protobuf:"bytes,16,opt,name=source_port_list,json=sourcePortList,proto3" json:"source_port_list,omitempty"`
  625. UserEmail []string `protobuf:"bytes,7,rep,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"`
  626. InboundTag []string `protobuf:"bytes,8,rep,name=inbound_tag,json=inboundTag,proto3" json:"inbound_tag,omitempty"`
  627. Protocol []string `protobuf:"bytes,9,rep,name=protocol,proto3" json:"protocol,omitempty"`
  628. Attributes string `protobuf:"bytes,15,opt,name=attributes,proto3" json:"attributes,omitempty"`
  629. DomainMatcher string `protobuf:"bytes,17,opt,name=domain_matcher,json=domainMatcher,proto3" json:"domain_matcher,omitempty"`
  630. // geo_domain instruct simplified config loader to load geo domain rule and fill in domain field.
  631. GeoDomain []*routercommon.GeoSite `protobuf:"bytes,68001,rep,name=geo_domain,json=geoDomain,proto3" json:"geo_domain,omitempty"`
  632. }
  633. func (x *SimplifiedRoutingRule) Reset() {
  634. *x = SimplifiedRoutingRule{}
  635. if protoimpl.UnsafeEnabled {
  636. mi := &file_app_router_config_proto_msgTypes[7]
  637. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  638. ms.StoreMessageInfo(mi)
  639. }
  640. }
  641. func (x *SimplifiedRoutingRule) String() string {
  642. return protoimpl.X.MessageStringOf(x)
  643. }
  644. func (*SimplifiedRoutingRule) ProtoMessage() {}
  645. func (x *SimplifiedRoutingRule) ProtoReflect() protoreflect.Message {
  646. mi := &file_app_router_config_proto_msgTypes[7]
  647. if protoimpl.UnsafeEnabled && x != nil {
  648. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  649. if ms.LoadMessageInfo() == nil {
  650. ms.StoreMessageInfo(mi)
  651. }
  652. return ms
  653. }
  654. return mi.MessageOf(x)
  655. }
  656. // Deprecated: Use SimplifiedRoutingRule.ProtoReflect.Descriptor instead.
  657. func (*SimplifiedRoutingRule) Descriptor() ([]byte, []int) {
  658. return file_app_router_config_proto_rawDescGZIP(), []int{7}
  659. }
  660. func (m *SimplifiedRoutingRule) GetTargetTag() isSimplifiedRoutingRule_TargetTag {
  661. if m != nil {
  662. return m.TargetTag
  663. }
  664. return nil
  665. }
  666. func (x *SimplifiedRoutingRule) GetTag() string {
  667. if x, ok := x.GetTargetTag().(*SimplifiedRoutingRule_Tag); ok {
  668. return x.Tag
  669. }
  670. return ""
  671. }
  672. func (x *SimplifiedRoutingRule) GetBalancingTag() string {
  673. if x, ok := x.GetTargetTag().(*SimplifiedRoutingRule_BalancingTag); ok {
  674. return x.BalancingTag
  675. }
  676. return ""
  677. }
  678. func (x *SimplifiedRoutingRule) GetDomain() []*routercommon.Domain {
  679. if x != nil {
  680. return x.Domain
  681. }
  682. return nil
  683. }
  684. func (x *SimplifiedRoutingRule) GetGeoip() []*routercommon.GeoIP {
  685. if x != nil {
  686. return x.Geoip
  687. }
  688. return nil
  689. }
  690. func (x *SimplifiedRoutingRule) GetPortList() string {
  691. if x != nil {
  692. return x.PortList
  693. }
  694. return ""
  695. }
  696. func (x *SimplifiedRoutingRule) GetNetworks() string {
  697. if x != nil {
  698. return x.Networks
  699. }
  700. return ""
  701. }
  702. func (x *SimplifiedRoutingRule) GetSourceGeoip() []*routercommon.GeoIP {
  703. if x != nil {
  704. return x.SourceGeoip
  705. }
  706. return nil
  707. }
  708. func (x *SimplifiedRoutingRule) GetSourcePortList() string {
  709. if x != nil {
  710. return x.SourcePortList
  711. }
  712. return ""
  713. }
  714. func (x *SimplifiedRoutingRule) GetUserEmail() []string {
  715. if x != nil {
  716. return x.UserEmail
  717. }
  718. return nil
  719. }
  720. func (x *SimplifiedRoutingRule) GetInboundTag() []string {
  721. if x != nil {
  722. return x.InboundTag
  723. }
  724. return nil
  725. }
  726. func (x *SimplifiedRoutingRule) GetProtocol() []string {
  727. if x != nil {
  728. return x.Protocol
  729. }
  730. return nil
  731. }
  732. func (x *SimplifiedRoutingRule) GetAttributes() string {
  733. if x != nil {
  734. return x.Attributes
  735. }
  736. return ""
  737. }
  738. func (x *SimplifiedRoutingRule) GetDomainMatcher() string {
  739. if x != nil {
  740. return x.DomainMatcher
  741. }
  742. return ""
  743. }
  744. func (x *SimplifiedRoutingRule) GetGeoDomain() []*routercommon.GeoSite {
  745. if x != nil {
  746. return x.GeoDomain
  747. }
  748. return nil
  749. }
  750. type isSimplifiedRoutingRule_TargetTag interface {
  751. isSimplifiedRoutingRule_TargetTag()
  752. }
  753. type SimplifiedRoutingRule_Tag struct {
  754. // Tag of outbound that this rule is pointing to.
  755. Tag string `protobuf:"bytes,1,opt,name=tag,proto3,oneof"`
  756. }
  757. type SimplifiedRoutingRule_BalancingTag struct {
  758. // Tag of routing balancer.
  759. BalancingTag string `protobuf:"bytes,12,opt,name=balancing_tag,json=balancingTag,proto3,oneof"`
  760. }
  761. func (*SimplifiedRoutingRule_Tag) isSimplifiedRoutingRule_TargetTag() {}
  762. func (*SimplifiedRoutingRule_BalancingTag) isSimplifiedRoutingRule_TargetTag() {}
  763. type SimplifiedConfig struct {
  764. state protoimpl.MessageState
  765. sizeCache protoimpl.SizeCache
  766. unknownFields protoimpl.UnknownFields
  767. DomainStrategy DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=v2ray.core.app.router.DomainStrategy" json:"domain_strategy,omitempty"`
  768. Rule []*SimplifiedRoutingRule `protobuf:"bytes,2,rep,name=rule,proto3" json:"rule,omitempty"`
  769. BalancingRule []*BalancingRule `protobuf:"bytes,3,rep,name=balancing_rule,json=balancingRule,proto3" json:"balancing_rule,omitempty"`
  770. }
  771. func (x *SimplifiedConfig) Reset() {
  772. *x = SimplifiedConfig{}
  773. if protoimpl.UnsafeEnabled {
  774. mi := &file_app_router_config_proto_msgTypes[8]
  775. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  776. ms.StoreMessageInfo(mi)
  777. }
  778. }
  779. func (x *SimplifiedConfig) String() string {
  780. return protoimpl.X.MessageStringOf(x)
  781. }
  782. func (*SimplifiedConfig) ProtoMessage() {}
  783. func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
  784. mi := &file_app_router_config_proto_msgTypes[8]
  785. if protoimpl.UnsafeEnabled && x != nil {
  786. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  787. if ms.LoadMessageInfo() == nil {
  788. ms.StoreMessageInfo(mi)
  789. }
  790. return ms
  791. }
  792. return mi.MessageOf(x)
  793. }
  794. // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
  795. func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
  796. return file_app_router_config_proto_rawDescGZIP(), []int{8}
  797. }
  798. func (x *SimplifiedConfig) GetDomainStrategy() DomainStrategy {
  799. if x != nil {
  800. return x.DomainStrategy
  801. }
  802. return DomainStrategy_AsIs
  803. }
  804. func (x *SimplifiedConfig) GetRule() []*SimplifiedRoutingRule {
  805. if x != nil {
  806. return x.Rule
  807. }
  808. return nil
  809. }
  810. func (x *SimplifiedConfig) GetBalancingRule() []*BalancingRule {
  811. if x != nil {
  812. return x.BalancingRule
  813. }
  814. return nil
  815. }
  816. var File_app_router_config_proto protoreflect.FileDescriptor
  817. var file_app_router_config_proto_rawDesc = []byte{
  818. 0x0a, 0x17, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e,
  819. 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x76, 0x32, 0x72, 0x61, 0x79,
  820. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  821. 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  822. 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x63, 0x6f, 0x6d,
  823. 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f,
  824. 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e,
  825. 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f,
  826. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78,
  827. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24,
  828. 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65,
  829. 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70,
  830. 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x80, 0x08, 0x0a, 0x0b, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67,
  831. 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
  832. 0x09, 0x48, 0x00, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x61, 0x6c, 0x61,
  833. 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x48,
  834. 0x00, 0x52, 0x0c, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x67, 0x12,
  835. 0x42, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
  836. 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  837. 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f,
  838. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x06, 0x64, 0x6f, 0x6d,
  839. 0x61, 0x69, 0x6e, 0x12, 0x40, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28,
  840. 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  841. 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  842. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x42, 0x02, 0x18, 0x01, 0x52,
  843. 0x04, 0x63, 0x69, 0x64, 0x72, 0x12, 0x3f, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x0a,
  844. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  845. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75,
  846. 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52,
  847. 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x43, 0x0a, 0x0a, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72,
  848. 0x61, 0x6e, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72,
  849. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e,
  850. 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x42, 0x02, 0x18, 0x01,
  851. 0x52, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x3c, 0x0a, 0x09, 0x70,
  852. 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f,
  853. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  854. 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52,
  855. 0x08, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x0c, 0x6e, 0x65, 0x74,
  856. 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
  857. 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
  858. 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c,
  859. 0x69, 0x73, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  860. 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73,
  861. 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  862. 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e,
  863. 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73,
  864. 0x12, 0x4d, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x69, 0x64, 0x72, 0x18,
  865. 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  866. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f,
  867. 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x42,
  868. 0x02, 0x18, 0x01, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x69, 0x64, 0x72, 0x12,
  869. 0x4c, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18,
  870. 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  871. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f,
  872. 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50,
  873. 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x47, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x49, 0x0a,
  874. 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73,
  875. 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  876. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e,
  877. 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
  878. 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72,
  879. 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73,
  880. 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x62, 0x6f, 0x75,
  881. 0x6e, 0x64, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e,
  882. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74,
  883. 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74,
  884. 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
  885. 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62,
  886. 0x75, 0x74, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6d,
  887. 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x6f,
  888. 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 0x4c, 0x0a, 0x0a, 0x67,
  889. 0x65, 0x6f, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0xa1, 0x93, 0x04, 0x20, 0x03, 0x28,
  890. 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  891. 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  892. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x53, 0x69, 0x74, 0x65, 0x52, 0x09,
  893. 0x67, 0x65, 0x6f, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x0c, 0x0a, 0x0a, 0x74, 0x61, 0x72,
  894. 0x67, 0x65, 0x74, 0x5f, 0x74, 0x61, 0x67, 0x22, 0xd0, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x6c, 0x61,
  895. 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67,
  896. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x2b, 0x0a, 0x11, 0x6f,
  897. 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72,
  898. 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64,
  899. 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x74, 0x72, 0x61,
  900. 0x74, 0x65, 0x67, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x72, 0x61,
  901. 0x74, 0x65, 0x67, 0x79, 0x12, 0x41, 0x0a, 0x11, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  902. 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
  903. 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  904. 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x10, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x53,
  905. 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x61, 0x6c, 0x6c, 0x62,
  906. 0x61, 0x63, 0x6b, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66,
  907. 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x54, 0x61, 0x67, 0x22, 0x54, 0x0a, 0x0e, 0x53, 0x74,
  908. 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x16, 0x0a, 0x06,
  909. 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65,
  910. 0x67, 0x65, 0x78, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x02, 0x20,
  911. 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
  912. 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  913. 0x22, 0x32, 0x0a, 0x14, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x61, 0x6e, 0x64,
  914. 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x1a, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08,
  915. 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x82, 0xb5, 0x18, 0x08, 0x12, 0x06, 0x72, 0x61,
  916. 0x6e, 0x64, 0x6f, 0x6d, 0x22, 0x5b, 0x0a, 0x17, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  917. 0x4c, 0x65, 0x61, 0x73, 0x74, 0x50, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  918. 0x21, 0x0a, 0x0c, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x67, 0x18,
  919. 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54,
  920. 0x61, 0x67, 0x3a, 0x1d, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63,
  921. 0x65, 0x72, 0x82, 0xb5, 0x18, 0x0b, 0x12, 0x09, 0x6c, 0x65, 0x61, 0x73, 0x74, 0x70, 0x69, 0x6e,
  922. 0x67, 0x22, 0x88, 0x02, 0x0a, 0x17, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x4c, 0x65,
  923. 0x61, 0x73, 0x74, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a,
  924. 0x05, 0x63, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x76,
  925. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f,
  926. 0x75, 0x74, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x57, 0x65, 0x69,
  927. 0x67, 0x68, 0x74, 0x52, 0x05, 0x63, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x61,
  928. 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x62,
  929. 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x70, 0x65,
  930. 0x63, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, 0x78, 0x70, 0x65,
  931. 0x63, 0x74, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x78, 0x52, 0x54, 0x54, 0x18, 0x05,
  932. 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x52, 0x54, 0x54, 0x12, 0x1c, 0x0a, 0x09,
  933. 0x74, 0x6f, 0x6c, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x52,
  934. 0x09, 0x74, 0x6f, 0x6c, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x62,
  935. 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
  936. 0x52, 0x0b, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x61, 0x67, 0x3a, 0x1d, 0x82,
  937. 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x82, 0xb5, 0x18,
  938. 0x0b, 0x12, 0x09, 0x6c, 0x65, 0x61, 0x73, 0x74, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xdd, 0x01, 0x0a,
  939. 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4e, 0x0a, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69,
  940. 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
  941. 0x32, 0x25, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  942. 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53,
  943. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53,
  944. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x36, 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18,
  945. 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  946. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x6f,
  947. 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x12,
  948. 0x4b, 0x0a, 0x0e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c,
  949. 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  950. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e,
  951. 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x62,
  952. 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x22, 0x87, 0x05, 0x0a,
  953. 0x15, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x69,
  954. 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20,
  955. 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x61,
  956. 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28,
  957. 0x09, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x54, 0x61,
  958. 0x67, 0x12, 0x42, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28,
  959. 0x0b, 0x32, 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  960. 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  961. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x06, 0x64,
  962. 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3f, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x0a,
  963. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  964. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75,
  965. 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52,
  966. 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c,
  967. 0x69, 0x73, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x72, 0x74, 0x4c,
  968. 0x69, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x18,
  969. 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12,
  970. 0x4c, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18,
  971. 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  972. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f,
  973. 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50,
  974. 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x47, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x28, 0x0a,
  975. 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73,
  976. 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50,
  977. 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f,
  978. 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65,
  979. 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e,
  980. 0x64, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x62,
  981. 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  982. 0x63, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  983. 0x63, 0x6f, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65,
  984. 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75,
  985. 0x74, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6d, 0x61,
  986. 0x74, 0x63, 0x68, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x6f, 0x6d,
  987. 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 0x4c, 0x0a, 0x0a, 0x67, 0x65,
  988. 0x6f, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0xa1, 0x93, 0x04, 0x20, 0x03, 0x28, 0x0b,
  989. 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  990. 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63,
  991. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x53, 0x69, 0x74, 0x65, 0x52, 0x09, 0x67,
  992. 0x65, 0x6f, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x0c, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67,
  993. 0x65, 0x74, 0x5f, 0x74, 0x61, 0x67, 0x22, 0x8c, 0x02, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c,
  994. 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4e, 0x0a, 0x0f, 0x64,
  995. 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x01,
  996. 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  997. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d,
  998. 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e, 0x64, 0x6f, 0x6d,
  999. 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x40, 0x0a, 0x04, 0x72,
  1000. 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x76, 0x32, 0x72, 0x61,
  1001. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
  1002. 0x72, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x52, 0x6f, 0x75, 0x74,
  1003. 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x12, 0x4b, 0x0a,
  1004. 0x0e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x18,
  1005. 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  1006. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x42, 0x61,
  1007. 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x62, 0x61, 0x6c,
  1008. 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x3a, 0x19, 0x82, 0xb5, 0x18, 0x09,
  1009. 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x82, 0xb5, 0x18, 0x08, 0x12, 0x06, 0x72,
  1010. 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2a, 0x47, 0x0a, 0x0e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53,
  1011. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x73, 0x49, 0x73, 0x10,
  1012. 0x00, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x73, 0x65, 0x49, 0x70, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c,
  1013. 0x49, 0x70, 0x49, 0x66, 0x4e, 0x6f, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x10, 0x02, 0x12, 0x0e,
  1014. 0x0a, 0x0a, 0x49, 0x70, 0x4f, 0x6e, 0x44, 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x10, 0x03, 0x42, 0x60,
  1015. 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  1016. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x29, 0x67,
  1017. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f,
  1018. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x70,
  1019. 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0xaa, 0x02, 0x15, 0x56, 0x32, 0x52, 0x61, 0x79,
  1020. 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72,
  1021. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1022. }
  1023. var (
  1024. file_app_router_config_proto_rawDescOnce sync.Once
  1025. file_app_router_config_proto_rawDescData = file_app_router_config_proto_rawDesc
  1026. )
  1027. func file_app_router_config_proto_rawDescGZIP() []byte {
  1028. file_app_router_config_proto_rawDescOnce.Do(func() {
  1029. file_app_router_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_router_config_proto_rawDescData)
  1030. })
  1031. return file_app_router_config_proto_rawDescData
  1032. }
  1033. var file_app_router_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  1034. var file_app_router_config_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
  1035. var file_app_router_config_proto_goTypes = []interface{}{
  1036. (DomainStrategy)(0), // 0: v2ray.core.app.router.DomainStrategy
  1037. (*RoutingRule)(nil), // 1: v2ray.core.app.router.RoutingRule
  1038. (*BalancingRule)(nil), // 2: v2ray.core.app.router.BalancingRule
  1039. (*StrategyWeight)(nil), // 3: v2ray.core.app.router.StrategyWeight
  1040. (*StrategyRandomConfig)(nil), // 4: v2ray.core.app.router.StrategyRandomConfig
  1041. (*StrategyLeastPingConfig)(nil), // 5: v2ray.core.app.router.StrategyLeastPingConfig
  1042. (*StrategyLeastLoadConfig)(nil), // 6: v2ray.core.app.router.StrategyLeastLoadConfig
  1043. (*Config)(nil), // 7: v2ray.core.app.router.Config
  1044. (*SimplifiedRoutingRule)(nil), // 8: v2ray.core.app.router.SimplifiedRoutingRule
  1045. (*SimplifiedConfig)(nil), // 9: v2ray.core.app.router.SimplifiedConfig
  1046. (*routercommon.Domain)(nil), // 10: v2ray.core.app.router.routercommon.Domain
  1047. (*routercommon.CIDR)(nil), // 11: v2ray.core.app.router.routercommon.CIDR
  1048. (*routercommon.GeoIP)(nil), // 12: v2ray.core.app.router.routercommon.GeoIP
  1049. (*net.PortRange)(nil), // 13: v2ray.core.common.net.PortRange
  1050. (*net.PortList)(nil), // 14: v2ray.core.common.net.PortList
  1051. (*net.NetworkList)(nil), // 15: v2ray.core.common.net.NetworkList
  1052. (net.Network)(0), // 16: v2ray.core.common.net.Network
  1053. (*routercommon.GeoSite)(nil), // 17: v2ray.core.app.router.routercommon.GeoSite
  1054. (*anypb.Any)(nil), // 18: google.protobuf.Any
  1055. }
  1056. var file_app_router_config_proto_depIdxs = []int32{
  1057. 10, // 0: v2ray.core.app.router.RoutingRule.domain:type_name -> v2ray.core.app.router.routercommon.Domain
  1058. 11, // 1: v2ray.core.app.router.RoutingRule.cidr:type_name -> v2ray.core.app.router.routercommon.CIDR
  1059. 12, // 2: v2ray.core.app.router.RoutingRule.geoip:type_name -> v2ray.core.app.router.routercommon.GeoIP
  1060. 13, // 3: v2ray.core.app.router.RoutingRule.port_range:type_name -> v2ray.core.common.net.PortRange
  1061. 14, // 4: v2ray.core.app.router.RoutingRule.port_list:type_name -> v2ray.core.common.net.PortList
  1062. 15, // 5: v2ray.core.app.router.RoutingRule.network_list:type_name -> v2ray.core.common.net.NetworkList
  1063. 16, // 6: v2ray.core.app.router.RoutingRule.networks:type_name -> v2ray.core.common.net.Network
  1064. 11, // 7: v2ray.core.app.router.RoutingRule.source_cidr:type_name -> v2ray.core.app.router.routercommon.CIDR
  1065. 12, // 8: v2ray.core.app.router.RoutingRule.source_geoip:type_name -> v2ray.core.app.router.routercommon.GeoIP
  1066. 14, // 9: v2ray.core.app.router.RoutingRule.source_port_list:type_name -> v2ray.core.common.net.PortList
  1067. 17, // 10: v2ray.core.app.router.RoutingRule.geo_domain:type_name -> v2ray.core.app.router.routercommon.GeoSite
  1068. 18, // 11: v2ray.core.app.router.BalancingRule.strategy_settings:type_name -> google.protobuf.Any
  1069. 3, // 12: v2ray.core.app.router.StrategyLeastLoadConfig.costs:type_name -> v2ray.core.app.router.StrategyWeight
  1070. 0, // 13: v2ray.core.app.router.Config.domain_strategy:type_name -> v2ray.core.app.router.DomainStrategy
  1071. 1, // 14: v2ray.core.app.router.Config.rule:type_name -> v2ray.core.app.router.RoutingRule
  1072. 2, // 15: v2ray.core.app.router.Config.balancing_rule:type_name -> v2ray.core.app.router.BalancingRule
  1073. 10, // 16: v2ray.core.app.router.SimplifiedRoutingRule.domain:type_name -> v2ray.core.app.router.routercommon.Domain
  1074. 12, // 17: v2ray.core.app.router.SimplifiedRoutingRule.geoip:type_name -> v2ray.core.app.router.routercommon.GeoIP
  1075. 12, // 18: v2ray.core.app.router.SimplifiedRoutingRule.source_geoip:type_name -> v2ray.core.app.router.routercommon.GeoIP
  1076. 17, // 19: v2ray.core.app.router.SimplifiedRoutingRule.geo_domain:type_name -> v2ray.core.app.router.routercommon.GeoSite
  1077. 0, // 20: v2ray.core.app.router.SimplifiedConfig.domain_strategy:type_name -> v2ray.core.app.router.DomainStrategy
  1078. 8, // 21: v2ray.core.app.router.SimplifiedConfig.rule:type_name -> v2ray.core.app.router.SimplifiedRoutingRule
  1079. 2, // 22: v2ray.core.app.router.SimplifiedConfig.balancing_rule:type_name -> v2ray.core.app.router.BalancingRule
  1080. 23, // [23:23] is the sub-list for method output_type
  1081. 23, // [23:23] is the sub-list for method input_type
  1082. 23, // [23:23] is the sub-list for extension type_name
  1083. 23, // [23:23] is the sub-list for extension extendee
  1084. 0, // [0:23] 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. }