config.pb.go 52 KB

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