config.pb.go 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570
  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. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. anypb "google.golang.org/protobuf/types/known/anypb"
  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_RootDomain 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: "RootDomain",
  39. 3: "Full",
  40. }
  41. Domain_Type_value = map[string]int32{
  42. "Plain": 0,
  43. "Regex": 1,
  44. "RootDomain": 2,
  45. "Full": 3,
  46. }
  47. )
  48. func (x Domain_Type) Enum() *Domain_Type {
  49. p := new(Domain_Type)
  50. *p = x
  51. return p
  52. }
  53. func (x Domain_Type) String() string {
  54. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  55. }
  56. func (Domain_Type) Descriptor() protoreflect.EnumDescriptor {
  57. return file_app_router_config_proto_enumTypes[0].Descriptor()
  58. }
  59. func (Domain_Type) Type() protoreflect.EnumType {
  60. return &file_app_router_config_proto_enumTypes[0]
  61. }
  62. func (x Domain_Type) Number() protoreflect.EnumNumber {
  63. return protoreflect.EnumNumber(x)
  64. }
  65. // Deprecated: Use Domain_Type.Descriptor instead.
  66. func (Domain_Type) EnumDescriptor() ([]byte, []int) {
  67. return file_app_router_config_proto_rawDescGZIP(), []int{0, 0}
  68. }
  69. type Config_DomainStrategy int32
  70. const (
  71. // Use domain as is.
  72. Config_AsIs Config_DomainStrategy = 0
  73. // Always resolve IP for domains.
  74. Config_UseIp Config_DomainStrategy = 1
  75. // Resolve to IP if the domain doesn't match any rules.
  76. Config_IpIfNonMatch Config_DomainStrategy = 2
  77. // Resolve to IP if any rule requires IP matching.
  78. Config_IpOnDemand Config_DomainStrategy = 3
  79. )
  80. // Enum value maps for Config_DomainStrategy.
  81. var (
  82. Config_DomainStrategy_name = map[int32]string{
  83. 0: "AsIs",
  84. 1: "UseIp",
  85. 2: "IpIfNonMatch",
  86. 3: "IpOnDemand",
  87. }
  88. Config_DomainStrategy_value = map[string]int32{
  89. "AsIs": 0,
  90. "UseIp": 1,
  91. "IpIfNonMatch": 2,
  92. "IpOnDemand": 3,
  93. }
  94. )
  95. func (x Config_DomainStrategy) Enum() *Config_DomainStrategy {
  96. p := new(Config_DomainStrategy)
  97. *p = x
  98. return p
  99. }
  100. func (x Config_DomainStrategy) String() string {
  101. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  102. }
  103. func (Config_DomainStrategy) Descriptor() protoreflect.EnumDescriptor {
  104. return file_app_router_config_proto_enumTypes[1].Descriptor()
  105. }
  106. func (Config_DomainStrategy) Type() protoreflect.EnumType {
  107. return &file_app_router_config_proto_enumTypes[1]
  108. }
  109. func (x Config_DomainStrategy) Number() protoreflect.EnumNumber {
  110. return protoreflect.EnumNumber(x)
  111. }
  112. // Deprecated: Use Config_DomainStrategy.Descriptor instead.
  113. func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int) {
  114. return file_app_router_config_proto_rawDescGZIP(), []int{11, 0}
  115. }
  116. // Domain for routing decision.
  117. type Domain struct {
  118. state protoimpl.MessageState
  119. sizeCache protoimpl.SizeCache
  120. unknownFields protoimpl.UnknownFields
  121. // Domain matching type.
  122. Type Domain_Type `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.router.Domain_Type" json:"type,omitempty"`
  123. // Domain value.
  124. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  125. // Attributes of this domain. May be used for filtering.
  126. Attribute []*Domain_Attribute `protobuf:"bytes,3,rep,name=attribute,proto3" json:"attribute,omitempty"`
  127. }
  128. func (x *Domain) Reset() {
  129. *x = Domain{}
  130. if protoimpl.UnsafeEnabled {
  131. mi := &file_app_router_config_proto_msgTypes[0]
  132. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  133. ms.StoreMessageInfo(mi)
  134. }
  135. }
  136. func (x *Domain) String() string {
  137. return protoimpl.X.MessageStringOf(x)
  138. }
  139. func (*Domain) ProtoMessage() {}
  140. func (x *Domain) ProtoReflect() protoreflect.Message {
  141. mi := &file_app_router_config_proto_msgTypes[0]
  142. if protoimpl.UnsafeEnabled && x != nil {
  143. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  144. if ms.LoadMessageInfo() == nil {
  145. ms.StoreMessageInfo(mi)
  146. }
  147. return ms
  148. }
  149. return mi.MessageOf(x)
  150. }
  151. // Deprecated: Use Domain.ProtoReflect.Descriptor instead.
  152. func (*Domain) Descriptor() ([]byte, []int) {
  153. return file_app_router_config_proto_rawDescGZIP(), []int{0}
  154. }
  155. func (x *Domain) GetType() Domain_Type {
  156. if x != nil {
  157. return x.Type
  158. }
  159. return Domain_Plain
  160. }
  161. func (x *Domain) GetValue() string {
  162. if x != nil {
  163. return x.Value
  164. }
  165. return ""
  166. }
  167. func (x *Domain) GetAttribute() []*Domain_Attribute {
  168. if x != nil {
  169. return x.Attribute
  170. }
  171. return nil
  172. }
  173. // IP for routing decision, in CIDR form.
  174. type CIDR struct {
  175. state protoimpl.MessageState
  176. sizeCache protoimpl.SizeCache
  177. unknownFields protoimpl.UnknownFields
  178. // IP address, should be either 4 or 16 bytes.
  179. Ip []byte `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
  180. // Number of leading ones in the network mask.
  181. Prefix uint32 `protobuf:"varint,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
  182. }
  183. func (x *CIDR) Reset() {
  184. *x = CIDR{}
  185. if protoimpl.UnsafeEnabled {
  186. mi := &file_app_router_config_proto_msgTypes[1]
  187. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  188. ms.StoreMessageInfo(mi)
  189. }
  190. }
  191. func (x *CIDR) String() string {
  192. return protoimpl.X.MessageStringOf(x)
  193. }
  194. func (*CIDR) ProtoMessage() {}
  195. func (x *CIDR) ProtoReflect() protoreflect.Message {
  196. mi := &file_app_router_config_proto_msgTypes[1]
  197. if protoimpl.UnsafeEnabled && x != nil {
  198. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  199. if ms.LoadMessageInfo() == nil {
  200. ms.StoreMessageInfo(mi)
  201. }
  202. return ms
  203. }
  204. return mi.MessageOf(x)
  205. }
  206. // Deprecated: Use CIDR.ProtoReflect.Descriptor instead.
  207. func (*CIDR) Descriptor() ([]byte, []int) {
  208. return file_app_router_config_proto_rawDescGZIP(), []int{1}
  209. }
  210. func (x *CIDR) GetIp() []byte {
  211. if x != nil {
  212. return x.Ip
  213. }
  214. return nil
  215. }
  216. func (x *CIDR) GetPrefix() uint32 {
  217. if x != nil {
  218. return x.Prefix
  219. }
  220. return 0
  221. }
  222. type GeoIP struct {
  223. state protoimpl.MessageState
  224. sizeCache protoimpl.SizeCache
  225. unknownFields protoimpl.UnknownFields
  226. CountryCode string `protobuf:"bytes,1,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
  227. Cidr []*CIDR `protobuf:"bytes,2,rep,name=cidr,proto3" json:"cidr,omitempty"`
  228. InverseMatch bool `protobuf:"varint,3,opt,name=inverse_match,json=inverseMatch,proto3" json:"inverse_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) GetInverseMatch() bool {
  270. if x != nil {
  271. return x.InverseMatch
  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 *anypb.Any `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() *anypb.Any {
  655. if x != nil {
  656. return x.StrategySettings
  657. }
  658. return nil
  659. }
  660. func (x *BalancingRule) GetFallbackTag() string {
  661. if x != nil {
  662. return x.FallbackTag
  663. }
  664. return ""
  665. }
  666. type StrategyWeight struct {
  667. state protoimpl.MessageState
  668. sizeCache protoimpl.SizeCache
  669. unknownFields protoimpl.UnknownFields
  670. Regexp bool `protobuf:"varint,1,opt,name=regexp,proto3" json:"regexp,omitempty"`
  671. Match string `protobuf:"bytes,2,opt,name=match,proto3" json:"match,omitempty"`
  672. Value float32 `protobuf:"fixed32,3,opt,name=value,proto3" json:"value,omitempty"`
  673. }
  674. func (x *StrategyWeight) Reset() {
  675. *x = StrategyWeight{}
  676. if protoimpl.UnsafeEnabled {
  677. mi := &file_app_router_config_proto_msgTypes[8]
  678. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  679. ms.StoreMessageInfo(mi)
  680. }
  681. }
  682. func (x *StrategyWeight) String() string {
  683. return protoimpl.X.MessageStringOf(x)
  684. }
  685. func (*StrategyWeight) ProtoMessage() {}
  686. func (x *StrategyWeight) ProtoReflect() protoreflect.Message {
  687. mi := &file_app_router_config_proto_msgTypes[8]
  688. if protoimpl.UnsafeEnabled && x != nil {
  689. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  690. if ms.LoadMessageInfo() == nil {
  691. ms.StoreMessageInfo(mi)
  692. }
  693. return ms
  694. }
  695. return mi.MessageOf(x)
  696. }
  697. // Deprecated: Use StrategyWeight.ProtoReflect.Descriptor instead.
  698. func (*StrategyWeight) Descriptor() ([]byte, []int) {
  699. return file_app_router_config_proto_rawDescGZIP(), []int{8}
  700. }
  701. func (x *StrategyWeight) GetRegexp() bool {
  702. if x != nil {
  703. return x.Regexp
  704. }
  705. return false
  706. }
  707. func (x *StrategyWeight) GetMatch() string {
  708. if x != nil {
  709. return x.Match
  710. }
  711. return ""
  712. }
  713. func (x *StrategyWeight) GetValue() float32 {
  714. if x != nil {
  715. return x.Value
  716. }
  717. return 0
  718. }
  719. type StrategyLeastPingConfig struct {
  720. state protoimpl.MessageState
  721. sizeCache protoimpl.SizeCache
  722. unknownFields protoimpl.UnknownFields
  723. ObserverTag string `protobuf:"bytes,7,opt,name=observer_tag,json=observerTag,proto3" json:"observer_tag,omitempty"`
  724. }
  725. func (x *StrategyLeastPingConfig) Reset() {
  726. *x = StrategyLeastPingConfig{}
  727. if protoimpl.UnsafeEnabled {
  728. mi := &file_app_router_config_proto_msgTypes[9]
  729. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  730. ms.StoreMessageInfo(mi)
  731. }
  732. }
  733. func (x *StrategyLeastPingConfig) String() string {
  734. return protoimpl.X.MessageStringOf(x)
  735. }
  736. func (*StrategyLeastPingConfig) ProtoMessage() {}
  737. func (x *StrategyLeastPingConfig) ProtoReflect() protoreflect.Message {
  738. mi := &file_app_router_config_proto_msgTypes[9]
  739. if protoimpl.UnsafeEnabled && x != nil {
  740. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  741. if ms.LoadMessageInfo() == nil {
  742. ms.StoreMessageInfo(mi)
  743. }
  744. return ms
  745. }
  746. return mi.MessageOf(x)
  747. }
  748. // Deprecated: Use StrategyLeastPingConfig.ProtoReflect.Descriptor instead.
  749. func (*StrategyLeastPingConfig) Descriptor() ([]byte, []int) {
  750. return file_app_router_config_proto_rawDescGZIP(), []int{9}
  751. }
  752. func (x *StrategyLeastPingConfig) GetObserverTag() string {
  753. if x != nil {
  754. return x.ObserverTag
  755. }
  756. return ""
  757. }
  758. type StrategyLeastLoadConfig struct {
  759. state protoimpl.MessageState
  760. sizeCache protoimpl.SizeCache
  761. unknownFields protoimpl.UnknownFields
  762. // weight settings
  763. Costs []*StrategyWeight `protobuf:"bytes,2,rep,name=costs,proto3" json:"costs,omitempty"`
  764. // RTT baselines for selecting, int64 values of time.Duration
  765. Baselines []int64 `protobuf:"varint,3,rep,packed,name=baselines,proto3" json:"baselines,omitempty"`
  766. // expected nodes count to select
  767. Expected int32 `protobuf:"varint,4,opt,name=expected,proto3" json:"expected,omitempty"`
  768. // max acceptable rtt, filter away high delay nodes. defalut 0
  769. MaxRTT int64 `protobuf:"varint,5,opt,name=maxRTT,proto3" json:"maxRTT,omitempty"`
  770. // acceptable failure rate
  771. Tolerance float32 `protobuf:"fixed32,6,opt,name=tolerance,proto3" json:"tolerance,omitempty"`
  772. ObserverTag string `protobuf:"bytes,7,opt,name=observer_tag,json=observerTag,proto3" json:"observer_tag,omitempty"`
  773. }
  774. func (x *StrategyLeastLoadConfig) Reset() {
  775. *x = StrategyLeastLoadConfig{}
  776. if protoimpl.UnsafeEnabled {
  777. mi := &file_app_router_config_proto_msgTypes[10]
  778. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  779. ms.StoreMessageInfo(mi)
  780. }
  781. }
  782. func (x *StrategyLeastLoadConfig) String() string {
  783. return protoimpl.X.MessageStringOf(x)
  784. }
  785. func (*StrategyLeastLoadConfig) ProtoMessage() {}
  786. func (x *StrategyLeastLoadConfig) ProtoReflect() protoreflect.Message {
  787. mi := &file_app_router_config_proto_msgTypes[10]
  788. if protoimpl.UnsafeEnabled && x != nil {
  789. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  790. if ms.LoadMessageInfo() == nil {
  791. ms.StoreMessageInfo(mi)
  792. }
  793. return ms
  794. }
  795. return mi.MessageOf(x)
  796. }
  797. // Deprecated: Use StrategyLeastLoadConfig.ProtoReflect.Descriptor instead.
  798. func (*StrategyLeastLoadConfig) Descriptor() ([]byte, []int) {
  799. return file_app_router_config_proto_rawDescGZIP(), []int{10}
  800. }
  801. func (x *StrategyLeastLoadConfig) GetCosts() []*StrategyWeight {
  802. if x != nil {
  803. return x.Costs
  804. }
  805. return nil
  806. }
  807. func (x *StrategyLeastLoadConfig) GetBaselines() []int64 {
  808. if x != nil {
  809. return x.Baselines
  810. }
  811. return nil
  812. }
  813. func (x *StrategyLeastLoadConfig) GetExpected() int32 {
  814. if x != nil {
  815. return x.Expected
  816. }
  817. return 0
  818. }
  819. func (x *StrategyLeastLoadConfig) GetMaxRTT() int64 {
  820. if x != nil {
  821. return x.MaxRTT
  822. }
  823. return 0
  824. }
  825. func (x *StrategyLeastLoadConfig) GetTolerance() float32 {
  826. if x != nil {
  827. return x.Tolerance
  828. }
  829. return 0
  830. }
  831. func (x *StrategyLeastLoadConfig) GetObserverTag() string {
  832. if x != nil {
  833. return x.ObserverTag
  834. }
  835. return ""
  836. }
  837. type Config struct {
  838. state protoimpl.MessageState
  839. sizeCache protoimpl.SizeCache
  840. unknownFields protoimpl.UnknownFields
  841. DomainStrategy Config_DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=v2ray.core.app.router.Config_DomainStrategy" json:"domain_strategy,omitempty"`
  842. Rule []*RoutingRule `protobuf:"bytes,2,rep,name=rule,proto3" json:"rule,omitempty"`
  843. BalancingRule []*BalancingRule `protobuf:"bytes,3,rep,name=balancing_rule,json=balancingRule,proto3" json:"balancing_rule,omitempty"`
  844. }
  845. func (x *Config) Reset() {
  846. *x = Config{}
  847. if protoimpl.UnsafeEnabled {
  848. mi := &file_app_router_config_proto_msgTypes[11]
  849. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  850. ms.StoreMessageInfo(mi)
  851. }
  852. }
  853. func (x *Config) String() string {
  854. return protoimpl.X.MessageStringOf(x)
  855. }
  856. func (*Config) ProtoMessage() {}
  857. func (x *Config) ProtoReflect() protoreflect.Message {
  858. mi := &file_app_router_config_proto_msgTypes[11]
  859. if protoimpl.UnsafeEnabled && x != nil {
  860. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  861. if ms.LoadMessageInfo() == nil {
  862. ms.StoreMessageInfo(mi)
  863. }
  864. return ms
  865. }
  866. return mi.MessageOf(x)
  867. }
  868. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  869. func (*Config) Descriptor() ([]byte, []int) {
  870. return file_app_router_config_proto_rawDescGZIP(), []int{11}
  871. }
  872. func (x *Config) GetDomainStrategy() Config_DomainStrategy {
  873. if x != nil {
  874. return x.DomainStrategy
  875. }
  876. return Config_AsIs
  877. }
  878. func (x *Config) GetRule() []*RoutingRule {
  879. if x != nil {
  880. return x.Rule
  881. }
  882. return nil
  883. }
  884. func (x *Config) GetBalancingRule() []*BalancingRule {
  885. if x != nil {
  886. return x.BalancingRule
  887. }
  888. return nil
  889. }
  890. type Domain_Attribute struct {
  891. state protoimpl.MessageState
  892. sizeCache protoimpl.SizeCache
  893. unknownFields protoimpl.UnknownFields
  894. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  895. // Types that are assignable to TypedValue:
  896. // *Domain_Attribute_BoolValue
  897. // *Domain_Attribute_IntValue
  898. TypedValue isDomain_Attribute_TypedValue `protobuf_oneof:"typed_value"`
  899. }
  900. func (x *Domain_Attribute) Reset() {
  901. *x = Domain_Attribute{}
  902. if protoimpl.UnsafeEnabled {
  903. mi := &file_app_router_config_proto_msgTypes[12]
  904. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  905. ms.StoreMessageInfo(mi)
  906. }
  907. }
  908. func (x *Domain_Attribute) String() string {
  909. return protoimpl.X.MessageStringOf(x)
  910. }
  911. func (*Domain_Attribute) ProtoMessage() {}
  912. func (x *Domain_Attribute) ProtoReflect() protoreflect.Message {
  913. mi := &file_app_router_config_proto_msgTypes[12]
  914. if protoimpl.UnsafeEnabled && x != nil {
  915. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  916. if ms.LoadMessageInfo() == nil {
  917. ms.StoreMessageInfo(mi)
  918. }
  919. return ms
  920. }
  921. return mi.MessageOf(x)
  922. }
  923. // Deprecated: Use Domain_Attribute.ProtoReflect.Descriptor instead.
  924. func (*Domain_Attribute) Descriptor() ([]byte, []int) {
  925. return file_app_router_config_proto_rawDescGZIP(), []int{0, 0}
  926. }
  927. func (x *Domain_Attribute) GetKey() string {
  928. if x != nil {
  929. return x.Key
  930. }
  931. return ""
  932. }
  933. func (m *Domain_Attribute) GetTypedValue() isDomain_Attribute_TypedValue {
  934. if m != nil {
  935. return m.TypedValue
  936. }
  937. return nil
  938. }
  939. func (x *Domain_Attribute) GetBoolValue() bool {
  940. if x, ok := x.GetTypedValue().(*Domain_Attribute_BoolValue); ok {
  941. return x.BoolValue
  942. }
  943. return false
  944. }
  945. func (x *Domain_Attribute) GetIntValue() int64 {
  946. if x, ok := x.GetTypedValue().(*Domain_Attribute_IntValue); ok {
  947. return x.IntValue
  948. }
  949. return 0
  950. }
  951. type isDomain_Attribute_TypedValue interface {
  952. isDomain_Attribute_TypedValue()
  953. }
  954. type Domain_Attribute_BoolValue struct {
  955. BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
  956. }
  957. type Domain_Attribute_IntValue struct {
  958. IntValue int64 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof"`
  959. }
  960. func (*Domain_Attribute_BoolValue) isDomain_Attribute_TypedValue() {}
  961. func (*Domain_Attribute_IntValue) isDomain_Attribute_TypedValue() {}
  962. var File_app_router_config_proto protoreflect.FileDescriptor
  963. var file_app_router_config_proto_rawDesc = []byte{
  964. 0x0a, 0x17, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e,
  965. 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x76, 0x32, 0x72, 0x61, 0x79,
  966. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  967. 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  968. 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x63, 0x6f, 0x6d,
  969. 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f,
  970. 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e,
  971. 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc3, 0x02, 0x0a,
  972. 0x06, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x36, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
  973. 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  974. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f,
  975. 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
  976. 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  977. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75,
  978. 0x74, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  979. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  980. 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
  981. 0x65, 0x52, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x1a, 0x6c, 0x0a, 0x09,
  982. 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
  983. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0a, 0x62,
  984. 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48,
  985. 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09,
  986. 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48,
  987. 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x74,
  988. 0x79, 0x70, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x36, 0x0a, 0x04, 0x54, 0x79,
  989. 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x6c, 0x61, 0x69, 0x6e, 0x10, 0x00, 0x12, 0x09, 0x0a,
  990. 0x05, 0x52, 0x65, 0x67, 0x65, 0x78, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x6f, 0x6f, 0x74,
  991. 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x75, 0x6c, 0x6c,
  992. 0x10, 0x03, 0x22, 0x2e, 0x0a, 0x04, 0x43, 0x49, 0x44, 0x52, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70,
  993. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x72,
  994. 0x65, 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66,
  995. 0x69, 0x78, 0x22, 0x80, 0x01, 0x0a, 0x05, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x12, 0x21, 0x0a, 0x0c,
  996. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01,
  997. 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12,
  998. 0x2f, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e,
  999. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72,
  1000. 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x52, 0x04, 0x63, 0x69, 0x64, 0x72,
  1001. 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65, 0x5f, 0x6d, 0x61, 0x74, 0x63,
  1002. 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65,
  1003. 0x4d, 0x61, 0x74, 0x63, 0x68, 0x22, 0x3f, 0x0a, 0x09, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x4c, 0x69,
  1004. 0x73, 0x74, 0x12, 0x32, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28,
  1005. 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  1006. 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52,
  1007. 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x63, 0x0a, 0x07, 0x47, 0x65, 0x6f, 0x53, 0x69, 0x74,
  1008. 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64,
  1009. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79,
  1010. 0x43, 0x6f, 0x64, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02,
  1011. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  1012. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d,
  1013. 0x61, 0x69, 0x6e, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x43, 0x0a, 0x0b, 0x47,
  1014. 0x65, 0x6f, 0x53, 0x69, 0x74, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x05, 0x65, 0x6e,
  1015. 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61,
  1016. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
  1017. 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x53, 0x69, 0x74, 0x65, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79,
  1018. 0x22, 0xf1, 0x06, 0x0a, 0x0b, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65,
  1019. 0x12, 0x12, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,
  1020. 0x03, 0x74, 0x61, 0x67, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e,
  1021. 0x67, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x62,
  1022. 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x67, 0x12, 0x35, 0x0a, 0x06, 0x64,
  1023. 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x76, 0x32,
  1024. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75,
  1025. 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61,
  1026. 0x69, 0x6e, 0x12, 0x33, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
  1027. 0x32, 0x1b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  1028. 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x42, 0x02, 0x18,
  1029. 0x01, 0x52, 0x04, 0x63, 0x69, 0x64, 0x72, 0x12, 0x32, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70,
  1030. 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  1031. 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47,
  1032. 0x65, 0x6f, 0x49, 0x50, 0x52, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x43, 0x0a, 0x0a, 0x70,
  1033. 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
  1034. 0x20, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
  1035. 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67,
  1036. 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65,
  1037. 0x12, 0x3c, 0x0a, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0e, 0x20,
  1038. 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  1039. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74,
  1040. 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x49,
  1041. 0x0a, 0x0c, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x05,
  1042. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  1043. 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74,
  1044. 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x6e, 0x65,
  1045. 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x08, 0x6e, 0x65, 0x74,
  1046. 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x32,
  1047. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  1048. 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x08, 0x6e, 0x65, 0x74,
  1049. 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12, 0x40, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f,
  1050. 0x63, 0x69, 0x64, 0x72, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x76, 0x32, 0x72,
  1051. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74,
  1052. 0x65, 0x72, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0a, 0x73, 0x6f, 0x75,
  1053. 0x72, 0x63, 0x65, 0x43, 0x69, 0x64, 0x72, 0x12, 0x3f, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63,
  1054. 0x65, 0x5f, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e,
  1055. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72,
  1056. 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x0b, 0x73, 0x6f, 0x75,
  1057. 0x72, 0x63, 0x65, 0x47, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x49, 0x0a, 0x10, 0x73, 0x6f, 0x75, 0x72,
  1058. 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x10, 0x20, 0x01,
  1059. 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  1060. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x4c,
  1061. 0x69, 0x73, 0x74, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x4c,
  1062. 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x65, 0x6d, 0x61, 0x69,
  1063. 0x6c, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61,
  1064. 0x69, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x74, 0x61,
  1065. 0x67, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64,
  1066. 0x54, 0x61, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18,
  1067. 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12,
  1068. 0x1e, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0f, 0x20,
  1069. 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12,
  1070. 0x25, 0x0a, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65,
  1071. 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d,
  1072. 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x42, 0x0c, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
  1073. 0x5f, 0x74, 0x61, 0x67, 0x22, 0xd0, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69,
  1074. 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20,
  1075. 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x2b, 0x0a, 0x11, 0x6f, 0x75, 0x74, 0x62,
  1076. 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20,
  1077. 0x03, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x65, 0x6c,
  1078. 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67,
  1079. 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67,
  1080. 0x79, 0x12, 0x41, 0x0a, 0x11, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x5f, 0x73, 0x65,
  1081. 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67,
  1082. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41,
  1083. 0x6e, 0x79, 0x52, 0x10, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x53, 0x65, 0x74, 0x74,
  1084. 0x69, 0x6e, 0x67, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b,
  1085. 0x5f, 0x74, 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x61, 0x6c, 0x6c,
  1086. 0x62, 0x61, 0x63, 0x6b, 0x54, 0x61, 0x67, 0x22, 0x54, 0x0a, 0x0e, 0x53, 0x74, 0x72, 0x61, 0x74,
  1087. 0x65, 0x67, 0x79, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67,
  1088. 0x65, 0x78, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x67, 0x65, 0x78,
  1089. 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  1090. 0x52, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  1091. 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x3c, 0x0a,
  1092. 0x17, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x4c, 0x65, 0x61, 0x73, 0x74, 0x50, 0x69,
  1093. 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x62, 0x73, 0x65,
  1094. 0x72, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
  1095. 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x61, 0x67, 0x22, 0xe9, 0x01, 0x0a, 0x17,
  1096. 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x4c, 0x65, 0x61, 0x73, 0x74, 0x4c, 0x6f, 0x61,
  1097. 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x05, 0x63, 0x6f, 0x73, 0x74, 0x73,
  1098. 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  1099. 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x53,
  1100. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x05, 0x63,
  1101. 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65,
  1102. 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e,
  1103. 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x04,
  1104. 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x16,
  1105. 0x0a, 0x06, 0x6d, 0x61, 0x78, 0x52, 0x54, 0x54, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
  1106. 0x6d, 0x61, 0x78, 0x52, 0x54, 0x54, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x6f, 0x6c, 0x65, 0x72, 0x61,
  1107. 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x74, 0x6f, 0x6c, 0x65, 0x72,
  1108. 0x61, 0x6e, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
  1109. 0x5f, 0x74, 0x61, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x62, 0x73, 0x65,
  1110. 0x72, 0x76, 0x65, 0x72, 0x54, 0x61, 0x67, 0x22, 0xad, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66,
  1111. 0x69, 0x67, 0x12, 0x55, 0x0a, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72,
  1112. 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x76, 0x32,
  1113. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75,
  1114. 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69,
  1115. 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69,
  1116. 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x36, 0x0a, 0x04, 0x72, 0x75, 0x6c,
  1117. 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  1118. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e,
  1119. 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x75, 0x6c,
  1120. 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x72,
  1121. 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61,
  1122. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
  1123. 0x72, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52,
  1124. 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x22, 0x47,
  1125. 0x0a, 0x0e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  1126. 0x12, 0x08, 0x0a, 0x04, 0x41, 0x73, 0x49, 0x73, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x73,
  1127. 0x65, 0x49, 0x70, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x70, 0x49, 0x66, 0x4e, 0x6f, 0x6e,
  1128. 0x4d, 0x61, 0x74, 0x63, 0x68, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x70, 0x4f, 0x6e, 0x44,
  1129. 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x10, 0x03, 0x42, 0x60, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x76,
  1130. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f,
  1131. 0x75, 0x74, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
  1132. 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63,
  1133. 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65,
  1134. 0x72, 0xaa, 0x02, 0x15, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41,
  1135. 0x70, 0x70, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  1136. 0x33,
  1137. }
  1138. var (
  1139. file_app_router_config_proto_rawDescOnce sync.Once
  1140. file_app_router_config_proto_rawDescData = file_app_router_config_proto_rawDesc
  1141. )
  1142. func file_app_router_config_proto_rawDescGZIP() []byte {
  1143. file_app_router_config_proto_rawDescOnce.Do(func() {
  1144. file_app_router_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_router_config_proto_rawDescData)
  1145. })
  1146. return file_app_router_config_proto_rawDescData
  1147. }
  1148. var file_app_router_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  1149. var file_app_router_config_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
  1150. var file_app_router_config_proto_goTypes = []interface{}{
  1151. (Domain_Type)(0), // 0: v2ray.core.app.router.Domain.Type
  1152. (Config_DomainStrategy)(0), // 1: v2ray.core.app.router.Config.DomainStrategy
  1153. (*Domain)(nil), // 2: v2ray.core.app.router.Domain
  1154. (*CIDR)(nil), // 3: v2ray.core.app.router.CIDR
  1155. (*GeoIP)(nil), // 4: v2ray.core.app.router.GeoIP
  1156. (*GeoIPList)(nil), // 5: v2ray.core.app.router.GeoIPList
  1157. (*GeoSite)(nil), // 6: v2ray.core.app.router.GeoSite
  1158. (*GeoSiteList)(nil), // 7: v2ray.core.app.router.GeoSiteList
  1159. (*RoutingRule)(nil), // 8: v2ray.core.app.router.RoutingRule
  1160. (*BalancingRule)(nil), // 9: v2ray.core.app.router.BalancingRule
  1161. (*StrategyWeight)(nil), // 10: v2ray.core.app.router.StrategyWeight
  1162. (*StrategyLeastPingConfig)(nil), // 11: v2ray.core.app.router.StrategyLeastPingConfig
  1163. (*StrategyLeastLoadConfig)(nil), // 12: v2ray.core.app.router.StrategyLeastLoadConfig
  1164. (*Config)(nil), // 13: v2ray.core.app.router.Config
  1165. (*Domain_Attribute)(nil), // 14: v2ray.core.app.router.Domain.Attribute
  1166. (*net.PortRange)(nil), // 15: v2ray.core.common.net.PortRange
  1167. (*net.PortList)(nil), // 16: v2ray.core.common.net.PortList
  1168. (*net.NetworkList)(nil), // 17: v2ray.core.common.net.NetworkList
  1169. (net.Network)(0), // 18: v2ray.core.common.net.Network
  1170. (*anypb.Any)(nil), // 19: google.protobuf.Any
  1171. }
  1172. var file_app_router_config_proto_depIdxs = []int32{
  1173. 0, // 0: v2ray.core.app.router.Domain.type:type_name -> v2ray.core.app.router.Domain.Type
  1174. 14, // 1: v2ray.core.app.router.Domain.attribute:type_name -> v2ray.core.app.router.Domain.Attribute
  1175. 3, // 2: v2ray.core.app.router.GeoIP.cidr:type_name -> v2ray.core.app.router.CIDR
  1176. 4, // 3: v2ray.core.app.router.GeoIPList.entry:type_name -> v2ray.core.app.router.GeoIP
  1177. 2, // 4: v2ray.core.app.router.GeoSite.domain:type_name -> v2ray.core.app.router.Domain
  1178. 6, // 5: v2ray.core.app.router.GeoSiteList.entry:type_name -> v2ray.core.app.router.GeoSite
  1179. 2, // 6: v2ray.core.app.router.RoutingRule.domain:type_name -> v2ray.core.app.router.Domain
  1180. 3, // 7: v2ray.core.app.router.RoutingRule.cidr:type_name -> v2ray.core.app.router.CIDR
  1181. 4, // 8: v2ray.core.app.router.RoutingRule.geoip:type_name -> v2ray.core.app.router.GeoIP
  1182. 15, // 9: v2ray.core.app.router.RoutingRule.port_range:type_name -> v2ray.core.common.net.PortRange
  1183. 16, // 10: v2ray.core.app.router.RoutingRule.port_list:type_name -> v2ray.core.common.net.PortList
  1184. 17, // 11: v2ray.core.app.router.RoutingRule.network_list:type_name -> v2ray.core.common.net.NetworkList
  1185. 18, // 12: v2ray.core.app.router.RoutingRule.networks:type_name -> v2ray.core.common.net.Network
  1186. 3, // 13: v2ray.core.app.router.RoutingRule.source_cidr:type_name -> v2ray.core.app.router.CIDR
  1187. 4, // 14: v2ray.core.app.router.RoutingRule.source_geoip:type_name -> v2ray.core.app.router.GeoIP
  1188. 16, // 15: v2ray.core.app.router.RoutingRule.source_port_list:type_name -> v2ray.core.common.net.PortList
  1189. 19, // 16: v2ray.core.app.router.BalancingRule.strategy_settings:type_name -> google.protobuf.Any
  1190. 10, // 17: v2ray.core.app.router.StrategyLeastLoadConfig.costs:type_name -> v2ray.core.app.router.StrategyWeight
  1191. 1, // 18: v2ray.core.app.router.Config.domain_strategy:type_name -> v2ray.core.app.router.Config.DomainStrategy
  1192. 8, // 19: v2ray.core.app.router.Config.rule:type_name -> v2ray.core.app.router.RoutingRule
  1193. 9, // 20: v2ray.core.app.router.Config.balancing_rule:type_name -> v2ray.core.app.router.BalancingRule
  1194. 21, // [21:21] is the sub-list for method output_type
  1195. 21, // [21:21] is the sub-list for method input_type
  1196. 21, // [21:21] is the sub-list for extension type_name
  1197. 21, // [21:21] is the sub-list for extension extendee
  1198. 0, // [0:21] is the sub-list for field type_name
  1199. }
  1200. func init() { file_app_router_config_proto_init() }
  1201. func file_app_router_config_proto_init() {
  1202. if File_app_router_config_proto != nil {
  1203. return
  1204. }
  1205. if !protoimpl.UnsafeEnabled {
  1206. file_app_router_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1207. switch v := v.(*Domain); i {
  1208. case 0:
  1209. return &v.state
  1210. case 1:
  1211. return &v.sizeCache
  1212. case 2:
  1213. return &v.unknownFields
  1214. default:
  1215. return nil
  1216. }
  1217. }
  1218. file_app_router_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1219. switch v := v.(*CIDR); i {
  1220. case 0:
  1221. return &v.state
  1222. case 1:
  1223. return &v.sizeCache
  1224. case 2:
  1225. return &v.unknownFields
  1226. default:
  1227. return nil
  1228. }
  1229. }
  1230. file_app_router_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1231. switch v := v.(*GeoIP); i {
  1232. case 0:
  1233. return &v.state
  1234. case 1:
  1235. return &v.sizeCache
  1236. case 2:
  1237. return &v.unknownFields
  1238. default:
  1239. return nil
  1240. }
  1241. }
  1242. file_app_router_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1243. switch v := v.(*GeoIPList); i {
  1244. case 0:
  1245. return &v.state
  1246. case 1:
  1247. return &v.sizeCache
  1248. case 2:
  1249. return &v.unknownFields
  1250. default:
  1251. return nil
  1252. }
  1253. }
  1254. file_app_router_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1255. switch v := v.(*GeoSite); i {
  1256. case 0:
  1257. return &v.state
  1258. case 1:
  1259. return &v.sizeCache
  1260. case 2:
  1261. return &v.unknownFields
  1262. default:
  1263. return nil
  1264. }
  1265. }
  1266. file_app_router_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1267. switch v := v.(*GeoSiteList); i {
  1268. case 0:
  1269. return &v.state
  1270. case 1:
  1271. return &v.sizeCache
  1272. case 2:
  1273. return &v.unknownFields
  1274. default:
  1275. return nil
  1276. }
  1277. }
  1278. file_app_router_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1279. switch v := v.(*RoutingRule); i {
  1280. case 0:
  1281. return &v.state
  1282. case 1:
  1283. return &v.sizeCache
  1284. case 2:
  1285. return &v.unknownFields
  1286. default:
  1287. return nil
  1288. }
  1289. }
  1290. file_app_router_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1291. switch v := v.(*BalancingRule); i {
  1292. case 0:
  1293. return &v.state
  1294. case 1:
  1295. return &v.sizeCache
  1296. case 2:
  1297. return &v.unknownFields
  1298. default:
  1299. return nil
  1300. }
  1301. }
  1302. file_app_router_config_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1303. switch v := v.(*StrategyWeight); i {
  1304. case 0:
  1305. return &v.state
  1306. case 1:
  1307. return &v.sizeCache
  1308. case 2:
  1309. return &v.unknownFields
  1310. default:
  1311. return nil
  1312. }
  1313. }
  1314. file_app_router_config_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1315. switch v := v.(*StrategyLeastPingConfig); i {
  1316. case 0:
  1317. return &v.state
  1318. case 1:
  1319. return &v.sizeCache
  1320. case 2:
  1321. return &v.unknownFields
  1322. default:
  1323. return nil
  1324. }
  1325. }
  1326. file_app_router_config_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1327. switch v := v.(*StrategyLeastLoadConfig); i {
  1328. case 0:
  1329. return &v.state
  1330. case 1:
  1331. return &v.sizeCache
  1332. case 2:
  1333. return &v.unknownFields
  1334. default:
  1335. return nil
  1336. }
  1337. }
  1338. file_app_router_config_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1339. switch v := v.(*Config); i {
  1340. case 0:
  1341. return &v.state
  1342. case 1:
  1343. return &v.sizeCache
  1344. case 2:
  1345. return &v.unknownFields
  1346. default:
  1347. return nil
  1348. }
  1349. }
  1350. file_app_router_config_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1351. switch v := v.(*Domain_Attribute); i {
  1352. case 0:
  1353. return &v.state
  1354. case 1:
  1355. return &v.sizeCache
  1356. case 2:
  1357. return &v.unknownFields
  1358. default:
  1359. return nil
  1360. }
  1361. }
  1362. }
  1363. file_app_router_config_proto_msgTypes[6].OneofWrappers = []interface{}{
  1364. (*RoutingRule_Tag)(nil),
  1365. (*RoutingRule_BalancingTag)(nil),
  1366. }
  1367. file_app_router_config_proto_msgTypes[12].OneofWrappers = []interface{}{
  1368. (*Domain_Attribute_BoolValue)(nil),
  1369. (*Domain_Attribute_IntValue)(nil),
  1370. }
  1371. type x struct{}
  1372. out := protoimpl.TypeBuilder{
  1373. File: protoimpl.DescBuilder{
  1374. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1375. RawDescriptor: file_app_router_config_proto_rawDesc,
  1376. NumEnums: 2,
  1377. NumMessages: 13,
  1378. NumExtensions: 0,
  1379. NumServices: 0,
  1380. },
  1381. GoTypes: file_app_router_config_proto_goTypes,
  1382. DependencyIndexes: file_app_router_config_proto_depIdxs,
  1383. EnumInfos: file_app_router_config_proto_enumTypes,
  1384. MessageInfos: file_app_router_config_proto_msgTypes,
  1385. }.Build()
  1386. File_app_router_config_proto = out.File
  1387. file_app_router_config_proto_rawDesc = nil
  1388. file_app_router_config_proto_goTypes = nil
  1389. file_app_router_config_proto_depIdxs = nil
  1390. }