config.pb.go 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.12.4
  5. // source: app/router/config.proto
  6. package router
  7. import (
  8. any "github.com/golang/protobuf/ptypes/any"
  9. routercommon "github.com/v2fly/v2ray-core/v5/app/router/routercommon"
  10. net "github.com/v2fly/v2ray-core/v5/common/net"
  11. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  12. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  13. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  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 *any.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() *any.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. ObserverTag string `protobuf:"bytes,7,opt,name=observer_tag,json=observerTag,proto3" json:"observer_tag,omitempty"`
  403. AliveOnly bool `protobuf:"varint,8,opt,name=alive_only,json=aliveOnly,proto3" json:"alive_only,omitempty"`
  404. }
  405. func (x *StrategyRandomConfig) Reset() {
  406. *x = StrategyRandomConfig{}
  407. if protoimpl.UnsafeEnabled {
  408. mi := &file_app_router_config_proto_msgTypes[3]
  409. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  410. ms.StoreMessageInfo(mi)
  411. }
  412. }
  413. func (x *StrategyRandomConfig) String() string {
  414. return protoimpl.X.MessageStringOf(x)
  415. }
  416. func (*StrategyRandomConfig) ProtoMessage() {}
  417. func (x *StrategyRandomConfig) ProtoReflect() protoreflect.Message {
  418. mi := &file_app_router_config_proto_msgTypes[3]
  419. if protoimpl.UnsafeEnabled && x != nil {
  420. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  421. if ms.LoadMessageInfo() == nil {
  422. ms.StoreMessageInfo(mi)
  423. }
  424. return ms
  425. }
  426. return mi.MessageOf(x)
  427. }
  428. // Deprecated: Use StrategyRandomConfig.ProtoReflect.Descriptor instead.
  429. func (*StrategyRandomConfig) Descriptor() ([]byte, []int) {
  430. return file_app_router_config_proto_rawDescGZIP(), []int{3}
  431. }
  432. func (x *StrategyRandomConfig) GetObserverTag() string {
  433. if x != nil {
  434. return x.ObserverTag
  435. }
  436. return ""
  437. }
  438. func (x *StrategyRandomConfig) GetAliveOnly() bool {
  439. if x != nil {
  440. return x.AliveOnly
  441. }
  442. return false
  443. }
  444. type StrategyLeastPingConfig struct {
  445. state protoimpl.MessageState
  446. sizeCache protoimpl.SizeCache
  447. unknownFields protoimpl.UnknownFields
  448. ObserverTag string `protobuf:"bytes,7,opt,name=observer_tag,json=observerTag,proto3" json:"observer_tag,omitempty"`
  449. }
  450. func (x *StrategyLeastPingConfig) Reset() {
  451. *x = StrategyLeastPingConfig{}
  452. if protoimpl.UnsafeEnabled {
  453. mi := &file_app_router_config_proto_msgTypes[4]
  454. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  455. ms.StoreMessageInfo(mi)
  456. }
  457. }
  458. func (x *StrategyLeastPingConfig) String() string {
  459. return protoimpl.X.MessageStringOf(x)
  460. }
  461. func (*StrategyLeastPingConfig) ProtoMessage() {}
  462. func (x *StrategyLeastPingConfig) ProtoReflect() protoreflect.Message {
  463. mi := &file_app_router_config_proto_msgTypes[4]
  464. if protoimpl.UnsafeEnabled && x != nil {
  465. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  466. if ms.LoadMessageInfo() == nil {
  467. ms.StoreMessageInfo(mi)
  468. }
  469. return ms
  470. }
  471. return mi.MessageOf(x)
  472. }
  473. // Deprecated: Use StrategyLeastPingConfig.ProtoReflect.Descriptor instead.
  474. func (*StrategyLeastPingConfig) Descriptor() ([]byte, []int) {
  475. return file_app_router_config_proto_rawDescGZIP(), []int{4}
  476. }
  477. func (x *StrategyLeastPingConfig) GetObserverTag() string {
  478. if x != nil {
  479. return x.ObserverTag
  480. }
  481. return ""
  482. }
  483. type StrategyLeastLoadConfig struct {
  484. state protoimpl.MessageState
  485. sizeCache protoimpl.SizeCache
  486. unknownFields protoimpl.UnknownFields
  487. // weight settings
  488. Costs []*StrategyWeight `protobuf:"bytes,2,rep,name=costs,proto3" json:"costs,omitempty"`
  489. // RTT baselines for selecting, int64 values of time.Duration
  490. Baselines []int64 `protobuf:"varint,3,rep,packed,name=baselines,proto3" json:"baselines,omitempty"`
  491. // expected nodes count to select
  492. Expected int32 `protobuf:"varint,4,opt,name=expected,proto3" json:"expected,omitempty"`
  493. // max acceptable rtt, filter away high delay nodes. defalut 0
  494. MaxRTT int64 `protobuf:"varint,5,opt,name=maxRTT,proto3" json:"maxRTT,omitempty"`
  495. // acceptable failure rate
  496. Tolerance float32 `protobuf:"fixed32,6,opt,name=tolerance,proto3" json:"tolerance,omitempty"`
  497. ObserverTag string `protobuf:"bytes,7,opt,name=observer_tag,json=observerTag,proto3" json:"observer_tag,omitempty"`
  498. }
  499. func (x *StrategyLeastLoadConfig) Reset() {
  500. *x = StrategyLeastLoadConfig{}
  501. if protoimpl.UnsafeEnabled {
  502. mi := &file_app_router_config_proto_msgTypes[5]
  503. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  504. ms.StoreMessageInfo(mi)
  505. }
  506. }
  507. func (x *StrategyLeastLoadConfig) String() string {
  508. return protoimpl.X.MessageStringOf(x)
  509. }
  510. func (*StrategyLeastLoadConfig) ProtoMessage() {}
  511. func (x *StrategyLeastLoadConfig) ProtoReflect() protoreflect.Message {
  512. mi := &file_app_router_config_proto_msgTypes[5]
  513. if protoimpl.UnsafeEnabled && x != nil {
  514. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  515. if ms.LoadMessageInfo() == nil {
  516. ms.StoreMessageInfo(mi)
  517. }
  518. return ms
  519. }
  520. return mi.MessageOf(x)
  521. }
  522. // Deprecated: Use StrategyLeastLoadConfig.ProtoReflect.Descriptor instead.
  523. func (*StrategyLeastLoadConfig) Descriptor() ([]byte, []int) {
  524. return file_app_router_config_proto_rawDescGZIP(), []int{5}
  525. }
  526. func (x *StrategyLeastLoadConfig) GetCosts() []*StrategyWeight {
  527. if x != nil {
  528. return x.Costs
  529. }
  530. return nil
  531. }
  532. func (x *StrategyLeastLoadConfig) GetBaselines() []int64 {
  533. if x != nil {
  534. return x.Baselines
  535. }
  536. return nil
  537. }
  538. func (x *StrategyLeastLoadConfig) GetExpected() int32 {
  539. if x != nil {
  540. return x.Expected
  541. }
  542. return 0
  543. }
  544. func (x *StrategyLeastLoadConfig) GetMaxRTT() int64 {
  545. if x != nil {
  546. return x.MaxRTT
  547. }
  548. return 0
  549. }
  550. func (x *StrategyLeastLoadConfig) GetTolerance() float32 {
  551. if x != nil {
  552. return x.Tolerance
  553. }
  554. return 0
  555. }
  556. func (x *StrategyLeastLoadConfig) GetObserverTag() string {
  557. if x != nil {
  558. return x.ObserverTag
  559. }
  560. return ""
  561. }
  562. type Config struct {
  563. state protoimpl.MessageState
  564. sizeCache protoimpl.SizeCache
  565. unknownFields protoimpl.UnknownFields
  566. DomainStrategy DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=v2ray.core.app.router.DomainStrategy" json:"domain_strategy,omitempty"`
  567. Rule []*RoutingRule `protobuf:"bytes,2,rep,name=rule,proto3" json:"rule,omitempty"`
  568. BalancingRule []*BalancingRule `protobuf:"bytes,3,rep,name=balancing_rule,json=balancingRule,proto3" json:"balancing_rule,omitempty"`
  569. }
  570. func (x *Config) Reset() {
  571. *x = Config{}
  572. if protoimpl.UnsafeEnabled {
  573. mi := &file_app_router_config_proto_msgTypes[6]
  574. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  575. ms.StoreMessageInfo(mi)
  576. }
  577. }
  578. func (x *Config) String() string {
  579. return protoimpl.X.MessageStringOf(x)
  580. }
  581. func (*Config) ProtoMessage() {}
  582. func (x *Config) ProtoReflect() protoreflect.Message {
  583. mi := &file_app_router_config_proto_msgTypes[6]
  584. if protoimpl.UnsafeEnabled && x != nil {
  585. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  586. if ms.LoadMessageInfo() == nil {
  587. ms.StoreMessageInfo(mi)
  588. }
  589. return ms
  590. }
  591. return mi.MessageOf(x)
  592. }
  593. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  594. func (*Config) Descriptor() ([]byte, []int) {
  595. return file_app_router_config_proto_rawDescGZIP(), []int{6}
  596. }
  597. func (x *Config) GetDomainStrategy() DomainStrategy {
  598. if x != nil {
  599. return x.DomainStrategy
  600. }
  601. return DomainStrategy_AsIs
  602. }
  603. func (x *Config) GetRule() []*RoutingRule {
  604. if x != nil {
  605. return x.Rule
  606. }
  607. return nil
  608. }
  609. func (x *Config) GetBalancingRule() []*BalancingRule {
  610. if x != nil {
  611. return x.BalancingRule
  612. }
  613. return nil
  614. }
  615. type SimplifiedRoutingRule struct {
  616. state protoimpl.MessageState
  617. sizeCache protoimpl.SizeCache
  618. unknownFields protoimpl.UnknownFields
  619. // Types that are assignable to TargetTag:
  620. // *SimplifiedRoutingRule_Tag
  621. // *SimplifiedRoutingRule_BalancingTag
  622. TargetTag isSimplifiedRoutingRule_TargetTag `protobuf_oneof:"target_tag"`
  623. // List of domains for target domain matching.
  624. Domain []*routercommon.Domain `protobuf:"bytes,2,rep,name=domain,proto3" json:"domain,omitempty"`
  625. // List of GeoIPs for target IP address matching. If this entry exists, the
  626. // cidr above will have no effect. GeoIP fields with the same country code are
  627. // supposed to contain exactly same content. They will be merged during
  628. // runtime. For customized GeoIPs, please leave country code empty.
  629. Geoip []*routercommon.GeoIP `protobuf:"bytes,10,rep,name=geoip,proto3" json:"geoip,omitempty"`
  630. // List of ports.
  631. PortList string `protobuf:"bytes,14,opt,name=port_list,json=portList,proto3" json:"port_list,omitempty"`
  632. // List of networks for matching.
  633. Networks *net.NetworkList `protobuf:"bytes,13,opt,name=networks,proto3" json:"networks,omitempty"`
  634. // List of GeoIPs for source IP address matching. If this entry exists, the
  635. // source_cidr above will have no effect.
  636. SourceGeoip []*routercommon.GeoIP `protobuf:"bytes,11,rep,name=source_geoip,json=sourceGeoip,proto3" json:"source_geoip,omitempty"`
  637. // List of ports for source port matching.
  638. SourcePortList string `protobuf:"bytes,16,opt,name=source_port_list,json=sourcePortList,proto3" json:"source_port_list,omitempty"`
  639. UserEmail []string `protobuf:"bytes,7,rep,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"`
  640. InboundTag []string `protobuf:"bytes,8,rep,name=inbound_tag,json=inboundTag,proto3" json:"inbound_tag,omitempty"`
  641. Protocol []string `protobuf:"bytes,9,rep,name=protocol,proto3" json:"protocol,omitempty"`
  642. Attributes string `protobuf:"bytes,15,opt,name=attributes,proto3" json:"attributes,omitempty"`
  643. DomainMatcher string `protobuf:"bytes,17,opt,name=domain_matcher,json=domainMatcher,proto3" json:"domain_matcher,omitempty"`
  644. // geo_domain instruct simplified config loader to load geo domain rule and fill in domain field.
  645. GeoDomain []*routercommon.GeoSite `protobuf:"bytes,68001,rep,name=geo_domain,json=geoDomain,proto3" json:"geo_domain,omitempty"`
  646. }
  647. func (x *SimplifiedRoutingRule) Reset() {
  648. *x = SimplifiedRoutingRule{}
  649. if protoimpl.UnsafeEnabled {
  650. mi := &file_app_router_config_proto_msgTypes[7]
  651. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  652. ms.StoreMessageInfo(mi)
  653. }
  654. }
  655. func (x *SimplifiedRoutingRule) String() string {
  656. return protoimpl.X.MessageStringOf(x)
  657. }
  658. func (*SimplifiedRoutingRule) ProtoMessage() {}
  659. func (x *SimplifiedRoutingRule) ProtoReflect() protoreflect.Message {
  660. mi := &file_app_router_config_proto_msgTypes[7]
  661. if protoimpl.UnsafeEnabled && x != nil {
  662. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  663. if ms.LoadMessageInfo() == nil {
  664. ms.StoreMessageInfo(mi)
  665. }
  666. return ms
  667. }
  668. return mi.MessageOf(x)
  669. }
  670. // Deprecated: Use SimplifiedRoutingRule.ProtoReflect.Descriptor instead.
  671. func (*SimplifiedRoutingRule) Descriptor() ([]byte, []int) {
  672. return file_app_router_config_proto_rawDescGZIP(), []int{7}
  673. }
  674. func (m *SimplifiedRoutingRule) GetTargetTag() isSimplifiedRoutingRule_TargetTag {
  675. if m != nil {
  676. return m.TargetTag
  677. }
  678. return nil
  679. }
  680. func (x *SimplifiedRoutingRule) GetTag() string {
  681. if x, ok := x.GetTargetTag().(*SimplifiedRoutingRule_Tag); ok {
  682. return x.Tag
  683. }
  684. return ""
  685. }
  686. func (x *SimplifiedRoutingRule) GetBalancingTag() string {
  687. if x, ok := x.GetTargetTag().(*SimplifiedRoutingRule_BalancingTag); ok {
  688. return x.BalancingTag
  689. }
  690. return ""
  691. }
  692. func (x *SimplifiedRoutingRule) GetDomain() []*routercommon.Domain {
  693. if x != nil {
  694. return x.Domain
  695. }
  696. return nil
  697. }
  698. func (x *SimplifiedRoutingRule) GetGeoip() []*routercommon.GeoIP {
  699. if x != nil {
  700. return x.Geoip
  701. }
  702. return nil
  703. }
  704. func (x *SimplifiedRoutingRule) GetPortList() string {
  705. if x != nil {
  706. return x.PortList
  707. }
  708. return ""
  709. }
  710. func (x *SimplifiedRoutingRule) GetNetworks() *net.NetworkList {
  711. if x != nil {
  712. return x.Networks
  713. }
  714. return nil
  715. }
  716. func (x *SimplifiedRoutingRule) GetSourceGeoip() []*routercommon.GeoIP {
  717. if x != nil {
  718. return x.SourceGeoip
  719. }
  720. return nil
  721. }
  722. func (x *SimplifiedRoutingRule) GetSourcePortList() string {
  723. if x != nil {
  724. return x.SourcePortList
  725. }
  726. return ""
  727. }
  728. func (x *SimplifiedRoutingRule) GetUserEmail() []string {
  729. if x != nil {
  730. return x.UserEmail
  731. }
  732. return nil
  733. }
  734. func (x *SimplifiedRoutingRule) GetInboundTag() []string {
  735. if x != nil {
  736. return x.InboundTag
  737. }
  738. return nil
  739. }
  740. func (x *SimplifiedRoutingRule) GetProtocol() []string {
  741. if x != nil {
  742. return x.Protocol
  743. }
  744. return nil
  745. }
  746. func (x *SimplifiedRoutingRule) GetAttributes() string {
  747. if x != nil {
  748. return x.Attributes
  749. }
  750. return ""
  751. }
  752. func (x *SimplifiedRoutingRule) GetDomainMatcher() string {
  753. if x != nil {
  754. return x.DomainMatcher
  755. }
  756. return ""
  757. }
  758. func (x *SimplifiedRoutingRule) GetGeoDomain() []*routercommon.GeoSite {
  759. if x != nil {
  760. return x.GeoDomain
  761. }
  762. return nil
  763. }
  764. type isSimplifiedRoutingRule_TargetTag interface {
  765. isSimplifiedRoutingRule_TargetTag()
  766. }
  767. type SimplifiedRoutingRule_Tag struct {
  768. // Tag of outbound that this rule is pointing to.
  769. Tag string `protobuf:"bytes,1,opt,name=tag,proto3,oneof"`
  770. }
  771. type SimplifiedRoutingRule_BalancingTag struct {
  772. // Tag of routing balancer.
  773. BalancingTag string `protobuf:"bytes,12,opt,name=balancing_tag,json=balancingTag,proto3,oneof"`
  774. }
  775. func (*SimplifiedRoutingRule_Tag) isSimplifiedRoutingRule_TargetTag() {}
  776. func (*SimplifiedRoutingRule_BalancingTag) isSimplifiedRoutingRule_TargetTag() {}
  777. type SimplifiedConfig struct {
  778. state protoimpl.MessageState
  779. sizeCache protoimpl.SizeCache
  780. unknownFields protoimpl.UnknownFields
  781. DomainStrategy DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=v2ray.core.app.router.DomainStrategy" json:"domain_strategy,omitempty"`
  782. Rule []*SimplifiedRoutingRule `protobuf:"bytes,2,rep,name=rule,proto3" json:"rule,omitempty"`
  783. BalancingRule []*BalancingRule `protobuf:"bytes,3,rep,name=balancing_rule,json=balancingRule,proto3" json:"balancing_rule,omitempty"`
  784. }
  785. func (x *SimplifiedConfig) Reset() {
  786. *x = SimplifiedConfig{}
  787. if protoimpl.UnsafeEnabled {
  788. mi := &file_app_router_config_proto_msgTypes[8]
  789. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  790. ms.StoreMessageInfo(mi)
  791. }
  792. }
  793. func (x *SimplifiedConfig) String() string {
  794. return protoimpl.X.MessageStringOf(x)
  795. }
  796. func (*SimplifiedConfig) ProtoMessage() {}
  797. func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
  798. mi := &file_app_router_config_proto_msgTypes[8]
  799. if protoimpl.UnsafeEnabled && x != nil {
  800. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  801. if ms.LoadMessageInfo() == nil {
  802. ms.StoreMessageInfo(mi)
  803. }
  804. return ms
  805. }
  806. return mi.MessageOf(x)
  807. }
  808. // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
  809. func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
  810. return file_app_router_config_proto_rawDescGZIP(), []int{8}
  811. }
  812. func (x *SimplifiedConfig) GetDomainStrategy() DomainStrategy {
  813. if x != nil {
  814. return x.DomainStrategy
  815. }
  816. return DomainStrategy_AsIs
  817. }
  818. func (x *SimplifiedConfig) GetRule() []*SimplifiedRoutingRule {
  819. if x != nil {
  820. return x.Rule
  821. }
  822. return nil
  823. }
  824. func (x *SimplifiedConfig) GetBalancingRule() []*BalancingRule {
  825. if x != nil {
  826. return x.BalancingRule
  827. }
  828. return nil
  829. }
  830. var File_app_router_config_proto protoreflect.FileDescriptor
  831. var file_app_router_config_proto_rawDesc = []byte{
  832. 0x0a, 0x17, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e,
  833. 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x76, 0x32, 0x72, 0x61, 0x79,
  834. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  835. 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  836. 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x63, 0x6f, 0x6d,
  837. 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f,
  838. 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e,
  839. 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f,
  840. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78,
  841. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24,
  842. 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65,
  843. 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70,
  844. 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x80, 0x08, 0x0a, 0x0b, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67,
  845. 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
  846. 0x09, 0x48, 0x00, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x61, 0x6c, 0x61,
  847. 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x48,
  848. 0x00, 0x52, 0x0c, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x67, 0x12,
  849. 0x42, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
  850. 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  851. 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f,
  852. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x06, 0x64, 0x6f, 0x6d,
  853. 0x61, 0x69, 0x6e, 0x12, 0x40, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28,
  854. 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  855. 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  856. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x42, 0x02, 0x18, 0x01, 0x52,
  857. 0x04, 0x63, 0x69, 0x64, 0x72, 0x12, 0x3f, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x0a,
  858. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  859. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75,
  860. 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52,
  861. 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x43, 0x0a, 0x0a, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72,
  862. 0x61, 0x6e, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72,
  863. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e,
  864. 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x42, 0x02, 0x18, 0x01,
  865. 0x52, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x3c, 0x0a, 0x09, 0x70,
  866. 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f,
  867. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  868. 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52,
  869. 0x08, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x0c, 0x6e, 0x65, 0x74,
  870. 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
  871. 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
  872. 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c,
  873. 0x69, 0x73, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  874. 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73,
  875. 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  876. 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e,
  877. 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73,
  878. 0x12, 0x4d, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x69, 0x64, 0x72, 0x18,
  879. 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  880. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f,
  881. 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x42,
  882. 0x02, 0x18, 0x01, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x69, 0x64, 0x72, 0x12,
  883. 0x4c, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18,
  884. 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  885. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f,
  886. 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50,
  887. 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x47, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x49, 0x0a,
  888. 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73,
  889. 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  890. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e,
  891. 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
  892. 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72,
  893. 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73,
  894. 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x62, 0x6f, 0x75,
  895. 0x6e, 0x64, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e,
  896. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74,
  897. 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74,
  898. 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
  899. 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62,
  900. 0x75, 0x74, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6d,
  901. 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x6f,
  902. 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x12, 0x4c, 0x0a, 0x0a, 0x67,
  903. 0x65, 0x6f, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0xa1, 0x93, 0x04, 0x20, 0x03, 0x28,
  904. 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  905. 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  906. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x53, 0x69, 0x74, 0x65, 0x52, 0x09,
  907. 0x67, 0x65, 0x6f, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x0c, 0x0a, 0x0a, 0x74, 0x61, 0x72,
  908. 0x67, 0x65, 0x74, 0x5f, 0x74, 0x61, 0x67, 0x22, 0xd0, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x6c, 0x61,
  909. 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67,
  910. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x2b, 0x0a, 0x11, 0x6f,
  911. 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72,
  912. 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64,
  913. 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x74, 0x72, 0x61,
  914. 0x74, 0x65, 0x67, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x72, 0x61,
  915. 0x74, 0x65, 0x67, 0x79, 0x12, 0x41, 0x0a, 0x11, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  916. 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
  917. 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  918. 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x10, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x53,
  919. 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x61, 0x6c, 0x6c, 0x62,
  920. 0x61, 0x63, 0x6b, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66,
  921. 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x54, 0x61, 0x67, 0x22, 0x54, 0x0a, 0x0e, 0x53, 0x74,
  922. 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x16, 0x0a, 0x06,
  923. 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65,
  924. 0x67, 0x65, 0x78, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x02, 0x20,
  925. 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
  926. 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  927. 0x22, 0x74, 0x0a, 0x14, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x61, 0x6e, 0x64,
  928. 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x62, 0x73, 0x65,
  929. 0x72, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
  930. 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x61, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x61,
  931. 0x6c, 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52,
  932. 0x09, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x3a, 0x1a, 0x82, 0xb5, 0x18, 0x0a,
  933. 0x0a, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x82, 0xb5, 0x18, 0x08, 0x12, 0x06,
  934. 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x22, 0x5b, 0x0a, 0x17, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65,
  935. 0x67, 0x79, 0x4c, 0x65, 0x61, 0x73, 0x74, 0x50, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  936. 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x61,
  937. 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65,
  938. 0x72, 0x54, 0x61, 0x67, 0x3a, 0x1d, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x62, 0x61, 0x6c, 0x61,
  939. 0x6e, 0x63, 0x65, 0x72, 0x82, 0xb5, 0x18, 0x0b, 0x12, 0x09, 0x6c, 0x65, 0x61, 0x73, 0x74, 0x70,
  940. 0x69, 0x6e, 0x67, 0x22, 0x88, 0x02, 0x0a, 0x17, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  941. 0x4c, 0x65, 0x61, 0x73, 0x74, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  942. 0x3b, 0x0a, 0x05, 0x63, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25,
  943. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  944. 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x57,
  945. 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x05, 0x63, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1c, 0x0a, 0x09,
  946. 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52,
  947. 0x09, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78,
  948. 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, 0x78,
  949. 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x78, 0x52, 0x54, 0x54,
  950. 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x52, 0x54, 0x54, 0x12, 0x1c,
  951. 0x0a, 0x09, 0x74, 0x6f, 0x6c, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
  952. 0x02, 0x52, 0x09, 0x74, 0x6f, 0x6c, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c,
  953. 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x07, 0x20, 0x01,
  954. 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x61, 0x67, 0x3a,
  955. 0x1d, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x82,
  956. 0xb5, 0x18, 0x0b, 0x12, 0x09, 0x6c, 0x65, 0x61, 0x73, 0x74, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xdd,
  957. 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4e, 0x0a, 0x0f, 0x64, 0x6f, 0x6d,
  958. 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x01, 0x20, 0x01,
  959. 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  960. 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69,
  961. 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69,
  962. 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x36, 0x0a, 0x04, 0x72, 0x75, 0x6c,
  963. 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  964. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e,
  965. 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x75, 0x6c,
  966. 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x72,
  967. 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61,
  968. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
  969. 0x72, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52,
  970. 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x22, 0xab,
  971. 0x05, 0x0a, 0x15, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x52, 0x6f, 0x75,
  972. 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18,
  973. 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x25, 0x0a, 0x0d,
  974. 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x0c, 0x20,
  975. 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67,
  976. 0x54, 0x61, 0x67, 0x12, 0x42, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20,
  977. 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  978. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74,
  979. 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52,
  980. 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3f, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70,
  981. 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  982. 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72,
  983. 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x49,
  984. 0x50, 0x52, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x6f, 0x72, 0x74,
  985. 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x72,
  986. 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
  987. 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  988. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e,
  989. 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x6e, 0x65, 0x74,
  990. 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12, 0x4c, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f,
  991. 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32,
  992. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75,
  993. 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  994. 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x47, 0x65,
  995. 0x6f, 0x69, 0x70, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x6f,
  996. 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73,
  997. 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a,
  998. 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x03, 0x28,
  999. 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1f, 0x0a, 0x0b,
  1000. 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x08, 0x20, 0x03, 0x28,
  1001. 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x12, 0x1a, 0x0a,
  1002. 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52,
  1003. 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x74, 0x74,
  1004. 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61,
  1005. 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x6f, 0x6d,
  1006. 0x61, 0x69, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28,
  1007. 0x09, 0x52, 0x0d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72,
  1008. 0x12, 0x4c, 0x0a, 0x0a, 0x67, 0x65, 0x6f, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0xa1,
  1009. 0x93, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  1010. 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72,
  1011. 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x53,
  1012. 0x69, 0x74, 0x65, 0x52, 0x09, 0x67, 0x65, 0x6f, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x42, 0x0c,
  1013. 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x61, 0x67, 0x22, 0x8c, 0x02, 0x0a,
  1014. 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  1015. 0x67, 0x12, 0x4e, 0x0a, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61,
  1016. 0x74, 0x65, 0x67, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x76, 0x32, 0x72,
  1017. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74,
  1018. 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67,
  1019. 0x79, 0x52, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67,
  1020. 0x79, 0x12, 0x40, 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
  1021. 0x2c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  1022. 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69,
  1023. 0x65, 0x64, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x04, 0x72,
  1024. 0x75, 0x6c, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67,
  1025. 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32,
  1026. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75,
  1027. 0x74, 0x65, 0x72, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c,
  1028. 0x65, 0x52, 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65,
  1029. 0x3a, 0x19, 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x82,
  1030. 0xb5, 0x18, 0x08, 0x12, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2a, 0x47, 0x0a, 0x0e, 0x44,
  1031. 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x08, 0x0a,
  1032. 0x04, 0x41, 0x73, 0x49, 0x73, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x73, 0x65, 0x49, 0x70,
  1033. 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x70, 0x49, 0x66, 0x4e, 0x6f, 0x6e, 0x4d, 0x61, 0x74,
  1034. 0x63, 0x68, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x70, 0x4f, 0x6e, 0x44, 0x65, 0x6d, 0x61,
  1035. 0x6e, 0x64, 0x10, 0x03, 0x42, 0x60, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61,
  1036. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
  1037. 0x72, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  1038. 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65,
  1039. 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0xaa, 0x02,
  1040. 0x15, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e,
  1041. 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1042. }
  1043. var (
  1044. file_app_router_config_proto_rawDescOnce sync.Once
  1045. file_app_router_config_proto_rawDescData = file_app_router_config_proto_rawDesc
  1046. )
  1047. func file_app_router_config_proto_rawDescGZIP() []byte {
  1048. file_app_router_config_proto_rawDescOnce.Do(func() {
  1049. file_app_router_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_router_config_proto_rawDescData)
  1050. })
  1051. return file_app_router_config_proto_rawDescData
  1052. }
  1053. var file_app_router_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  1054. var file_app_router_config_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
  1055. var file_app_router_config_proto_goTypes = []interface{}{
  1056. (DomainStrategy)(0), // 0: v2ray.core.app.router.DomainStrategy
  1057. (*RoutingRule)(nil), // 1: v2ray.core.app.router.RoutingRule
  1058. (*BalancingRule)(nil), // 2: v2ray.core.app.router.BalancingRule
  1059. (*StrategyWeight)(nil), // 3: v2ray.core.app.router.StrategyWeight
  1060. (*StrategyRandomConfig)(nil), // 4: v2ray.core.app.router.StrategyRandomConfig
  1061. (*StrategyLeastPingConfig)(nil), // 5: v2ray.core.app.router.StrategyLeastPingConfig
  1062. (*StrategyLeastLoadConfig)(nil), // 6: v2ray.core.app.router.StrategyLeastLoadConfig
  1063. (*Config)(nil), // 7: v2ray.core.app.router.Config
  1064. (*SimplifiedRoutingRule)(nil), // 8: v2ray.core.app.router.SimplifiedRoutingRule
  1065. (*SimplifiedConfig)(nil), // 9: v2ray.core.app.router.SimplifiedConfig
  1066. (*routercommon.Domain)(nil), // 10: v2ray.core.app.router.routercommon.Domain
  1067. (*routercommon.CIDR)(nil), // 11: v2ray.core.app.router.routercommon.CIDR
  1068. (*routercommon.GeoIP)(nil), // 12: v2ray.core.app.router.routercommon.GeoIP
  1069. (*net.PortRange)(nil), // 13: v2ray.core.common.net.PortRange
  1070. (*net.PortList)(nil), // 14: v2ray.core.common.net.PortList
  1071. (*net.NetworkList)(nil), // 15: v2ray.core.common.net.NetworkList
  1072. (net.Network)(0), // 16: v2ray.core.common.net.Network
  1073. (*routercommon.GeoSite)(nil), // 17: v2ray.core.app.router.routercommon.GeoSite
  1074. (*any.Any)(nil), // 18: google.protobuf.Any
  1075. }
  1076. var file_app_router_config_proto_depIdxs = []int32{
  1077. 10, // 0: v2ray.core.app.router.RoutingRule.domain:type_name -> v2ray.core.app.router.routercommon.Domain
  1078. 11, // 1: v2ray.core.app.router.RoutingRule.cidr:type_name -> v2ray.core.app.router.routercommon.CIDR
  1079. 12, // 2: v2ray.core.app.router.RoutingRule.geoip:type_name -> v2ray.core.app.router.routercommon.GeoIP
  1080. 13, // 3: v2ray.core.app.router.RoutingRule.port_range:type_name -> v2ray.core.common.net.PortRange
  1081. 14, // 4: v2ray.core.app.router.RoutingRule.port_list:type_name -> v2ray.core.common.net.PortList
  1082. 15, // 5: v2ray.core.app.router.RoutingRule.network_list:type_name -> v2ray.core.common.net.NetworkList
  1083. 16, // 6: v2ray.core.app.router.RoutingRule.networks:type_name -> v2ray.core.common.net.Network
  1084. 11, // 7: v2ray.core.app.router.RoutingRule.source_cidr:type_name -> v2ray.core.app.router.routercommon.CIDR
  1085. 12, // 8: v2ray.core.app.router.RoutingRule.source_geoip:type_name -> v2ray.core.app.router.routercommon.GeoIP
  1086. 14, // 9: v2ray.core.app.router.RoutingRule.source_port_list:type_name -> v2ray.core.common.net.PortList
  1087. 17, // 10: v2ray.core.app.router.RoutingRule.geo_domain:type_name -> v2ray.core.app.router.routercommon.GeoSite
  1088. 18, // 11: v2ray.core.app.router.BalancingRule.strategy_settings:type_name -> google.protobuf.Any
  1089. 3, // 12: v2ray.core.app.router.StrategyLeastLoadConfig.costs:type_name -> v2ray.core.app.router.StrategyWeight
  1090. 0, // 13: v2ray.core.app.router.Config.domain_strategy:type_name -> v2ray.core.app.router.DomainStrategy
  1091. 1, // 14: v2ray.core.app.router.Config.rule:type_name -> v2ray.core.app.router.RoutingRule
  1092. 2, // 15: v2ray.core.app.router.Config.balancing_rule:type_name -> v2ray.core.app.router.BalancingRule
  1093. 10, // 16: v2ray.core.app.router.SimplifiedRoutingRule.domain:type_name -> v2ray.core.app.router.routercommon.Domain
  1094. 12, // 17: v2ray.core.app.router.SimplifiedRoutingRule.geoip:type_name -> v2ray.core.app.router.routercommon.GeoIP
  1095. 15, // 18: v2ray.core.app.router.SimplifiedRoutingRule.networks:type_name -> v2ray.core.common.net.NetworkList
  1096. 12, // 19: v2ray.core.app.router.SimplifiedRoutingRule.source_geoip:type_name -> v2ray.core.app.router.routercommon.GeoIP
  1097. 17, // 20: v2ray.core.app.router.SimplifiedRoutingRule.geo_domain:type_name -> v2ray.core.app.router.routercommon.GeoSite
  1098. 0, // 21: v2ray.core.app.router.SimplifiedConfig.domain_strategy:type_name -> v2ray.core.app.router.DomainStrategy
  1099. 8, // 22: v2ray.core.app.router.SimplifiedConfig.rule:type_name -> v2ray.core.app.router.SimplifiedRoutingRule
  1100. 2, // 23: v2ray.core.app.router.SimplifiedConfig.balancing_rule:type_name -> v2ray.core.app.router.BalancingRule
  1101. 24, // [24:24] is the sub-list for method output_type
  1102. 24, // [24:24] is the sub-list for method input_type
  1103. 24, // [24:24] is the sub-list for extension type_name
  1104. 24, // [24:24] is the sub-list for extension extendee
  1105. 0, // [0:24] is the sub-list for field type_name
  1106. }
  1107. func init() { file_app_router_config_proto_init() }
  1108. func file_app_router_config_proto_init() {
  1109. if File_app_router_config_proto != nil {
  1110. return
  1111. }
  1112. if !protoimpl.UnsafeEnabled {
  1113. file_app_router_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1114. switch v := v.(*RoutingRule); i {
  1115. case 0:
  1116. return &v.state
  1117. case 1:
  1118. return &v.sizeCache
  1119. case 2:
  1120. return &v.unknownFields
  1121. default:
  1122. return nil
  1123. }
  1124. }
  1125. file_app_router_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1126. switch v := v.(*BalancingRule); i {
  1127. case 0:
  1128. return &v.state
  1129. case 1:
  1130. return &v.sizeCache
  1131. case 2:
  1132. return &v.unknownFields
  1133. default:
  1134. return nil
  1135. }
  1136. }
  1137. file_app_router_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1138. switch v := v.(*StrategyWeight); i {
  1139. case 0:
  1140. return &v.state
  1141. case 1:
  1142. return &v.sizeCache
  1143. case 2:
  1144. return &v.unknownFields
  1145. default:
  1146. return nil
  1147. }
  1148. }
  1149. file_app_router_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1150. switch v := v.(*StrategyRandomConfig); i {
  1151. case 0:
  1152. return &v.state
  1153. case 1:
  1154. return &v.sizeCache
  1155. case 2:
  1156. return &v.unknownFields
  1157. default:
  1158. return nil
  1159. }
  1160. }
  1161. file_app_router_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1162. switch v := v.(*StrategyLeastPingConfig); i {
  1163. case 0:
  1164. return &v.state
  1165. case 1:
  1166. return &v.sizeCache
  1167. case 2:
  1168. return &v.unknownFields
  1169. default:
  1170. return nil
  1171. }
  1172. }
  1173. file_app_router_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1174. switch v := v.(*StrategyLeastLoadConfig); i {
  1175. case 0:
  1176. return &v.state
  1177. case 1:
  1178. return &v.sizeCache
  1179. case 2:
  1180. return &v.unknownFields
  1181. default:
  1182. return nil
  1183. }
  1184. }
  1185. file_app_router_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1186. switch v := v.(*Config); i {
  1187. case 0:
  1188. return &v.state
  1189. case 1:
  1190. return &v.sizeCache
  1191. case 2:
  1192. return &v.unknownFields
  1193. default:
  1194. return nil
  1195. }
  1196. }
  1197. file_app_router_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1198. switch v := v.(*SimplifiedRoutingRule); i {
  1199. case 0:
  1200. return &v.state
  1201. case 1:
  1202. return &v.sizeCache
  1203. case 2:
  1204. return &v.unknownFields
  1205. default:
  1206. return nil
  1207. }
  1208. }
  1209. file_app_router_config_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1210. switch v := v.(*SimplifiedConfig); i {
  1211. case 0:
  1212. return &v.state
  1213. case 1:
  1214. return &v.sizeCache
  1215. case 2:
  1216. return &v.unknownFields
  1217. default:
  1218. return nil
  1219. }
  1220. }
  1221. }
  1222. file_app_router_config_proto_msgTypes[0].OneofWrappers = []interface{}{
  1223. (*RoutingRule_Tag)(nil),
  1224. (*RoutingRule_BalancingTag)(nil),
  1225. }
  1226. file_app_router_config_proto_msgTypes[7].OneofWrappers = []interface{}{
  1227. (*SimplifiedRoutingRule_Tag)(nil),
  1228. (*SimplifiedRoutingRule_BalancingTag)(nil),
  1229. }
  1230. type x struct{}
  1231. out := protoimpl.TypeBuilder{
  1232. File: protoimpl.DescBuilder{
  1233. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1234. RawDescriptor: file_app_router_config_proto_rawDesc,
  1235. NumEnums: 1,
  1236. NumMessages: 9,
  1237. NumExtensions: 0,
  1238. NumServices: 0,
  1239. },
  1240. GoTypes: file_app_router_config_proto_goTypes,
  1241. DependencyIndexes: file_app_router_config_proto_depIdxs,
  1242. EnumInfos: file_app_router_config_proto_enumTypes,
  1243. MessageInfos: file_app_router_config_proto_msgTypes,
  1244. }.Build()
  1245. File_app_router_config_proto = out.File
  1246. file_app_router_config_proto_rawDesc = nil
  1247. file_app_router_config_proto_goTypes = nil
  1248. file_app_router_config_proto_depIdxs = nil
  1249. }