config.pb.go 52 KB

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