config.pb.go 47 KB

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