config.pb.go 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0
  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. }
  605. func (x *BalancingRule) Reset() {
  606. *x = BalancingRule{}
  607. if protoimpl.UnsafeEnabled {
  608. mi := &file_app_router_config_proto_msgTypes[7]
  609. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  610. ms.StoreMessageInfo(mi)
  611. }
  612. }
  613. func (x *BalancingRule) String() string {
  614. return protoimpl.X.MessageStringOf(x)
  615. }
  616. func (*BalancingRule) ProtoMessage() {}
  617. func (x *BalancingRule) ProtoReflect() protoreflect.Message {
  618. mi := &file_app_router_config_proto_msgTypes[7]
  619. if protoimpl.UnsafeEnabled && x != nil {
  620. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  621. if ms.LoadMessageInfo() == nil {
  622. ms.StoreMessageInfo(mi)
  623. }
  624. return ms
  625. }
  626. return mi.MessageOf(x)
  627. }
  628. // Deprecated: Use BalancingRule.ProtoReflect.Descriptor instead.
  629. func (*BalancingRule) Descriptor() ([]byte, []int) {
  630. return file_app_router_config_proto_rawDescGZIP(), []int{7}
  631. }
  632. func (x *BalancingRule) GetTag() string {
  633. if x != nil {
  634. return x.Tag
  635. }
  636. return ""
  637. }
  638. func (x *BalancingRule) GetOutboundSelector() []string {
  639. if x != nil {
  640. return x.OutboundSelector
  641. }
  642. return nil
  643. }
  644. type Config struct {
  645. state protoimpl.MessageState
  646. sizeCache protoimpl.SizeCache
  647. unknownFields protoimpl.UnknownFields
  648. DomainStrategy Config_DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=v2ray.core.app.router.Config_DomainStrategy" json:"domain_strategy,omitempty"`
  649. Rule []*RoutingRule `protobuf:"bytes,2,rep,name=rule,proto3" json:"rule,omitempty"`
  650. BalancingRule []*BalancingRule `protobuf:"bytes,3,rep,name=balancing_rule,json=balancingRule,proto3" json:"balancing_rule,omitempty"`
  651. }
  652. func (x *Config) Reset() {
  653. *x = Config{}
  654. if protoimpl.UnsafeEnabled {
  655. mi := &file_app_router_config_proto_msgTypes[8]
  656. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  657. ms.StoreMessageInfo(mi)
  658. }
  659. }
  660. func (x *Config) String() string {
  661. return protoimpl.X.MessageStringOf(x)
  662. }
  663. func (*Config) ProtoMessage() {}
  664. func (x *Config) ProtoReflect() protoreflect.Message {
  665. mi := &file_app_router_config_proto_msgTypes[8]
  666. if protoimpl.UnsafeEnabled && x != nil {
  667. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  668. if ms.LoadMessageInfo() == nil {
  669. ms.StoreMessageInfo(mi)
  670. }
  671. return ms
  672. }
  673. return mi.MessageOf(x)
  674. }
  675. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  676. func (*Config) Descriptor() ([]byte, []int) {
  677. return file_app_router_config_proto_rawDescGZIP(), []int{8}
  678. }
  679. func (x *Config) GetDomainStrategy() Config_DomainStrategy {
  680. if x != nil {
  681. return x.DomainStrategy
  682. }
  683. return Config_AsIs
  684. }
  685. func (x *Config) GetRule() []*RoutingRule {
  686. if x != nil {
  687. return x.Rule
  688. }
  689. return nil
  690. }
  691. func (x *Config) GetBalancingRule() []*BalancingRule {
  692. if x != nil {
  693. return x.BalancingRule
  694. }
  695. return nil
  696. }
  697. type Domain_Attribute struct {
  698. state protoimpl.MessageState
  699. sizeCache protoimpl.SizeCache
  700. unknownFields protoimpl.UnknownFields
  701. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  702. // Types that are assignable to TypedValue:
  703. // *Domain_Attribute_BoolValue
  704. // *Domain_Attribute_IntValue
  705. TypedValue isDomain_Attribute_TypedValue `protobuf_oneof:"typed_value"`
  706. }
  707. func (x *Domain_Attribute) Reset() {
  708. *x = Domain_Attribute{}
  709. if protoimpl.UnsafeEnabled {
  710. mi := &file_app_router_config_proto_msgTypes[9]
  711. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  712. ms.StoreMessageInfo(mi)
  713. }
  714. }
  715. func (x *Domain_Attribute) String() string {
  716. return protoimpl.X.MessageStringOf(x)
  717. }
  718. func (*Domain_Attribute) ProtoMessage() {}
  719. func (x *Domain_Attribute) ProtoReflect() protoreflect.Message {
  720. mi := &file_app_router_config_proto_msgTypes[9]
  721. if protoimpl.UnsafeEnabled && x != nil {
  722. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  723. if ms.LoadMessageInfo() == nil {
  724. ms.StoreMessageInfo(mi)
  725. }
  726. return ms
  727. }
  728. return mi.MessageOf(x)
  729. }
  730. // Deprecated: Use Domain_Attribute.ProtoReflect.Descriptor instead.
  731. func (*Domain_Attribute) Descriptor() ([]byte, []int) {
  732. return file_app_router_config_proto_rawDescGZIP(), []int{0, 0}
  733. }
  734. func (x *Domain_Attribute) GetKey() string {
  735. if x != nil {
  736. return x.Key
  737. }
  738. return ""
  739. }
  740. func (m *Domain_Attribute) GetTypedValue() isDomain_Attribute_TypedValue {
  741. if m != nil {
  742. return m.TypedValue
  743. }
  744. return nil
  745. }
  746. func (x *Domain_Attribute) GetBoolValue() bool {
  747. if x, ok := x.GetTypedValue().(*Domain_Attribute_BoolValue); ok {
  748. return x.BoolValue
  749. }
  750. return false
  751. }
  752. func (x *Domain_Attribute) GetIntValue() int64 {
  753. if x, ok := x.GetTypedValue().(*Domain_Attribute_IntValue); ok {
  754. return x.IntValue
  755. }
  756. return 0
  757. }
  758. type isDomain_Attribute_TypedValue interface {
  759. isDomain_Attribute_TypedValue()
  760. }
  761. type Domain_Attribute_BoolValue struct {
  762. BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
  763. }
  764. type Domain_Attribute_IntValue struct {
  765. IntValue int64 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof"`
  766. }
  767. func (*Domain_Attribute_BoolValue) isDomain_Attribute_TypedValue() {}
  768. func (*Domain_Attribute_IntValue) isDomain_Attribute_TypedValue() {}
  769. var File_app_router_config_proto protoreflect.FileDescriptor
  770. var file_app_router_config_proto_rawDesc = []byte{
  771. 0x0a, 0x17, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e,
  772. 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x76, 0x32, 0x72, 0x61, 0x79,
  773. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  774. 0x1a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x6f, 0x72,
  775. 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f,
  776. 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  777. 0x6f, 0x22, 0xbf, 0x02, 0x0a, 0x06, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x36, 0x0a, 0x04,
  778. 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72,
  779. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74,
  780. 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04,
  781. 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
  782. 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x09, 0x61, 0x74,
  783. 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e,
  784. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72,
  785. 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x41, 0x74, 0x74,
  786. 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x09, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
  787. 0x65, 0x1a, 0x6c, 0x0a, 0x09, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x10,
  788. 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
  789. 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
  790. 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75,
  791. 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03,
  792. 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65,
  793. 0x42, 0x0d, 0x0a, 0x0b, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22,
  794. 0x32, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x6c, 0x61, 0x69, 0x6e,
  795. 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x65, 0x67, 0x65, 0x78, 0x10, 0x01, 0x12, 0x0a, 0x0a,
  796. 0x06, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x75, 0x6c,
  797. 0x6c, 0x10, 0x03, 0x22, 0x2e, 0x0a, 0x04, 0x43, 0x49, 0x44, 0x52, 0x12, 0x0e, 0x0a, 0x02, 0x69,
  798. 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x70,
  799. 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x70, 0x72, 0x65,
  800. 0x66, 0x69, 0x78, 0x22, 0x80, 0x01, 0x0a, 0x05, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x12, 0x21, 0x0a,
  801. 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
  802. 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x64, 0x65,
  803. 0x12, 0x2f, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b,
  804. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  805. 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x52, 0x04, 0x63, 0x69, 0x64,
  806. 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73, 0x65, 0x5f, 0x6d, 0x61, 0x74,
  807. 0x63, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x72, 0x65, 0x76, 0x65, 0x72, 0x73,
  808. 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x22, 0x3f, 0x0a, 0x09, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x4c,
  809. 0x69, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x03,
  810. 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  811. 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50,
  812. 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x63, 0x0a, 0x07, 0x47, 0x65, 0x6f, 0x53, 0x69,
  813. 0x74, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f,
  814. 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72,
  815. 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18,
  816. 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  817. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f,
  818. 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x43, 0x0a, 0x0b,
  819. 0x47, 0x65, 0x6f, 0x53, 0x69, 0x74, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x05, 0x65,
  820. 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72,
  821. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74,
  822. 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x53, 0x69, 0x74, 0x65, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x72,
  823. 0x79, 0x22, 0xf1, 0x06, 0x0a, 0x0b, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c,
  824. 0x65, 0x12, 0x12, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00,
  825. 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69,
  826. 0x6e, 0x67, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c,
  827. 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x67, 0x12, 0x35, 0x0a, 0x06,
  828. 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x76,
  829. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f,
  830. 0x75, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x06, 0x64, 0x6f, 0x6d,
  831. 0x61, 0x69, 0x6e, 0x12, 0x33, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28,
  832. 0x0b, 0x32, 0x1b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  833. 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x42, 0x02,
  834. 0x18, 0x01, 0x52, 0x04, 0x63, 0x69, 0x64, 0x72, 0x12, 0x32, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69,
  835. 0x70, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  836. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e,
  837. 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x43, 0x0a, 0x0a,
  838. 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
  839. 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f,
  840. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e,
  841. 0x67, 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67,
  842. 0x65, 0x12, 0x3c, 0x0a, 0x09, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0e,
  843. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  844. 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72,
  845. 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x08, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12,
  846. 0x49, 0x0a, 0x0c, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18,
  847. 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  848. 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65,
  849. 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x6e,
  850. 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x08, 0x6e, 0x65,
  851. 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x76,
  852. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  853. 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x08, 0x6e, 0x65,
  854. 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12, 0x40, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
  855. 0x5f, 0x63, 0x69, 0x64, 0x72, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x76, 0x32,
  856. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75,
  857. 0x74, 0x65, 0x72, 0x2e, 0x43, 0x49, 0x44, 0x52, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0a, 0x73, 0x6f,
  858. 0x75, 0x72, 0x63, 0x65, 0x43, 0x69, 0x64, 0x72, 0x12, 0x3f, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72,
  859. 0x63, 0x65, 0x5f, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c,
  860. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  861. 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x0b, 0x73, 0x6f,
  862. 0x75, 0x72, 0x63, 0x65, 0x47, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x49, 0x0a, 0x10, 0x73, 0x6f, 0x75,
  863. 0x72, 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x10, 0x20,
  864. 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  865. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x50, 0x6f, 0x72, 0x74,
  866. 0x4c, 0x69, 0x73, 0x74, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74,
  867. 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x65, 0x6d, 0x61,
  868. 0x69, 0x6c, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x45, 0x6d,
  869. 0x61, 0x69, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x74,
  870. 0x61, 0x67, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e,
  871. 0x64, 0x54, 0x61, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
  872. 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
  873. 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0f,
  874. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73,
  875. 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68,
  876. 0x65, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  877. 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x72, 0x42, 0x0c, 0x0a, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65,
  878. 0x74, 0x5f, 0x74, 0x61, 0x67, 0x22, 0x4e, 0x0a, 0x0d, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69,
  879. 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20,
  880. 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x2b, 0x0a, 0x11, 0x6f, 0x75, 0x74, 0x62,
  881. 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20,
  882. 0x03, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x65, 0x6c,
  883. 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0xad, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  884. 0x12, 0x55, 0x0a, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74,
  885. 0x65, 0x67, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x76, 0x32, 0x72, 0x61,
  886. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
  887. 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53,
  888. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53,
  889. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x36, 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18,
  890. 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  891. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x6f,
  892. 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x12,
  893. 0x4b, 0x0a, 0x0e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x75, 0x6c,
  894. 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  895. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e,
  896. 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x62,
  897. 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x22, 0x47, 0x0a, 0x0e,
  898. 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x08,
  899. 0x0a, 0x04, 0x41, 0x73, 0x49, 0x73, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x73, 0x65, 0x49,
  900. 0x70, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x70, 0x49, 0x66, 0x4e, 0x6f, 0x6e, 0x4d, 0x61,
  901. 0x74, 0x63, 0x68, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x49, 0x70, 0x4f, 0x6e, 0x44, 0x65, 0x6d,
  902. 0x61, 0x6e, 0x64, 0x10, 0x03, 0x42, 0x60, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72,
  903. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74,
  904. 0x65, 0x72, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
  905. 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72,
  906. 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0xaa,
  907. 0x02, 0x15, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70,
  908. 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  909. }
  910. var (
  911. file_app_router_config_proto_rawDescOnce sync.Once
  912. file_app_router_config_proto_rawDescData = file_app_router_config_proto_rawDesc
  913. )
  914. func file_app_router_config_proto_rawDescGZIP() []byte {
  915. file_app_router_config_proto_rawDescOnce.Do(func() {
  916. file_app_router_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_router_config_proto_rawDescData)
  917. })
  918. return file_app_router_config_proto_rawDescData
  919. }
  920. var file_app_router_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  921. var file_app_router_config_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  922. var file_app_router_config_proto_goTypes = []interface{}{
  923. (Domain_Type)(0), // 0: v2ray.core.app.router.Domain.Type
  924. (Config_DomainStrategy)(0), // 1: v2ray.core.app.router.Config.DomainStrategy
  925. (*Domain)(nil), // 2: v2ray.core.app.router.Domain
  926. (*CIDR)(nil), // 3: v2ray.core.app.router.CIDR
  927. (*GeoIP)(nil), // 4: v2ray.core.app.router.GeoIP
  928. (*GeoIPList)(nil), // 5: v2ray.core.app.router.GeoIPList
  929. (*GeoSite)(nil), // 6: v2ray.core.app.router.GeoSite
  930. (*GeoSiteList)(nil), // 7: v2ray.core.app.router.GeoSiteList
  931. (*RoutingRule)(nil), // 8: v2ray.core.app.router.RoutingRule
  932. (*BalancingRule)(nil), // 9: v2ray.core.app.router.BalancingRule
  933. (*Config)(nil), // 10: v2ray.core.app.router.Config
  934. (*Domain_Attribute)(nil), // 11: v2ray.core.app.router.Domain.Attribute
  935. (*net.PortRange)(nil), // 12: v2ray.core.common.net.PortRange
  936. (*net.PortList)(nil), // 13: v2ray.core.common.net.PortList
  937. (*net.NetworkList)(nil), // 14: v2ray.core.common.net.NetworkList
  938. (net.Network)(0), // 15: v2ray.core.common.net.Network
  939. }
  940. var file_app_router_config_proto_depIdxs = []int32{
  941. 0, // 0: v2ray.core.app.router.Domain.type:type_name -> v2ray.core.app.router.Domain.Type
  942. 11, // 1: v2ray.core.app.router.Domain.attribute:type_name -> v2ray.core.app.router.Domain.Attribute
  943. 3, // 2: v2ray.core.app.router.GeoIP.cidr:type_name -> v2ray.core.app.router.CIDR
  944. 4, // 3: v2ray.core.app.router.GeoIPList.entry:type_name -> v2ray.core.app.router.GeoIP
  945. 2, // 4: v2ray.core.app.router.GeoSite.domain:type_name -> v2ray.core.app.router.Domain
  946. 6, // 5: v2ray.core.app.router.GeoSiteList.entry:type_name -> v2ray.core.app.router.GeoSite
  947. 2, // 6: v2ray.core.app.router.RoutingRule.domain:type_name -> v2ray.core.app.router.Domain
  948. 3, // 7: v2ray.core.app.router.RoutingRule.cidr:type_name -> v2ray.core.app.router.CIDR
  949. 4, // 8: v2ray.core.app.router.RoutingRule.geoip:type_name -> v2ray.core.app.router.GeoIP
  950. 12, // 9: v2ray.core.app.router.RoutingRule.port_range:type_name -> v2ray.core.common.net.PortRange
  951. 13, // 10: v2ray.core.app.router.RoutingRule.port_list:type_name -> v2ray.core.common.net.PortList
  952. 14, // 11: v2ray.core.app.router.RoutingRule.network_list:type_name -> v2ray.core.common.net.NetworkList
  953. 15, // 12: v2ray.core.app.router.RoutingRule.networks:type_name -> v2ray.core.common.net.Network
  954. 3, // 13: v2ray.core.app.router.RoutingRule.source_cidr:type_name -> v2ray.core.app.router.CIDR
  955. 4, // 14: v2ray.core.app.router.RoutingRule.source_geoip:type_name -> v2ray.core.app.router.GeoIP
  956. 13, // 15: v2ray.core.app.router.RoutingRule.source_port_list:type_name -> v2ray.core.common.net.PortList
  957. 1, // 16: v2ray.core.app.router.Config.domain_strategy:type_name -> v2ray.core.app.router.Config.DomainStrategy
  958. 8, // 17: v2ray.core.app.router.Config.rule:type_name -> v2ray.core.app.router.RoutingRule
  959. 9, // 18: v2ray.core.app.router.Config.balancing_rule:type_name -> v2ray.core.app.router.BalancingRule
  960. 19, // [19:19] is the sub-list for method output_type
  961. 19, // [19:19] is the sub-list for method input_type
  962. 19, // [19:19] is the sub-list for extension type_name
  963. 19, // [19:19] is the sub-list for extension extendee
  964. 0, // [0:19] is the sub-list for field type_name
  965. }
  966. func init() { file_app_router_config_proto_init() }
  967. func file_app_router_config_proto_init() {
  968. if File_app_router_config_proto != nil {
  969. return
  970. }
  971. if !protoimpl.UnsafeEnabled {
  972. file_app_router_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  973. switch v := v.(*Domain); i {
  974. case 0:
  975. return &v.state
  976. case 1:
  977. return &v.sizeCache
  978. case 2:
  979. return &v.unknownFields
  980. default:
  981. return nil
  982. }
  983. }
  984. file_app_router_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  985. switch v := v.(*CIDR); i {
  986. case 0:
  987. return &v.state
  988. case 1:
  989. return &v.sizeCache
  990. case 2:
  991. return &v.unknownFields
  992. default:
  993. return nil
  994. }
  995. }
  996. file_app_router_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  997. switch v := v.(*GeoIP); i {
  998. case 0:
  999. return &v.state
  1000. case 1:
  1001. return &v.sizeCache
  1002. case 2:
  1003. return &v.unknownFields
  1004. default:
  1005. return nil
  1006. }
  1007. }
  1008. file_app_router_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1009. switch v := v.(*GeoIPList); i {
  1010. case 0:
  1011. return &v.state
  1012. case 1:
  1013. return &v.sizeCache
  1014. case 2:
  1015. return &v.unknownFields
  1016. default:
  1017. return nil
  1018. }
  1019. }
  1020. file_app_router_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1021. switch v := v.(*GeoSite); i {
  1022. case 0:
  1023. return &v.state
  1024. case 1:
  1025. return &v.sizeCache
  1026. case 2:
  1027. return &v.unknownFields
  1028. default:
  1029. return nil
  1030. }
  1031. }
  1032. file_app_router_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1033. switch v := v.(*GeoSiteList); i {
  1034. case 0:
  1035. return &v.state
  1036. case 1:
  1037. return &v.sizeCache
  1038. case 2:
  1039. return &v.unknownFields
  1040. default:
  1041. return nil
  1042. }
  1043. }
  1044. file_app_router_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1045. switch v := v.(*RoutingRule); i {
  1046. case 0:
  1047. return &v.state
  1048. case 1:
  1049. return &v.sizeCache
  1050. case 2:
  1051. return &v.unknownFields
  1052. default:
  1053. return nil
  1054. }
  1055. }
  1056. file_app_router_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1057. switch v := v.(*BalancingRule); i {
  1058. case 0:
  1059. return &v.state
  1060. case 1:
  1061. return &v.sizeCache
  1062. case 2:
  1063. return &v.unknownFields
  1064. default:
  1065. return nil
  1066. }
  1067. }
  1068. file_app_router_config_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1069. switch v := v.(*Config); i {
  1070. case 0:
  1071. return &v.state
  1072. case 1:
  1073. return &v.sizeCache
  1074. case 2:
  1075. return &v.unknownFields
  1076. default:
  1077. return nil
  1078. }
  1079. }
  1080. file_app_router_config_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1081. switch v := v.(*Domain_Attribute); i {
  1082. case 0:
  1083. return &v.state
  1084. case 1:
  1085. return &v.sizeCache
  1086. case 2:
  1087. return &v.unknownFields
  1088. default:
  1089. return nil
  1090. }
  1091. }
  1092. }
  1093. file_app_router_config_proto_msgTypes[6].OneofWrappers = []interface{}{
  1094. (*RoutingRule_Tag)(nil),
  1095. (*RoutingRule_BalancingTag)(nil),
  1096. }
  1097. file_app_router_config_proto_msgTypes[9].OneofWrappers = []interface{}{
  1098. (*Domain_Attribute_BoolValue)(nil),
  1099. (*Domain_Attribute_IntValue)(nil),
  1100. }
  1101. type x struct{}
  1102. out := protoimpl.TypeBuilder{
  1103. File: protoimpl.DescBuilder{
  1104. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1105. RawDescriptor: file_app_router_config_proto_rawDesc,
  1106. NumEnums: 2,
  1107. NumMessages: 10,
  1108. NumExtensions: 0,
  1109. NumServices: 0,
  1110. },
  1111. GoTypes: file_app_router_config_proto_goTypes,
  1112. DependencyIndexes: file_app_router_config_proto_depIdxs,
  1113. EnumInfos: file_app_router_config_proto_enumTypes,
  1114. MessageInfos: file_app_router_config_proto_msgTypes,
  1115. }.Build()
  1116. File_app_router_config_proto = out.File
  1117. file_app_router_config_proto_rawDesc = nil
  1118. file_app_router_config_proto_goTypes = nil
  1119. file_app_router_config_proto_depIdxs = nil
  1120. }