config.pb.go 50 KB

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