config.pb.go 43 KB

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