config.pb.go 55 KB

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