config.pb.go 44 KB

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