config.pb.go 50 KB

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