config.pb.go 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.33.0
  4. // protoc v4.23.1
  5. // source: app/dns/config.proto
  6. package dns
  7. import (
  8. router "github.com/xtls/xray-core/app/router"
  9. net "github.com/xtls/xray-core/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. type DomainMatchingType int32
  22. const (
  23. DomainMatchingType_Full DomainMatchingType = 0
  24. DomainMatchingType_Subdomain DomainMatchingType = 1
  25. DomainMatchingType_Keyword DomainMatchingType = 2
  26. DomainMatchingType_Regex DomainMatchingType = 3
  27. )
  28. // Enum value maps for DomainMatchingType.
  29. var (
  30. DomainMatchingType_name = map[int32]string{
  31. 0: "Full",
  32. 1: "Subdomain",
  33. 2: "Keyword",
  34. 3: "Regex",
  35. }
  36. DomainMatchingType_value = map[string]int32{
  37. "Full": 0,
  38. "Subdomain": 1,
  39. "Keyword": 2,
  40. "Regex": 3,
  41. }
  42. )
  43. func (x DomainMatchingType) Enum() *DomainMatchingType {
  44. p := new(DomainMatchingType)
  45. *p = x
  46. return p
  47. }
  48. func (x DomainMatchingType) String() string {
  49. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  50. }
  51. func (DomainMatchingType) Descriptor() protoreflect.EnumDescriptor {
  52. return file_app_dns_config_proto_enumTypes[0].Descriptor()
  53. }
  54. func (DomainMatchingType) Type() protoreflect.EnumType {
  55. return &file_app_dns_config_proto_enumTypes[0]
  56. }
  57. func (x DomainMatchingType) Number() protoreflect.EnumNumber {
  58. return protoreflect.EnumNumber(x)
  59. }
  60. // Deprecated: Use DomainMatchingType.Descriptor instead.
  61. func (DomainMatchingType) EnumDescriptor() ([]byte, []int) {
  62. return file_app_dns_config_proto_rawDescGZIP(), []int{0}
  63. }
  64. type QueryStrategy int32
  65. const (
  66. QueryStrategy_USE_IP QueryStrategy = 0
  67. QueryStrategy_USE_IP4 QueryStrategy = 1
  68. QueryStrategy_USE_IP6 QueryStrategy = 2
  69. )
  70. // Enum value maps for QueryStrategy.
  71. var (
  72. QueryStrategy_name = map[int32]string{
  73. 0: "USE_IP",
  74. 1: "USE_IP4",
  75. 2: "USE_IP6",
  76. }
  77. QueryStrategy_value = map[string]int32{
  78. "USE_IP": 0,
  79. "USE_IP4": 1,
  80. "USE_IP6": 2,
  81. }
  82. )
  83. func (x QueryStrategy) Enum() *QueryStrategy {
  84. p := new(QueryStrategy)
  85. *p = x
  86. return p
  87. }
  88. func (x QueryStrategy) String() string {
  89. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  90. }
  91. func (QueryStrategy) Descriptor() protoreflect.EnumDescriptor {
  92. return file_app_dns_config_proto_enumTypes[1].Descriptor()
  93. }
  94. func (QueryStrategy) Type() protoreflect.EnumType {
  95. return &file_app_dns_config_proto_enumTypes[1]
  96. }
  97. func (x QueryStrategy) Number() protoreflect.EnumNumber {
  98. return protoreflect.EnumNumber(x)
  99. }
  100. // Deprecated: Use QueryStrategy.Descriptor instead.
  101. func (QueryStrategy) EnumDescriptor() ([]byte, []int) {
  102. return file_app_dns_config_proto_rawDescGZIP(), []int{1}
  103. }
  104. type NameServer struct {
  105. state protoimpl.MessageState
  106. sizeCache protoimpl.SizeCache
  107. unknownFields protoimpl.UnknownFields
  108. Address *net.Endpoint `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  109. ClientIp []byte `protobuf:"bytes,5,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
  110. SkipFallback bool `protobuf:"varint,6,opt,name=skipFallback,proto3" json:"skipFallback,omitempty"`
  111. PrioritizedDomain []*NameServer_PriorityDomain `protobuf:"bytes,2,rep,name=prioritized_domain,json=prioritizedDomain,proto3" json:"prioritized_domain,omitempty"`
  112. Geoip []*router.GeoIP `protobuf:"bytes,3,rep,name=geoip,proto3" json:"geoip,omitempty"`
  113. OriginalRules []*NameServer_OriginalRule `protobuf:"bytes,4,rep,name=original_rules,json=originalRules,proto3" json:"original_rules,omitempty"`
  114. QueryStrategy QueryStrategy `protobuf:"varint,7,opt,name=query_strategy,json=queryStrategy,proto3,enum=xray.app.dns.QueryStrategy" json:"query_strategy,omitempty"`
  115. }
  116. func (x *NameServer) Reset() {
  117. *x = NameServer{}
  118. if protoimpl.UnsafeEnabled {
  119. mi := &file_app_dns_config_proto_msgTypes[0]
  120. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  121. ms.StoreMessageInfo(mi)
  122. }
  123. }
  124. func (x *NameServer) String() string {
  125. return protoimpl.X.MessageStringOf(x)
  126. }
  127. func (*NameServer) ProtoMessage() {}
  128. func (x *NameServer) ProtoReflect() protoreflect.Message {
  129. mi := &file_app_dns_config_proto_msgTypes[0]
  130. if protoimpl.UnsafeEnabled && x != nil {
  131. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  132. if ms.LoadMessageInfo() == nil {
  133. ms.StoreMessageInfo(mi)
  134. }
  135. return ms
  136. }
  137. return mi.MessageOf(x)
  138. }
  139. // Deprecated: Use NameServer.ProtoReflect.Descriptor instead.
  140. func (*NameServer) Descriptor() ([]byte, []int) {
  141. return file_app_dns_config_proto_rawDescGZIP(), []int{0}
  142. }
  143. func (x *NameServer) GetAddress() *net.Endpoint {
  144. if x != nil {
  145. return x.Address
  146. }
  147. return nil
  148. }
  149. func (x *NameServer) GetClientIp() []byte {
  150. if x != nil {
  151. return x.ClientIp
  152. }
  153. return nil
  154. }
  155. func (x *NameServer) GetSkipFallback() bool {
  156. if x != nil {
  157. return x.SkipFallback
  158. }
  159. return false
  160. }
  161. func (x *NameServer) GetPrioritizedDomain() []*NameServer_PriorityDomain {
  162. if x != nil {
  163. return x.PrioritizedDomain
  164. }
  165. return nil
  166. }
  167. func (x *NameServer) GetGeoip() []*router.GeoIP {
  168. if x != nil {
  169. return x.Geoip
  170. }
  171. return nil
  172. }
  173. func (x *NameServer) GetOriginalRules() []*NameServer_OriginalRule {
  174. if x != nil {
  175. return x.OriginalRules
  176. }
  177. return nil
  178. }
  179. func (x *NameServer) GetQueryStrategy() QueryStrategy {
  180. if x != nil {
  181. return x.QueryStrategy
  182. }
  183. return QueryStrategy_USE_IP
  184. }
  185. type Config struct {
  186. state protoimpl.MessageState
  187. sizeCache protoimpl.SizeCache
  188. unknownFields protoimpl.UnknownFields
  189. // Nameservers used by this DNS. Only traditional UDP servers are support at
  190. // the moment. A special value 'localhost' as a domain address can be set to
  191. // use DNS on local system.
  192. //
  193. // Deprecated: Marked as deprecated in app/dns/config.proto.
  194. NameServers []*net.Endpoint `protobuf:"bytes,1,rep,name=NameServers,proto3" json:"NameServers,omitempty"`
  195. // NameServer list used by this DNS client.
  196. NameServer []*NameServer `protobuf:"bytes,5,rep,name=name_server,json=nameServer,proto3" json:"name_server,omitempty"`
  197. // Static hosts. Domain to IP.
  198. // Deprecated. Use static_hosts.
  199. //
  200. // Deprecated: Marked as deprecated in app/dns/config.proto.
  201. Hosts map[string]*net.IPOrDomain `protobuf:"bytes,2,rep,name=Hosts,proto3" json:"Hosts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  202. // Client IP for EDNS client subnet. Must be 4 bytes (IPv4) or 16 bytes
  203. // (IPv6).
  204. ClientIp []byte `protobuf:"bytes,3,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
  205. StaticHosts []*Config_HostMapping `protobuf:"bytes,4,rep,name=static_hosts,json=staticHosts,proto3" json:"static_hosts,omitempty"`
  206. // Tag is the inbound tag of DNS client.
  207. Tag string `protobuf:"bytes,6,opt,name=tag,proto3" json:"tag,omitempty"`
  208. // DisableCache disables DNS cache
  209. DisableCache bool `protobuf:"varint,8,opt,name=disableCache,proto3" json:"disableCache,omitempty"`
  210. QueryStrategy QueryStrategy `protobuf:"varint,9,opt,name=query_strategy,json=queryStrategy,proto3,enum=xray.app.dns.QueryStrategy" json:"query_strategy,omitempty"`
  211. DisableFallback bool `protobuf:"varint,10,opt,name=disableFallback,proto3" json:"disableFallback,omitempty"`
  212. DisableFallbackIfMatch bool `protobuf:"varint,11,opt,name=disableFallbackIfMatch,proto3" json:"disableFallbackIfMatch,omitempty"`
  213. }
  214. func (x *Config) Reset() {
  215. *x = Config{}
  216. if protoimpl.UnsafeEnabled {
  217. mi := &file_app_dns_config_proto_msgTypes[1]
  218. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  219. ms.StoreMessageInfo(mi)
  220. }
  221. }
  222. func (x *Config) String() string {
  223. return protoimpl.X.MessageStringOf(x)
  224. }
  225. func (*Config) ProtoMessage() {}
  226. func (x *Config) ProtoReflect() protoreflect.Message {
  227. mi := &file_app_dns_config_proto_msgTypes[1]
  228. if protoimpl.UnsafeEnabled && x != nil {
  229. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  230. if ms.LoadMessageInfo() == nil {
  231. ms.StoreMessageInfo(mi)
  232. }
  233. return ms
  234. }
  235. return mi.MessageOf(x)
  236. }
  237. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  238. func (*Config) Descriptor() ([]byte, []int) {
  239. return file_app_dns_config_proto_rawDescGZIP(), []int{1}
  240. }
  241. // Deprecated: Marked as deprecated in app/dns/config.proto.
  242. func (x *Config) GetNameServers() []*net.Endpoint {
  243. if x != nil {
  244. return x.NameServers
  245. }
  246. return nil
  247. }
  248. func (x *Config) GetNameServer() []*NameServer {
  249. if x != nil {
  250. return x.NameServer
  251. }
  252. return nil
  253. }
  254. // Deprecated: Marked as deprecated in app/dns/config.proto.
  255. func (x *Config) GetHosts() map[string]*net.IPOrDomain {
  256. if x != nil {
  257. return x.Hosts
  258. }
  259. return nil
  260. }
  261. func (x *Config) GetClientIp() []byte {
  262. if x != nil {
  263. return x.ClientIp
  264. }
  265. return nil
  266. }
  267. func (x *Config) GetStaticHosts() []*Config_HostMapping {
  268. if x != nil {
  269. return x.StaticHosts
  270. }
  271. return nil
  272. }
  273. func (x *Config) GetTag() string {
  274. if x != nil {
  275. return x.Tag
  276. }
  277. return ""
  278. }
  279. func (x *Config) GetDisableCache() bool {
  280. if x != nil {
  281. return x.DisableCache
  282. }
  283. return false
  284. }
  285. func (x *Config) GetQueryStrategy() QueryStrategy {
  286. if x != nil {
  287. return x.QueryStrategy
  288. }
  289. return QueryStrategy_USE_IP
  290. }
  291. func (x *Config) GetDisableFallback() bool {
  292. if x != nil {
  293. return x.DisableFallback
  294. }
  295. return false
  296. }
  297. func (x *Config) GetDisableFallbackIfMatch() bool {
  298. if x != nil {
  299. return x.DisableFallbackIfMatch
  300. }
  301. return false
  302. }
  303. type NameServer_PriorityDomain struct {
  304. state protoimpl.MessageState
  305. sizeCache protoimpl.SizeCache
  306. unknownFields protoimpl.UnknownFields
  307. Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=xray.app.dns.DomainMatchingType" json:"type,omitempty"`
  308. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  309. }
  310. func (x *NameServer_PriorityDomain) Reset() {
  311. *x = NameServer_PriorityDomain{}
  312. if protoimpl.UnsafeEnabled {
  313. mi := &file_app_dns_config_proto_msgTypes[2]
  314. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  315. ms.StoreMessageInfo(mi)
  316. }
  317. }
  318. func (x *NameServer_PriorityDomain) String() string {
  319. return protoimpl.X.MessageStringOf(x)
  320. }
  321. func (*NameServer_PriorityDomain) ProtoMessage() {}
  322. func (x *NameServer_PriorityDomain) ProtoReflect() protoreflect.Message {
  323. mi := &file_app_dns_config_proto_msgTypes[2]
  324. if protoimpl.UnsafeEnabled && x != nil {
  325. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  326. if ms.LoadMessageInfo() == nil {
  327. ms.StoreMessageInfo(mi)
  328. }
  329. return ms
  330. }
  331. return mi.MessageOf(x)
  332. }
  333. // Deprecated: Use NameServer_PriorityDomain.ProtoReflect.Descriptor instead.
  334. func (*NameServer_PriorityDomain) Descriptor() ([]byte, []int) {
  335. return file_app_dns_config_proto_rawDescGZIP(), []int{0, 0}
  336. }
  337. func (x *NameServer_PriorityDomain) GetType() DomainMatchingType {
  338. if x != nil {
  339. return x.Type
  340. }
  341. return DomainMatchingType_Full
  342. }
  343. func (x *NameServer_PriorityDomain) GetDomain() string {
  344. if x != nil {
  345. return x.Domain
  346. }
  347. return ""
  348. }
  349. type NameServer_OriginalRule struct {
  350. state protoimpl.MessageState
  351. sizeCache protoimpl.SizeCache
  352. unknownFields protoimpl.UnknownFields
  353. Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
  354. Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
  355. }
  356. func (x *NameServer_OriginalRule) Reset() {
  357. *x = NameServer_OriginalRule{}
  358. if protoimpl.UnsafeEnabled {
  359. mi := &file_app_dns_config_proto_msgTypes[3]
  360. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  361. ms.StoreMessageInfo(mi)
  362. }
  363. }
  364. func (x *NameServer_OriginalRule) String() string {
  365. return protoimpl.X.MessageStringOf(x)
  366. }
  367. func (*NameServer_OriginalRule) ProtoMessage() {}
  368. func (x *NameServer_OriginalRule) ProtoReflect() protoreflect.Message {
  369. mi := &file_app_dns_config_proto_msgTypes[3]
  370. if protoimpl.UnsafeEnabled && x != nil {
  371. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  372. if ms.LoadMessageInfo() == nil {
  373. ms.StoreMessageInfo(mi)
  374. }
  375. return ms
  376. }
  377. return mi.MessageOf(x)
  378. }
  379. // Deprecated: Use NameServer_OriginalRule.ProtoReflect.Descriptor instead.
  380. func (*NameServer_OriginalRule) Descriptor() ([]byte, []int) {
  381. return file_app_dns_config_proto_rawDescGZIP(), []int{0, 1}
  382. }
  383. func (x *NameServer_OriginalRule) GetRule() string {
  384. if x != nil {
  385. return x.Rule
  386. }
  387. return ""
  388. }
  389. func (x *NameServer_OriginalRule) GetSize() uint32 {
  390. if x != nil {
  391. return x.Size
  392. }
  393. return 0
  394. }
  395. type Config_HostMapping struct {
  396. state protoimpl.MessageState
  397. sizeCache protoimpl.SizeCache
  398. unknownFields protoimpl.UnknownFields
  399. Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=xray.app.dns.DomainMatchingType" json:"type,omitempty"`
  400. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  401. Ip [][]byte `protobuf:"bytes,3,rep,name=ip,proto3" json:"ip,omitempty"`
  402. // ProxiedDomain indicates the mapped domain has the same IP address on this
  403. // domain. Xray will use this domain for IP queries.
  404. ProxiedDomain string `protobuf:"bytes,4,opt,name=proxied_domain,json=proxiedDomain,proto3" json:"proxied_domain,omitempty"`
  405. }
  406. func (x *Config_HostMapping) Reset() {
  407. *x = Config_HostMapping{}
  408. if protoimpl.UnsafeEnabled {
  409. mi := &file_app_dns_config_proto_msgTypes[5]
  410. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  411. ms.StoreMessageInfo(mi)
  412. }
  413. }
  414. func (x *Config_HostMapping) String() string {
  415. return protoimpl.X.MessageStringOf(x)
  416. }
  417. func (*Config_HostMapping) ProtoMessage() {}
  418. func (x *Config_HostMapping) ProtoReflect() protoreflect.Message {
  419. mi := &file_app_dns_config_proto_msgTypes[5]
  420. if protoimpl.UnsafeEnabled && x != nil {
  421. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  422. if ms.LoadMessageInfo() == nil {
  423. ms.StoreMessageInfo(mi)
  424. }
  425. return ms
  426. }
  427. return mi.MessageOf(x)
  428. }
  429. // Deprecated: Use Config_HostMapping.ProtoReflect.Descriptor instead.
  430. func (*Config_HostMapping) Descriptor() ([]byte, []int) {
  431. return file_app_dns_config_proto_rawDescGZIP(), []int{1, 1}
  432. }
  433. func (x *Config_HostMapping) GetType() DomainMatchingType {
  434. if x != nil {
  435. return x.Type
  436. }
  437. return DomainMatchingType_Full
  438. }
  439. func (x *Config_HostMapping) GetDomain() string {
  440. if x != nil {
  441. return x.Domain
  442. }
  443. return ""
  444. }
  445. func (x *Config_HostMapping) GetIp() [][]byte {
  446. if x != nil {
  447. return x.Ip
  448. }
  449. return nil
  450. }
  451. func (x *Config_HostMapping) GetProxiedDomain() string {
  452. if x != nil {
  453. return x.ProxiedDomain
  454. }
  455. return ""
  456. }
  457. var File_app_dns_config_proto protoreflect.FileDescriptor
  458. var file_app_dns_config_proto_rawDesc = []byte{
  459. 0x0a, 0x14, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  460. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70,
  461. 0x2e, 0x64, 0x6e, 0x73, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74,
  462. 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c,
  463. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x65, 0x73, 0x74, 0x69,
  464. 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x61, 0x70,
  465. 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
  466. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb2, 0x04, 0x0a, 0x0a, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65,
  467. 0x72, 0x76, 0x65, 0x72, 0x12, 0x33, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18,
  468. 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d,
  469. 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
  470. 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69,
  471. 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6c,
  472. 0x69, 0x65, 0x6e, 0x74, 0x49, 0x70, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x6b, 0x69, 0x70, 0x46, 0x61,
  473. 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x73, 0x6b,
  474. 0x69, 0x70, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x56, 0x0a, 0x12, 0x70, 0x72,
  475. 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  476. 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70,
  477. 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
  478. 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52,
  479. 0x11, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x64, 0x44, 0x6f, 0x6d, 0x61,
  480. 0x69, 0x6e, 0x12, 0x2c, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x03, 0x28,
  481. 0x0b, 0x32, 0x16, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75,
  482. 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70,
  483. 0x12, 0x4c, 0x0a, 0x0e, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x72, 0x75, 0x6c,
  484. 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
  485. 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76,
  486. 0x65, 0x72, 0x2e, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x52,
  487. 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x42,
  488. 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  489. 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70,
  490. 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74,
  491. 0x65, 0x67, 0x79, 0x52, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65,
  492. 0x67, 0x79, 0x1a, 0x5e, 0x0a, 0x0e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x44, 0x6f,
  493. 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,
  494. 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e,
  495. 0x73, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67,
  496. 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f,
  497. 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61,
  498. 0x69, 0x6e, 0x1a, 0x36, 0x0a, 0x0c, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75,
  499. 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  500. 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02,
  501. 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0xef, 0x05, 0x0a, 0x06, 0x43,
  502. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3f, 0x0a, 0x0b, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72,
  503. 0x76, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x78, 0x72, 0x61,
  504. 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64,
  505. 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x4e, 0x61, 0x6d, 0x65, 0x53,
  506. 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, 0x39, 0x0a, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x73,
  507. 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x78, 0x72,
  508. 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53,
  509. 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65,
  510. 0x72, 0x12, 0x39, 0x0a, 0x05, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
  511. 0x32, 0x1f, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e,
  512. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72,
  513. 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09,
  514. 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52,
  515. 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x70, 0x12, 0x43, 0x0a, 0x0c, 0x73, 0x74, 0x61,
  516. 0x74, 0x69, 0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
  517. 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x43,
  518. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e,
  519. 0x67, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x10,
  520. 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67,
  521. 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65,
  522. 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43,
  523. 0x61, 0x63, 0x68, 0x65, 0x12, 0x42, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x74,
  524. 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x78,
  525. 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72,
  526. 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79,
  527. 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x28, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x61,
  528. 0x62, 0x6c, 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28,
  529. 0x08, 0x52, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61,
  530. 0x63, 0x6b, 0x12, 0x36, 0x0a, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x6c,
  531. 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x49, 0x66, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x0b, 0x20, 0x01,
  532. 0x28, 0x08, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62,
  533. 0x61, 0x63, 0x6b, 0x49, 0x66, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x1a, 0x55, 0x0a, 0x0a, 0x48, 0x6f,
  534. 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
  535. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x31, 0x0a, 0x05, 0x76, 0x61,
  536. 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79,
  537. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72,
  538. 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
  539. 0x01, 0x1a, 0x92, 0x01, 0x0a, 0x0b, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e,
  540. 0x67, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
  541. 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x44,
  542. 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70,
  543. 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69,
  544. 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12,
  545. 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x70, 0x12,
  546. 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69,
  547. 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x65, 0x64,
  548. 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x2a, 0x45, 0x0a, 0x12,
  549. 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79,
  550. 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x75, 0x6c, 0x6c, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09,
  551. 0x53, 0x75, 0x62, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4b,
  552. 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x65, 0x67, 0x65,
  553. 0x78, 0x10, 0x03, 0x2a, 0x35, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61,
  554. 0x74, 0x65, 0x67, 0x79, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x10, 0x00,
  555. 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x10, 0x01, 0x12, 0x0b, 0x0a,
  556. 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x36, 0x10, 0x02, 0x42, 0x46, 0x0a, 0x10, 0x63, 0x6f,
  557. 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x50, 0x01,
  558. 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c,
  559. 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f,
  560. 0x64, 0x6e, 0x73, 0xaa, 0x02, 0x0c, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x44,
  561. 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  562. }
  563. var (
  564. file_app_dns_config_proto_rawDescOnce sync.Once
  565. file_app_dns_config_proto_rawDescData = file_app_dns_config_proto_rawDesc
  566. )
  567. func file_app_dns_config_proto_rawDescGZIP() []byte {
  568. file_app_dns_config_proto_rawDescOnce.Do(func() {
  569. file_app_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_dns_config_proto_rawDescData)
  570. })
  571. return file_app_dns_config_proto_rawDescData
  572. }
  573. var file_app_dns_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  574. var file_app_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  575. var file_app_dns_config_proto_goTypes = []interface{}{
  576. (DomainMatchingType)(0), // 0: xray.app.dns.DomainMatchingType
  577. (QueryStrategy)(0), // 1: xray.app.dns.QueryStrategy
  578. (*NameServer)(nil), // 2: xray.app.dns.NameServer
  579. (*Config)(nil), // 3: xray.app.dns.Config
  580. (*NameServer_PriorityDomain)(nil), // 4: xray.app.dns.NameServer.PriorityDomain
  581. (*NameServer_OriginalRule)(nil), // 5: xray.app.dns.NameServer.OriginalRule
  582. nil, // 6: xray.app.dns.Config.HostsEntry
  583. (*Config_HostMapping)(nil), // 7: xray.app.dns.Config.HostMapping
  584. (*net.Endpoint)(nil), // 8: xray.common.net.Endpoint
  585. (*router.GeoIP)(nil), // 9: xray.app.router.GeoIP
  586. (*net.IPOrDomain)(nil), // 10: xray.common.net.IPOrDomain
  587. }
  588. var file_app_dns_config_proto_depIdxs = []int32{
  589. 8, // 0: xray.app.dns.NameServer.address:type_name -> xray.common.net.Endpoint
  590. 4, // 1: xray.app.dns.NameServer.prioritized_domain:type_name -> xray.app.dns.NameServer.PriorityDomain
  591. 9, // 2: xray.app.dns.NameServer.geoip:type_name -> xray.app.router.GeoIP
  592. 5, // 3: xray.app.dns.NameServer.original_rules:type_name -> xray.app.dns.NameServer.OriginalRule
  593. 1, // 4: xray.app.dns.NameServer.query_strategy:type_name -> xray.app.dns.QueryStrategy
  594. 8, // 5: xray.app.dns.Config.NameServers:type_name -> xray.common.net.Endpoint
  595. 2, // 6: xray.app.dns.Config.name_server:type_name -> xray.app.dns.NameServer
  596. 6, // 7: xray.app.dns.Config.Hosts:type_name -> xray.app.dns.Config.HostsEntry
  597. 7, // 8: xray.app.dns.Config.static_hosts:type_name -> xray.app.dns.Config.HostMapping
  598. 1, // 9: xray.app.dns.Config.query_strategy:type_name -> xray.app.dns.QueryStrategy
  599. 0, // 10: xray.app.dns.NameServer.PriorityDomain.type:type_name -> xray.app.dns.DomainMatchingType
  600. 10, // 11: xray.app.dns.Config.HostsEntry.value:type_name -> xray.common.net.IPOrDomain
  601. 0, // 12: xray.app.dns.Config.HostMapping.type:type_name -> xray.app.dns.DomainMatchingType
  602. 13, // [13:13] is the sub-list for method output_type
  603. 13, // [13:13] is the sub-list for method input_type
  604. 13, // [13:13] is the sub-list for extension type_name
  605. 13, // [13:13] is the sub-list for extension extendee
  606. 0, // [0:13] is the sub-list for field type_name
  607. }
  608. func init() { file_app_dns_config_proto_init() }
  609. func file_app_dns_config_proto_init() {
  610. if File_app_dns_config_proto != nil {
  611. return
  612. }
  613. if !protoimpl.UnsafeEnabled {
  614. file_app_dns_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  615. switch v := v.(*NameServer); i {
  616. case 0:
  617. return &v.state
  618. case 1:
  619. return &v.sizeCache
  620. case 2:
  621. return &v.unknownFields
  622. default:
  623. return nil
  624. }
  625. }
  626. file_app_dns_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  627. switch v := v.(*Config); i {
  628. case 0:
  629. return &v.state
  630. case 1:
  631. return &v.sizeCache
  632. case 2:
  633. return &v.unknownFields
  634. default:
  635. return nil
  636. }
  637. }
  638. file_app_dns_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  639. switch v := v.(*NameServer_PriorityDomain); i {
  640. case 0:
  641. return &v.state
  642. case 1:
  643. return &v.sizeCache
  644. case 2:
  645. return &v.unknownFields
  646. default:
  647. return nil
  648. }
  649. }
  650. file_app_dns_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  651. switch v := v.(*NameServer_OriginalRule); i {
  652. case 0:
  653. return &v.state
  654. case 1:
  655. return &v.sizeCache
  656. case 2:
  657. return &v.unknownFields
  658. default:
  659. return nil
  660. }
  661. }
  662. file_app_dns_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  663. switch v := v.(*Config_HostMapping); i {
  664. case 0:
  665. return &v.state
  666. case 1:
  667. return &v.sizeCache
  668. case 2:
  669. return &v.unknownFields
  670. default:
  671. return nil
  672. }
  673. }
  674. }
  675. type x struct{}
  676. out := protoimpl.TypeBuilder{
  677. File: protoimpl.DescBuilder{
  678. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  679. RawDescriptor: file_app_dns_config_proto_rawDesc,
  680. NumEnums: 2,
  681. NumMessages: 6,
  682. NumExtensions: 0,
  683. NumServices: 0,
  684. },
  685. GoTypes: file_app_dns_config_proto_goTypes,
  686. DependencyIndexes: file_app_dns_config_proto_depIdxs,
  687. EnumInfos: file_app_dns_config_proto_enumTypes,
  688. MessageInfos: file_app_dns_config_proto_msgTypes,
  689. }.Build()
  690. File_app_dns_config_proto = out.File
  691. file_app_dns_config_proto_rawDesc = nil
  692. file_app_dns_config_proto_goTypes = nil
  693. file_app_dns_config_proto_depIdxs = nil
  694. }