config.pb.go 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.36.11
  4. // protoc v6.33.5
  5. // source: proxy/dns/config.proto
  6. package dns
  7. import (
  8. net "github.com/xtls/xray-core/common/net"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. type Config struct {
  22. state protoimpl.MessageState `protogen:"open.v1"`
  23. // Server is the DNS server address. If specified, this address overrides the
  24. // original one.
  25. Server *net.Endpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
  26. UserLevel uint32 `protobuf:"varint,2,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  27. Non_IPQuery string `protobuf:"bytes,3,opt,name=non_IP_query,json=nonIPQuery,proto3" json:"non_IP_query,omitempty"`
  28. BlockTypes []int32 `protobuf:"varint,4,rep,packed,name=block_types,json=blockTypes,proto3" json:"block_types,omitempty"`
  29. unknownFields protoimpl.UnknownFields
  30. sizeCache protoimpl.SizeCache
  31. }
  32. func (x *Config) Reset() {
  33. *x = Config{}
  34. mi := &file_proxy_dns_config_proto_msgTypes[0]
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. ms.StoreMessageInfo(mi)
  37. }
  38. func (x *Config) String() string {
  39. return protoimpl.X.MessageStringOf(x)
  40. }
  41. func (*Config) ProtoMessage() {}
  42. func (x *Config) ProtoReflect() protoreflect.Message {
  43. mi := &file_proxy_dns_config_proto_msgTypes[0]
  44. if x != nil {
  45. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  46. if ms.LoadMessageInfo() == nil {
  47. ms.StoreMessageInfo(mi)
  48. }
  49. return ms
  50. }
  51. return mi.MessageOf(x)
  52. }
  53. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  54. func (*Config) Descriptor() ([]byte, []int) {
  55. return file_proxy_dns_config_proto_rawDescGZIP(), []int{0}
  56. }
  57. func (x *Config) GetServer() *net.Endpoint {
  58. if x != nil {
  59. return x.Server
  60. }
  61. return nil
  62. }
  63. func (x *Config) GetUserLevel() uint32 {
  64. if x != nil {
  65. return x.UserLevel
  66. }
  67. return 0
  68. }
  69. func (x *Config) GetNon_IPQuery() string {
  70. if x != nil {
  71. return x.Non_IPQuery
  72. }
  73. return ""
  74. }
  75. func (x *Config) GetBlockTypes() []int32 {
  76. if x != nil {
  77. return x.BlockTypes
  78. }
  79. return nil
  80. }
  81. var File_proxy_dns_config_proto protoreflect.FileDescriptor
  82. const file_proxy_dns_config_proto_rawDesc = "" +
  83. "\n" +
  84. "\x16proxy/dns/config.proto\x12\x0exray.proxy.dns\x1a\x1ccommon/net/destination.proto\"\x9d\x01\n" +
  85. "\x06Config\x121\n" +
  86. "\x06server\x18\x01 \x01(\v2\x19.xray.common.net.EndpointR\x06server\x12\x1d\n" +
  87. "\n" +
  88. "user_level\x18\x02 \x01(\rR\tuserLevel\x12 \n" +
  89. "\fnon_IP_query\x18\x03 \x01(\tR\n" +
  90. "nonIPQuery\x12\x1f\n" +
  91. "\vblock_types\x18\x04 \x03(\x05R\n" +
  92. "blockTypesBL\n" +
  93. "\x12com.xray.proxy.dnsP\x01Z#github.com/xtls/xray-core/proxy/dns\xaa\x02\x0eXray.Proxy.Dnsb\x06proto3"
  94. var (
  95. file_proxy_dns_config_proto_rawDescOnce sync.Once
  96. file_proxy_dns_config_proto_rawDescData []byte
  97. )
  98. func file_proxy_dns_config_proto_rawDescGZIP() []byte {
  99. file_proxy_dns_config_proto_rawDescOnce.Do(func() {
  100. file_proxy_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proxy_dns_config_proto_rawDesc), len(file_proxy_dns_config_proto_rawDesc)))
  101. })
  102. return file_proxy_dns_config_proto_rawDescData
  103. }
  104. var file_proxy_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  105. var file_proxy_dns_config_proto_goTypes = []any{
  106. (*Config)(nil), // 0: xray.proxy.dns.Config
  107. (*net.Endpoint)(nil), // 1: xray.common.net.Endpoint
  108. }
  109. var file_proxy_dns_config_proto_depIdxs = []int32{
  110. 1, // 0: xray.proxy.dns.Config.server:type_name -> xray.common.net.Endpoint
  111. 1, // [1:1] is the sub-list for method output_type
  112. 1, // [1:1] is the sub-list for method input_type
  113. 1, // [1:1] is the sub-list for extension type_name
  114. 1, // [1:1] is the sub-list for extension extendee
  115. 0, // [0:1] is the sub-list for field type_name
  116. }
  117. func init() { file_proxy_dns_config_proto_init() }
  118. func file_proxy_dns_config_proto_init() {
  119. if File_proxy_dns_config_proto != nil {
  120. return
  121. }
  122. type x struct{}
  123. out := protoimpl.TypeBuilder{
  124. File: protoimpl.DescBuilder{
  125. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  126. RawDescriptor: unsafe.Slice(unsafe.StringData(file_proxy_dns_config_proto_rawDesc), len(file_proxy_dns_config_proto_rawDesc)),
  127. NumEnums: 0,
  128. NumMessages: 1,
  129. NumExtensions: 0,
  130. NumServices: 0,
  131. },
  132. GoTypes: file_proxy_dns_config_proto_goTypes,
  133. DependencyIndexes: file_proxy_dns_config_proto_depIdxs,
  134. MessageInfos: file_proxy_dns_config_proto_msgTypes,
  135. }.Build()
  136. File_proxy_dns_config_proto = out.File
  137. file_proxy_dns_config_proto_goTypes = nil
  138. file_proxy_dns_config_proto_depIdxs = nil
  139. }