config.pb.go 61 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731
  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. }
  492. func (x *RoutingRule) Reset() {
  493. *x = RoutingRule{}
  494. if protoimpl.UnsafeEnabled {
  495. mi := &file_app_router_config_proto_msgTypes[6]
  496. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  497. ms.StoreMessageInfo(mi)
  498. }
  499. }
  500. func (x *RoutingRule) String() string {
  501. return protoimpl.X.MessageStringOf(x)
  502. }
  503. func (*RoutingRule) ProtoMessage() {}
  504. func (x *RoutingRule) ProtoReflect() protoreflect.Message {
  505. mi := &file_app_router_config_proto_msgTypes[6]
  506. if protoimpl.UnsafeEnabled && x != nil {
  507. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  508. if ms.LoadMessageInfo() == nil {
  509. ms.StoreMessageInfo(mi)
  510. }
  511. return ms
  512. }
  513. return mi.MessageOf(x)
  514. }
  515. // Deprecated: Use RoutingRule.ProtoReflect.Descriptor instead.
  516. func (*RoutingRule) Descriptor() ([]byte, []int) {
  517. return file_app_router_config_proto_rawDescGZIP(), []int{6}
  518. }
  519. func (m *RoutingRule) GetTargetTag() isRoutingRule_TargetTag {
  520. if m != nil {
  521. return m.TargetTag
  522. }
  523. return nil
  524. }
  525. func (x *RoutingRule) GetTag() string {
  526. if x, ok := x.GetTargetTag().(*RoutingRule_Tag); ok {
  527. return x.Tag
  528. }
  529. return ""
  530. }
  531. func (x *RoutingRule) GetBalancingTag() string {
  532. if x, ok := x.GetTargetTag().(*RoutingRule_BalancingTag); ok {
  533. return x.BalancingTag
  534. }
  535. return ""
  536. }
  537. func (x *RoutingRule) GetDomain() []*Domain {
  538. if x != nil {
  539. return x.Domain
  540. }
  541. return nil
  542. }
  543. // Deprecated: Do not use.
  544. func (x *RoutingRule) GetCidr() []*CIDR {
  545. if x != nil {
  546. return x.Cidr
  547. }
  548. return nil
  549. }
  550. func (x *RoutingRule) GetGeoip() []*GeoIP {
  551. if x != nil {
  552. return x.Geoip
  553. }
  554. return nil
  555. }
  556. // Deprecated: Do not use.
  557. func (x *RoutingRule) GetPortRange() *net.PortRange {
  558. if x != nil {
  559. return x.PortRange
  560. }
  561. return nil
  562. }
  563. func (x *RoutingRule) GetPortList() *net.PortList {
  564. if x != nil {
  565. return x.PortList
  566. }
  567. return nil
  568. }
  569. // Deprecated: Do not use.
  570. func (x *RoutingRule) GetNetworkList() *net.NetworkList {
  571. if x != nil {
  572. return x.NetworkList
  573. }
  574. return nil
  575. }
  576. func (x *RoutingRule) GetNetworks() []net.Network {
  577. if x != nil {
  578. return x.Networks
  579. }
  580. return nil
  581. }
  582. // Deprecated: Do not use.
  583. func (x *RoutingRule) GetSourceCidr() []*CIDR {
  584. if x != nil {
  585. return x.SourceCidr
  586. }
  587. return nil
  588. }
  589. func (x *RoutingRule) GetSourceGeoip() []*GeoIP {
  590. if x != nil {
  591. return x.SourceGeoip
  592. }
  593. return nil
  594. }
  595. func (x *RoutingRule) GetSourcePortList() *net.PortList {
  596. if x != nil {
  597. return x.SourcePortList
  598. }
  599. return nil
  600. }
  601. func (x *RoutingRule) GetUserEmail() []string {
  602. if x != nil {
  603. return x.UserEmail
  604. }
  605. return nil
  606. }
  607. func (x *RoutingRule) GetInboundTag() []string {
  608. if x != nil {
  609. return x.InboundTag
  610. }
  611. return nil
  612. }
  613. func (x *RoutingRule) GetProtocol() []string {
  614. if x != nil {
  615. return x.Protocol
  616. }
  617. return nil
  618. }
  619. func (x *RoutingRule) GetAttributes() string {
  620. if x != nil {
  621. return x.Attributes
  622. }
  623. return ""
  624. }
  625. func (x *RoutingRule) GetDomainMatcher() string {
  626. if x != nil {
  627. return x.DomainMatcher
  628. }
  629. return ""
  630. }
  631. type isRoutingRule_TargetTag interface {
  632. isRoutingRule_TargetTag()
  633. }
  634. type RoutingRule_Tag struct {
  635. // Tag of outbound that this rule is pointing to.
  636. Tag string `protobuf:"bytes,1,opt,name=tag,proto3,oneof"`
  637. }
  638. type RoutingRule_BalancingTag struct {
  639. // Tag of routing balancer.
  640. BalancingTag string `protobuf:"bytes,12,opt,name=balancing_tag,json=balancingTag,proto3,oneof"`
  641. }
  642. func (*RoutingRule_Tag) isRoutingRule_TargetTag() {}
  643. func (*RoutingRule_BalancingTag) isRoutingRule_TargetTag() {}
  644. type BalancingRule struct {
  645. state protoimpl.MessageState
  646. sizeCache protoimpl.SizeCache
  647. unknownFields protoimpl.UnknownFields
  648. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  649. OutboundSelector []string `protobuf:"bytes,2,rep,name=outbound_selector,json=outboundSelector,proto3" json:"outbound_selector,omitempty"`
  650. Strategy string `protobuf:"bytes,3,opt,name=strategy,proto3" json:"strategy,omitempty"`
  651. StrategySettings *anypb.Any `protobuf:"bytes,4,opt,name=strategy_settings,json=strategySettings,proto3" json:"strategy_settings,omitempty"`
  652. FallbackTag string `protobuf:"bytes,5,opt,name=fallback_tag,json=fallbackTag,proto3" json:"fallback_tag,omitempty"`
  653. }
  654. func (x *BalancingRule) Reset() {
  655. *x = BalancingRule{}
  656. if protoimpl.UnsafeEnabled {
  657. mi := &file_app_router_config_proto_msgTypes[7]
  658. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  659. ms.StoreMessageInfo(mi)
  660. }
  661. }
  662. func (x *BalancingRule) String() string {
  663. return protoimpl.X.MessageStringOf(x)
  664. }
  665. func (*BalancingRule) ProtoMessage() {}
  666. func (x *BalancingRule) ProtoReflect() protoreflect.Message {
  667. mi := &file_app_router_config_proto_msgTypes[7]
  668. if protoimpl.UnsafeEnabled && x != nil {
  669. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  670. if ms.LoadMessageInfo() == nil {
  671. ms.StoreMessageInfo(mi)
  672. }
  673. return ms
  674. }
  675. return mi.MessageOf(x)
  676. }
  677. // Deprecated: Use BalancingRule.ProtoReflect.Descriptor instead.
  678. func (*BalancingRule) Descriptor() ([]byte, []int) {
  679. return file_app_router_config_proto_rawDescGZIP(), []int{7}
  680. }
  681. func (x *BalancingRule) GetTag() string {
  682. if x != nil {
  683. return x.Tag
  684. }
  685. return ""
  686. }
  687. func (x *BalancingRule) GetOutboundSelector() []string {
  688. if x != nil {
  689. return x.OutboundSelector
  690. }
  691. return nil
  692. }
  693. func (x *BalancingRule) GetStrategy() string {
  694. if x != nil {
  695. return x.Strategy
  696. }
  697. return ""
  698. }
  699. func (x *BalancingRule) GetStrategySettings() *anypb.Any {
  700. if x != nil {
  701. return x.StrategySettings
  702. }
  703. return nil
  704. }
  705. func (x *BalancingRule) GetFallbackTag() string {
  706. if x != nil {
  707. return x.FallbackTag
  708. }
  709. return ""
  710. }
  711. type StrategyWeight struct {
  712. state protoimpl.MessageState
  713. sizeCache protoimpl.SizeCache
  714. unknownFields protoimpl.UnknownFields
  715. Regexp bool `protobuf:"varint,1,opt,name=regexp,proto3" json:"regexp,omitempty"`
  716. Match string `protobuf:"bytes,2,opt,name=match,proto3" json:"match,omitempty"`
  717. Value float32 `protobuf:"fixed32,3,opt,name=value,proto3" json:"value,omitempty"`
  718. }
  719. func (x *StrategyWeight) Reset() {
  720. *x = StrategyWeight{}
  721. if protoimpl.UnsafeEnabled {
  722. mi := &file_app_router_config_proto_msgTypes[8]
  723. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  724. ms.StoreMessageInfo(mi)
  725. }
  726. }
  727. func (x *StrategyWeight) String() string {
  728. return protoimpl.X.MessageStringOf(x)
  729. }
  730. func (*StrategyWeight) ProtoMessage() {}
  731. func (x *StrategyWeight) ProtoReflect() protoreflect.Message {
  732. mi := &file_app_router_config_proto_msgTypes[8]
  733. if protoimpl.UnsafeEnabled && x != nil {
  734. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  735. if ms.LoadMessageInfo() == nil {
  736. ms.StoreMessageInfo(mi)
  737. }
  738. return ms
  739. }
  740. return mi.MessageOf(x)
  741. }
  742. // Deprecated: Use StrategyWeight.ProtoReflect.Descriptor instead.
  743. func (*StrategyWeight) Descriptor() ([]byte, []int) {
  744. return file_app_router_config_proto_rawDescGZIP(), []int{8}
  745. }
  746. func (x *StrategyWeight) GetRegexp() bool {
  747. if x != nil {
  748. return x.Regexp
  749. }
  750. return false
  751. }
  752. func (x *StrategyWeight) GetMatch() string {
  753. if x != nil {
  754. return x.Match
  755. }
  756. return ""
  757. }
  758. func (x *StrategyWeight) GetValue() float32 {
  759. if x != nil {
  760. return x.Value
  761. }
  762. return 0
  763. }
  764. type StrategyLeastPingConfig struct {
  765. state protoimpl.MessageState
  766. sizeCache protoimpl.SizeCache
  767. unknownFields protoimpl.UnknownFields
  768. ObserverTag string `protobuf:"bytes,7,opt,name=observer_tag,json=observerTag,proto3" json:"observer_tag,omitempty"`
  769. }
  770. func (x *StrategyLeastPingConfig) Reset() {
  771. *x = StrategyLeastPingConfig{}
  772. if protoimpl.UnsafeEnabled {
  773. mi := &file_app_router_config_proto_msgTypes[9]
  774. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  775. ms.StoreMessageInfo(mi)
  776. }
  777. }
  778. func (x *StrategyLeastPingConfig) String() string {
  779. return protoimpl.X.MessageStringOf(x)
  780. }
  781. func (*StrategyLeastPingConfig) ProtoMessage() {}
  782. func (x *StrategyLeastPingConfig) ProtoReflect() protoreflect.Message {
  783. mi := &file_app_router_config_proto_msgTypes[9]
  784. if protoimpl.UnsafeEnabled && x != nil {
  785. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  786. if ms.LoadMessageInfo() == nil {
  787. ms.StoreMessageInfo(mi)
  788. }
  789. return ms
  790. }
  791. return mi.MessageOf(x)
  792. }
  793. // Deprecated: Use StrategyLeastPingConfig.ProtoReflect.Descriptor instead.
  794. func (*StrategyLeastPingConfig) Descriptor() ([]byte, []int) {
  795. return file_app_router_config_proto_rawDescGZIP(), []int{9}
  796. }
  797. func (x *StrategyLeastPingConfig) GetObserverTag() string {
  798. if x != nil {
  799. return x.ObserverTag
  800. }
  801. return ""
  802. }
  803. type StrategyLeastLoadConfig struct {
  804. state protoimpl.MessageState
  805. sizeCache protoimpl.SizeCache
  806. unknownFields protoimpl.UnknownFields
  807. // weight settings
  808. Costs []*StrategyWeight `protobuf:"bytes,2,rep,name=costs,proto3" json:"costs,omitempty"`
  809. // RTT baselines for selecting, int64 values of time.Duration
  810. Baselines []int64 `protobuf:"varint,3,rep,packed,name=baselines,proto3" json:"baselines,omitempty"`
  811. // expected nodes count to select
  812. Expected int32 `protobuf:"varint,4,opt,name=expected,proto3" json:"expected,omitempty"`
  813. // max acceptable rtt, filter away high delay nodes. defalut 0
  814. MaxRTT int64 `protobuf:"varint,5,opt,name=maxRTT,proto3" json:"maxRTT,omitempty"`
  815. // acceptable failure rate
  816. Tolerance float32 `protobuf:"fixed32,6,opt,name=tolerance,proto3" json:"tolerance,omitempty"`
  817. ObserverTag string `protobuf:"bytes,7,opt,name=observer_tag,json=observerTag,proto3" json:"observer_tag,omitempty"`
  818. }
  819. func (x *StrategyLeastLoadConfig) Reset() {
  820. *x = StrategyLeastLoadConfig{}
  821. if protoimpl.UnsafeEnabled {
  822. mi := &file_app_router_config_proto_msgTypes[10]
  823. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  824. ms.StoreMessageInfo(mi)
  825. }
  826. }
  827. func (x *StrategyLeastLoadConfig) String() string {
  828. return protoimpl.X.MessageStringOf(x)
  829. }
  830. func (*StrategyLeastLoadConfig) ProtoMessage() {}
  831. func (x *StrategyLeastLoadConfig) ProtoReflect() protoreflect.Message {
  832. mi := &file_app_router_config_proto_msgTypes[10]
  833. if protoimpl.UnsafeEnabled && x != nil {
  834. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  835. if ms.LoadMessageInfo() == nil {
  836. ms.StoreMessageInfo(mi)
  837. }
  838. return ms
  839. }
  840. return mi.MessageOf(x)
  841. }
  842. // Deprecated: Use StrategyLeastLoadConfig.ProtoReflect.Descriptor instead.
  843. func (*StrategyLeastLoadConfig) Descriptor() ([]byte, []int) {
  844. return file_app_router_config_proto_rawDescGZIP(), []int{10}
  845. }
  846. func (x *StrategyLeastLoadConfig) GetCosts() []*StrategyWeight {
  847. if x != nil {
  848. return x.Costs
  849. }
  850. return nil
  851. }
  852. func (x *StrategyLeastLoadConfig) GetBaselines() []int64 {
  853. if x != nil {
  854. return x.Baselines
  855. }
  856. return nil
  857. }
  858. func (x *StrategyLeastLoadConfig) GetExpected() int32 {
  859. if x != nil {
  860. return x.Expected
  861. }
  862. return 0
  863. }
  864. func (x *StrategyLeastLoadConfig) GetMaxRTT() int64 {
  865. if x != nil {
  866. return x.MaxRTT
  867. }
  868. return 0
  869. }
  870. func (x *StrategyLeastLoadConfig) GetTolerance() float32 {
  871. if x != nil {
  872. return x.Tolerance
  873. }
  874. return 0
  875. }
  876. func (x *StrategyLeastLoadConfig) GetObserverTag() string {
  877. if x != nil {
  878. return x.ObserverTag
  879. }
  880. return ""
  881. }
  882. type Config struct {
  883. state protoimpl.MessageState
  884. sizeCache protoimpl.SizeCache
  885. unknownFields protoimpl.UnknownFields
  886. DomainStrategy DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=v2ray.core.app.router.DomainStrategy" json:"domain_strategy,omitempty"`
  887. Rule []*RoutingRule `protobuf:"bytes,2,rep,name=rule,proto3" json:"rule,omitempty"`
  888. BalancingRule []*BalancingRule `protobuf:"bytes,3,rep,name=balancing_rule,json=balancingRule,proto3" json:"balancing_rule,omitempty"`
  889. }
  890. func (x *Config) Reset() {
  891. *x = Config{}
  892. if protoimpl.UnsafeEnabled {
  893. mi := &file_app_router_config_proto_msgTypes[11]
  894. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  895. ms.StoreMessageInfo(mi)
  896. }
  897. }
  898. func (x *Config) String() string {
  899. return protoimpl.X.MessageStringOf(x)
  900. }
  901. func (*Config) ProtoMessage() {}
  902. func (x *Config) ProtoReflect() protoreflect.Message {
  903. mi := &file_app_router_config_proto_msgTypes[11]
  904. if protoimpl.UnsafeEnabled && x != nil {
  905. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  906. if ms.LoadMessageInfo() == nil {
  907. ms.StoreMessageInfo(mi)
  908. }
  909. return ms
  910. }
  911. return mi.MessageOf(x)
  912. }
  913. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  914. func (*Config) Descriptor() ([]byte, []int) {
  915. return file_app_router_config_proto_rawDescGZIP(), []int{11}
  916. }
  917. func (x *Config) GetDomainStrategy() DomainStrategy {
  918. if x != nil {
  919. return x.DomainStrategy
  920. }
  921. return DomainStrategy_AsIs
  922. }
  923. func (x *Config) GetRule() []*RoutingRule {
  924. if x != nil {
  925. return x.Rule
  926. }
  927. return nil
  928. }
  929. func (x *Config) GetBalancingRule() []*BalancingRule {
  930. if x != nil {
  931. return x.BalancingRule
  932. }
  933. return nil
  934. }
  935. type SimplifiedConfig struct {
  936. state protoimpl.MessageState
  937. sizeCache protoimpl.SizeCache
  938. unknownFields protoimpl.UnknownFields
  939. DomainStrategy DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=v2ray.core.app.router.DomainStrategy" json:"domain_strategy,omitempty"`
  940. Rule []*RoutingRule `protobuf:"bytes,2,rep,name=rule,proto3" json:"rule,omitempty"`
  941. BalancingRule []*BalancingRule `protobuf:"bytes,3,rep,name=balancing_rule,json=balancingRule,proto3" json:"balancing_rule,omitempty"`
  942. }
  943. func (x *SimplifiedConfig) Reset() {
  944. *x = SimplifiedConfig{}
  945. if protoimpl.UnsafeEnabled {
  946. mi := &file_app_router_config_proto_msgTypes[12]
  947. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  948. ms.StoreMessageInfo(mi)
  949. }
  950. }
  951. func (x *SimplifiedConfig) String() string {
  952. return protoimpl.X.MessageStringOf(x)
  953. }
  954. func (*SimplifiedConfig) ProtoMessage() {}
  955. func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
  956. mi := &file_app_router_config_proto_msgTypes[12]
  957. if protoimpl.UnsafeEnabled && x != nil {
  958. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  959. if ms.LoadMessageInfo() == nil {
  960. ms.StoreMessageInfo(mi)
  961. }
  962. return ms
  963. }
  964. return mi.MessageOf(x)
  965. }
  966. // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
  967. func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
  968. return file_app_router_config_proto_rawDescGZIP(), []int{12}
  969. }
  970. func (x *SimplifiedConfig) GetDomainStrategy() DomainStrategy {
  971. if x != nil {
  972. return x.DomainStrategy
  973. }
  974. return DomainStrategy_AsIs
  975. }
  976. func (x *SimplifiedConfig) GetRule() []*RoutingRule {
  977. if x != nil {
  978. return x.Rule
  979. }
  980. return nil
  981. }
  982. func (x *SimplifiedConfig) GetBalancingRule() []*BalancingRule {
  983. if x != nil {
  984. return x.BalancingRule
  985. }
  986. return nil
  987. }
  988. type Domain_Attribute struct {
  989. state protoimpl.MessageState
  990. sizeCache protoimpl.SizeCache
  991. unknownFields protoimpl.UnknownFields
  992. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  993. // Types that are assignable to TypedValue:
  994. // *Domain_Attribute_BoolValue
  995. // *Domain_Attribute_IntValue
  996. TypedValue isDomain_Attribute_TypedValue `protobuf_oneof:"typed_value"`
  997. }
  998. func (x *Domain_Attribute) Reset() {
  999. *x = Domain_Attribute{}
  1000. if protoimpl.UnsafeEnabled {
  1001. mi := &file_app_router_config_proto_msgTypes[13]
  1002. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1003. ms.StoreMessageInfo(mi)
  1004. }
  1005. }
  1006. func (x *Domain_Attribute) String() string {
  1007. return protoimpl.X.MessageStringOf(x)
  1008. }
  1009. func (*Domain_Attribute) ProtoMessage() {}
  1010. func (x *Domain_Attribute) ProtoReflect() protoreflect.Message {
  1011. mi := &file_app_router_config_proto_msgTypes[13]
  1012. if protoimpl.UnsafeEnabled && x != nil {
  1013. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1014. if ms.LoadMessageInfo() == nil {
  1015. ms.StoreMessageInfo(mi)
  1016. }
  1017. return ms
  1018. }
  1019. return mi.MessageOf(x)
  1020. }
  1021. // Deprecated: Use Domain_Attribute.ProtoReflect.Descriptor instead.
  1022. func (*Domain_Attribute) Descriptor() ([]byte, []int) {
  1023. return file_app_router_config_proto_rawDescGZIP(), []int{0, 0}
  1024. }
  1025. func (x *Domain_Attribute) GetKey() string {
  1026. if x != nil {
  1027. return x.Key
  1028. }
  1029. return ""
  1030. }
  1031. func (m *Domain_Attribute) GetTypedValue() isDomain_Attribute_TypedValue {
  1032. if m != nil {
  1033. return m.TypedValue
  1034. }
  1035. return nil
  1036. }
  1037. func (x *Domain_Attribute) GetBoolValue() bool {
  1038. if x, ok := x.GetTypedValue().(*Domain_Attribute_BoolValue); ok {
  1039. return x.BoolValue
  1040. }
  1041. return false
  1042. }
  1043. func (x *Domain_Attribute) GetIntValue() int64 {
  1044. if x, ok := x.GetTypedValue().(*Domain_Attribute_IntValue); ok {
  1045. return x.IntValue
  1046. }
  1047. return 0
  1048. }
  1049. type isDomain_Attribute_TypedValue interface {
  1050. isDomain_Attribute_TypedValue()
  1051. }
  1052. type Domain_Attribute_BoolValue struct {
  1053. BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
  1054. }
  1055. type Domain_Attribute_IntValue struct {
  1056. IntValue int64 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof"`
  1057. }
  1058. func (*Domain_Attribute_BoolValue) isDomain_Attribute_TypedValue() {}
  1059. func (*Domain_Attribute_IntValue) isDomain_Attribute_TypedValue() {}
  1060. var File_app_router_config_proto protoreflect.FileDescriptor
  1061. var file_app_router_config_proto_rawDesc = []byte{
  1062. 0x0a, 0x17, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e,
  1063. 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x76, 0x32, 0x72, 0x61, 0x79,
  1064. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  1065. 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  1066. 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x63, 0x6f, 0x6d,
  1067. 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f,
  1068. 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e,
  1069. 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f,
  1070. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78,
  1071. 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc3,
  1072. 0x02, 0x0a, 0x06, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x36, 0x0a, 0x04, 0x74, 0x79, 0x70,
  1073. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  1074. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e,
  1075. 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70,
  1076. 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  1077. 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69,
  1078. 0x62, 0x75, 0x74, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x76, 0x32, 0x72,
  1079. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74,
  1080. 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62,
  1081. 0x75, 0x74, 0x65, 0x52, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x1a, 0x6c,
  1082. 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b,
  1083. 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a,
  1084. 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  1085. 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d,
  1086. 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
  1087. 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0d, 0x0a,
  1088. 0x0b, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x36, 0x0a, 0x04,
  1089. 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x6c, 0x61, 0x69, 0x6e, 0x10, 0x00, 0x12,
  1090. 0x09, 0x0a, 0x05, 0x52, 0x65, 0x67, 0x65, 0x78, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x6f,
  1091. 0x6f, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x75,
  1092. 0x6c, 0x6c, 0x10, 0x03, 0x22, 0x2e, 0x0a, 0x04, 0x43, 0x49, 0x44, 0x52, 0x12, 0x0e, 0x0a, 0x02,
  1093. 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x70, 0x12, 0x16, 0x0a, 0x06,
  1094. 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x70, 0x72,
  1095. 0x65, 0x66, 0x69, 0x78, 0x22, 0xed, 0x01, 0x0a, 0x05, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x12, 0x21,
  1096. 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01,
  1097. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64,
  1098. 0x65, 0x12, 0x2f, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
  1099. 0x1b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  1100. 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x52, 0x04, 0x63, 0x69,
  1101. 0x64, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x65, 0x5f, 0x6d, 0x61,
  1102. 0x74, 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e, 0x76, 0x65, 0x72,
  1103. 0x73, 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75,
  1104. 0x72, 0x63, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c,
  1105. 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x61, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04,
  1106. 0x63, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65,
  1107. 0x12, 0x32, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0xa0, 0x93,
  1108. 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x13, 0x82, 0xb5, 0x18, 0x0f, 0x32, 0x0d, 0x72, 0x65, 0x73,
  1109. 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65,
  1110. 0x50, 0x61, 0x74, 0x68, 0x22, 0x3f, 0x0a, 0x09, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x4c, 0x69, 0x73,
  1111. 0x74, 0x12, 0x32, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
  1112. 0x32, 0x1c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  1113. 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x05,
  1114. 0x65, 0x6e, 0x74, 0x72, 0x79, 0x22, 0xd0, 0x01, 0x0a, 0x07, 0x47, 0x65, 0x6f, 0x53, 0x69, 0x74,
  1115. 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64,
  1116. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79,
  1117. 0x43, 0x6f, 0x64, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02,
  1118. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  1119. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d,
  1120. 0x61, 0x69, 0x6e, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x72,
  1121. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01,
  1122. 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x61, 0x73, 0x68,
  1123. 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
  1124. 0x63, 0x6f, 0x64, 0x65, 0x12, 0x32, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x61, 0x74,
  1125. 0x68, 0x18, 0xa0, 0x93, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x13, 0x82, 0xb5, 0x18, 0x0f, 0x32,
  1126. 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x52, 0x08,
  1127. 0x66, 0x69, 0x6c, 0x65, 0x50, 0x61, 0x74, 0x68, 0x22, 0x43, 0x0a, 0x0b, 0x47, 0x65, 0x6f, 0x53,
  1128. 0x69, 0x74, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79,
  1129. 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  1130. 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47,
  1131. 0x65, 0x6f, 0x53, 0x69, 0x74, 0x65, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x22, 0xf1, 0x06,
  1132. 0x0a, 0x0b, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a,
  1133. 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x74, 0x61,
  1134. 0x67, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x74,
  1135. 0x61, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x61, 0x6c, 0x61,
  1136. 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x67, 0x12, 0x35, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61,
  1137. 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  1138. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  1139. 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12,
  1140. 0x33, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e,
  1141. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72,
  1142. 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04,
  1143. 0x63, 0x69, 0x64, 0x72, 0x12, 0x32, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x0a, 0x20,
  1144. 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  1145. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x49,
  1146. 0x50, 0x52, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x43, 0x0a, 0x0a, 0x70, 0x6f, 0x72, 0x74,
  1147. 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76,
  1148. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  1149. 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x42, 0x02,
  1150. 0x18, 0x01, 0x52, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x3c, 0x0a,
  1151. 0x09, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b,
  1152. 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f,
  1153. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73,
  1154. 0x74, 0x52, 0x08, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x0c, 0x6e,
  1155. 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,
  1156. 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63,
  1157. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72,
  1158. 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x6e, 0x65, 0x74, 0x77, 0x6f,
  1159. 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
  1160. 0x6b, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  1161. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74,
  1162. 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x08, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72,
  1163. 0x6b, 0x73, 0x12, 0x40, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x69, 0x64,
  1164. 0x72, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  1165. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e,
  1166. 0x43, 0x49, 0x44, 0x52, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
  1167. 0x43, 0x69, 0x64, 0x72, 0x12, 0x3f, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67,
  1168. 0x65, 0x6f, 0x69, 0x70, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x32, 0x72,
  1169. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74,
  1170. 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
  1171. 0x47, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x49, 0x0a, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f,
  1172. 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32,
  1173. 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
  1174. 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74,
  1175. 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74,
  1176. 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07,
  1177. 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12,
  1178. 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x08,
  1179. 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x61, 0x67,
  1180. 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x09, 0x20, 0x03,
  1181. 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1e, 0x0a, 0x0a,
  1182. 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09,
  1183. 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e,
  1184. 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x18, 0x11,
  1185. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63,
  1186. 0x68, 0x65, 0x72, 0x42, 0x0c, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x61,
  1187. 0x67, 0x22, 0xd0, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52,
  1188. 0x75, 0x6c, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  1189. 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x2b, 0x0a, 0x11, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e,
  1190. 0x64, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09,
  1191. 0x52, 0x10, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74,
  1192. 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x03,
  1193. 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x41,
  1194. 0x0a, 0x11, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69,
  1195. 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
  1196. 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52,
  1197. 0x10, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  1198. 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x74, 0x61,
  1199. 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63,
  1200. 0x6b, 0x54, 0x61, 0x67, 0x22, 0x54, 0x0a, 0x0e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  1201. 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x65, 0x78, 0x70,
  1202. 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x67, 0x65, 0x78, 0x70, 0x12, 0x14,
  1203. 0x0a, 0x05, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d,
  1204. 0x61, 0x74, 0x63, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20,
  1205. 0x01, 0x28, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x3c, 0x0a, 0x17, 0x53, 0x74,
  1206. 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x4c, 0x65, 0x61, 0x73, 0x74, 0x50, 0x69, 0x6e, 0x67, 0x43,
  1207. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65,
  1208. 0x72, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x62, 0x73,
  1209. 0x65, 0x72, 0x76, 0x65, 0x72, 0x54, 0x61, 0x67, 0x22, 0xe9, 0x01, 0x0a, 0x17, 0x53, 0x74, 0x72,
  1210. 0x61, 0x74, 0x65, 0x67, 0x79, 0x4c, 0x65, 0x61, 0x73, 0x74, 0x4c, 0x6f, 0x61, 0x64, 0x43, 0x6f,
  1211. 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x05, 0x63, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20,
  1212. 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  1213. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x72, 0x61,
  1214. 0x74, 0x65, 0x67, 0x79, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x05, 0x63, 0x6f, 0x73, 0x74,
  1215. 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03,
  1216. 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12,
  1217. 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
  1218. 0x05, 0x52, 0x08, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d,
  1219. 0x61, 0x78, 0x52, 0x54, 0x54, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6d, 0x61, 0x78,
  1220. 0x52, 0x54, 0x54, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x6f, 0x6c, 0x65, 0x72, 0x61, 0x6e, 0x63, 0x65,
  1221. 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x52, 0x09, 0x74, 0x6f, 0x6c, 0x65, 0x72, 0x61, 0x6e, 0x63,
  1222. 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x61,
  1223. 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x65,
  1224. 0x72, 0x54, 0x61, 0x67, 0x22, 0xdd, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  1225. 0x4e, 0x0a, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65,
  1226. 0x67, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  1227. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  1228. 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52,
  1229. 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12,
  1230. 0x36, 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e,
  1231. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72,
  1232. 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c,
  1233. 0x65, 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x62, 0x61, 0x6c, 0x61, 0x6e,
  1234. 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
  1235. 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  1236. 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e,
  1237. 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67,
  1238. 0x52, 0x75, 0x6c, 0x65, 0x22, 0x82, 0x02, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66,
  1239. 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4e, 0x0a, 0x0f, 0x64, 0x6f, 0x6d,
  1240. 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x01, 0x20, 0x01,
  1241. 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  1242. 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69,
  1243. 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69,
  1244. 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x36, 0x0a, 0x04, 0x72, 0x75, 0x6c,
  1245. 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  1246. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e,
  1247. 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x75, 0x6c,
  1248. 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x72,
  1249. 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61,
  1250. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
  1251. 0x72, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52,
  1252. 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x3a, 0x19,
  1253. 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x82, 0xb5, 0x18,
  1254. 0x08, 0x12, 0x06, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2a, 0x47, 0x0a, 0x0e, 0x44, 0x6f, 0x6d,
  1255. 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x08, 0x0a, 0x04, 0x41,
  1256. 0x73, 0x49, 0x73, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x73, 0x65, 0x49, 0x70, 0x10, 0x01,
  1257. 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x70, 0x49, 0x66, 0x4e, 0x6f, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68,
  1258. 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x70, 0x4f, 0x6e, 0x44, 0x65, 0x6d, 0x61, 0x6e, 0x64,
  1259. 0x10, 0x03, 0x42, 0x60, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  1260. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x50,
  1261. 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32,
  1262. 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76,
  1263. 0x34, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0xaa, 0x02, 0x15, 0x56,
  1264. 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x52, 0x6f,
  1265. 0x75, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1266. }
  1267. var (
  1268. file_app_router_config_proto_rawDescOnce sync.Once
  1269. file_app_router_config_proto_rawDescData = file_app_router_config_proto_rawDesc
  1270. )
  1271. func file_app_router_config_proto_rawDescGZIP() []byte {
  1272. file_app_router_config_proto_rawDescOnce.Do(func() {
  1273. file_app_router_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_router_config_proto_rawDescData)
  1274. })
  1275. return file_app_router_config_proto_rawDescData
  1276. }
  1277. var file_app_router_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  1278. var file_app_router_config_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
  1279. var file_app_router_config_proto_goTypes = []interface{}{
  1280. (DomainStrategy)(0), // 0: v2ray.core.app.router.DomainStrategy
  1281. (Domain_Type)(0), // 1: v2ray.core.app.router.Domain.Type
  1282. (*Domain)(nil), // 2: v2ray.core.app.router.Domain
  1283. (*CIDR)(nil), // 3: v2ray.core.app.router.CIDR
  1284. (*GeoIP)(nil), // 4: v2ray.core.app.router.GeoIP
  1285. (*GeoIPList)(nil), // 5: v2ray.core.app.router.GeoIPList
  1286. (*GeoSite)(nil), // 6: v2ray.core.app.router.GeoSite
  1287. (*GeoSiteList)(nil), // 7: v2ray.core.app.router.GeoSiteList
  1288. (*RoutingRule)(nil), // 8: v2ray.core.app.router.RoutingRule
  1289. (*BalancingRule)(nil), // 9: v2ray.core.app.router.BalancingRule
  1290. (*StrategyWeight)(nil), // 10: v2ray.core.app.router.StrategyWeight
  1291. (*StrategyLeastPingConfig)(nil), // 11: v2ray.core.app.router.StrategyLeastPingConfig
  1292. (*StrategyLeastLoadConfig)(nil), // 12: v2ray.core.app.router.StrategyLeastLoadConfig
  1293. (*Config)(nil), // 13: v2ray.core.app.router.Config
  1294. (*SimplifiedConfig)(nil), // 14: v2ray.core.app.router.SimplifiedConfig
  1295. (*Domain_Attribute)(nil), // 15: v2ray.core.app.router.Domain.Attribute
  1296. (*net.PortRange)(nil), // 16: v2ray.core.common.net.PortRange
  1297. (*net.PortList)(nil), // 17: v2ray.core.common.net.PortList
  1298. (*net.NetworkList)(nil), // 18: v2ray.core.common.net.NetworkList
  1299. (net.Network)(0), // 19: v2ray.core.common.net.Network
  1300. (*anypb.Any)(nil), // 20: google.protobuf.Any
  1301. }
  1302. var file_app_router_config_proto_depIdxs = []int32{
  1303. 1, // 0: v2ray.core.app.router.Domain.type:type_name -> v2ray.core.app.router.Domain.Type
  1304. 15, // 1: v2ray.core.app.router.Domain.attribute:type_name -> v2ray.core.app.router.Domain.Attribute
  1305. 3, // 2: v2ray.core.app.router.GeoIP.cidr:type_name -> v2ray.core.app.router.CIDR
  1306. 4, // 3: v2ray.core.app.router.GeoIPList.entry:type_name -> v2ray.core.app.router.GeoIP
  1307. 2, // 4: v2ray.core.app.router.GeoSite.domain:type_name -> v2ray.core.app.router.Domain
  1308. 6, // 5: v2ray.core.app.router.GeoSiteList.entry:type_name -> v2ray.core.app.router.GeoSite
  1309. 2, // 6: v2ray.core.app.router.RoutingRule.domain:type_name -> v2ray.core.app.router.Domain
  1310. 3, // 7: v2ray.core.app.router.RoutingRule.cidr:type_name -> v2ray.core.app.router.CIDR
  1311. 4, // 8: v2ray.core.app.router.RoutingRule.geoip:type_name -> v2ray.core.app.router.GeoIP
  1312. 16, // 9: v2ray.core.app.router.RoutingRule.port_range:type_name -> v2ray.core.common.net.PortRange
  1313. 17, // 10: v2ray.core.app.router.RoutingRule.port_list:type_name -> v2ray.core.common.net.PortList
  1314. 18, // 11: v2ray.core.app.router.RoutingRule.network_list:type_name -> v2ray.core.common.net.NetworkList
  1315. 19, // 12: v2ray.core.app.router.RoutingRule.networks:type_name -> v2ray.core.common.net.Network
  1316. 3, // 13: v2ray.core.app.router.RoutingRule.source_cidr:type_name -> v2ray.core.app.router.CIDR
  1317. 4, // 14: v2ray.core.app.router.RoutingRule.source_geoip:type_name -> v2ray.core.app.router.GeoIP
  1318. 17, // 15: v2ray.core.app.router.RoutingRule.source_port_list:type_name -> v2ray.core.common.net.PortList
  1319. 20, // 16: v2ray.core.app.router.BalancingRule.strategy_settings:type_name -> google.protobuf.Any
  1320. 10, // 17: v2ray.core.app.router.StrategyLeastLoadConfig.costs:type_name -> v2ray.core.app.router.StrategyWeight
  1321. 0, // 18: v2ray.core.app.router.Config.domain_strategy:type_name -> v2ray.core.app.router.DomainStrategy
  1322. 8, // 19: v2ray.core.app.router.Config.rule:type_name -> v2ray.core.app.router.RoutingRule
  1323. 9, // 20: v2ray.core.app.router.Config.balancing_rule:type_name -> v2ray.core.app.router.BalancingRule
  1324. 0, // 21: v2ray.core.app.router.SimplifiedConfig.domain_strategy:type_name -> v2ray.core.app.router.DomainStrategy
  1325. 8, // 22: v2ray.core.app.router.SimplifiedConfig.rule:type_name -> v2ray.core.app.router.RoutingRule
  1326. 9, // 23: v2ray.core.app.router.SimplifiedConfig.balancing_rule:type_name -> v2ray.core.app.router.BalancingRule
  1327. 24, // [24:24] is the sub-list for method output_type
  1328. 24, // [24:24] is the sub-list for method input_type
  1329. 24, // [24:24] is the sub-list for extension type_name
  1330. 24, // [24:24] is the sub-list for extension extendee
  1331. 0, // [0:24] is the sub-list for field type_name
  1332. }
  1333. func init() { file_app_router_config_proto_init() }
  1334. func file_app_router_config_proto_init() {
  1335. if File_app_router_config_proto != nil {
  1336. return
  1337. }
  1338. if !protoimpl.UnsafeEnabled {
  1339. file_app_router_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1340. switch v := v.(*Domain); i {
  1341. case 0:
  1342. return &v.state
  1343. case 1:
  1344. return &v.sizeCache
  1345. case 2:
  1346. return &v.unknownFields
  1347. default:
  1348. return nil
  1349. }
  1350. }
  1351. file_app_router_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1352. switch v := v.(*CIDR); i {
  1353. case 0:
  1354. return &v.state
  1355. case 1:
  1356. return &v.sizeCache
  1357. case 2:
  1358. return &v.unknownFields
  1359. default:
  1360. return nil
  1361. }
  1362. }
  1363. file_app_router_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1364. switch v := v.(*GeoIP); i {
  1365. case 0:
  1366. return &v.state
  1367. case 1:
  1368. return &v.sizeCache
  1369. case 2:
  1370. return &v.unknownFields
  1371. default:
  1372. return nil
  1373. }
  1374. }
  1375. file_app_router_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1376. switch v := v.(*GeoIPList); i {
  1377. case 0:
  1378. return &v.state
  1379. case 1:
  1380. return &v.sizeCache
  1381. case 2:
  1382. return &v.unknownFields
  1383. default:
  1384. return nil
  1385. }
  1386. }
  1387. file_app_router_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1388. switch v := v.(*GeoSite); i {
  1389. case 0:
  1390. return &v.state
  1391. case 1:
  1392. return &v.sizeCache
  1393. case 2:
  1394. return &v.unknownFields
  1395. default:
  1396. return nil
  1397. }
  1398. }
  1399. file_app_router_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1400. switch v := v.(*GeoSiteList); i {
  1401. case 0:
  1402. return &v.state
  1403. case 1:
  1404. return &v.sizeCache
  1405. case 2:
  1406. return &v.unknownFields
  1407. default:
  1408. return nil
  1409. }
  1410. }
  1411. file_app_router_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1412. switch v := v.(*RoutingRule); i {
  1413. case 0:
  1414. return &v.state
  1415. case 1:
  1416. return &v.sizeCache
  1417. case 2:
  1418. return &v.unknownFields
  1419. default:
  1420. return nil
  1421. }
  1422. }
  1423. file_app_router_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1424. switch v := v.(*BalancingRule); i {
  1425. case 0:
  1426. return &v.state
  1427. case 1:
  1428. return &v.sizeCache
  1429. case 2:
  1430. return &v.unknownFields
  1431. default:
  1432. return nil
  1433. }
  1434. }
  1435. file_app_router_config_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1436. switch v := v.(*StrategyWeight); i {
  1437. case 0:
  1438. return &v.state
  1439. case 1:
  1440. return &v.sizeCache
  1441. case 2:
  1442. return &v.unknownFields
  1443. default:
  1444. return nil
  1445. }
  1446. }
  1447. file_app_router_config_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1448. switch v := v.(*StrategyLeastPingConfig); i {
  1449. case 0:
  1450. return &v.state
  1451. case 1:
  1452. return &v.sizeCache
  1453. case 2:
  1454. return &v.unknownFields
  1455. default:
  1456. return nil
  1457. }
  1458. }
  1459. file_app_router_config_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1460. switch v := v.(*StrategyLeastLoadConfig); i {
  1461. case 0:
  1462. return &v.state
  1463. case 1:
  1464. return &v.sizeCache
  1465. case 2:
  1466. return &v.unknownFields
  1467. default:
  1468. return nil
  1469. }
  1470. }
  1471. file_app_router_config_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1472. switch v := v.(*Config); i {
  1473. case 0:
  1474. return &v.state
  1475. case 1:
  1476. return &v.sizeCache
  1477. case 2:
  1478. return &v.unknownFields
  1479. default:
  1480. return nil
  1481. }
  1482. }
  1483. file_app_router_config_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1484. switch v := v.(*SimplifiedConfig); i {
  1485. case 0:
  1486. return &v.state
  1487. case 1:
  1488. return &v.sizeCache
  1489. case 2:
  1490. return &v.unknownFields
  1491. default:
  1492. return nil
  1493. }
  1494. }
  1495. file_app_router_config_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  1496. switch v := v.(*Domain_Attribute); i {
  1497. case 0:
  1498. return &v.state
  1499. case 1:
  1500. return &v.sizeCache
  1501. case 2:
  1502. return &v.unknownFields
  1503. default:
  1504. return nil
  1505. }
  1506. }
  1507. }
  1508. file_app_router_config_proto_msgTypes[6].OneofWrappers = []interface{}{
  1509. (*RoutingRule_Tag)(nil),
  1510. (*RoutingRule_BalancingTag)(nil),
  1511. }
  1512. file_app_router_config_proto_msgTypes[13].OneofWrappers = []interface{}{
  1513. (*Domain_Attribute_BoolValue)(nil),
  1514. (*Domain_Attribute_IntValue)(nil),
  1515. }
  1516. type x struct{}
  1517. out := protoimpl.TypeBuilder{
  1518. File: protoimpl.DescBuilder{
  1519. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1520. RawDescriptor: file_app_router_config_proto_rawDesc,
  1521. NumEnums: 2,
  1522. NumMessages: 14,
  1523. NumExtensions: 0,
  1524. NumServices: 0,
  1525. },
  1526. GoTypes: file_app_router_config_proto_goTypes,
  1527. DependencyIndexes: file_app_router_config_proto_depIdxs,
  1528. EnumInfos: file_app_router_config_proto_enumTypes,
  1529. MessageInfos: file_app_router_config_proto_msgTypes,
  1530. }.Build()
  1531. File_app_router_config_proto = out.File
  1532. file_app_router_config_proto_rawDesc = nil
  1533. file_app_router_config_proto_goTypes = nil
  1534. file_app_router_config_proto_depIdxs = nil
  1535. }