config.pb.go 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.17.3
  5. // source: app/dns/config.proto
  6. package dns
  7. import (
  8. routercommon "github.com/v2fly/v2ray-core/v4/app/router/routercommon"
  9. net "github.com/v2fly/v2ray-core/v4/common/net"
  10. _ "github.com/v2fly/v2ray-core/v4/common/protoext"
  11. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  12. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  13. reflect "reflect"
  14. sync "sync"
  15. )
  16. const (
  17. // Verify that this generated code is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  19. // Verify that runtime/protoimpl is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  21. )
  22. type DomainMatchingType int32
  23. const (
  24. DomainMatchingType_Full DomainMatchingType = 0
  25. DomainMatchingType_Subdomain DomainMatchingType = 1
  26. DomainMatchingType_Keyword DomainMatchingType = 2
  27. DomainMatchingType_Regex DomainMatchingType = 3
  28. )
  29. // Enum value maps for DomainMatchingType.
  30. var (
  31. DomainMatchingType_name = map[int32]string{
  32. 0: "Full",
  33. 1: "Subdomain",
  34. 2: "Keyword",
  35. 3: "Regex",
  36. }
  37. DomainMatchingType_value = map[string]int32{
  38. "Full": 0,
  39. "Subdomain": 1,
  40. "Keyword": 2,
  41. "Regex": 3,
  42. }
  43. )
  44. func (x DomainMatchingType) Enum() *DomainMatchingType {
  45. p := new(DomainMatchingType)
  46. *p = x
  47. return p
  48. }
  49. func (x DomainMatchingType) String() string {
  50. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  51. }
  52. func (DomainMatchingType) Descriptor() protoreflect.EnumDescriptor {
  53. return file_app_dns_config_proto_enumTypes[0].Descriptor()
  54. }
  55. func (DomainMatchingType) Type() protoreflect.EnumType {
  56. return &file_app_dns_config_proto_enumTypes[0]
  57. }
  58. func (x DomainMatchingType) Number() protoreflect.EnumNumber {
  59. return protoreflect.EnumNumber(x)
  60. }
  61. // Deprecated: Use DomainMatchingType.Descriptor instead.
  62. func (DomainMatchingType) EnumDescriptor() ([]byte, []int) {
  63. return file_app_dns_config_proto_rawDescGZIP(), []int{0}
  64. }
  65. type QueryStrategy int32
  66. const (
  67. QueryStrategy_USE_IP QueryStrategy = 0
  68. QueryStrategy_USE_IP4 QueryStrategy = 1
  69. QueryStrategy_USE_IP6 QueryStrategy = 2
  70. )
  71. // Enum value maps for QueryStrategy.
  72. var (
  73. QueryStrategy_name = map[int32]string{
  74. 0: "USE_IP",
  75. 1: "USE_IP4",
  76. 2: "USE_IP6",
  77. }
  78. QueryStrategy_value = map[string]int32{
  79. "USE_IP": 0,
  80. "USE_IP4": 1,
  81. "USE_IP6": 2,
  82. }
  83. )
  84. func (x QueryStrategy) Enum() *QueryStrategy {
  85. p := new(QueryStrategy)
  86. *p = x
  87. return p
  88. }
  89. func (x QueryStrategy) String() string {
  90. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  91. }
  92. func (QueryStrategy) Descriptor() protoreflect.EnumDescriptor {
  93. return file_app_dns_config_proto_enumTypes[1].Descriptor()
  94. }
  95. func (QueryStrategy) Type() protoreflect.EnumType {
  96. return &file_app_dns_config_proto_enumTypes[1]
  97. }
  98. func (x QueryStrategy) Number() protoreflect.EnumNumber {
  99. return protoreflect.EnumNumber(x)
  100. }
  101. // Deprecated: Use QueryStrategy.Descriptor instead.
  102. func (QueryStrategy) EnumDescriptor() ([]byte, []int) {
  103. return file_app_dns_config_proto_rawDescGZIP(), []int{1}
  104. }
  105. type NameServer struct {
  106. state protoimpl.MessageState
  107. sizeCache protoimpl.SizeCache
  108. unknownFields protoimpl.UnknownFields
  109. Address *net.Endpoint `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  110. ClientIp []byte `protobuf:"bytes,5,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
  111. SkipFallback bool `protobuf:"varint,6,opt,name=skipFallback,proto3" json:"skipFallback,omitempty"`
  112. PrioritizedDomain []*NameServer_PriorityDomain `protobuf:"bytes,2,rep,name=prioritized_domain,json=prioritizedDomain,proto3" json:"prioritized_domain,omitempty"`
  113. Geoip []*routercommon.GeoIP `protobuf:"bytes,3,rep,name=geoip,proto3" json:"geoip,omitempty"`
  114. OriginalRules []*NameServer_OriginalRule `protobuf:"bytes,4,rep,name=original_rules,json=originalRules,proto3" json:"original_rules,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() []*routercommon.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. type HostMapping struct {
  180. state protoimpl.MessageState
  181. sizeCache protoimpl.SizeCache
  182. unknownFields protoimpl.UnknownFields
  183. Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
  184. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  185. Ip [][]byte `protobuf:"bytes,3,rep,name=ip,proto3" json:"ip,omitempty"`
  186. // ProxiedDomain indicates the mapped domain has the same IP address on this
  187. // domain. V2Ray will use this domain for IP queries.
  188. ProxiedDomain string `protobuf:"bytes,4,opt,name=proxied_domain,json=proxiedDomain,proto3" json:"proxied_domain,omitempty"`
  189. }
  190. func (x *HostMapping) Reset() {
  191. *x = HostMapping{}
  192. if protoimpl.UnsafeEnabled {
  193. mi := &file_app_dns_config_proto_msgTypes[1]
  194. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  195. ms.StoreMessageInfo(mi)
  196. }
  197. }
  198. func (x *HostMapping) String() string {
  199. return protoimpl.X.MessageStringOf(x)
  200. }
  201. func (*HostMapping) ProtoMessage() {}
  202. func (x *HostMapping) ProtoReflect() protoreflect.Message {
  203. mi := &file_app_dns_config_proto_msgTypes[1]
  204. if protoimpl.UnsafeEnabled && x != nil {
  205. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  206. if ms.LoadMessageInfo() == nil {
  207. ms.StoreMessageInfo(mi)
  208. }
  209. return ms
  210. }
  211. return mi.MessageOf(x)
  212. }
  213. // Deprecated: Use HostMapping.ProtoReflect.Descriptor instead.
  214. func (*HostMapping) Descriptor() ([]byte, []int) {
  215. return file_app_dns_config_proto_rawDescGZIP(), []int{1}
  216. }
  217. func (x *HostMapping) GetType() DomainMatchingType {
  218. if x != nil {
  219. return x.Type
  220. }
  221. return DomainMatchingType_Full
  222. }
  223. func (x *HostMapping) GetDomain() string {
  224. if x != nil {
  225. return x.Domain
  226. }
  227. return ""
  228. }
  229. func (x *HostMapping) GetIp() [][]byte {
  230. if x != nil {
  231. return x.Ip
  232. }
  233. return nil
  234. }
  235. func (x *HostMapping) GetProxiedDomain() string {
  236. if x != nil {
  237. return x.ProxiedDomain
  238. }
  239. return ""
  240. }
  241. type Config struct {
  242. state protoimpl.MessageState
  243. sizeCache protoimpl.SizeCache
  244. unknownFields protoimpl.UnknownFields
  245. // Nameservers used by this DNS. Only traditional UDP servers are support at
  246. // the moment. A special value 'localhost' as a domain address can be set to
  247. // use DNS on local system.
  248. //
  249. // Deprecated: Do not use.
  250. NameServers []*net.Endpoint `protobuf:"bytes,1,rep,name=NameServers,proto3" json:"NameServers,omitempty"`
  251. // NameServer list used by this DNS client.
  252. NameServer []*NameServer `protobuf:"bytes,5,rep,name=name_server,json=nameServer,proto3" json:"name_server,omitempty"`
  253. // Static hosts. Domain to IP.
  254. // Deprecated. Use static_hosts.
  255. //
  256. // Deprecated: Do not use.
  257. 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"`
  258. // Client IP for EDNS client subnet. Must be 4 bytes (IPv4) or 16 bytes
  259. // (IPv6).
  260. ClientIp []byte `protobuf:"bytes,3,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
  261. StaticHosts []*HostMapping `protobuf:"bytes,4,rep,name=static_hosts,json=staticHosts,proto3" json:"static_hosts,omitempty"`
  262. // Tag is the inbound tag of DNS client.
  263. Tag string `protobuf:"bytes,6,opt,name=tag,proto3" json:"tag,omitempty"`
  264. // DisableCache disables DNS cache
  265. DisableCache bool `protobuf:"varint,8,opt,name=disableCache,proto3" json:"disableCache,omitempty"`
  266. QueryStrategy QueryStrategy `protobuf:"varint,9,opt,name=query_strategy,json=queryStrategy,proto3,enum=v2ray.core.app.dns.QueryStrategy" json:"query_strategy,omitempty"`
  267. DisableFallback bool `protobuf:"varint,10,opt,name=disableFallback,proto3" json:"disableFallback,omitempty"`
  268. }
  269. func (x *Config) Reset() {
  270. *x = Config{}
  271. if protoimpl.UnsafeEnabled {
  272. mi := &file_app_dns_config_proto_msgTypes[2]
  273. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  274. ms.StoreMessageInfo(mi)
  275. }
  276. }
  277. func (x *Config) String() string {
  278. return protoimpl.X.MessageStringOf(x)
  279. }
  280. func (*Config) ProtoMessage() {}
  281. func (x *Config) ProtoReflect() protoreflect.Message {
  282. mi := &file_app_dns_config_proto_msgTypes[2]
  283. if protoimpl.UnsafeEnabled && x != nil {
  284. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  285. if ms.LoadMessageInfo() == nil {
  286. ms.StoreMessageInfo(mi)
  287. }
  288. return ms
  289. }
  290. return mi.MessageOf(x)
  291. }
  292. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  293. func (*Config) Descriptor() ([]byte, []int) {
  294. return file_app_dns_config_proto_rawDescGZIP(), []int{2}
  295. }
  296. // Deprecated: Do not use.
  297. func (x *Config) GetNameServers() []*net.Endpoint {
  298. if x != nil {
  299. return x.NameServers
  300. }
  301. return nil
  302. }
  303. func (x *Config) GetNameServer() []*NameServer {
  304. if x != nil {
  305. return x.NameServer
  306. }
  307. return nil
  308. }
  309. // Deprecated: Do not use.
  310. func (x *Config) GetHosts() map[string]*net.IPOrDomain {
  311. if x != nil {
  312. return x.Hosts
  313. }
  314. return nil
  315. }
  316. func (x *Config) GetClientIp() []byte {
  317. if x != nil {
  318. return x.ClientIp
  319. }
  320. return nil
  321. }
  322. func (x *Config) GetStaticHosts() []*HostMapping {
  323. if x != nil {
  324. return x.StaticHosts
  325. }
  326. return nil
  327. }
  328. func (x *Config) GetTag() string {
  329. if x != nil {
  330. return x.Tag
  331. }
  332. return ""
  333. }
  334. func (x *Config) GetDisableCache() bool {
  335. if x != nil {
  336. return x.DisableCache
  337. }
  338. return false
  339. }
  340. func (x *Config) GetQueryStrategy() QueryStrategy {
  341. if x != nil {
  342. return x.QueryStrategy
  343. }
  344. return QueryStrategy_USE_IP
  345. }
  346. func (x *Config) GetDisableFallback() bool {
  347. if x != nil {
  348. return x.DisableFallback
  349. }
  350. return false
  351. }
  352. type SimplifiedConfig struct {
  353. state protoimpl.MessageState
  354. sizeCache protoimpl.SizeCache
  355. unknownFields protoimpl.UnknownFields
  356. // NameServer list used by this DNS client.
  357. NameServer []*SimplifiedNameServer `protobuf:"bytes,5,rep,name=name_server,json=nameServer,proto3" json:"name_server,omitempty"`
  358. // Client IP for EDNS client subnet. Must be 4 bytes (IPv4) or 16 bytes
  359. // (IPv6).
  360. ClientIp string `protobuf:"bytes,3,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
  361. StaticHosts []*HostMapping `protobuf:"bytes,4,rep,name=static_hosts,json=staticHosts,proto3" json:"static_hosts,omitempty"`
  362. // Tag is the inbound tag of DNS client.
  363. Tag string `protobuf:"bytes,6,opt,name=tag,proto3" json:"tag,omitempty"`
  364. // DisableCache disables DNS cache
  365. DisableCache bool `protobuf:"varint,8,opt,name=disableCache,proto3" json:"disableCache,omitempty"`
  366. QueryStrategy QueryStrategy `protobuf:"varint,9,opt,name=query_strategy,json=queryStrategy,proto3,enum=v2ray.core.app.dns.QueryStrategy" json:"query_strategy,omitempty"`
  367. DisableFallback bool `protobuf:"varint,10,opt,name=disableFallback,proto3" json:"disableFallback,omitempty"`
  368. }
  369. func (x *SimplifiedConfig) Reset() {
  370. *x = SimplifiedConfig{}
  371. if protoimpl.UnsafeEnabled {
  372. mi := &file_app_dns_config_proto_msgTypes[3]
  373. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  374. ms.StoreMessageInfo(mi)
  375. }
  376. }
  377. func (x *SimplifiedConfig) String() string {
  378. return protoimpl.X.MessageStringOf(x)
  379. }
  380. func (*SimplifiedConfig) ProtoMessage() {}
  381. func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
  382. mi := &file_app_dns_config_proto_msgTypes[3]
  383. if protoimpl.UnsafeEnabled && x != nil {
  384. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  385. if ms.LoadMessageInfo() == nil {
  386. ms.StoreMessageInfo(mi)
  387. }
  388. return ms
  389. }
  390. return mi.MessageOf(x)
  391. }
  392. // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
  393. func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
  394. return file_app_dns_config_proto_rawDescGZIP(), []int{3}
  395. }
  396. func (x *SimplifiedConfig) GetNameServer() []*SimplifiedNameServer {
  397. if x != nil {
  398. return x.NameServer
  399. }
  400. return nil
  401. }
  402. func (x *SimplifiedConfig) GetClientIp() string {
  403. if x != nil {
  404. return x.ClientIp
  405. }
  406. return ""
  407. }
  408. func (x *SimplifiedConfig) GetStaticHosts() []*HostMapping {
  409. if x != nil {
  410. return x.StaticHosts
  411. }
  412. return nil
  413. }
  414. func (x *SimplifiedConfig) GetTag() string {
  415. if x != nil {
  416. return x.Tag
  417. }
  418. return ""
  419. }
  420. func (x *SimplifiedConfig) GetDisableCache() bool {
  421. if x != nil {
  422. return x.DisableCache
  423. }
  424. return false
  425. }
  426. func (x *SimplifiedConfig) GetQueryStrategy() QueryStrategy {
  427. if x != nil {
  428. return x.QueryStrategy
  429. }
  430. return QueryStrategy_USE_IP
  431. }
  432. func (x *SimplifiedConfig) GetDisableFallback() bool {
  433. if x != nil {
  434. return x.DisableFallback
  435. }
  436. return false
  437. }
  438. type SimplifiedHostMapping struct {
  439. state protoimpl.MessageState
  440. sizeCache protoimpl.SizeCache
  441. unknownFields protoimpl.UnknownFields
  442. Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
  443. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  444. Ip []string `protobuf:"bytes,3,rep,name=ip,proto3" json:"ip,omitempty"`
  445. // ProxiedDomain indicates the mapped domain has the same IP address on this
  446. // domain. V2Ray will use this domain for IP queries.
  447. ProxiedDomain string `protobuf:"bytes,4,opt,name=proxied_domain,json=proxiedDomain,proto3" json:"proxied_domain,omitempty"`
  448. }
  449. func (x *SimplifiedHostMapping) Reset() {
  450. *x = SimplifiedHostMapping{}
  451. if protoimpl.UnsafeEnabled {
  452. mi := &file_app_dns_config_proto_msgTypes[4]
  453. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  454. ms.StoreMessageInfo(mi)
  455. }
  456. }
  457. func (x *SimplifiedHostMapping) String() string {
  458. return protoimpl.X.MessageStringOf(x)
  459. }
  460. func (*SimplifiedHostMapping) ProtoMessage() {}
  461. func (x *SimplifiedHostMapping) ProtoReflect() protoreflect.Message {
  462. mi := &file_app_dns_config_proto_msgTypes[4]
  463. if protoimpl.UnsafeEnabled && x != nil {
  464. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  465. if ms.LoadMessageInfo() == nil {
  466. ms.StoreMessageInfo(mi)
  467. }
  468. return ms
  469. }
  470. return mi.MessageOf(x)
  471. }
  472. // Deprecated: Use SimplifiedHostMapping.ProtoReflect.Descriptor instead.
  473. func (*SimplifiedHostMapping) Descriptor() ([]byte, []int) {
  474. return file_app_dns_config_proto_rawDescGZIP(), []int{4}
  475. }
  476. func (x *SimplifiedHostMapping) GetType() DomainMatchingType {
  477. if x != nil {
  478. return x.Type
  479. }
  480. return DomainMatchingType_Full
  481. }
  482. func (x *SimplifiedHostMapping) GetDomain() string {
  483. if x != nil {
  484. return x.Domain
  485. }
  486. return ""
  487. }
  488. func (x *SimplifiedHostMapping) GetIp() []string {
  489. if x != nil {
  490. return x.Ip
  491. }
  492. return nil
  493. }
  494. func (x *SimplifiedHostMapping) GetProxiedDomain() string {
  495. if x != nil {
  496. return x.ProxiedDomain
  497. }
  498. return ""
  499. }
  500. type SimplifiedNameServer struct {
  501. state protoimpl.MessageState
  502. sizeCache protoimpl.SizeCache
  503. unknownFields protoimpl.UnknownFields
  504. Address *net.Endpoint `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  505. ClientIp string `protobuf:"bytes,5,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
  506. SkipFallback bool `protobuf:"varint,6,opt,name=skipFallback,proto3" json:"skipFallback,omitempty"`
  507. PrioritizedDomain []*SimplifiedNameServer_PriorityDomain `protobuf:"bytes,2,rep,name=prioritized_domain,json=prioritizedDomain,proto3" json:"prioritized_domain,omitempty"`
  508. Geoip []*routercommon.GeoIP `protobuf:"bytes,3,rep,name=geoip,proto3" json:"geoip,omitempty"`
  509. OriginalRules []*SimplifiedNameServer_OriginalRule `protobuf:"bytes,4,rep,name=original_rules,json=originalRules,proto3" json:"original_rules,omitempty"`
  510. }
  511. func (x *SimplifiedNameServer) Reset() {
  512. *x = SimplifiedNameServer{}
  513. if protoimpl.UnsafeEnabled {
  514. mi := &file_app_dns_config_proto_msgTypes[5]
  515. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  516. ms.StoreMessageInfo(mi)
  517. }
  518. }
  519. func (x *SimplifiedNameServer) String() string {
  520. return protoimpl.X.MessageStringOf(x)
  521. }
  522. func (*SimplifiedNameServer) ProtoMessage() {}
  523. func (x *SimplifiedNameServer) ProtoReflect() protoreflect.Message {
  524. mi := &file_app_dns_config_proto_msgTypes[5]
  525. if protoimpl.UnsafeEnabled && x != nil {
  526. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  527. if ms.LoadMessageInfo() == nil {
  528. ms.StoreMessageInfo(mi)
  529. }
  530. return ms
  531. }
  532. return mi.MessageOf(x)
  533. }
  534. // Deprecated: Use SimplifiedNameServer.ProtoReflect.Descriptor instead.
  535. func (*SimplifiedNameServer) Descriptor() ([]byte, []int) {
  536. return file_app_dns_config_proto_rawDescGZIP(), []int{5}
  537. }
  538. func (x *SimplifiedNameServer) GetAddress() *net.Endpoint {
  539. if x != nil {
  540. return x.Address
  541. }
  542. return nil
  543. }
  544. func (x *SimplifiedNameServer) GetClientIp() string {
  545. if x != nil {
  546. return x.ClientIp
  547. }
  548. return ""
  549. }
  550. func (x *SimplifiedNameServer) GetSkipFallback() bool {
  551. if x != nil {
  552. return x.SkipFallback
  553. }
  554. return false
  555. }
  556. func (x *SimplifiedNameServer) GetPrioritizedDomain() []*SimplifiedNameServer_PriorityDomain {
  557. if x != nil {
  558. return x.PrioritizedDomain
  559. }
  560. return nil
  561. }
  562. func (x *SimplifiedNameServer) GetGeoip() []*routercommon.GeoIP {
  563. if x != nil {
  564. return x.Geoip
  565. }
  566. return nil
  567. }
  568. func (x *SimplifiedNameServer) GetOriginalRules() []*SimplifiedNameServer_OriginalRule {
  569. if x != nil {
  570. return x.OriginalRules
  571. }
  572. return nil
  573. }
  574. type NameServer_PriorityDomain struct {
  575. state protoimpl.MessageState
  576. sizeCache protoimpl.SizeCache
  577. unknownFields protoimpl.UnknownFields
  578. Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
  579. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  580. }
  581. func (x *NameServer_PriorityDomain) Reset() {
  582. *x = NameServer_PriorityDomain{}
  583. if protoimpl.UnsafeEnabled {
  584. mi := &file_app_dns_config_proto_msgTypes[6]
  585. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  586. ms.StoreMessageInfo(mi)
  587. }
  588. }
  589. func (x *NameServer_PriorityDomain) String() string {
  590. return protoimpl.X.MessageStringOf(x)
  591. }
  592. func (*NameServer_PriorityDomain) ProtoMessage() {}
  593. func (x *NameServer_PriorityDomain) ProtoReflect() protoreflect.Message {
  594. mi := &file_app_dns_config_proto_msgTypes[6]
  595. if protoimpl.UnsafeEnabled && x != nil {
  596. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  597. if ms.LoadMessageInfo() == nil {
  598. ms.StoreMessageInfo(mi)
  599. }
  600. return ms
  601. }
  602. return mi.MessageOf(x)
  603. }
  604. // Deprecated: Use NameServer_PriorityDomain.ProtoReflect.Descriptor instead.
  605. func (*NameServer_PriorityDomain) Descriptor() ([]byte, []int) {
  606. return file_app_dns_config_proto_rawDescGZIP(), []int{0, 0}
  607. }
  608. func (x *NameServer_PriorityDomain) GetType() DomainMatchingType {
  609. if x != nil {
  610. return x.Type
  611. }
  612. return DomainMatchingType_Full
  613. }
  614. func (x *NameServer_PriorityDomain) GetDomain() string {
  615. if x != nil {
  616. return x.Domain
  617. }
  618. return ""
  619. }
  620. type NameServer_OriginalRule struct {
  621. state protoimpl.MessageState
  622. sizeCache protoimpl.SizeCache
  623. unknownFields protoimpl.UnknownFields
  624. Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
  625. Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
  626. }
  627. func (x *NameServer_OriginalRule) Reset() {
  628. *x = NameServer_OriginalRule{}
  629. if protoimpl.UnsafeEnabled {
  630. mi := &file_app_dns_config_proto_msgTypes[7]
  631. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  632. ms.StoreMessageInfo(mi)
  633. }
  634. }
  635. func (x *NameServer_OriginalRule) String() string {
  636. return protoimpl.X.MessageStringOf(x)
  637. }
  638. func (*NameServer_OriginalRule) ProtoMessage() {}
  639. func (x *NameServer_OriginalRule) ProtoReflect() protoreflect.Message {
  640. mi := &file_app_dns_config_proto_msgTypes[7]
  641. if protoimpl.UnsafeEnabled && x != nil {
  642. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  643. if ms.LoadMessageInfo() == nil {
  644. ms.StoreMessageInfo(mi)
  645. }
  646. return ms
  647. }
  648. return mi.MessageOf(x)
  649. }
  650. // Deprecated: Use NameServer_OriginalRule.ProtoReflect.Descriptor instead.
  651. func (*NameServer_OriginalRule) Descriptor() ([]byte, []int) {
  652. return file_app_dns_config_proto_rawDescGZIP(), []int{0, 1}
  653. }
  654. func (x *NameServer_OriginalRule) GetRule() string {
  655. if x != nil {
  656. return x.Rule
  657. }
  658. return ""
  659. }
  660. func (x *NameServer_OriginalRule) GetSize() uint32 {
  661. if x != nil {
  662. return x.Size
  663. }
  664. return 0
  665. }
  666. type SimplifiedNameServer_PriorityDomain struct {
  667. state protoimpl.MessageState
  668. sizeCache protoimpl.SizeCache
  669. unknownFields protoimpl.UnknownFields
  670. Type DomainMatchingType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.dns.DomainMatchingType" json:"type,omitempty"`
  671. Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
  672. }
  673. func (x *SimplifiedNameServer_PriorityDomain) Reset() {
  674. *x = SimplifiedNameServer_PriorityDomain{}
  675. if protoimpl.UnsafeEnabled {
  676. mi := &file_app_dns_config_proto_msgTypes[9]
  677. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  678. ms.StoreMessageInfo(mi)
  679. }
  680. }
  681. func (x *SimplifiedNameServer_PriorityDomain) String() string {
  682. return protoimpl.X.MessageStringOf(x)
  683. }
  684. func (*SimplifiedNameServer_PriorityDomain) ProtoMessage() {}
  685. func (x *SimplifiedNameServer_PriorityDomain) ProtoReflect() protoreflect.Message {
  686. mi := &file_app_dns_config_proto_msgTypes[9]
  687. if protoimpl.UnsafeEnabled && x != nil {
  688. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  689. if ms.LoadMessageInfo() == nil {
  690. ms.StoreMessageInfo(mi)
  691. }
  692. return ms
  693. }
  694. return mi.MessageOf(x)
  695. }
  696. // Deprecated: Use SimplifiedNameServer_PriorityDomain.ProtoReflect.Descriptor instead.
  697. func (*SimplifiedNameServer_PriorityDomain) Descriptor() ([]byte, []int) {
  698. return file_app_dns_config_proto_rawDescGZIP(), []int{5, 0}
  699. }
  700. func (x *SimplifiedNameServer_PriorityDomain) GetType() DomainMatchingType {
  701. if x != nil {
  702. return x.Type
  703. }
  704. return DomainMatchingType_Full
  705. }
  706. func (x *SimplifiedNameServer_PriorityDomain) GetDomain() string {
  707. if x != nil {
  708. return x.Domain
  709. }
  710. return ""
  711. }
  712. type SimplifiedNameServer_OriginalRule struct {
  713. state protoimpl.MessageState
  714. sizeCache protoimpl.SizeCache
  715. unknownFields protoimpl.UnknownFields
  716. Rule string `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
  717. Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
  718. }
  719. func (x *SimplifiedNameServer_OriginalRule) Reset() {
  720. *x = SimplifiedNameServer_OriginalRule{}
  721. if protoimpl.UnsafeEnabled {
  722. mi := &file_app_dns_config_proto_msgTypes[10]
  723. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  724. ms.StoreMessageInfo(mi)
  725. }
  726. }
  727. func (x *SimplifiedNameServer_OriginalRule) String() string {
  728. return protoimpl.X.MessageStringOf(x)
  729. }
  730. func (*SimplifiedNameServer_OriginalRule) ProtoMessage() {}
  731. func (x *SimplifiedNameServer_OriginalRule) ProtoReflect() protoreflect.Message {
  732. mi := &file_app_dns_config_proto_msgTypes[10]
  733. if protoimpl.UnsafeEnabled && x != nil {
  734. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  735. if ms.LoadMessageInfo() == nil {
  736. ms.StoreMessageInfo(mi)
  737. }
  738. return ms
  739. }
  740. return mi.MessageOf(x)
  741. }
  742. // Deprecated: Use SimplifiedNameServer_OriginalRule.ProtoReflect.Descriptor instead.
  743. func (*SimplifiedNameServer_OriginalRule) Descriptor() ([]byte, []int) {
  744. return file_app_dns_config_proto_rawDescGZIP(), []int{5, 1}
  745. }
  746. func (x *SimplifiedNameServer_OriginalRule) GetRule() string {
  747. if x != nil {
  748. return x.Rule
  749. }
  750. return ""
  751. }
  752. func (x *SimplifiedNameServer_OriginalRule) GetSize() uint32 {
  753. if x != nil {
  754. return x.Size
  755. }
  756. return 0
  757. }
  758. var File_app_dns_config_proto protoreflect.FileDescriptor
  759. var file_app_dns_config_proto_rawDesc = []byte{
  760. 0x0a, 0x14, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  761. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  762. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d,
  763. 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70,
  764. 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74,
  765. 0x2f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
  766. 0x74, 0x6f, 0x1a, 0x24, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x72,
  767. 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
  768. 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  769. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  770. 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x99, 0x04, 0x0a, 0x0a, 0x4e,
  771. 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x07, 0x61, 0x64, 0x64,
  772. 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72,
  773. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e,
  774. 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x64, 0x64,
  775. 0x72, 0x65, 0x73, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69,
  776. 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49,
  777. 0x70, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x6b, 0x69, 0x70, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63,
  778. 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x73, 0x6b, 0x69, 0x70, 0x46, 0x61, 0x6c,
  779. 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x5c, 0x0a, 0x12, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74,
  780. 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28,
  781. 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61,
  782. 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65,
  783. 0x72, 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  784. 0x52, 0x11, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x64, 0x44, 0x6f, 0x6d,
  785. 0x61, 0x69, 0x6e, 0x12, 0x3f, 0x0a, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x03,
  786. 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  787. 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
  788. 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x6f, 0x49, 0x50, 0x52, 0x05, 0x67,
  789. 0x65, 0x6f, 0x69, 0x70, 0x12, 0x52, 0x0a, 0x0e, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c,
  790. 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x76,
  791. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e,
  792. 0x73, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x4f, 0x72, 0x69,
  793. 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69,
  794. 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x64, 0x0a, 0x0e, 0x50, 0x72, 0x69, 0x6f,
  795. 0x72, 0x69, 0x74, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x79,
  796. 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  797. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x44, 0x6f,
  798. 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65,
  799. 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  800. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x1a, 0x36,
  801. 0x0a, 0x0c, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x12,
  802. 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x75,
  803. 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d,
  804. 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x98, 0x01, 0x0a, 0x0b, 0x48, 0x6f, 0x73, 0x74, 0x4d,
  805. 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01,
  806. 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  807. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e,
  808. 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79,
  809. 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01,
  810. 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70,
  811. 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x70, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72,
  812. 0x6f, 0x78, 0x69, 0x65, 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01,
  813. 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x65, 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69,
  814. 0x6e, 0x22, 0xbf, 0x04, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45, 0x0a, 0x0b,
  815. 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
  816. 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63,
  817. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69,
  818. 0x6e, 0x74, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0b, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76,
  819. 0x65, 0x72, 0x73, 0x12, 0x3f, 0x0a, 0x0b, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76,
  820. 0x65, 0x72, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  821. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x4e, 0x61,
  822. 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x65,
  823. 0x72, 0x76, 0x65, 0x72, 0x12, 0x3f, 0x0a, 0x05, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x02, 0x20,
  824. 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  825. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
  826. 0x48, 0x6f, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05,
  827. 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f,
  828. 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
  829. 0x49, 0x70, 0x12, 0x42, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x68, 0x6f, 0x73,
  830. 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  831. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x48, 0x6f,
  832. 0x73, 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x69,
  833. 0x63, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x06, 0x20,
  834. 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61,
  835. 0x62, 0x6c, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c,
  836. 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x48, 0x0a, 0x0e,
  837. 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x09,
  838. 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  839. 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53,
  840. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74,
  841. 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x28, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c,
  842. 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52,
  843. 0x0f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b,
  844. 0x1a, 0x5b, 0x0a, 0x0a, 0x48, 0x6f, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,
  845. 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
  846. 0x12, 0x37, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
  847. 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
  848. 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61,
  849. 0x69, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08,
  850. 0x07, 0x10, 0x08, 0x22, 0x92, 0x03, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69,
  851. 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x49, 0x0a, 0x0b, 0x6e, 0x61, 0x6d, 0x65,
  852. 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e,
  853. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64,
  854. 0x6e, 0x73, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4e, 0x61, 0x6d,
  855. 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72,
  856. 0x76, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x70,
  857. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x70,
  858. 0x12, 0x42, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x73,
  859. 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  860. 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x48, 0x6f, 0x73, 0x74,
  861. 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x48,
  862. 0x6f, 0x73, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28,
  863. 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c,
  864. 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x69,
  865. 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x48, 0x0a, 0x0e, 0x71, 0x75,
  866. 0x65, 0x72, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x09, 0x20, 0x01,
  867. 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  868. 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72,
  869. 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61,
  870. 0x74, 0x65, 0x67, 0x79, 0x12, 0x28, 0x0a, 0x0f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x46,
  871. 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x64,
  872. 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x3a, 0x16,
  873. 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x82, 0xb5, 0x18,
  874. 0x05, 0x12, 0x03, 0x64, 0x6e, 0x73, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02,
  875. 0x10, 0x03, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x22, 0xa2, 0x01, 0x0a, 0x15, 0x53, 0x69, 0x6d,
  876. 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x48, 0x6f, 0x73, 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69,
  877. 0x6e, 0x67, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
  878. 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  879. 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63,
  880. 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16,
  881. 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
  882. 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x03, 0x20, 0x03,
  883. 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x65,
  884. 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
  885. 0x70, 0x72, 0x6f, 0x78, 0x69, 0x65, 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xb7, 0x04,
  886. 0x0a, 0x14, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65,
  887. 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
  888. 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  889. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e,
  890. 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
  891. 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x05,
  892. 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x70, 0x12, 0x22,
  893. 0x0a, 0x0c, 0x73, 0x6b, 0x69, 0x70, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x06,
  894. 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x73, 0x6b, 0x69, 0x70, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61,
  895. 0x63, 0x6b, 0x12, 0x66, 0x0a, 0x12, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65,
  896. 0x64, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37,
  897. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  898. 0x64, 0x6e, 0x73, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x4e, 0x61,
  899. 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74,
  900. 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x11, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74,
  901. 0x69, 0x7a, 0x65, 0x64, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3f, 0x0a, 0x05, 0x67, 0x65,
  902. 0x6f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72, 0x61,
  903. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65,
  904. 0x72, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47,
  905. 0x65, 0x6f, 0x49, 0x50, 0x52, 0x05, 0x67, 0x65, 0x6f, 0x69, 0x70, 0x12, 0x5c, 0x0a, 0x0e, 0x6f,
  906. 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20,
  907. 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  908. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66,
  909. 0x69, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x4f, 0x72,
  910. 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0d, 0x6f, 0x72, 0x69, 0x67,
  911. 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0x64, 0x0a, 0x0e, 0x50, 0x72, 0x69,
  912. 0x6f, 0x72, 0x69, 0x74, 0x79, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x3a, 0x0a, 0x04, 0x74,
  913. 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61,
  914. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x44,
  915. 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70,
  916. 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69,
  917. 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x1a,
  918. 0x36, 0x0a, 0x0c, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x12,
  919. 0x12, 0x0a, 0x04, 0x72, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72,
  920. 0x75, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  921. 0x0d, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x2a, 0x45, 0x0a, 0x12, 0x44, 0x6f, 0x6d, 0x61, 0x69,
  922. 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a,
  923. 0x04, 0x46, 0x75, 0x6c, 0x6c, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x64, 0x6f,
  924. 0x6d, 0x61, 0x69, 0x6e, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4b, 0x65, 0x79, 0x77, 0x6f, 0x72,
  925. 0x64, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x65, 0x67, 0x65, 0x78, 0x10, 0x03, 0x2a, 0x35,
  926. 0x0a, 0x0d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12,
  927. 0x0a, 0x0a, 0x06, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x55,
  928. 0x53, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f,
  929. 0x49, 0x50, 0x36, 0x10, 0x02, 0x42, 0x57, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72,
  930. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x50,
  931. 0x01, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32,
  932. 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76,
  933. 0x34, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0xaa, 0x02, 0x12, 0x56, 0x32, 0x52, 0x61,
  934. 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x44, 0x6e, 0x73, 0x62, 0x06,
  935. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  936. }
  937. var (
  938. file_app_dns_config_proto_rawDescOnce sync.Once
  939. file_app_dns_config_proto_rawDescData = file_app_dns_config_proto_rawDesc
  940. )
  941. func file_app_dns_config_proto_rawDescGZIP() []byte {
  942. file_app_dns_config_proto_rawDescOnce.Do(func() {
  943. file_app_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_dns_config_proto_rawDescData)
  944. })
  945. return file_app_dns_config_proto_rawDescData
  946. }
  947. var file_app_dns_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  948. var file_app_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
  949. var file_app_dns_config_proto_goTypes = []interface{}{
  950. (DomainMatchingType)(0), // 0: v2ray.core.app.dns.DomainMatchingType
  951. (QueryStrategy)(0), // 1: v2ray.core.app.dns.QueryStrategy
  952. (*NameServer)(nil), // 2: v2ray.core.app.dns.NameServer
  953. (*HostMapping)(nil), // 3: v2ray.core.app.dns.HostMapping
  954. (*Config)(nil), // 4: v2ray.core.app.dns.Config
  955. (*SimplifiedConfig)(nil), // 5: v2ray.core.app.dns.SimplifiedConfig
  956. (*SimplifiedHostMapping)(nil), // 6: v2ray.core.app.dns.SimplifiedHostMapping
  957. (*SimplifiedNameServer)(nil), // 7: v2ray.core.app.dns.SimplifiedNameServer
  958. (*NameServer_PriorityDomain)(nil), // 8: v2ray.core.app.dns.NameServer.PriorityDomain
  959. (*NameServer_OriginalRule)(nil), // 9: v2ray.core.app.dns.NameServer.OriginalRule
  960. nil, // 10: v2ray.core.app.dns.Config.HostsEntry
  961. (*SimplifiedNameServer_PriorityDomain)(nil), // 11: v2ray.core.app.dns.SimplifiedNameServer.PriorityDomain
  962. (*SimplifiedNameServer_OriginalRule)(nil), // 12: v2ray.core.app.dns.SimplifiedNameServer.OriginalRule
  963. (*net.Endpoint)(nil), // 13: v2ray.core.common.net.Endpoint
  964. (*routercommon.GeoIP)(nil), // 14: v2ray.core.app.router.routercommon.GeoIP
  965. (*net.IPOrDomain)(nil), // 15: v2ray.core.common.net.IPOrDomain
  966. }
  967. var file_app_dns_config_proto_depIdxs = []int32{
  968. 13, // 0: v2ray.core.app.dns.NameServer.address:type_name -> v2ray.core.common.net.Endpoint
  969. 8, // 1: v2ray.core.app.dns.NameServer.prioritized_domain:type_name -> v2ray.core.app.dns.NameServer.PriorityDomain
  970. 14, // 2: v2ray.core.app.dns.NameServer.geoip:type_name -> v2ray.core.app.router.routercommon.GeoIP
  971. 9, // 3: v2ray.core.app.dns.NameServer.original_rules:type_name -> v2ray.core.app.dns.NameServer.OriginalRule
  972. 0, // 4: v2ray.core.app.dns.HostMapping.type:type_name -> v2ray.core.app.dns.DomainMatchingType
  973. 13, // 5: v2ray.core.app.dns.Config.NameServers:type_name -> v2ray.core.common.net.Endpoint
  974. 2, // 6: v2ray.core.app.dns.Config.name_server:type_name -> v2ray.core.app.dns.NameServer
  975. 10, // 7: v2ray.core.app.dns.Config.Hosts:type_name -> v2ray.core.app.dns.Config.HostsEntry
  976. 3, // 8: v2ray.core.app.dns.Config.static_hosts:type_name -> v2ray.core.app.dns.HostMapping
  977. 1, // 9: v2ray.core.app.dns.Config.query_strategy:type_name -> v2ray.core.app.dns.QueryStrategy
  978. 7, // 10: v2ray.core.app.dns.SimplifiedConfig.name_server:type_name -> v2ray.core.app.dns.SimplifiedNameServer
  979. 3, // 11: v2ray.core.app.dns.SimplifiedConfig.static_hosts:type_name -> v2ray.core.app.dns.HostMapping
  980. 1, // 12: v2ray.core.app.dns.SimplifiedConfig.query_strategy:type_name -> v2ray.core.app.dns.QueryStrategy
  981. 0, // 13: v2ray.core.app.dns.SimplifiedHostMapping.type:type_name -> v2ray.core.app.dns.DomainMatchingType
  982. 13, // 14: v2ray.core.app.dns.SimplifiedNameServer.address:type_name -> v2ray.core.common.net.Endpoint
  983. 11, // 15: v2ray.core.app.dns.SimplifiedNameServer.prioritized_domain:type_name -> v2ray.core.app.dns.SimplifiedNameServer.PriorityDomain
  984. 14, // 16: v2ray.core.app.dns.SimplifiedNameServer.geoip:type_name -> v2ray.core.app.router.routercommon.GeoIP
  985. 12, // 17: v2ray.core.app.dns.SimplifiedNameServer.original_rules:type_name -> v2ray.core.app.dns.SimplifiedNameServer.OriginalRule
  986. 0, // 18: v2ray.core.app.dns.NameServer.PriorityDomain.type:type_name -> v2ray.core.app.dns.DomainMatchingType
  987. 15, // 19: v2ray.core.app.dns.Config.HostsEntry.value:type_name -> v2ray.core.common.net.IPOrDomain
  988. 0, // 20: v2ray.core.app.dns.SimplifiedNameServer.PriorityDomain.type:type_name -> v2ray.core.app.dns.DomainMatchingType
  989. 21, // [21:21] is the sub-list for method output_type
  990. 21, // [21:21] is the sub-list for method input_type
  991. 21, // [21:21] is the sub-list for extension type_name
  992. 21, // [21:21] is the sub-list for extension extendee
  993. 0, // [0:21] is the sub-list for field type_name
  994. }
  995. func init() { file_app_dns_config_proto_init() }
  996. func file_app_dns_config_proto_init() {
  997. if File_app_dns_config_proto != nil {
  998. return
  999. }
  1000. if !protoimpl.UnsafeEnabled {
  1001. file_app_dns_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1002. switch v := v.(*NameServer); i {
  1003. case 0:
  1004. return &v.state
  1005. case 1:
  1006. return &v.sizeCache
  1007. case 2:
  1008. return &v.unknownFields
  1009. default:
  1010. return nil
  1011. }
  1012. }
  1013. file_app_dns_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1014. switch v := v.(*HostMapping); i {
  1015. case 0:
  1016. return &v.state
  1017. case 1:
  1018. return &v.sizeCache
  1019. case 2:
  1020. return &v.unknownFields
  1021. default:
  1022. return nil
  1023. }
  1024. }
  1025. file_app_dns_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1026. switch v := v.(*Config); i {
  1027. case 0:
  1028. return &v.state
  1029. case 1:
  1030. return &v.sizeCache
  1031. case 2:
  1032. return &v.unknownFields
  1033. default:
  1034. return nil
  1035. }
  1036. }
  1037. file_app_dns_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1038. switch v := v.(*SimplifiedConfig); i {
  1039. case 0:
  1040. return &v.state
  1041. case 1:
  1042. return &v.sizeCache
  1043. case 2:
  1044. return &v.unknownFields
  1045. default:
  1046. return nil
  1047. }
  1048. }
  1049. file_app_dns_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1050. switch v := v.(*SimplifiedHostMapping); i {
  1051. case 0:
  1052. return &v.state
  1053. case 1:
  1054. return &v.sizeCache
  1055. case 2:
  1056. return &v.unknownFields
  1057. default:
  1058. return nil
  1059. }
  1060. }
  1061. file_app_dns_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1062. switch v := v.(*SimplifiedNameServer); i {
  1063. case 0:
  1064. return &v.state
  1065. case 1:
  1066. return &v.sizeCache
  1067. case 2:
  1068. return &v.unknownFields
  1069. default:
  1070. return nil
  1071. }
  1072. }
  1073. file_app_dns_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1074. switch v := v.(*NameServer_PriorityDomain); i {
  1075. case 0:
  1076. return &v.state
  1077. case 1:
  1078. return &v.sizeCache
  1079. case 2:
  1080. return &v.unknownFields
  1081. default:
  1082. return nil
  1083. }
  1084. }
  1085. file_app_dns_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1086. switch v := v.(*NameServer_OriginalRule); i {
  1087. case 0:
  1088. return &v.state
  1089. case 1:
  1090. return &v.sizeCache
  1091. case 2:
  1092. return &v.unknownFields
  1093. default:
  1094. return nil
  1095. }
  1096. }
  1097. file_app_dns_config_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1098. switch v := v.(*SimplifiedNameServer_PriorityDomain); i {
  1099. case 0:
  1100. return &v.state
  1101. case 1:
  1102. return &v.sizeCache
  1103. case 2:
  1104. return &v.unknownFields
  1105. default:
  1106. return nil
  1107. }
  1108. }
  1109. file_app_dns_config_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1110. switch v := v.(*SimplifiedNameServer_OriginalRule); i {
  1111. case 0:
  1112. return &v.state
  1113. case 1:
  1114. return &v.sizeCache
  1115. case 2:
  1116. return &v.unknownFields
  1117. default:
  1118. return nil
  1119. }
  1120. }
  1121. }
  1122. type x struct{}
  1123. out := protoimpl.TypeBuilder{
  1124. File: protoimpl.DescBuilder{
  1125. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1126. RawDescriptor: file_app_dns_config_proto_rawDesc,
  1127. NumEnums: 2,
  1128. NumMessages: 11,
  1129. NumExtensions: 0,
  1130. NumServices: 0,
  1131. },
  1132. GoTypes: file_app_dns_config_proto_goTypes,
  1133. DependencyIndexes: file_app_dns_config_proto_depIdxs,
  1134. EnumInfos: file_app_dns_config_proto_enumTypes,
  1135. MessageInfos: file_app_dns_config_proto_msgTypes,
  1136. }.Build()
  1137. File_app_dns_config_proto = out.File
  1138. file_app_dns_config_proto_rawDesc = nil
  1139. file_app_dns_config_proto_goTypes = nil
  1140. file_app_dns_config_proto_depIdxs = nil
  1141. }