config.pb.go 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.35.1
  4. // protoc v5.28.2
  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. // Resolve to IP if the domain doesn't match any rules.
  74. Config_IpIfNonMatch Config_DomainStrategy = 2
  75. // Resolve to IP if any rule requires IP matching.
  76. Config_IpOnDemand Config_DomainStrategy = 3
  77. )
  78. // Enum value maps for Config_DomainStrategy.
  79. var (
  80. Config_DomainStrategy_name = map[int32]string{
  81. 0: "AsIs",
  82. 2: "IpIfNonMatch",
  83. 3: "IpOnDemand",
  84. }
  85. Config_DomainStrategy_value = map[string]int32{
  86. "AsIs": 0,
  87. "IpIfNonMatch": 2,
  88. "IpOnDemand": 3,
  89. }
  90. )
  91. func (x Config_DomainStrategy) Enum() *Config_DomainStrategy {
  92. p := new(Config_DomainStrategy)
  93. *p = x
  94. return p
  95. }
  96. func (x Config_DomainStrategy) String() string {
  97. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  98. }
  99. func (Config_DomainStrategy) Descriptor() protoreflect.EnumDescriptor {
  100. return file_app_router_config_proto_enumTypes[1].Descriptor()
  101. }
  102. func (Config_DomainStrategy) Type() protoreflect.EnumType {
  103. return &file_app_router_config_proto_enumTypes[1]
  104. }
  105. func (x Config_DomainStrategy) Number() protoreflect.EnumNumber {
  106. return protoreflect.EnumNumber(x)
  107. }
  108. // Deprecated: Use Config_DomainStrategy.Descriptor instead.
  109. func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int) {
  110. return file_app_router_config_proto_rawDescGZIP(), []int{10, 0}
  111. }
  112. // Domain for routing decision.
  113. type Domain struct {
  114. state protoimpl.MessageState
  115. sizeCache protoimpl.SizeCache
  116. unknownFields protoimpl.UnknownFields
  117. // Domain matching type.
  118. Type Domain_Type `protobuf:"varint,1,opt,name=type,proto3,enum=xray.app.router.Domain_Type" json:"type,omitempty"`
  119. // Domain value.
  120. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  121. // Attributes of this domain. May be used for filtering.
  122. Attribute []*Domain_Attribute `protobuf:"bytes,3,rep,name=attribute,proto3" json:"attribute,omitempty"`
  123. }
  124. func (x *Domain) Reset() {
  125. *x = Domain{}
  126. mi := &file_app_router_config_proto_msgTypes[0]
  127. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  128. ms.StoreMessageInfo(mi)
  129. }
  130. func (x *Domain) String() string {
  131. return protoimpl.X.MessageStringOf(x)
  132. }
  133. func (*Domain) ProtoMessage() {}
  134. func (x *Domain) ProtoReflect() protoreflect.Message {
  135. mi := &file_app_router_config_proto_msgTypes[0]
  136. if x != nil {
  137. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  138. if ms.LoadMessageInfo() == nil {
  139. ms.StoreMessageInfo(mi)
  140. }
  141. return ms
  142. }
  143. return mi.MessageOf(x)
  144. }
  145. // Deprecated: Use Domain.ProtoReflect.Descriptor instead.
  146. func (*Domain) Descriptor() ([]byte, []int) {
  147. return file_app_router_config_proto_rawDescGZIP(), []int{0}
  148. }
  149. func (x *Domain) GetType() Domain_Type {
  150. if x != nil {
  151. return x.Type
  152. }
  153. return Domain_Plain
  154. }
  155. func (x *Domain) GetValue() string {
  156. if x != nil {
  157. return x.Value
  158. }
  159. return ""
  160. }
  161. func (x *Domain) GetAttribute() []*Domain_Attribute {
  162. if x != nil {
  163. return x.Attribute
  164. }
  165. return nil
  166. }
  167. // IP for routing decision, in CIDR form.
  168. type CIDR struct {
  169. state protoimpl.MessageState
  170. sizeCache protoimpl.SizeCache
  171. unknownFields protoimpl.UnknownFields
  172. // IP address, should be either 4 or 16 bytes.
  173. Ip []byte `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
  174. // Number of leading ones in the network mask.
  175. Prefix uint32 `protobuf:"varint,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
  176. }
  177. func (x *CIDR) Reset() {
  178. *x = CIDR{}
  179. mi := &file_app_router_config_proto_msgTypes[1]
  180. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  181. ms.StoreMessageInfo(mi)
  182. }
  183. func (x *CIDR) String() string {
  184. return protoimpl.X.MessageStringOf(x)
  185. }
  186. func (*CIDR) ProtoMessage() {}
  187. func (x *CIDR) ProtoReflect() protoreflect.Message {
  188. mi := &file_app_router_config_proto_msgTypes[1]
  189. if x != nil {
  190. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  191. if ms.LoadMessageInfo() == nil {
  192. ms.StoreMessageInfo(mi)
  193. }
  194. return ms
  195. }
  196. return mi.MessageOf(x)
  197. }
  198. // Deprecated: Use CIDR.ProtoReflect.Descriptor instead.
  199. func (*CIDR) Descriptor() ([]byte, []int) {
  200. return file_app_router_config_proto_rawDescGZIP(), []int{1}
  201. }
  202. func (x *CIDR) GetIp() []byte {
  203. if x != nil {
  204. return x.Ip
  205. }
  206. return nil
  207. }
  208. func (x *CIDR) GetPrefix() uint32 {
  209. if x != nil {
  210. return x.Prefix
  211. }
  212. return 0
  213. }
  214. type GeoIP struct {
  215. state protoimpl.MessageState
  216. sizeCache protoimpl.SizeCache
  217. unknownFields protoimpl.UnknownFields
  218. CountryCode string `protobuf:"bytes,1,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
  219. Cidr []*CIDR `protobuf:"bytes,2,rep,name=cidr,proto3" json:"cidr,omitempty"`
  220. ReverseMatch bool `protobuf:"varint,3,opt,name=reverse_match,json=reverseMatch,proto3" json:"reverse_match,omitempty"`
  221. }
  222. func (x *GeoIP) Reset() {
  223. *x = GeoIP{}
  224. mi := &file_app_router_config_proto_msgTypes[2]
  225. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  226. ms.StoreMessageInfo(mi)
  227. }
  228. func (x *GeoIP) String() string {
  229. return protoimpl.X.MessageStringOf(x)
  230. }
  231. func (*GeoIP) ProtoMessage() {}
  232. func (x *GeoIP) ProtoReflect() protoreflect.Message {
  233. mi := &file_app_router_config_proto_msgTypes[2]
  234. if x != nil {
  235. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  236. if ms.LoadMessageInfo() == nil {
  237. ms.StoreMessageInfo(mi)
  238. }
  239. return ms
  240. }
  241. return mi.MessageOf(x)
  242. }
  243. // Deprecated: Use GeoIP.ProtoReflect.Descriptor instead.
  244. func (*GeoIP) Descriptor() ([]byte, []int) {
  245. return file_app_router_config_proto_rawDescGZIP(), []int{2}
  246. }
  247. func (x *GeoIP) GetCountryCode() string {
  248. if x != nil {
  249. return x.CountryCode
  250. }
  251. return ""
  252. }
  253. func (x *GeoIP) GetCidr() []*CIDR {
  254. if x != nil {
  255. return x.Cidr
  256. }
  257. return nil
  258. }
  259. func (x *GeoIP) GetReverseMatch() bool {
  260. if x != nil {
  261. return x.ReverseMatch
  262. }
  263. return false
  264. }
  265. type GeoIPList struct {
  266. state protoimpl.MessageState
  267. sizeCache protoimpl.SizeCache
  268. unknownFields protoimpl.UnknownFields
  269. Entry []*GeoIP `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"`
  270. }
  271. func (x *GeoIPList) Reset() {
  272. *x = GeoIPList{}
  273. mi := &file_app_router_config_proto_msgTypes[3]
  274. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  275. ms.StoreMessageInfo(mi)
  276. }
  277. func (x *GeoIPList) String() string {
  278. return protoimpl.X.MessageStringOf(x)
  279. }
  280. func (*GeoIPList) ProtoMessage() {}
  281. func (x *GeoIPList) ProtoReflect() protoreflect.Message {
  282. mi := &file_app_router_config_proto_msgTypes[3]
  283. if x != nil {
  284. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  285. if ms.LoadMessageInfo() == nil {
  286. ms.StoreMessageInfo(mi)
  287. }
  288. return ms
  289. }
  290. return mi.MessageOf(x)
  291. }
  292. // Deprecated: Use GeoIPList.ProtoReflect.Descriptor instead.
  293. func (*GeoIPList) Descriptor() ([]byte, []int) {
  294. return file_app_router_config_proto_rawDescGZIP(), []int{3}
  295. }
  296. func (x *GeoIPList) GetEntry() []*GeoIP {
  297. if x != nil {
  298. return x.Entry
  299. }
  300. return nil
  301. }
  302. type GeoSite struct {
  303. state protoimpl.MessageState
  304. sizeCache protoimpl.SizeCache
  305. unknownFields protoimpl.UnknownFields
  306. CountryCode string `protobuf:"bytes,1,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
  307. Domain []*Domain `protobuf:"bytes,2,rep,name=domain,proto3" json:"domain,omitempty"`
  308. }
  309. func (x *GeoSite) Reset() {
  310. *x = GeoSite{}
  311. mi := &file_app_router_config_proto_msgTypes[4]
  312. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  313. ms.StoreMessageInfo(mi)
  314. }
  315. func (x *GeoSite) String() string {
  316. return protoimpl.X.MessageStringOf(x)
  317. }
  318. func (*GeoSite) ProtoMessage() {}
  319. func (x *GeoSite) ProtoReflect() protoreflect.Message {
  320. mi := &file_app_router_config_proto_msgTypes[4]
  321. if x != nil {
  322. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  323. if ms.LoadMessageInfo() == nil {
  324. ms.StoreMessageInfo(mi)
  325. }
  326. return ms
  327. }
  328. return mi.MessageOf(x)
  329. }
  330. // Deprecated: Use GeoSite.ProtoReflect.Descriptor instead.
  331. func (*GeoSite) Descriptor() ([]byte, []int) {
  332. return file_app_router_config_proto_rawDescGZIP(), []int{4}
  333. }
  334. func (x *GeoSite) GetCountryCode() string {
  335. if x != nil {
  336. return x.CountryCode
  337. }
  338. return ""
  339. }
  340. func (x *GeoSite) GetDomain() []*Domain {
  341. if x != nil {
  342. return x.Domain
  343. }
  344. return nil
  345. }
  346. type GeoSiteList struct {
  347. state protoimpl.MessageState
  348. sizeCache protoimpl.SizeCache
  349. unknownFields protoimpl.UnknownFields
  350. Entry []*GeoSite `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"`
  351. }
  352. func (x *GeoSiteList) Reset() {
  353. *x = GeoSiteList{}
  354. mi := &file_app_router_config_proto_msgTypes[5]
  355. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  356. ms.StoreMessageInfo(mi)
  357. }
  358. func (x *GeoSiteList) String() string {
  359. return protoimpl.X.MessageStringOf(x)
  360. }
  361. func (*GeoSiteList) ProtoMessage() {}
  362. func (x *GeoSiteList) ProtoReflect() protoreflect.Message {
  363. mi := &file_app_router_config_proto_msgTypes[5]
  364. if x != nil {
  365. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  366. if ms.LoadMessageInfo() == nil {
  367. ms.StoreMessageInfo(mi)
  368. }
  369. return ms
  370. }
  371. return mi.MessageOf(x)
  372. }
  373. // Deprecated: Use GeoSiteList.ProtoReflect.Descriptor instead.
  374. func (*GeoSiteList) Descriptor() ([]byte, []int) {
  375. return file_app_router_config_proto_rawDescGZIP(), []int{5}
  376. }
  377. func (x *GeoSiteList) GetEntry() []*GeoSite {
  378. if x != nil {
  379. return x.Entry
  380. }
  381. return nil
  382. }
  383. type RoutingRule struct {
  384. state protoimpl.MessageState
  385. sizeCache protoimpl.SizeCache
  386. unknownFields protoimpl.UnknownFields
  387. // Types that are assignable to TargetTag:
  388. //
  389. // *RoutingRule_Tag
  390. // *RoutingRule_BalancingTag
  391. TargetTag isRoutingRule_TargetTag `protobuf_oneof:"target_tag"`
  392. RuleTag string `protobuf:"bytes,19,opt,name=rule_tag,json=ruleTag,proto3" json:"rule_tag,omitempty"`
  393. // List of domains for target domain matching.
  394. Domain []*Domain `protobuf:"bytes,2,rep,name=domain,proto3" json:"domain,omitempty"`
  395. // List of GeoIPs for target IP address matching. If this entry exists, the
  396. // cidr above will have no effect. GeoIP fields with the same country code are
  397. // supposed to contain exactly same content. They will be merged during
  398. // runtime. For customized GeoIPs, please leave country code empty.
  399. Geoip []*GeoIP `protobuf:"bytes,10,rep,name=geoip,proto3" json:"geoip,omitempty"`
  400. // List of ports.
  401. PortList *net.PortList `protobuf:"bytes,14,opt,name=port_list,json=portList,proto3" json:"port_list,omitempty"`
  402. // List of networks for matching.
  403. Networks []net.Network `protobuf:"varint,13,rep,packed,name=networks,proto3,enum=xray.common.net.Network" json:"networks,omitempty"`
  404. // List of GeoIPs for source IP address matching. If this entry exists, the
  405. // source_cidr above will have no effect.
  406. SourceGeoip []*GeoIP `protobuf:"bytes,11,rep,name=source_geoip,json=sourceGeoip,proto3" json:"source_geoip,omitempty"`
  407. // List of ports for source port matching.
  408. SourcePortList *net.PortList `protobuf:"bytes,16,opt,name=source_port_list,json=sourcePortList,proto3" json:"source_port_list,omitempty"`
  409. UserEmail []string `protobuf:"bytes,7,rep,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"`
  410. InboundTag []string `protobuf:"bytes,8,rep,name=inbound_tag,json=inboundTag,proto3" json:"inbound_tag,omitempty"`
  411. Protocol []string `protobuf:"bytes,9,rep,name=protocol,proto3" json:"protocol,omitempty"`
  412. 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"`
  413. LocalGeoip []*GeoIP `protobuf:"bytes,17,rep,name=local_geoip,json=localGeoip,proto3" json:"local_geoip,omitempty"`
  414. LocalPortList *net.PortList `protobuf:"bytes,18,opt,name=local_port_list,json=localPortList,proto3" json:"local_port_list,omitempty"`
  415. VlessRouteList *net.PortList `protobuf:"bytes,20,opt,name=vless_route_list,json=vlessRouteList,proto3" json:"vless_route_list,omitempty"`
  416. Process []string `protobuf:"bytes,21,rep,name=process,proto3" json:"process,omitempty"`
  417. }
  418. func (x *RoutingRule) Reset() {
  419. *x = RoutingRule{}
  420. mi := &file_app_router_config_proto_msgTypes[6]
  421. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  422. ms.StoreMessageInfo(mi)
  423. }
  424. func (x *RoutingRule) String() string {
  425. return protoimpl.X.MessageStringOf(x)
  426. }
  427. func (*RoutingRule) ProtoMessage() {}
  428. func (x *RoutingRule) ProtoReflect() protoreflect.Message {
  429. mi := &file_app_router_config_proto_msgTypes[6]
  430. if x != nil {
  431. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  432. if ms.LoadMessageInfo() == nil {
  433. ms.StoreMessageInfo(mi)
  434. }
  435. return ms
  436. }
  437. return mi.MessageOf(x)
  438. }
  439. // Deprecated: Use RoutingRule.ProtoReflect.Descriptor instead.
  440. func (*RoutingRule) Descriptor() ([]byte, []int) {
  441. return file_app_router_config_proto_rawDescGZIP(), []int{6}
  442. }
  443. func (m *RoutingRule) GetTargetTag() isRoutingRule_TargetTag {
  444. if m != nil {
  445. return m.TargetTag
  446. }
  447. return nil
  448. }
  449. func (x *RoutingRule) GetTag() string {
  450. if x, ok := x.GetTargetTag().(*RoutingRule_Tag); ok {
  451. return x.Tag
  452. }
  453. return ""
  454. }
  455. func (x *RoutingRule) GetBalancingTag() string {
  456. if x, ok := x.GetTargetTag().(*RoutingRule_BalancingTag); ok {
  457. return x.BalancingTag
  458. }
  459. return ""
  460. }
  461. func (x *RoutingRule) GetRuleTag() string {
  462. if x != nil {
  463. return x.RuleTag
  464. }
  465. return ""
  466. }
  467. func (x *RoutingRule) GetDomain() []*Domain {
  468. if x != nil {
  469. return x.Domain
  470. }
  471. return nil
  472. }
  473. func (x *RoutingRule) GetGeoip() []*GeoIP {
  474. if x != nil {
  475. return x.Geoip
  476. }
  477. return nil
  478. }
  479. func (x *RoutingRule) GetPortList() *net.PortList {
  480. if x != nil {
  481. return x.PortList
  482. }
  483. return nil
  484. }
  485. func (x *RoutingRule) GetNetworks() []net.Network {
  486. if x != nil {
  487. return x.Networks
  488. }
  489. return nil
  490. }
  491. func (x *RoutingRule) GetSourceGeoip() []*GeoIP {
  492. if x != nil {
  493. return x.SourceGeoip
  494. }
  495. return nil
  496. }
  497. func (x *RoutingRule) GetSourcePortList() *net.PortList {
  498. if x != nil {
  499. return x.SourcePortList
  500. }
  501. return nil
  502. }
  503. func (x *RoutingRule) GetUserEmail() []string {
  504. if x != nil {
  505. return x.UserEmail
  506. }
  507. return nil
  508. }
  509. func (x *RoutingRule) GetInboundTag() []string {
  510. if x != nil {
  511. return x.InboundTag
  512. }
  513. return nil
  514. }
  515. func (x *RoutingRule) GetProtocol() []string {
  516. if x != nil {
  517. return x.Protocol
  518. }
  519. return nil
  520. }
  521. func (x *RoutingRule) GetAttributes() map[string]string {
  522. if x != nil {
  523. return x.Attributes
  524. }
  525. return nil
  526. }
  527. func (x *RoutingRule) GetLocalGeoip() []*GeoIP {
  528. if x != nil {
  529. return x.LocalGeoip
  530. }
  531. return nil
  532. }
  533. func (x *RoutingRule) GetLocalPortList() *net.PortList {
  534. if x != nil {
  535. return x.LocalPortList
  536. }
  537. return nil
  538. }
  539. func (x *RoutingRule) GetVlessRouteList() *net.PortList {
  540. if x != nil {
  541. return x.VlessRouteList
  542. }
  543. return nil
  544. }
  545. func (x *RoutingRule) GetProcess() []string {
  546. if x != nil {
  547. return x.Process
  548. }
  549. return nil
  550. }
  551. type isRoutingRule_TargetTag interface {
  552. isRoutingRule_TargetTag()
  553. }
  554. type RoutingRule_Tag struct {
  555. // Tag of outbound that this rule is pointing to.
  556. Tag string `protobuf:"bytes,1,opt,name=tag,proto3,oneof"`
  557. }
  558. type RoutingRule_BalancingTag struct {
  559. // Tag of routing balancer.
  560. BalancingTag string `protobuf:"bytes,12,opt,name=balancing_tag,json=balancingTag,proto3,oneof"`
  561. }
  562. func (*RoutingRule_Tag) isRoutingRule_TargetTag() {}
  563. func (*RoutingRule_BalancingTag) isRoutingRule_TargetTag() {}
  564. type BalancingRule struct {
  565. state protoimpl.MessageState
  566. sizeCache protoimpl.SizeCache
  567. unknownFields protoimpl.UnknownFields
  568. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  569. OutboundSelector []string `protobuf:"bytes,2,rep,name=outbound_selector,json=outboundSelector,proto3" json:"outbound_selector,omitempty"`
  570. Strategy string `protobuf:"bytes,3,opt,name=strategy,proto3" json:"strategy,omitempty"`
  571. StrategySettings *serial.TypedMessage `protobuf:"bytes,4,opt,name=strategy_settings,json=strategySettings,proto3" json:"strategy_settings,omitempty"`
  572. FallbackTag string `protobuf:"bytes,5,opt,name=fallback_tag,json=fallbackTag,proto3" json:"fallback_tag,omitempty"`
  573. }
  574. func (x *BalancingRule) Reset() {
  575. *x = BalancingRule{}
  576. mi := &file_app_router_config_proto_msgTypes[7]
  577. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  578. ms.StoreMessageInfo(mi)
  579. }
  580. func (x *BalancingRule) String() string {
  581. return protoimpl.X.MessageStringOf(x)
  582. }
  583. func (*BalancingRule) ProtoMessage() {}
  584. func (x *BalancingRule) ProtoReflect() protoreflect.Message {
  585. mi := &file_app_router_config_proto_msgTypes[7]
  586. if x != nil {
  587. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  588. if ms.LoadMessageInfo() == nil {
  589. ms.StoreMessageInfo(mi)
  590. }
  591. return ms
  592. }
  593. return mi.MessageOf(x)
  594. }
  595. // Deprecated: Use BalancingRule.ProtoReflect.Descriptor instead.
  596. func (*BalancingRule) Descriptor() ([]byte, []int) {
  597. return file_app_router_config_proto_rawDescGZIP(), []int{7}
  598. }
  599. func (x *BalancingRule) GetTag() string {
  600. if x != nil {
  601. return x.Tag
  602. }
  603. return ""
  604. }
  605. func (x *BalancingRule) GetOutboundSelector() []string {
  606. if x != nil {
  607. return x.OutboundSelector
  608. }
  609. return nil
  610. }
  611. func (x *BalancingRule) GetStrategy() string {
  612. if x != nil {
  613. return x.Strategy
  614. }
  615. return ""
  616. }
  617. func (x *BalancingRule) GetStrategySettings() *serial.TypedMessage {
  618. if x != nil {
  619. return x.StrategySettings
  620. }
  621. return nil
  622. }
  623. func (x *BalancingRule) GetFallbackTag() string {
  624. if x != nil {
  625. return x.FallbackTag
  626. }
  627. return ""
  628. }
  629. type StrategyWeight struct {
  630. state protoimpl.MessageState
  631. sizeCache protoimpl.SizeCache
  632. unknownFields protoimpl.UnknownFields
  633. Regexp bool `protobuf:"varint,1,opt,name=regexp,proto3" json:"regexp,omitempty"`
  634. Match string `protobuf:"bytes,2,opt,name=match,proto3" json:"match,omitempty"`
  635. Value float32 `protobuf:"fixed32,3,opt,name=value,proto3" json:"value,omitempty"`
  636. }
  637. func (x *StrategyWeight) Reset() {
  638. *x = StrategyWeight{}
  639. mi := &file_app_router_config_proto_msgTypes[8]
  640. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  641. ms.StoreMessageInfo(mi)
  642. }
  643. func (x *StrategyWeight) String() string {
  644. return protoimpl.X.MessageStringOf(x)
  645. }
  646. func (*StrategyWeight) ProtoMessage() {}
  647. func (x *StrategyWeight) ProtoReflect() protoreflect.Message {
  648. mi := &file_app_router_config_proto_msgTypes[8]
  649. if x != nil {
  650. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  651. if ms.LoadMessageInfo() == nil {
  652. ms.StoreMessageInfo(mi)
  653. }
  654. return ms
  655. }
  656. return mi.MessageOf(x)
  657. }
  658. // Deprecated: Use StrategyWeight.ProtoReflect.Descriptor instead.
  659. func (*StrategyWeight) Descriptor() ([]byte, []int) {
  660. return file_app_router_config_proto_rawDescGZIP(), []int{8}
  661. }
  662. func (x *StrategyWeight) GetRegexp() bool {
  663. if x != nil {
  664. return x.Regexp
  665. }
  666. return false
  667. }
  668. func (x *StrategyWeight) GetMatch() string {
  669. if x != nil {
  670. return x.Match
  671. }
  672. return ""
  673. }
  674. func (x *StrategyWeight) GetValue() float32 {
  675. if x != nil {
  676. return x.Value
  677. }
  678. return 0
  679. }
  680. type StrategyLeastLoadConfig struct {
  681. state protoimpl.MessageState
  682. sizeCache protoimpl.SizeCache
  683. unknownFields protoimpl.UnknownFields
  684. // weight settings
  685. Costs []*StrategyWeight `protobuf:"bytes,2,rep,name=costs,proto3" json:"costs,omitempty"`
  686. // RTT baselines for selecting, int64 values of time.Duration
  687. Baselines []int64 `protobuf:"varint,3,rep,packed,name=baselines,proto3" json:"baselines,omitempty"`
  688. // expected nodes count to select
  689. Expected int32 `protobuf:"varint,4,opt,name=expected,proto3" json:"expected,omitempty"`
  690. // max acceptable rtt, filter away high delay nodes. default 0
  691. MaxRTT int64 `protobuf:"varint,5,opt,name=maxRTT,proto3" json:"maxRTT,omitempty"`
  692. // acceptable failure rate
  693. Tolerance float32 `protobuf:"fixed32,6,opt,name=tolerance,proto3" json:"tolerance,omitempty"`
  694. }
  695. func (x *StrategyLeastLoadConfig) Reset() {
  696. *x = StrategyLeastLoadConfig{}
  697. mi := &file_app_router_config_proto_msgTypes[9]
  698. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  699. ms.StoreMessageInfo(mi)
  700. }
  701. func (x *StrategyLeastLoadConfig) String() string {
  702. return protoimpl.X.MessageStringOf(x)
  703. }
  704. func (*StrategyLeastLoadConfig) ProtoMessage() {}
  705. func (x *StrategyLeastLoadConfig) ProtoReflect() protoreflect.Message {
  706. mi := &file_app_router_config_proto_msgTypes[9]
  707. if x != nil {
  708. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  709. if ms.LoadMessageInfo() == nil {
  710. ms.StoreMessageInfo(mi)
  711. }
  712. return ms
  713. }
  714. return mi.MessageOf(x)
  715. }
  716. // Deprecated: Use StrategyLeastLoadConfig.ProtoReflect.Descriptor instead.
  717. func (*StrategyLeastLoadConfig) Descriptor() ([]byte, []int) {
  718. return file_app_router_config_proto_rawDescGZIP(), []int{9}
  719. }
  720. func (x *StrategyLeastLoadConfig) GetCosts() []*StrategyWeight {
  721. if x != nil {
  722. return x.Costs
  723. }
  724. return nil
  725. }
  726. func (x *StrategyLeastLoadConfig) GetBaselines() []int64 {
  727. if x != nil {
  728. return x.Baselines
  729. }
  730. return nil
  731. }
  732. func (x *StrategyLeastLoadConfig) GetExpected() int32 {
  733. if x != nil {
  734. return x.Expected
  735. }
  736. return 0
  737. }
  738. func (x *StrategyLeastLoadConfig) GetMaxRTT() int64 {
  739. if x != nil {
  740. return x.MaxRTT
  741. }
  742. return 0
  743. }
  744. func (x *StrategyLeastLoadConfig) GetTolerance() float32 {
  745. if x != nil {
  746. return x.Tolerance
  747. }
  748. return 0
  749. }
  750. type Config struct {
  751. state protoimpl.MessageState
  752. sizeCache protoimpl.SizeCache
  753. unknownFields protoimpl.UnknownFields
  754. DomainStrategy Config_DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=xray.app.router.Config_DomainStrategy" json:"domain_strategy,omitempty"`
  755. Rule []*RoutingRule `protobuf:"bytes,2,rep,name=rule,proto3" json:"rule,omitempty"`
  756. BalancingRule []*BalancingRule `protobuf:"bytes,3,rep,name=balancing_rule,json=balancingRule,proto3" json:"balancing_rule,omitempty"`
  757. }
  758. func (x *Config) Reset() {
  759. *x = Config{}
  760. mi := &file_app_router_config_proto_msgTypes[10]
  761. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  762. ms.StoreMessageInfo(mi)
  763. }
  764. func (x *Config) String() string {
  765. return protoimpl.X.MessageStringOf(x)
  766. }
  767. func (*Config) ProtoMessage() {}
  768. func (x *Config) ProtoReflect() protoreflect.Message {
  769. mi := &file_app_router_config_proto_msgTypes[10]
  770. if x != nil {
  771. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  772. if ms.LoadMessageInfo() == nil {
  773. ms.StoreMessageInfo(mi)
  774. }
  775. return ms
  776. }
  777. return mi.MessageOf(x)
  778. }
  779. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  780. func (*Config) Descriptor() ([]byte, []int) {
  781. return file_app_router_config_proto_rawDescGZIP(), []int{10}
  782. }
  783. func (x *Config) GetDomainStrategy() Config_DomainStrategy {
  784. if x != nil {
  785. return x.DomainStrategy
  786. }
  787. return Config_AsIs
  788. }
  789. func (x *Config) GetRule() []*RoutingRule {
  790. if x != nil {
  791. return x.Rule
  792. }
  793. return nil
  794. }
  795. func (x *Config) GetBalancingRule() []*BalancingRule {
  796. if x != nil {
  797. return x.BalancingRule
  798. }
  799. return nil
  800. }
  801. type Domain_Attribute struct {
  802. state protoimpl.MessageState
  803. sizeCache protoimpl.SizeCache
  804. unknownFields protoimpl.UnknownFields
  805. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  806. // Types that are assignable to TypedValue:
  807. //
  808. // *Domain_Attribute_BoolValue
  809. // *Domain_Attribute_IntValue
  810. TypedValue isDomain_Attribute_TypedValue `protobuf_oneof:"typed_value"`
  811. }
  812. func (x *Domain_Attribute) Reset() {
  813. *x = Domain_Attribute{}
  814. mi := &file_app_router_config_proto_msgTypes[11]
  815. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  816. ms.StoreMessageInfo(mi)
  817. }
  818. func (x *Domain_Attribute) String() string {
  819. return protoimpl.X.MessageStringOf(x)
  820. }
  821. func (*Domain_Attribute) ProtoMessage() {}
  822. func (x *Domain_Attribute) ProtoReflect() protoreflect.Message {
  823. mi := &file_app_router_config_proto_msgTypes[11]
  824. if x != nil {
  825. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  826. if ms.LoadMessageInfo() == nil {
  827. ms.StoreMessageInfo(mi)
  828. }
  829. return ms
  830. }
  831. return mi.MessageOf(x)
  832. }
  833. // Deprecated: Use Domain_Attribute.ProtoReflect.Descriptor instead.
  834. func (*Domain_Attribute) Descriptor() ([]byte, []int) {
  835. return file_app_router_config_proto_rawDescGZIP(), []int{0, 0}
  836. }
  837. func (x *Domain_Attribute) GetKey() string {
  838. if x != nil {
  839. return x.Key
  840. }
  841. return ""
  842. }
  843. func (m *Domain_Attribute) GetTypedValue() isDomain_Attribute_TypedValue {
  844. if m != nil {
  845. return m.TypedValue
  846. }
  847. return nil
  848. }
  849. func (x *Domain_Attribute) GetBoolValue() bool {
  850. if x, ok := x.GetTypedValue().(*Domain_Attribute_BoolValue); ok {
  851. return x.BoolValue
  852. }
  853. return false
  854. }
  855. func (x *Domain_Attribute) GetIntValue() int64 {
  856. if x, ok := x.GetTypedValue().(*Domain_Attribute_IntValue); ok {
  857. return x.IntValue
  858. }
  859. return 0
  860. }
  861. type isDomain_Attribute_TypedValue interface {
  862. isDomain_Attribute_TypedValue()
  863. }
  864. type Domain_Attribute_BoolValue struct {
  865. BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
  866. }
  867. type Domain_Attribute_IntValue struct {
  868. IntValue int64 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof"`
  869. }
  870. func (*Domain_Attribute_BoolValue) isDomain_Attribute_TypedValue() {}
  871. func (*Domain_Attribute_IntValue) isDomain_Attribute_TypedValue() {}
  872. var File_app_router_config_proto protoreflect.FileDescriptor
  873. var file_app_router_config_proto_rawDesc = []byte{
  874. 0x0a, 0x17, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e,
  875. 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x78, 0x72, 0x61, 0x79, 0x2e,
  876. 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d,
  877. 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f,
  878. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x63,
  879. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70,
  880. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74,
  881. 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb3,
  882. 0x02, 0x0a, 0x06, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x30, 0x0a, 0x04, 0x74, 0x79, 0x70,
  883. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61,
  884. 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  885. 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76,
  886. 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
  887. 0x65, 0x12, 0x3f, 0x0a, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x18, 0x03,
  888. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  889. 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x41, 0x74,
  890. 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75,
  891. 0x74, 0x65, 0x1a, 0x6c, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12,
  892. 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
  893. 0x79, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
  894. 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c,
  895. 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
  896. 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75,
  897. 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
  898. 0x22, 0x32, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x6c, 0x61, 0x69,
  899. 0x6e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x65, 0x67, 0x65, 0x78, 0x10, 0x01, 0x12, 0x0a,
  900. 0x0a, 0x06, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x75,
  901. 0x6c, 0x6c, 0x10, 0x03, 0x22, 0x2e, 0x0a, 0x04, 0x43, 0x49, 0x44, 0x52, 0x12, 0x0e, 0x0a, 0x02,
  902. 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x70, 0x12, 0x16, 0x0a, 0x06,
  903. 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x70, 0x72,
  904. 0x65, 0x66, 0x69, 0x78, 0x22, 0x7a, 0x0a, 0x05, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x12, 0x21, 0x0a,
  905. 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
  906. 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65,
  907. 0x12, 0x29, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15,
  908. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  909. 0x2e, 0x43, 0x49, 0x44, 0x52, 0x52, 0x04, 0x63, 0x69, 0x64, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x72,
  910. 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01,
  911. 0x28, 0x08, 0x52, 0x0c, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68,
  912. 0x22, 0x39, 0x0a, 0x09, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2c, 0x0a,
  913. 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x78,
  914. 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47,
  915. 0x65, 0x6f, 0x49, 0x50, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x5d, 0x0a, 0x07, 0x47,
  916. 0x65, 0x6f, 0x53, 0x69, 0x74, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72,
  917. 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f,
  918. 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x64, 0x6f, 0x6d,
  919. 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x78, 0x72, 0x61, 0x79,
  920. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61,
  921. 0x69, 0x6e, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x3d, 0x0a, 0x0b, 0x47, 0x65,
  922. 0x6f, 0x53, 0x69, 0x74, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x65, 0x6e, 0x74,
  923. 0x72, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
  924. 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x53, 0x69,
  925. 0x74, 0x65, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x82, 0x07, 0x0a, 0x0b, 0x52, 0x6f,
  926. 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x03, 0x74, 0x61, 0x67,
  927. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x25, 0x0a,
  928. 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x0c,
  929. 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e,
  930. 0x67, 0x54, 0x61, 0x67, 0x12, 0x19, 0x0a, 0x08, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x67,
  931. 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x54, 0x61, 0x67, 0x12,
  932. 0x2f, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
  933. 0x17, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
  934. 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  935. 0x12, 0x2c, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32,
  936. 0x16, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
  937. 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x36,
  938. 0x0a, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28,
  939. 0x0b, 0x32, 0x19, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  940. 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x70, 0x6f,
  941. 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
  942. 0x6b, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
  943. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f,
  944. 0x72, 0x6b, 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12, 0x39, 0x0a, 0x0c,
  945. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x0b, 0x20, 0x03,
  946. 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f,
  947. 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72,
  948. 0x63, 0x65, 0x47, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x43, 0x0a, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63,
  949. 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28,
  950. 0x0b, 0x32, 0x19, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  951. 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0e, 0x73, 0x6f,
  952. 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a,
  953. 0x75, 0x73, 0x65, 0x72, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09,
  954. 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x69,
  955. 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09,
  956. 0x52, 0x0a, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x12, 0x1a, 0x0a, 0x08,
  957. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08,
  958. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x4c, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72,
  959. 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x78,
  960. 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x52,
  961. 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69,
  962. 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72,
  963. 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f,
  964. 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x11, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x78, 0x72,
  965. 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65,
  966. 0x6f, 0x49, 0x50, 0x52, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x47, 0x65, 0x6f, 0x69, 0x70, 0x12,
  967. 0x41, 0x0a, 0x0f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69,
  968. 0x73, 0x74, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
  969. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x4c,
  970. 0x69, 0x73, 0x74, 0x52, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69,
  971. 0x73, 0x74, 0x12, 0x43, 0x0a, 0x10, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x6f, 0x75, 0x74,
  972. 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x78,
  973. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50,
  974. 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0e, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x52, 0x6f,
  975. 0x75, 0x74, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x63, 0x65,
  976. 0x73, 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73,
  977. 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45,
  978. 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
  979. 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
  980. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
  981. 0x42, 0x0c, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x61, 0x67, 0x22, 0xdc,
  982. 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65,
  983. 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74,
  984. 0x61, 0x67, 0x12, 0x2b, 0x0a, 0x11, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x73,
  985. 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x6f,
  986. 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12,
  987. 0x1a, 0x0a, 0x08, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28,
  988. 0x09, 0x52, 0x08, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x4d, 0x0a, 0x11, 0x73,
  989. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
  990. 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  991. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65,
  992. 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65,
  993. 0x67, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x61,
  994. 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
  995. 0x52, 0x0b, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x54, 0x61, 0x67, 0x22, 0x54, 0x0a,
  996. 0x0e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12,
  997. 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52,
  998. 0x06, 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68,
  999. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x14, 0x0a,
  1000. 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x76, 0x61,
  1001. 0x6c, 0x75, 0x65, 0x22, 0xc0, 0x01, 0x0a, 0x17, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  1002. 0x4c, 0x65, 0x61, 0x73, 0x74, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  1003. 0x35, 0x0a, 0x05, 0x63, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f,
  1004. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  1005. 0x2e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52,
  1006. 0x05, 0x63, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69,
  1007. 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65, 0x6c,
  1008. 0x69, 0x6e, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64,
  1009. 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64,
  1010. 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x78, 0x52, 0x54, 0x54, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
  1011. 0x52, 0x06, 0x6d, 0x61, 0x78, 0x52, 0x54, 0x54, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x6f, 0x6c, 0x65,
  1012. 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x74, 0x6f, 0x6c,
  1013. 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x90, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  1014. 0x67, 0x12, 0x4f, 0x0a, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61,
  1015. 0x74, 0x65, 0x67, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x78, 0x72, 0x61,
  1016. 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e,
  1017. 0x66, 0x69, 0x67, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65,
  1018. 0x67, 0x79, 0x52, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65,
  1019. 0x67, 0x79, 0x12, 0x30, 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
  1020. 0x32, 0x1c, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74,
  1021. 0x65, 0x72, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x04,
  1022. 0x72, 0x75, 0x6c, 0x65, 0x12, 0x45, 0x0a, 0x0e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e,
  1023. 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x78,
  1024. 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x42,
  1025. 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x62, 0x61,
  1026. 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x22, 0x3c, 0x0a, 0x0e, 0x44,
  1027. 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x08, 0x0a,
  1028. 0x04, 0x41, 0x73, 0x49, 0x73, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x70, 0x49, 0x66, 0x4e,
  1029. 0x6f, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x70, 0x4f,
  1030. 0x6e, 0x44, 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x10, 0x03, 0x42, 0x4f, 0x0a, 0x13, 0x63, 0x6f, 0x6d,
  1031. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  1032. 0x50, 0x01, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78,
  1033. 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70,
  1034. 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0xaa, 0x02, 0x0f, 0x58, 0x72, 0x61, 0x79, 0x2e,
  1035. 0x41, 0x70, 0x70, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  1036. 0x6f, 0x33,
  1037. }
  1038. var (
  1039. file_app_router_config_proto_rawDescOnce sync.Once
  1040. file_app_router_config_proto_rawDescData = file_app_router_config_proto_rawDesc
  1041. )
  1042. func file_app_router_config_proto_rawDescGZIP() []byte {
  1043. file_app_router_config_proto_rawDescOnce.Do(func() {
  1044. file_app_router_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_router_config_proto_rawDescData)
  1045. })
  1046. return file_app_router_config_proto_rawDescData
  1047. }
  1048. var file_app_router_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  1049. var file_app_router_config_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
  1050. var file_app_router_config_proto_goTypes = []any{
  1051. (Domain_Type)(0), // 0: xray.app.router.Domain.Type
  1052. (Config_DomainStrategy)(0), // 1: xray.app.router.Config.DomainStrategy
  1053. (*Domain)(nil), // 2: xray.app.router.Domain
  1054. (*CIDR)(nil), // 3: xray.app.router.CIDR
  1055. (*GeoIP)(nil), // 4: xray.app.router.GeoIP
  1056. (*GeoIPList)(nil), // 5: xray.app.router.GeoIPList
  1057. (*GeoSite)(nil), // 6: xray.app.router.GeoSite
  1058. (*GeoSiteList)(nil), // 7: xray.app.router.GeoSiteList
  1059. (*RoutingRule)(nil), // 8: xray.app.router.RoutingRule
  1060. (*BalancingRule)(nil), // 9: xray.app.router.BalancingRule
  1061. (*StrategyWeight)(nil), // 10: xray.app.router.StrategyWeight
  1062. (*StrategyLeastLoadConfig)(nil), // 11: xray.app.router.StrategyLeastLoadConfig
  1063. (*Config)(nil), // 12: xray.app.router.Config
  1064. (*Domain_Attribute)(nil), // 13: xray.app.router.Domain.Attribute
  1065. nil, // 14: xray.app.router.RoutingRule.AttributesEntry
  1066. (*net.PortList)(nil), // 15: xray.common.net.PortList
  1067. (net.Network)(0), // 16: xray.common.net.Network
  1068. (*serial.TypedMessage)(nil), // 17: xray.common.serial.TypedMessage
  1069. }
  1070. var file_app_router_config_proto_depIdxs = []int32{
  1071. 0, // 0: xray.app.router.Domain.type:type_name -> xray.app.router.Domain.Type
  1072. 13, // 1: xray.app.router.Domain.attribute:type_name -> xray.app.router.Domain.Attribute
  1073. 3, // 2: xray.app.router.GeoIP.cidr:type_name -> xray.app.router.CIDR
  1074. 4, // 3: xray.app.router.GeoIPList.entry:type_name -> xray.app.router.GeoIP
  1075. 2, // 4: xray.app.router.GeoSite.domain:type_name -> xray.app.router.Domain
  1076. 6, // 5: xray.app.router.GeoSiteList.entry:type_name -> xray.app.router.GeoSite
  1077. 2, // 6: xray.app.router.RoutingRule.domain:type_name -> xray.app.router.Domain
  1078. 4, // 7: xray.app.router.RoutingRule.geoip:type_name -> xray.app.router.GeoIP
  1079. 15, // 8: xray.app.router.RoutingRule.port_list:type_name -> xray.common.net.PortList
  1080. 16, // 9: xray.app.router.RoutingRule.networks:type_name -> xray.common.net.Network
  1081. 4, // 10: xray.app.router.RoutingRule.source_geoip:type_name -> xray.app.router.GeoIP
  1082. 15, // 11: xray.app.router.RoutingRule.source_port_list:type_name -> xray.common.net.PortList
  1083. 14, // 12: xray.app.router.RoutingRule.attributes:type_name -> xray.app.router.RoutingRule.AttributesEntry
  1084. 4, // 13: xray.app.router.RoutingRule.local_geoip:type_name -> xray.app.router.GeoIP
  1085. 15, // 14: xray.app.router.RoutingRule.local_port_list:type_name -> xray.common.net.PortList
  1086. 15, // 15: xray.app.router.RoutingRule.vless_route_list:type_name -> xray.common.net.PortList
  1087. 17, // 16: xray.app.router.BalancingRule.strategy_settings:type_name -> xray.common.serial.TypedMessage
  1088. 10, // 17: xray.app.router.StrategyLeastLoadConfig.costs:type_name -> xray.app.router.StrategyWeight
  1089. 1, // 18: xray.app.router.Config.domain_strategy:type_name -> xray.app.router.Config.DomainStrategy
  1090. 8, // 19: xray.app.router.Config.rule:type_name -> xray.app.router.RoutingRule
  1091. 9, // 20: xray.app.router.Config.balancing_rule:type_name -> xray.app.router.BalancingRule
  1092. 21, // [21:21] is the sub-list for method output_type
  1093. 21, // [21:21] is the sub-list for method input_type
  1094. 21, // [21:21] is the sub-list for extension type_name
  1095. 21, // [21:21] is the sub-list for extension extendee
  1096. 0, // [0:21] is the sub-list for field type_name
  1097. }
  1098. func init() { file_app_router_config_proto_init() }
  1099. func file_app_router_config_proto_init() {
  1100. if File_app_router_config_proto != nil {
  1101. return
  1102. }
  1103. file_app_router_config_proto_msgTypes[6].OneofWrappers = []any{
  1104. (*RoutingRule_Tag)(nil),
  1105. (*RoutingRule_BalancingTag)(nil),
  1106. }
  1107. file_app_router_config_proto_msgTypes[11].OneofWrappers = []any{
  1108. (*Domain_Attribute_BoolValue)(nil),
  1109. (*Domain_Attribute_IntValue)(nil),
  1110. }
  1111. type x struct{}
  1112. out := protoimpl.TypeBuilder{
  1113. File: protoimpl.DescBuilder{
  1114. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1115. RawDescriptor: file_app_router_config_proto_rawDesc,
  1116. NumEnums: 2,
  1117. NumMessages: 13,
  1118. NumExtensions: 0,
  1119. NumServices: 0,
  1120. },
  1121. GoTypes: file_app_router_config_proto_goTypes,
  1122. DependencyIndexes: file_app_router_config_proto_depIdxs,
  1123. EnumInfos: file_app_router_config_proto_enumTypes,
  1124. MessageInfos: file_app_router_config_proto_msgTypes,
  1125. }.Build()
  1126. File_app_router_config_proto = out.File
  1127. file_app_router_config_proto_rawDesc = nil
  1128. file_app_router_config_proto_goTypes = nil
  1129. file_app_router_config_proto_depIdxs = nil
  1130. }