config.pb.go 65 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612
  1. package dns
  2. import (
  3. routercommon "github.com/v2fly/v2ray-core/v5/app/router/routercommon"
  4. net "github.com/v2fly/v2ray-core/v5/common/net"
  5. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  6. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  7. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  8. reflect "reflect"
  9. sync "sync"
  10. )
  11. const (
  12. // Verify that this generated code is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  14. // Verify that runtime/protoimpl is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  16. )
  17. type DomainMatchingType int32
  18. const (
  19. DomainMatchingType_Full DomainMatchingType = 0
  20. DomainMatchingType_Subdomain DomainMatchingType = 1
  21. DomainMatchingType_Keyword DomainMatchingType = 2
  22. DomainMatchingType_Regex DomainMatchingType = 3
  23. )
  24. // Enum value maps for DomainMatchingType.
  25. var (
  26. DomainMatchingType_name = map[int32]string{
  27. 0: "Full",
  28. 1: "Subdomain",
  29. 2: "Keyword",
  30. 3: "Regex",
  31. }
  32. DomainMatchingType_value = map[string]int32{
  33. "Full": 0,
  34. "Subdomain": 1,
  35. "Keyword": 2,
  36. "Regex": 3,
  37. }
  38. )
  39. func (x DomainMatchingType) Enum() *DomainMatchingType {
  40. p := new(DomainMatchingType)
  41. *p = x
  42. return p
  43. }
  44. func (x DomainMatchingType) String() string {
  45. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  46. }
  47. func (DomainMatchingType) Descriptor() protoreflect.EnumDescriptor {
  48. return file_app_dns_config_proto_enumTypes[0].Descriptor()
  49. }
  50. func (DomainMatchingType) Type() protoreflect.EnumType {
  51. return &file_app_dns_config_proto_enumTypes[0]
  52. }
  53. func (x DomainMatchingType) Number() protoreflect.EnumNumber {
  54. return protoreflect.EnumNumber(x)
  55. }
  56. // Deprecated: Use DomainMatchingType.Descriptor instead.
  57. func (DomainMatchingType) EnumDescriptor() ([]byte, []int) {
  58. return file_app_dns_config_proto_rawDescGZIP(), []int{0}
  59. }
  60. type QueryStrategy int32
  61. const (
  62. QueryStrategy_USE_IP QueryStrategy = 0
  63. QueryStrategy_USE_IP4 QueryStrategy = 1
  64. QueryStrategy_USE_IP6 QueryStrategy = 2
  65. )
  66. // Enum value maps for QueryStrategy.
  67. var (
  68. QueryStrategy_name = map[int32]string{
  69. 0: "USE_IP",
  70. 1: "USE_IP4",
  71. 2: "USE_IP6",
  72. }
  73. QueryStrategy_value = map[string]int32{
  74. "USE_IP": 0,
  75. "USE_IP4": 1,
  76. "USE_IP6": 2,
  77. }
  78. )
  79. func (x QueryStrategy) Enum() *QueryStrategy {
  80. p := new(QueryStrategy)
  81. *p = x
  82. return p
  83. }
  84. func (x QueryStrategy) String() string {
  85. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  86. }
  87. func (QueryStrategy) Descriptor() protoreflect.EnumDescriptor {
  88. return file_app_dns_config_proto_enumTypes[1].Descriptor()
  89. }
  90. func (QueryStrategy) Type() protoreflect.EnumType {
  91. return &file_app_dns_config_proto_enumTypes[1]
  92. }
  93. func (x QueryStrategy) Number() protoreflect.EnumNumber {
  94. return protoreflect.EnumNumber(x)
  95. }
  96. // Deprecated: Use QueryStrategy.Descriptor instead.
  97. func (QueryStrategy) EnumDescriptor() ([]byte, []int) {
  98. return file_app_dns_config_proto_rawDescGZIP(), []int{1}
  99. }
  100. type CacheStrategy int32
  101. const (
  102. CacheStrategy_CacheEnabled CacheStrategy = 0
  103. CacheStrategy_CacheDisabled CacheStrategy = 1
  104. )
  105. // Enum value maps for CacheStrategy.
  106. var (
  107. CacheStrategy_name = map[int32]string{
  108. 0: "CacheEnabled",
  109. 1: "CacheDisabled",
  110. }
  111. CacheStrategy_value = map[string]int32{
  112. "CacheEnabled": 0,
  113. "CacheDisabled": 1,
  114. }
  115. )
  116. func (x CacheStrategy) Enum() *CacheStrategy {
  117. p := new(CacheStrategy)
  118. *p = x
  119. return p
  120. }
  121. func (x CacheStrategy) String() string {
  122. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  123. }
  124. func (CacheStrategy) Descriptor() protoreflect.EnumDescriptor {
  125. return file_app_dns_config_proto_enumTypes[2].Descriptor()
  126. }
  127. func (CacheStrategy) Type() protoreflect.EnumType {
  128. return &file_app_dns_config_proto_enumTypes[2]
  129. }
  130. func (x CacheStrategy) Number() protoreflect.EnumNumber {
  131. return protoreflect.EnumNumber(x)
  132. }
  133. // Deprecated: Use CacheStrategy.Descriptor instead.
  134. func (CacheStrategy) EnumDescriptor() ([]byte, []int) {
  135. return file_app_dns_config_proto_rawDescGZIP(), []int{2}
  136. }
  137. type FallbackStrategy int32
  138. const (
  139. FallbackStrategy_Enabled FallbackStrategy = 0
  140. FallbackStrategy_Disabled FallbackStrategy = 1
  141. FallbackStrategy_DisabledIfAnyMatch FallbackStrategy = 2
  142. )
  143. // Enum value maps for FallbackStrategy.
  144. var (
  145. FallbackStrategy_name = map[int32]string{
  146. 0: "Enabled",
  147. 1: "Disabled",
  148. 2: "DisabledIfAnyMatch",
  149. }
  150. FallbackStrategy_value = map[string]int32{
  151. "Enabled": 0,
  152. "Disabled": 1,
  153. "DisabledIfAnyMatch": 2,
  154. }
  155. )
  156. func (x FallbackStrategy) Enum() *FallbackStrategy {
  157. p := new(FallbackStrategy)
  158. *p = x
  159. return p
  160. }
  161. func (x FallbackStrategy) String() string {
  162. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  163. }
  164. func (FallbackStrategy) Descriptor() protoreflect.EnumDescriptor {
  165. return file_app_dns_config_proto_enumTypes[3].Descriptor()
  166. }
  167. func (FallbackStrategy) Type() protoreflect.EnumType {
  168. return &file_app_dns_config_proto_enumTypes[3]
  169. }
  170. func (x FallbackStrategy) Number() protoreflect.EnumNumber {
  171. return protoreflect.EnumNumber(x)
  172. }
  173. // Deprecated: Use FallbackStrategy.Descriptor instead.
  174. func (FallbackStrategy) EnumDescriptor() ([]byte, []int) {
  175. return file_app_dns_config_proto_rawDescGZIP(), []int{3}
  176. }
  177. type NameServer struct {
  178. state protoimpl.MessageState
  179. sizeCache protoimpl.SizeCache
  180. unknownFields protoimpl.UnknownFields
  181. Address *net.Endpoint `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  182. ClientIp []byte `protobuf:"bytes,5,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
  183. Tag string `protobuf:"bytes,7,opt,name=tag,proto3" json:"tag,omitempty"`
  184. PrioritizedDomain []*NameServer_PriorityDomain `protobuf:"bytes,2,rep,name=prioritized_domain,json=prioritizedDomain,proto3" json:"prioritized_domain,omitempty"`
  185. Geoip []*routercommon.GeoIP `protobuf:"bytes,3,rep,name=geoip,proto3" json:"geoip,omitempty"`
  186. OriginalRules []*NameServer_OriginalRule `protobuf:"bytes,4,rep,name=original_rules,json=originalRules,proto3" json:"original_rules,omitempty"`
  187. // Deprecated. Use fallback_strategy.
  188. //
  189. // Deprecated: Do not use.
  190. SkipFallback bool `protobuf:"varint,6,opt,name=skipFallback,proto3" json:"skipFallback,omitempty"`
  191. QueryStrategy *QueryStrategy `protobuf:"varint,8,opt,name=query_strategy,json=queryStrategy,proto3,enum=v2ray.core.app.dns.QueryStrategy,oneof" json:"query_strategy,omitempty"`
  192. CacheStrategy *CacheStrategy `protobuf:"varint,9,opt,name=cache_strategy,json=cacheStrategy,proto3,enum=v2ray.core.app.dns.CacheStrategy,oneof" json:"cache_strategy,omitempty"`
  193. FallbackStrategy *FallbackStrategy `protobuf:"varint,10,opt,name=fallback_strategy,json=fallbackStrategy,proto3,enum=v2ray.core.app.dns.FallbackStrategy,oneof" json:"fallback_strategy,omitempty"`
  194. }
  195. func (x *NameServer) Reset() {
  196. *x = NameServer{}
  197. if protoimpl.UnsafeEnabled {
  198. mi := &file_app_dns_config_proto_msgTypes[0]
  199. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  200. ms.StoreMessageInfo(mi)
  201. }
  202. }
  203. func (x *NameServer) String() string {
  204. return protoimpl.X.MessageStringOf(x)
  205. }
  206. func (*NameServer) ProtoMessage() {}
  207. func (x *NameServer) ProtoReflect() protoreflect.Message {
  208. mi := &file_app_dns_config_proto_msgTypes[0]
  209. if protoimpl.UnsafeEnabled && x != nil {
  210. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  211. if ms.LoadMessageInfo() == nil {
  212. ms.StoreMessageInfo(mi)
  213. }
  214. return ms
  215. }
  216. return mi.MessageOf(x)
  217. }
  218. // Deprecated: Use NameServer.ProtoReflect.Descriptor instead.
  219. func (*NameServer) Descriptor() ([]byte, []int) {
  220. return file_app_dns_config_proto_rawDescGZIP(), []int{0}
  221. }
  222. func (x *NameServer) GetAddress() *net.Endpoint {
  223. if x != nil {
  224. return x.Address
  225. }
  226. return nil
  227. }
  228. func (x *NameServer) GetClientIp() []byte {
  229. if x != nil {
  230. return x.ClientIp
  231. }
  232. return nil
  233. }
  234. func (x *NameServer) GetTag() string {
  235. if x != nil {
  236. return x.Tag
  237. }
  238. return ""
  239. }
  240. func (x *NameServer) GetPrioritizedDomain() []*NameServer_PriorityDomain {
  241. if x != nil {
  242. return x.PrioritizedDomain
  243. }
  244. return nil
  245. }
  246. func (x *NameServer) GetGeoip() []*routercommon.GeoIP {
  247. if x != nil {
  248. return x.Geoip
  249. }
  250. return nil
  251. }
  252. func (x *NameServer) GetOriginalRules() []*NameServer_OriginalRule {
  253. if x != nil {
  254. return x.OriginalRules
  255. }
  256. return nil
  257. }
  258. // Deprecated: Do not use.
  259. func (x *NameServer) GetSkipFallback() bool {
  260. if x != nil {
  261. return x.SkipFallback
  262. }
  263. return false
  264. }
  265. func (x *NameServer) GetQueryStrategy() QueryStrategy {
  266. if x != nil && x.QueryStrategy != nil {
  267. return *x.QueryStrategy
  268. }
  269. return QueryStrategy_USE_IP
  270. }
  271. func (x *NameServer) GetCacheStrategy() CacheStrategy {
  272. if x != nil && x.CacheStrategy != nil {
  273. return *x.CacheStrategy
  274. }
  275. return CacheStrategy_CacheEnabled
  276. }
  277. func (x *NameServer) GetFallbackStrategy() FallbackStrategy {
  278. if x != nil && x.FallbackStrategy != nil {
  279. return *x.FallbackStrategy
  280. }
  281. return FallbackStrategy_Enabled
  282. }
  283. type HostMapping struct {
  284. state protoimpl.MessageState
  285. sizeCache protoimpl.SizeCache
  286. unknownFields protoimpl.UnknownFields
  287. Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
  288. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  289. Ip [][]byte `protobuf:"bytes,3,rep,name=ip,proto3" json:"ip,omitempty"`
  290. // ProxiedDomain indicates the mapped domain has the same IP address on this
  291. // domain. V2Ray will use this domain for IP queries.
  292. ProxiedDomain string `protobuf:"bytes,4,opt,name=proxied_domain,json=proxiedDomain,proto3" json:"proxied_domain,omitempty"`
  293. }
  294. func (x *HostMapping) Reset() {
  295. *x = HostMapping{}
  296. if protoimpl.UnsafeEnabled {
  297. mi := &file_app_dns_config_proto_msgTypes[1]
  298. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  299. ms.StoreMessageInfo(mi)
  300. }
  301. }
  302. func (x *HostMapping) String() string {
  303. return protoimpl.X.MessageStringOf(x)
  304. }
  305. func (*HostMapping) ProtoMessage() {}
  306. func (x *HostMapping) ProtoReflect() protoreflect.Message {
  307. mi := &file_app_dns_config_proto_msgTypes[1]
  308. if protoimpl.UnsafeEnabled && x != nil {
  309. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  310. if ms.LoadMessageInfo() == nil {
  311. ms.StoreMessageInfo(mi)
  312. }
  313. return ms
  314. }
  315. return mi.MessageOf(x)
  316. }
  317. // Deprecated: Use HostMapping.ProtoReflect.Descriptor instead.
  318. func (*HostMapping) Descriptor() ([]byte, []int) {
  319. return file_app_dns_config_proto_rawDescGZIP(), []int{1}
  320. }
  321. func (x *HostMapping) GetType() DomainMatchingType {
  322. if x != nil {
  323. return x.Type
  324. }
  325. return DomainMatchingType_Full
  326. }
  327. func (x *HostMapping) GetDomain() string {
  328. if x != nil {
  329. return x.Domain
  330. }
  331. return ""
  332. }
  333. func (x *HostMapping) GetIp() [][]byte {
  334. if x != nil {
  335. return x.Ip
  336. }
  337. return nil
  338. }
  339. func (x *HostMapping) GetProxiedDomain() string {
  340. if x != nil {
  341. return x.ProxiedDomain
  342. }
  343. return ""
  344. }
  345. type Config struct {
  346. state protoimpl.MessageState
  347. sizeCache protoimpl.SizeCache
  348. unknownFields protoimpl.UnknownFields
  349. // Nameservers used by this DNS. Only traditional UDP servers are support at
  350. // the moment. A special value 'localhost' as a domain address can be set to
  351. // use DNS on local system.
  352. //
  353. // Deprecated: Do not use.
  354. NameServers []*net.Endpoint `protobuf:"bytes,1,rep,name=NameServers,proto3" json:"NameServers,omitempty"`
  355. // NameServer list used by this DNS client.
  356. NameServer []*NameServer `protobuf:"bytes,5,rep,name=name_server,json=nameServer,proto3" json:"name_server,omitempty"`
  357. // Static hosts. Domain to IP.
  358. // Deprecated. Use static_hosts.
  359. //
  360. // Deprecated: Do not use.
  361. 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"`
  362. // Client IP for EDNS client subnet. Must be 4 bytes (IPv4) or 16 bytes
  363. // (IPv6).
  364. ClientIp []byte `protobuf:"bytes,3,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
  365. StaticHosts []*HostMapping `protobuf:"bytes,4,rep,name=static_hosts,json=staticHosts,proto3" json:"static_hosts,omitempty"`
  366. // Tag is the inbound tag of DNS client.
  367. Tag string `protobuf:"bytes,6,opt,name=tag,proto3" json:"tag,omitempty"`
  368. // DisableCache disables DNS cache
  369. // Deprecated. Use cache_strategy.
  370. //
  371. // Deprecated: Do not use.
  372. DisableCache bool `protobuf:"varint,8,opt,name=disableCache,proto3" json:"disableCache,omitempty"`
  373. // Deprecated. Use fallback_strategy.
  374. //
  375. // Deprecated: Do not use.
  376. DisableFallback bool `protobuf:"varint,10,opt,name=disableFallback,proto3" json:"disableFallback,omitempty"`
  377. // Deprecated. Use fallback_strategy.
  378. //
  379. // Deprecated: Do not use.
  380. DisableFallbackIfMatch bool `protobuf:"varint,11,opt,name=disableFallbackIfMatch,proto3" json:"disableFallbackIfMatch,omitempty"`
  381. // Default query strategy (IPv4, IPv6, or both) for each name server.
  382. QueryStrategy QueryStrategy `protobuf:"varint,9,opt,name=query_strategy,json=queryStrategy,proto3,enum=v2ray.core.app.dns.QueryStrategy" json:"query_strategy,omitempty"`
  383. // Default cache strategy for each name server.
  384. CacheStrategy CacheStrategy `protobuf:"varint,12,opt,name=cache_strategy,json=cacheStrategy,proto3,enum=v2ray.core.app.dns.CacheStrategy" json:"cache_strategy,omitempty"`
  385. // Default fallback strategy for each name server.
  386. FallbackStrategy FallbackStrategy `protobuf:"varint,13,opt,name=fallback_strategy,json=fallbackStrategy,proto3,enum=v2ray.core.app.dns.FallbackStrategy" json:"fallback_strategy,omitempty"`
  387. }
  388. func (x *Config) Reset() {
  389. *x = Config{}
  390. if protoimpl.UnsafeEnabled {
  391. mi := &file_app_dns_config_proto_msgTypes[2]
  392. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  393. ms.StoreMessageInfo(mi)
  394. }
  395. }
  396. func (x *Config) String() string {
  397. return protoimpl.X.MessageStringOf(x)
  398. }
  399. func (*Config) ProtoMessage() {}
  400. func (x *Config) ProtoReflect() protoreflect.Message {
  401. mi := &file_app_dns_config_proto_msgTypes[2]
  402. if protoimpl.UnsafeEnabled && x != nil {
  403. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  404. if ms.LoadMessageInfo() == nil {
  405. ms.StoreMessageInfo(mi)
  406. }
  407. return ms
  408. }
  409. return mi.MessageOf(x)
  410. }
  411. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  412. func (*Config) Descriptor() ([]byte, []int) {
  413. return file_app_dns_config_proto_rawDescGZIP(), []int{2}
  414. }
  415. // Deprecated: Do not use.
  416. func (x *Config) GetNameServers() []*net.Endpoint {
  417. if x != nil {
  418. return x.NameServers
  419. }
  420. return nil
  421. }
  422. func (x *Config) GetNameServer() []*NameServer {
  423. if x != nil {
  424. return x.NameServer
  425. }
  426. return nil
  427. }
  428. // Deprecated: Do not use.
  429. func (x *Config) GetHosts() map[string]*net.IPOrDomain {
  430. if x != nil {
  431. return x.Hosts
  432. }
  433. return nil
  434. }
  435. func (x *Config) GetClientIp() []byte {
  436. if x != nil {
  437. return x.ClientIp
  438. }
  439. return nil
  440. }
  441. func (x *Config) GetStaticHosts() []*HostMapping {
  442. if x != nil {
  443. return x.StaticHosts
  444. }
  445. return nil
  446. }
  447. func (x *Config) GetTag() string {
  448. if x != nil {
  449. return x.Tag
  450. }
  451. return ""
  452. }
  453. // Deprecated: Do not use.
  454. func (x *Config) GetDisableCache() bool {
  455. if x != nil {
  456. return x.DisableCache
  457. }
  458. return false
  459. }
  460. // Deprecated: Do not use.
  461. func (x *Config) GetDisableFallback() bool {
  462. if x != nil {
  463. return x.DisableFallback
  464. }
  465. return false
  466. }
  467. // Deprecated: Do not use.
  468. func (x *Config) GetDisableFallbackIfMatch() bool {
  469. if x != nil {
  470. return x.DisableFallbackIfMatch
  471. }
  472. return false
  473. }
  474. func (x *Config) GetQueryStrategy() QueryStrategy {
  475. if x != nil {
  476. return x.QueryStrategy
  477. }
  478. return QueryStrategy_USE_IP
  479. }
  480. func (x *Config) GetCacheStrategy() CacheStrategy {
  481. if x != nil {
  482. return x.CacheStrategy
  483. }
  484. return CacheStrategy_CacheEnabled
  485. }
  486. func (x *Config) GetFallbackStrategy() FallbackStrategy {
  487. if x != nil {
  488. return x.FallbackStrategy
  489. }
  490. return FallbackStrategy_Enabled
  491. }
  492. type SimplifiedConfig struct {
  493. state protoimpl.MessageState
  494. sizeCache protoimpl.SizeCache
  495. unknownFields protoimpl.UnknownFields
  496. // NameServer list used by this DNS client.
  497. NameServer []*SimplifiedNameServer `protobuf:"bytes,5,rep,name=name_server,json=nameServer,proto3" json:"name_server,omitempty"`
  498. // Client IP for EDNS client subnet. Must be 4 bytes (IPv4) or 16 bytes
  499. // (IPv6).
  500. ClientIp string `protobuf:"bytes,3,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
  501. StaticHosts []*HostMapping `protobuf:"bytes,4,rep,name=static_hosts,json=staticHosts,proto3" json:"static_hosts,omitempty"`
  502. // Tag is the inbound tag of DNS client.
  503. Tag string `protobuf:"bytes,6,opt,name=tag,proto3" json:"tag,omitempty"`
  504. // DisableCache disables DNS cache
  505. // Deprecated. Use cache_strategy.
  506. //
  507. // Deprecated: Do not use.
  508. DisableCache bool `protobuf:"varint,8,opt,name=disableCache,proto3" json:"disableCache,omitempty"`
  509. // Deprecated. Use fallback_strategy.
  510. //
  511. // Deprecated: Do not use.
  512. DisableFallback bool `protobuf:"varint,10,opt,name=disableFallback,proto3" json:"disableFallback,omitempty"`
  513. // Deprecated. Use fallback_strategy.
  514. //
  515. // Deprecated: Do not use.
  516. DisableFallbackIfMatch bool `protobuf:"varint,11,opt,name=disableFallbackIfMatch,proto3" json:"disableFallbackIfMatch,omitempty"`
  517. // Default query strategy (IPv4, IPv6, or both) for each name server.
  518. QueryStrategy QueryStrategy `protobuf:"varint,9,opt,name=query_strategy,json=queryStrategy,proto3,enum=v2ray.core.app.dns.QueryStrategy" json:"query_strategy,omitempty"`
  519. // Default cache strategy for each name server.
  520. CacheStrategy CacheStrategy `protobuf:"varint,12,opt,name=cache_strategy,json=cacheStrategy,proto3,enum=v2ray.core.app.dns.CacheStrategy" json:"cache_strategy,omitempty"`
  521. // Default fallback strategy for each name server.
  522. FallbackStrategy FallbackStrategy `protobuf:"varint,13,opt,name=fallback_strategy,json=fallbackStrategy,proto3,enum=v2ray.core.app.dns.FallbackStrategy" json:"fallback_strategy,omitempty"`
  523. }
  524. func (x *SimplifiedConfig) Reset() {
  525. *x = SimplifiedConfig{}
  526. if protoimpl.UnsafeEnabled {
  527. mi := &file_app_dns_config_proto_msgTypes[3]
  528. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  529. ms.StoreMessageInfo(mi)
  530. }
  531. }
  532. func (x *SimplifiedConfig) String() string {
  533. return protoimpl.X.MessageStringOf(x)
  534. }
  535. func (*SimplifiedConfig) ProtoMessage() {}
  536. func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
  537. mi := &file_app_dns_config_proto_msgTypes[3]
  538. if protoimpl.UnsafeEnabled && x != nil {
  539. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  540. if ms.LoadMessageInfo() == nil {
  541. ms.StoreMessageInfo(mi)
  542. }
  543. return ms
  544. }
  545. return mi.MessageOf(x)
  546. }
  547. // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
  548. func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
  549. return file_app_dns_config_proto_rawDescGZIP(), []int{3}
  550. }
  551. func (x *SimplifiedConfig) GetNameServer() []*SimplifiedNameServer {
  552. if x != nil {
  553. return x.NameServer
  554. }
  555. return nil
  556. }
  557. func (x *SimplifiedConfig) GetClientIp() string {
  558. if x != nil {
  559. return x.ClientIp
  560. }
  561. return ""
  562. }
  563. func (x *SimplifiedConfig) GetStaticHosts() []*HostMapping {
  564. if x != nil {
  565. return x.StaticHosts
  566. }
  567. return nil
  568. }
  569. func (x *SimplifiedConfig) GetTag() string {
  570. if x != nil {
  571. return x.Tag
  572. }
  573. return ""
  574. }
  575. // Deprecated: Do not use.
  576. func (x *SimplifiedConfig) GetDisableCache() bool {
  577. if x != nil {
  578. return x.DisableCache
  579. }
  580. return false
  581. }
  582. // Deprecated: Do not use.
  583. func (x *SimplifiedConfig) GetDisableFallback() bool {
  584. if x != nil {
  585. return x.DisableFallback
  586. }
  587. return false
  588. }
  589. // Deprecated: Do not use.
  590. func (x *SimplifiedConfig) GetDisableFallbackIfMatch() bool {
  591. if x != nil {
  592. return x.DisableFallbackIfMatch
  593. }
  594. return false
  595. }
  596. func (x *SimplifiedConfig) GetQueryStrategy() QueryStrategy {
  597. if x != nil {
  598. return x.QueryStrategy
  599. }
  600. return QueryStrategy_USE_IP
  601. }
  602. func (x *SimplifiedConfig) GetCacheStrategy() CacheStrategy {
  603. if x != nil {
  604. return x.CacheStrategy
  605. }
  606. return CacheStrategy_CacheEnabled
  607. }
  608. func (x *SimplifiedConfig) GetFallbackStrategy() FallbackStrategy {
  609. if x != nil {
  610. return x.FallbackStrategy
  611. }
  612. return FallbackStrategy_Enabled
  613. }
  614. type SimplifiedHostMapping struct {
  615. state protoimpl.MessageState
  616. sizeCache protoimpl.SizeCache
  617. unknownFields protoimpl.UnknownFields
  618. Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
  619. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  620. Ip []string `protobuf:"bytes,3,rep,name=ip,proto3" json:"ip,omitempty"`
  621. // ProxiedDomain indicates the mapped domain has the same IP address on this
  622. // domain. V2Ray will use this domain for IP queries.
  623. ProxiedDomain string `protobuf:"bytes,4,opt,name=proxied_domain,json=proxiedDomain,proto3" json:"proxied_domain,omitempty"`
  624. }
  625. func (x *SimplifiedHostMapping) Reset() {
  626. *x = SimplifiedHostMapping{}
  627. if protoimpl.UnsafeEnabled {
  628. mi := &file_app_dns_config_proto_msgTypes[4]
  629. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  630. ms.StoreMessageInfo(mi)
  631. }
  632. }
  633. func (x *SimplifiedHostMapping) String() string {
  634. return protoimpl.X.MessageStringOf(x)
  635. }
  636. func (*SimplifiedHostMapping) ProtoMessage() {}
  637. func (x *SimplifiedHostMapping) ProtoReflect() protoreflect.Message {
  638. mi := &file_app_dns_config_proto_msgTypes[4]
  639. if protoimpl.UnsafeEnabled && x != nil {
  640. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  641. if ms.LoadMessageInfo() == nil {
  642. ms.StoreMessageInfo(mi)
  643. }
  644. return ms
  645. }
  646. return mi.MessageOf(x)
  647. }
  648. // Deprecated: Use SimplifiedHostMapping.ProtoReflect.Descriptor instead.
  649. func (*SimplifiedHostMapping) Descriptor() ([]byte, []int) {
  650. return file_app_dns_config_proto_rawDescGZIP(), []int{4}
  651. }
  652. func (x *SimplifiedHostMapping) GetType() DomainMatchingType {
  653. if x != nil {
  654. return x.Type
  655. }
  656. return DomainMatchingType_Full
  657. }
  658. func (x *SimplifiedHostMapping) GetDomain() string {
  659. if x != nil {
  660. return x.Domain
  661. }
  662. return ""
  663. }
  664. func (x *SimplifiedHostMapping) GetIp() []string {
  665. if x != nil {
  666. return x.Ip
  667. }
  668. return nil
  669. }
  670. func (x *SimplifiedHostMapping) GetProxiedDomain() string {
  671. if x != nil {
  672. return x.ProxiedDomain
  673. }
  674. return ""
  675. }
  676. type SimplifiedNameServer struct {
  677. state protoimpl.MessageState
  678. sizeCache protoimpl.SizeCache
  679. unknownFields protoimpl.UnknownFields
  680. Address *net.Endpoint `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  681. ClientIp string `protobuf:"bytes,5,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
  682. Tag string `protobuf:"bytes,7,opt,name=tag,proto3" json:"tag,omitempty"`
  683. PrioritizedDomain []*SimplifiedNameServer_PriorityDomain `protobuf:"bytes,2,rep,name=prioritized_domain,json=prioritizedDomain,proto3" json:"prioritized_domain,omitempty"`
  684. Geoip []*routercommon.GeoIP `protobuf:"bytes,3,rep,name=geoip,proto3" json:"geoip,omitempty"`
  685. OriginalRules []*SimplifiedNameServer_OriginalRule `protobuf:"bytes,4,rep,name=original_rules,json=originalRules,proto3" json:"original_rules,omitempty"`
  686. // Deprecated. Use fallback_strategy.
  687. //
  688. // Deprecated: Do not use.
  689. SkipFallback bool `protobuf:"varint,6,opt,name=skipFallback,proto3" json:"skipFallback,omitempty"`
  690. QueryStrategy *QueryStrategy `protobuf:"varint,8,opt,name=query_strategy,json=queryStrategy,proto3,enum=v2ray.core.app.dns.QueryStrategy,oneof" json:"query_strategy,omitempty"`
  691. CacheStrategy *CacheStrategy `protobuf:"varint,9,opt,name=cache_strategy,json=cacheStrategy,proto3,enum=v2ray.core.app.dns.CacheStrategy,oneof" json:"cache_strategy,omitempty"`
  692. FallbackStrategy *FallbackStrategy `protobuf:"varint,10,opt,name=fallback_strategy,json=fallbackStrategy,proto3,enum=v2ray.core.app.dns.FallbackStrategy,oneof" json:"fallback_strategy,omitempty"`
  693. }
  694. func (x *SimplifiedNameServer) Reset() {
  695. *x = SimplifiedNameServer{}
  696. if protoimpl.UnsafeEnabled {
  697. mi := &file_app_dns_config_proto_msgTypes[5]
  698. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  699. ms.StoreMessageInfo(mi)
  700. }
  701. }
  702. func (x *SimplifiedNameServer) String() string {
  703. return protoimpl.X.MessageStringOf(x)
  704. }
  705. func (*SimplifiedNameServer) ProtoMessage() {}
  706. func (x *SimplifiedNameServer) ProtoReflect() protoreflect.Message {
  707. mi := &file_app_dns_config_proto_msgTypes[5]
  708. if protoimpl.UnsafeEnabled && x != nil {
  709. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  710. if ms.LoadMessageInfo() == nil {
  711. ms.StoreMessageInfo(mi)
  712. }
  713. return ms
  714. }
  715. return mi.MessageOf(x)
  716. }
  717. // Deprecated: Use SimplifiedNameServer.ProtoReflect.Descriptor instead.
  718. func (*SimplifiedNameServer) Descriptor() ([]byte, []int) {
  719. return file_app_dns_config_proto_rawDescGZIP(), []int{5}
  720. }
  721. func (x *SimplifiedNameServer) GetAddress() *net.Endpoint {
  722. if x != nil {
  723. return x.Address
  724. }
  725. return nil
  726. }
  727. func (x *SimplifiedNameServer) GetClientIp() string {
  728. if x != nil {
  729. return x.ClientIp
  730. }
  731. return ""
  732. }
  733. func (x *SimplifiedNameServer) GetTag() string {
  734. if x != nil {
  735. return x.Tag
  736. }
  737. return ""
  738. }
  739. func (x *SimplifiedNameServer) GetPrioritizedDomain() []*SimplifiedNameServer_PriorityDomain {
  740. if x != nil {
  741. return x.PrioritizedDomain
  742. }
  743. return nil
  744. }
  745. func (x *SimplifiedNameServer) GetGeoip() []*routercommon.GeoIP {
  746. if x != nil {
  747. return x.Geoip
  748. }
  749. return nil
  750. }
  751. func (x *SimplifiedNameServer) GetOriginalRules() []*SimplifiedNameServer_OriginalRule {
  752. if x != nil {
  753. return x.OriginalRules
  754. }
  755. return nil
  756. }
  757. // Deprecated: Do not use.
  758. func (x *SimplifiedNameServer) GetSkipFallback() bool {
  759. if x != nil {
  760. return x.SkipFallback
  761. }
  762. return false
  763. }
  764. func (x *SimplifiedNameServer) GetQueryStrategy() QueryStrategy {
  765. if x != nil && x.QueryStrategy != nil {
  766. return *x.QueryStrategy
  767. }
  768. return QueryStrategy_USE_IP
  769. }
  770. func (x *SimplifiedNameServer) GetCacheStrategy() CacheStrategy {
  771. if x != nil && x.CacheStrategy != nil {
  772. return *x.CacheStrategy
  773. }
  774. return CacheStrategy_CacheEnabled
  775. }
  776. func (x *SimplifiedNameServer) GetFallbackStrategy() FallbackStrategy {
  777. if x != nil && x.FallbackStrategy != nil {
  778. return *x.FallbackStrategy
  779. }
  780. return FallbackStrategy_Enabled
  781. }
  782. type NameServer_PriorityDomain struct {
  783. state protoimpl.MessageState
  784. sizeCache protoimpl.SizeCache
  785. unknownFields protoimpl.UnknownFields
  786. Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
  787. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  788. }
  789. func (x *NameServer_PriorityDomain) Reset() {
  790. *x = NameServer_PriorityDomain{}
  791. if protoimpl.UnsafeEnabled {
  792. mi := &file_app_dns_config_proto_msgTypes[6]
  793. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  794. ms.StoreMessageInfo(mi)
  795. }
  796. }
  797. func (x *NameServer_PriorityDomain) String() string {
  798. return protoimpl.X.MessageStringOf(x)
  799. }
  800. func (*NameServer_PriorityDomain) ProtoMessage() {}
  801. func (x *NameServer_PriorityDomain) ProtoReflect() protoreflect.Message {
  802. mi := &file_app_dns_config_proto_msgTypes[6]
  803. if protoimpl.UnsafeEnabled && x != nil {
  804. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  805. if ms.LoadMessageInfo() == nil {
  806. ms.StoreMessageInfo(mi)
  807. }
  808. return ms
  809. }
  810. return mi.MessageOf(x)
  811. }
  812. // Deprecated: Use NameServer_PriorityDomain.ProtoReflect.Descriptor instead.
  813. func (*NameServer_PriorityDomain) Descriptor() ([]byte, []int) {
  814. return file_app_dns_config_proto_rawDescGZIP(), []int{0, 0}
  815. }
  816. func (x *NameServer_PriorityDomain) GetType() DomainMatchingType {
  817. if x != nil {
  818. return x.Type
  819. }
  820. return DomainMatchingType_Full
  821. }
  822. func (x *NameServer_PriorityDomain) GetDomain() string {
  823. if x != nil {
  824. return x.Domain
  825. }
  826. return ""
  827. }
  828. type NameServer_OriginalRule struct {
  829. state protoimpl.MessageState
  830. sizeCache protoimpl.SizeCache
  831. unknownFields protoimpl.UnknownFields
  832. Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
  833. Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
  834. }
  835. func (x *NameServer_OriginalRule) Reset() {
  836. *x = NameServer_OriginalRule{}
  837. if protoimpl.UnsafeEnabled {
  838. mi := &file_app_dns_config_proto_msgTypes[7]
  839. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  840. ms.StoreMessageInfo(mi)
  841. }
  842. }
  843. func (x *NameServer_OriginalRule) String() string {
  844. return protoimpl.X.MessageStringOf(x)
  845. }
  846. func (*NameServer_OriginalRule) ProtoMessage() {}
  847. func (x *NameServer_OriginalRule) ProtoReflect() protoreflect.Message {
  848. mi := &file_app_dns_config_proto_msgTypes[7]
  849. if protoimpl.UnsafeEnabled && x != nil {
  850. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  851. if ms.LoadMessageInfo() == nil {
  852. ms.StoreMessageInfo(mi)
  853. }
  854. return ms
  855. }
  856. return mi.MessageOf(x)
  857. }
  858. // Deprecated: Use NameServer_OriginalRule.ProtoReflect.Descriptor instead.
  859. func (*NameServer_OriginalRule) Descriptor() ([]byte, []int) {
  860. return file_app_dns_config_proto_rawDescGZIP(), []int{0, 1}
  861. }
  862. func (x *NameServer_OriginalRule) GetRule() string {
  863. if x != nil {
  864. return x.Rule
  865. }
  866. return ""
  867. }
  868. func (x *NameServer_OriginalRule) GetSize() uint32 {
  869. if x != nil {
  870. return x.Size
  871. }
  872. return 0
  873. }
  874. type SimplifiedNameServer_PriorityDomain struct {
  875. state protoimpl.MessageState
  876. sizeCache protoimpl.SizeCache
  877. unknownFields protoimpl.UnknownFields
  878. Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
  879. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  880. }
  881. func (x *SimplifiedNameServer_PriorityDomain) Reset() {
  882. *x = SimplifiedNameServer_PriorityDomain{}
  883. if protoimpl.UnsafeEnabled {
  884. mi := &file_app_dns_config_proto_msgTypes[9]
  885. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  886. ms.StoreMessageInfo(mi)
  887. }
  888. }
  889. func (x *SimplifiedNameServer_PriorityDomain) String() string {
  890. return protoimpl.X.MessageStringOf(x)
  891. }
  892. func (*SimplifiedNameServer_PriorityDomain) ProtoMessage() {}
  893. func (x *SimplifiedNameServer_PriorityDomain) ProtoReflect() protoreflect.Message {
  894. mi := &file_app_dns_config_proto_msgTypes[9]
  895. if protoimpl.UnsafeEnabled && x != nil {
  896. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  897. if ms.LoadMessageInfo() == nil {
  898. ms.StoreMessageInfo(mi)
  899. }
  900. return ms
  901. }
  902. return mi.MessageOf(x)
  903. }
  904. // Deprecated: Use SimplifiedNameServer_PriorityDomain.ProtoReflect.Descriptor instead.
  905. func (*SimplifiedNameServer_PriorityDomain) Descriptor() ([]byte, []int) {
  906. return file_app_dns_config_proto_rawDescGZIP(), []int{5, 0}
  907. }
  908. func (x *SimplifiedNameServer_PriorityDomain) GetType() DomainMatchingType {
  909. if x != nil {
  910. return x.Type
  911. }
  912. return DomainMatchingType_Full
  913. }
  914. func (x *SimplifiedNameServer_PriorityDomain) GetDomain() string {
  915. if x != nil {
  916. return x.Domain
  917. }
  918. return ""
  919. }
  920. type SimplifiedNameServer_OriginalRule struct {
  921. state protoimpl.MessageState
  922. sizeCache protoimpl.SizeCache
  923. unknownFields protoimpl.UnknownFields
  924. Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
  925. Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
  926. }
  927. func (x *SimplifiedNameServer_OriginalRule) Reset() {
  928. *x = SimplifiedNameServer_OriginalRule{}
  929. if protoimpl.UnsafeEnabled {
  930. mi := &file_app_dns_config_proto_msgTypes[10]
  931. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  932. ms.StoreMessageInfo(mi)
  933. }
  934. }
  935. func (x *SimplifiedNameServer_OriginalRule) String() string {
  936. return protoimpl.X.MessageStringOf(x)
  937. }
  938. func (*SimplifiedNameServer_OriginalRule) ProtoMessage() {}
  939. func (x *SimplifiedNameServer_OriginalRule) ProtoReflect() protoreflect.Message {
  940. mi := &file_app_dns_config_proto_msgTypes[10]
  941. if protoimpl.UnsafeEnabled && x != nil {
  942. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  943. if ms.LoadMessageInfo() == nil {
  944. ms.StoreMessageInfo(mi)
  945. }
  946. return ms
  947. }
  948. return mi.MessageOf(x)
  949. }
  950. // Deprecated: Use SimplifiedNameServer_OriginalRule.ProtoReflect.Descriptor instead.
  951. func (*SimplifiedNameServer_OriginalRule) Descriptor() ([]byte, []int) {
  952. return file_app_dns_config_proto_rawDescGZIP(), []int{5, 1}
  953. }
  954. func (x *SimplifiedNameServer_OriginalRule) GetRule() string {
  955. if x != nil {
  956. return x.Rule
  957. }
  958. return ""
  959. }
  960. func (x *SimplifiedNameServer_OriginalRule) GetSize() uint32 {
  961. if x != nil {
  962. return x.Size
  963. }
  964. return 0
  965. }
  966. var File_app_dns_config_proto protoreflect.FileDescriptor
  967. var file_app_dns_config_proto_rawDesc = []byte{
  968. 0x0a, 0x14, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  969. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  970. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d,
  971. 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70,
  972. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74,
  973. 0x2f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
  974. 0x74, 0x6f, 0x1a, 0x24, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x72,
  975. 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
  976. 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  977. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  978. 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe1, 0x06, 0x0a, 0x0a, 0x4e,
  979. 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x07, 0x61, 0x64, 0x64,
  980. 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72,
  981. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e,
  982. 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x64, 0x64,
  983. 0x72, 0x65, 0x73, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69,
  984. 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49,
  985. 0x70, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
  986. 0x74, 0x61, 0x67, 0x12, 0x5c, 0x0a, 0x12, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a,
  987. 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
  988. 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  989. 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e,
  990. 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x11,
  991. 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69,
  992. 0x6e, 0x12, 0x3f, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
  993. 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  994. 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63,
  995. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x05, 0x67, 0x65, 0x6f,
  996. 0x69, 0x70, 0x12, 0x52, 0x0a, 0x0e, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x72,
  997. 0x75, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72,
  998. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e,
  999. 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x4f, 0x72, 0x69, 0x67, 0x69,
  1000. 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61,
  1001. 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0c, 0x73, 0x6b, 0x69, 0x70, 0x46, 0x61,
  1002. 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01,
  1003. 0x52, 0x0c, 0x73, 0x6b, 0x69, 0x70, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x4d,
  1004. 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  1005. 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  1006. 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72,
  1007. 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x48, 0x00, 0x52, 0x0d, 0x71, 0x75, 0x65,
  1008. 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x88, 0x01, 0x01, 0x12, 0x4d, 0x0a,
  1009. 0x0e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18,
  1010. 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  1011. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x65,
  1012. 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x48, 0x01, 0x52, 0x0d, 0x63, 0x61, 0x63, 0x68,
  1013. 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x88, 0x01, 0x01, 0x12, 0x56, 0x0a, 0x11,
  1014. 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67,
  1015. 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  1016. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x46, 0x61, 0x6c,
  1017. 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x48, 0x02, 0x52,
  1018. 0x10, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67,
  1019. 0x79, 0x88, 0x01, 0x01, 0x1a, 0x64, 0x0a, 0x0e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79,
  1020. 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01,
  1021. 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  1022. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  1023. 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79,
  1024. 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01,
  1025. 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x1a, 0x36, 0x0a, 0x0c, 0x4f, 0x72,
  1026. 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x75,
  1027. 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x12, 0x12,
  1028. 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x69,
  1029. 0x7a, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x74, 0x72,
  1030. 0x61, 0x74, 0x65, 0x67, 0x79, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f,
  1031. 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x66, 0x61, 0x6c,
  1032. 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x22, 0x98,
  1033. 0x01, 0x0a, 0x0b, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x3a,
  1034. 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x76,
  1035. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e,
  1036. 0x73, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67,
  1037. 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f,
  1038. 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61,
  1039. 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x02,
  1040. 0x69, 0x70, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x65, 0x64, 0x5f, 0x64, 0x6f,
  1041. 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78,
  1042. 0x69, 0x65, 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xa0, 0x06, 0x0a, 0x06, 0x43, 0x6f,
  1043. 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45, 0x0a, 0x0b, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76,
  1044. 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61,
  1045. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65,
  1046. 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b,
  1047. 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, 0x3f, 0x0a, 0x0b, 0x6e,
  1048. 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b,
  1049. 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  1050. 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
  1051. 0x52, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x3f, 0x0a, 0x05,
  1052. 0x48, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x76, 0x32,
  1053. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73,
  1054. 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74,
  1055. 0x72, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1b, 0x0a,
  1056. 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c,
  1057. 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x70, 0x12, 0x42, 0x0a, 0x0c, 0x73, 0x74,
  1058. 0x61, 0x74, 0x69, 0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b,
  1059. 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  1060. 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e,
  1061. 0x67, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x10,
  1062. 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67,
  1063. 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65,
  1064. 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x61,
  1065. 0x62, 0x6c, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x2c, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x61,
  1066. 0x62, 0x6c, 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28,
  1067. 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61,
  1068. 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x3a, 0x0a, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c,
  1069. 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x49, 0x66, 0x4d, 0x61, 0x74, 0x63, 0x68,
  1070. 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61,
  1071. 0x62, 0x6c, 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x49, 0x66, 0x4d, 0x61, 0x74,
  1072. 0x63, 0x68, 0x12, 0x48, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x61,
  1073. 0x74, 0x65, 0x67, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72,
  1074. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e,
  1075. 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0d, 0x71,
  1076. 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x48, 0x0a, 0x0e,
  1077. 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x0c,
  1078. 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  1079. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x53,
  1080. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74,
  1081. 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x51, 0x0a, 0x11, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61,
  1082. 0x63, 0x6b, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28,
  1083. 0x0e, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  1084. 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53,
  1085. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x10, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63,
  1086. 0x6b, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x1a, 0x5b, 0x0a, 0x0a, 0x48, 0x6f, 0x73,
  1087. 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
  1088. 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x37, 0x0a, 0x05, 0x76, 0x61, 0x6c,
  1089. 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  1090. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74,
  1091. 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c,
  1092. 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x22, 0xf3, 0x04, 0x0a,
  1093. 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  1094. 0x67, 0x12, 0x49, 0x0a, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
  1095. 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  1096. 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x53, 0x69, 0x6d, 0x70,
  1097. 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
  1098. 0x52, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09,
  1099. 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
  1100. 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x70, 0x12, 0x42, 0x0a, 0x0c, 0x73, 0x74, 0x61,
  1101. 0x74, 0x69, 0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
  1102. 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  1103. 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67,
  1104. 0x52, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x10, 0x0a,
  1105. 0x03, 0x74, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12,
  1106. 0x26, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x18,
  1107. 0x08, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62,
  1108. 0x6c, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x2c, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x62,
  1109. 0x6c, 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08,
  1110. 0x42, 0x02, 0x18, 0x01, 0x52, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x6c,
  1111. 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x3a, 0x0a, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65,
  1112. 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x49, 0x66, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x18,
  1113. 0x0b, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x16, 0x64, 0x69, 0x73, 0x61, 0x62,
  1114. 0x6c, 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x49, 0x66, 0x4d, 0x61, 0x74, 0x63,
  1115. 0x68, 0x12, 0x48, 0x0a, 0x0e, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74,
  1116. 0x65, 0x67, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61,
  1117. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x51,
  1118. 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0d, 0x71, 0x75,
  1119. 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x48, 0x0a, 0x0e, 0x63,
  1120. 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x0c, 0x20,
  1121. 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  1122. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74,
  1123. 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74, 0x72,
  1124. 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x51, 0x0a, 0x11, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63,
  1125. 0x6b, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0e,
  1126. 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  1127. 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x74,
  1128. 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x10, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b,
  1129. 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x3a, 0x16, 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07,
  1130. 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x82, 0xb5, 0x18, 0x05, 0x12, 0x03, 0x64, 0x6e, 0x73,
  1131. 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x4a, 0x04, 0x08, 0x07,
  1132. 0x10, 0x08, 0x22, 0xa2, 0x01, 0x0a, 0x15, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65,
  1133. 0x64, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x3a, 0x0a, 0x04,
  1134. 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72,
  1135. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e,
  1136. 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79,
  1137. 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61,
  1138. 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  1139. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70,
  1140. 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61,
  1141. 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x65,
  1142. 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xff, 0x06, 0x0a, 0x14, 0x53, 0x69, 0x6d, 0x70,
  1143. 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
  1144. 0x12, 0x39, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28,
  1145. 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63,
  1146. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69,
  1147. 0x6e, 0x74, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63,
  1148. 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
  1149. 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18,
  1150. 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x66, 0x0a, 0x12, 0x70, 0x72,
  1151. 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  1152. 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  1153. 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x53, 0x69, 0x6d, 0x70,
  1154. 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72,
  1155. 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52,
  1156. 0x11, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x64, 0x44, 0x6f, 0x6d, 0x61,
  1157. 0x69, 0x6e, 0x12, 0x3f, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x03, 0x28,
  1158. 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  1159. 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72,
  1160. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x05, 0x67, 0x65,
  1161. 0x6f, 0x69, 0x70, 0x12, 0x5c, 0x0a, 0x0e, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f,
  1162. 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x76, 0x32,
  1163. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73,
  1164. 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x53,
  1165. 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75,
  1166. 0x6c, 0x65, 0x52, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65,
  1167. 0x73, 0x12, 0x26, 0x0a, 0x0c, 0x73, 0x6b, 0x69, 0x70, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63,
  1168. 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0c, 0x73, 0x6b, 0x69,
  1169. 0x70, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x4d, 0x0a, 0x0e, 0x71, 0x75, 0x65,
  1170. 0x72, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28,
  1171. 0x0e, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  1172. 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61,
  1173. 0x74, 0x65, 0x67, 0x79, 0x48, 0x00, 0x52, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72,
  1174. 0x61, 0x74, 0x65, 0x67, 0x79, 0x88, 0x01, 0x01, 0x12, 0x4d, 0x0a, 0x0e, 0x63, 0x61, 0x63, 0x68,
  1175. 0x65, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e,
  1176. 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  1177. 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74,
  1178. 0x65, 0x67, 0x79, 0x48, 0x01, 0x52, 0x0d, 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74, 0x72, 0x61,
  1179. 0x74, 0x65, 0x67, 0x79, 0x88, 0x01, 0x01, 0x12, 0x56, 0x0a, 0x11, 0x66, 0x61, 0x6c, 0x6c, 0x62,
  1180. 0x61, 0x63, 0x6b, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x0a, 0x20, 0x01,
  1181. 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  1182. 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b,
  1183. 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x48, 0x02, 0x52, 0x10, 0x66, 0x61, 0x6c, 0x6c,
  1184. 0x62, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x88, 0x01, 0x01, 0x1a,
  1185. 0x64, 0x0a, 0x0e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69,
  1186. 0x6e, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
  1187. 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  1188. 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68,
  1189. 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a,
  1190. 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64,
  1191. 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x1a, 0x36, 0x0a, 0x0c, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61,
  1192. 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20,
  1193. 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a,
  1194. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x42, 0x11, 0x0a,
  1195. 0x0f, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  1196. 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74,
  1197. 0x65, 0x67, 0x79, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b,
  1198. 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x2a, 0x45, 0x0a, 0x12, 0x44, 0x6f, 0x6d,
  1199. 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12,
  1200. 0x08, 0x0a, 0x04, 0x46, 0x75, 0x6c, 0x6c, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x75, 0x62,
  1201. 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x77,
  1202. 0x6f, 0x72, 0x64, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x65, 0x67, 0x65, 0x78, 0x10, 0x03,
  1203. 0x2a, 0x35, 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67,
  1204. 0x79, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x10, 0x00, 0x12, 0x0b, 0x0a,
  1205. 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53,
  1206. 0x45, 0x5f, 0x49, 0x50, 0x36, 0x10, 0x02, 0x2a, 0x34, 0x0a, 0x0d, 0x43, 0x61, 0x63, 0x68, 0x65,
  1207. 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x61, 0x63, 0x68,
  1208. 0x65, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x61,
  1209. 0x63, 0x68, 0x65, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x10, 0x01, 0x2a, 0x45, 0x0a,
  1210. 0x10, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67,
  1211. 0x79, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x10, 0x00, 0x12, 0x0c,
  1212. 0x0a, 0x08, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12,
  1213. 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x66, 0x41, 0x6e, 0x79, 0x4d, 0x61, 0x74,
  1214. 0x63, 0x68, 0x10, 0x02, 0x42, 0x57, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61,
  1215. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x50, 0x01,
  1216. 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66,
  1217. 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35,
  1218. 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0xaa, 0x02, 0x12, 0x56, 0x32, 0x52, 0x61, 0x79,
  1219. 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x44, 0x6e, 0x73, 0x62, 0x06, 0x70,
  1220. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1221. }
  1222. var (
  1223. file_app_dns_config_proto_rawDescOnce sync.Once
  1224. file_app_dns_config_proto_rawDescData = file_app_dns_config_proto_rawDesc
  1225. )
  1226. func file_app_dns_config_proto_rawDescGZIP() []byte {
  1227. file_app_dns_config_proto_rawDescOnce.Do(func() {
  1228. file_app_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_dns_config_proto_rawDescData)
  1229. })
  1230. return file_app_dns_config_proto_rawDescData
  1231. }
  1232. var file_app_dns_config_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
  1233. var file_app_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
  1234. var file_app_dns_config_proto_goTypes = []interface{}{
  1235. (DomainMatchingType)(0), // 0: v2ray.core.app.dns.DomainMatchingType
  1236. (QueryStrategy)(0), // 1: v2ray.core.app.dns.QueryStrategy
  1237. (CacheStrategy)(0), // 2: v2ray.core.app.dns.CacheStrategy
  1238. (FallbackStrategy)(0), // 3: v2ray.core.app.dns.FallbackStrategy
  1239. (*NameServer)(nil), // 4: v2ray.core.app.dns.NameServer
  1240. (*HostMapping)(nil), // 5: v2ray.core.app.dns.HostMapping
  1241. (*Config)(nil), // 6: v2ray.core.app.dns.Config
  1242. (*SimplifiedConfig)(nil), // 7: v2ray.core.app.dns.SimplifiedConfig
  1243. (*SimplifiedHostMapping)(nil), // 8: v2ray.core.app.dns.SimplifiedHostMapping
  1244. (*SimplifiedNameServer)(nil), // 9: v2ray.core.app.dns.SimplifiedNameServer
  1245. (*NameServer_PriorityDomain)(nil), // 10: v2ray.core.app.dns.NameServer.PriorityDomain
  1246. (*NameServer_OriginalRule)(nil), // 11: v2ray.core.app.dns.NameServer.OriginalRule
  1247. nil, // 12: v2ray.core.app.dns.Config.HostsEntry
  1248. (*SimplifiedNameServer_PriorityDomain)(nil), // 13: v2ray.core.app.dns.SimplifiedNameServer.PriorityDomain
  1249. (*SimplifiedNameServer_OriginalRule)(nil), // 14: v2ray.core.app.dns.SimplifiedNameServer.OriginalRule
  1250. (*net.Endpoint)(nil), // 15: v2ray.core.common.net.Endpoint
  1251. (*routercommon.GeoIP)(nil), // 16: v2ray.core.app.router.routercommon.GeoIP
  1252. (*net.IPOrDomain)(nil), // 17: v2ray.core.common.net.IPOrDomain
  1253. }
  1254. var file_app_dns_config_proto_depIdxs = []int32{
  1255. 15, // 0: v2ray.core.app.dns.NameServer.address:type_name -> v2ray.core.common.net.Endpoint
  1256. 10, // 1: v2ray.core.app.dns.NameServer.prioritized_domain:type_name -> v2ray.core.app.dns.NameServer.PriorityDomain
  1257. 16, // 2: v2ray.core.app.dns.NameServer.geoip:type_name -> v2ray.core.app.router.routercommon.GeoIP
  1258. 11, // 3: v2ray.core.app.dns.NameServer.original_rules:type_name -> v2ray.core.app.dns.NameServer.OriginalRule
  1259. 1, // 4: v2ray.core.app.dns.NameServer.query_strategy:type_name -> v2ray.core.app.dns.QueryStrategy
  1260. 2, // 5: v2ray.core.app.dns.NameServer.cache_strategy:type_name -> v2ray.core.app.dns.CacheStrategy
  1261. 3, // 6: v2ray.core.app.dns.NameServer.fallback_strategy:type_name -> v2ray.core.app.dns.FallbackStrategy
  1262. 0, // 7: v2ray.core.app.dns.HostMapping.type:type_name -> v2ray.core.app.dns.DomainMatchingType
  1263. 15, // 8: v2ray.core.app.dns.Config.NameServers:type_name -> v2ray.core.common.net.Endpoint
  1264. 4, // 9: v2ray.core.app.dns.Config.name_server:type_name -> v2ray.core.app.dns.NameServer
  1265. 12, // 10: v2ray.core.app.dns.Config.Hosts:type_name -> v2ray.core.app.dns.Config.HostsEntry
  1266. 5, // 11: v2ray.core.app.dns.Config.static_hosts:type_name -> v2ray.core.app.dns.HostMapping
  1267. 1, // 12: v2ray.core.app.dns.Config.query_strategy:type_name -> v2ray.core.app.dns.QueryStrategy
  1268. 2, // 13: v2ray.core.app.dns.Config.cache_strategy:type_name -> v2ray.core.app.dns.CacheStrategy
  1269. 3, // 14: v2ray.core.app.dns.Config.fallback_strategy:type_name -> v2ray.core.app.dns.FallbackStrategy
  1270. 9, // 15: v2ray.core.app.dns.SimplifiedConfig.name_server:type_name -> v2ray.core.app.dns.SimplifiedNameServer
  1271. 5, // 16: v2ray.core.app.dns.SimplifiedConfig.static_hosts:type_name -> v2ray.core.app.dns.HostMapping
  1272. 1, // 17: v2ray.core.app.dns.SimplifiedConfig.query_strategy:type_name -> v2ray.core.app.dns.QueryStrategy
  1273. 2, // 18: v2ray.core.app.dns.SimplifiedConfig.cache_strategy:type_name -> v2ray.core.app.dns.CacheStrategy
  1274. 3, // 19: v2ray.core.app.dns.SimplifiedConfig.fallback_strategy:type_name -> v2ray.core.app.dns.FallbackStrategy
  1275. 0, // 20: v2ray.core.app.dns.SimplifiedHostMapping.type:type_name -> v2ray.core.app.dns.DomainMatchingType
  1276. 15, // 21: v2ray.core.app.dns.SimplifiedNameServer.address:type_name -> v2ray.core.common.net.Endpoint
  1277. 13, // 22: v2ray.core.app.dns.SimplifiedNameServer.prioritized_domain:type_name -> v2ray.core.app.dns.SimplifiedNameServer.PriorityDomain
  1278. 16, // 23: v2ray.core.app.dns.SimplifiedNameServer.geoip:type_name -> v2ray.core.app.router.routercommon.GeoIP
  1279. 14, // 24: v2ray.core.app.dns.SimplifiedNameServer.original_rules:type_name -> v2ray.core.app.dns.SimplifiedNameServer.OriginalRule
  1280. 1, // 25: v2ray.core.app.dns.SimplifiedNameServer.query_strategy:type_name -> v2ray.core.app.dns.QueryStrategy
  1281. 2, // 26: v2ray.core.app.dns.SimplifiedNameServer.cache_strategy:type_name -> v2ray.core.app.dns.CacheStrategy
  1282. 3, // 27: v2ray.core.app.dns.SimplifiedNameServer.fallback_strategy:type_name -> v2ray.core.app.dns.FallbackStrategy
  1283. 0, // 28: v2ray.core.app.dns.NameServer.PriorityDomain.type:type_name -> v2ray.core.app.dns.DomainMatchingType
  1284. 17, // 29: v2ray.core.app.dns.Config.HostsEntry.value:type_name -> v2ray.core.common.net.IPOrDomain
  1285. 0, // 30: v2ray.core.app.dns.SimplifiedNameServer.PriorityDomain.type:type_name -> v2ray.core.app.dns.DomainMatchingType
  1286. 31, // [31:31] is the sub-list for method output_type
  1287. 31, // [31:31] is the sub-list for method input_type
  1288. 31, // [31:31] is the sub-list for extension type_name
  1289. 31, // [31:31] is the sub-list for extension extendee
  1290. 0, // [0:31] is the sub-list for field type_name
  1291. }
  1292. func init() { file_app_dns_config_proto_init() }
  1293. func file_app_dns_config_proto_init() {
  1294. if File_app_dns_config_proto != nil {
  1295. return
  1296. }
  1297. if !protoimpl.UnsafeEnabled {
  1298. file_app_dns_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1299. switch v := v.(*NameServer); i {
  1300. case 0:
  1301. return &v.state
  1302. case 1:
  1303. return &v.sizeCache
  1304. case 2:
  1305. return &v.unknownFields
  1306. default:
  1307. return nil
  1308. }
  1309. }
  1310. file_app_dns_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1311. switch v := v.(*HostMapping); i {
  1312. case 0:
  1313. return &v.state
  1314. case 1:
  1315. return &v.sizeCache
  1316. case 2:
  1317. return &v.unknownFields
  1318. default:
  1319. return nil
  1320. }
  1321. }
  1322. file_app_dns_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1323. switch v := v.(*Config); i {
  1324. case 0:
  1325. return &v.state
  1326. case 1:
  1327. return &v.sizeCache
  1328. case 2:
  1329. return &v.unknownFields
  1330. default:
  1331. return nil
  1332. }
  1333. }
  1334. file_app_dns_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1335. switch v := v.(*SimplifiedConfig); i {
  1336. case 0:
  1337. return &v.state
  1338. case 1:
  1339. return &v.sizeCache
  1340. case 2:
  1341. return &v.unknownFields
  1342. default:
  1343. return nil
  1344. }
  1345. }
  1346. file_app_dns_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1347. switch v := v.(*SimplifiedHostMapping); i {
  1348. case 0:
  1349. return &v.state
  1350. case 1:
  1351. return &v.sizeCache
  1352. case 2:
  1353. return &v.unknownFields
  1354. default:
  1355. return nil
  1356. }
  1357. }
  1358. file_app_dns_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1359. switch v := v.(*SimplifiedNameServer); i {
  1360. case 0:
  1361. return &v.state
  1362. case 1:
  1363. return &v.sizeCache
  1364. case 2:
  1365. return &v.unknownFields
  1366. default:
  1367. return nil
  1368. }
  1369. }
  1370. file_app_dns_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1371. switch v := v.(*NameServer_PriorityDomain); i {
  1372. case 0:
  1373. return &v.state
  1374. case 1:
  1375. return &v.sizeCache
  1376. case 2:
  1377. return &v.unknownFields
  1378. default:
  1379. return nil
  1380. }
  1381. }
  1382. file_app_dns_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1383. switch v := v.(*NameServer_OriginalRule); i {
  1384. case 0:
  1385. return &v.state
  1386. case 1:
  1387. return &v.sizeCache
  1388. case 2:
  1389. return &v.unknownFields
  1390. default:
  1391. return nil
  1392. }
  1393. }
  1394. file_app_dns_config_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1395. switch v := v.(*SimplifiedNameServer_PriorityDomain); i {
  1396. case 0:
  1397. return &v.state
  1398. case 1:
  1399. return &v.sizeCache
  1400. case 2:
  1401. return &v.unknownFields
  1402. default:
  1403. return nil
  1404. }
  1405. }
  1406. file_app_dns_config_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1407. switch v := v.(*SimplifiedNameServer_OriginalRule); i {
  1408. case 0:
  1409. return &v.state
  1410. case 1:
  1411. return &v.sizeCache
  1412. case 2:
  1413. return &v.unknownFields
  1414. default:
  1415. return nil
  1416. }
  1417. }
  1418. }
  1419. file_app_dns_config_proto_msgTypes[0].OneofWrappers = []interface{}{}
  1420. file_app_dns_config_proto_msgTypes[5].OneofWrappers = []interface{}{}
  1421. type x struct{}
  1422. out := protoimpl.TypeBuilder{
  1423. File: protoimpl.DescBuilder{
  1424. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1425. RawDescriptor: file_app_dns_config_proto_rawDesc,
  1426. NumEnums: 4,
  1427. NumMessages: 11,
  1428. NumExtensions: 0,
  1429. NumServices: 0,
  1430. },
  1431. GoTypes: file_app_dns_config_proto_goTypes,
  1432. DependencyIndexes: file_app_dns_config_proto_depIdxs,
  1433. EnumInfos: file_app_dns_config_proto_enumTypes,
  1434. MessageInfos: file_app_dns_config_proto_msgTypes,
  1435. }.Build()
  1436. File_app_dns_config_proto = out.File
  1437. file_app_dns_config_proto_rawDesc = nil
  1438. file_app_dns_config_proto_goTypes = nil
  1439. file_app_dns_config_proto_depIdxs = nil
  1440. }