config.pb.go 62 KB

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