github.com/moqsien/xraycore@v1.8.5/proxy/dns/config.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.30.0
     4  // 	protoc        v4.23.1
     5  // source: proxy/dns/config.proto
     6  
     7  package dns
     8  
     9  import (
    10  	net "github.com/moqsien/xraycore/common/net"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  type Config struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	// Server is the DNS server address. If specified, this address overrides the
    30  	// original one.
    31  	Server      *net.Endpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
    32  	UserLevel   uint32        `protobuf:"varint,2,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
    33  	Non_IPQuery string        `protobuf:"bytes,3,opt,name=non_IP_query,json=nonIPQuery,proto3" json:"non_IP_query,omitempty"`
    34  }
    35  
    36  func (x *Config) Reset() {
    37  	*x = Config{}
    38  	if protoimpl.UnsafeEnabled {
    39  		mi := &file_proxy_dns_config_proto_msgTypes[0]
    40  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    41  		ms.StoreMessageInfo(mi)
    42  	}
    43  }
    44  
    45  func (x *Config) String() string {
    46  	return protoimpl.X.MessageStringOf(x)
    47  }
    48  
    49  func (*Config) ProtoMessage() {}
    50  
    51  func (x *Config) ProtoReflect() protoreflect.Message {
    52  	mi := &file_proxy_dns_config_proto_msgTypes[0]
    53  	if protoimpl.UnsafeEnabled && x != nil {
    54  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    55  		if ms.LoadMessageInfo() == nil {
    56  			ms.StoreMessageInfo(mi)
    57  		}
    58  		return ms
    59  	}
    60  	return mi.MessageOf(x)
    61  }
    62  
    63  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
    64  func (*Config) Descriptor() ([]byte, []int) {
    65  	return file_proxy_dns_config_proto_rawDescGZIP(), []int{0}
    66  }
    67  
    68  func (x *Config) GetServer() *net.Endpoint {
    69  	if x != nil {
    70  		return x.Server
    71  	}
    72  	return nil
    73  }
    74  
    75  func (x *Config) GetUserLevel() uint32 {
    76  	if x != nil {
    77  		return x.UserLevel
    78  	}
    79  	return 0
    80  }
    81  
    82  func (x *Config) GetNon_IPQuery() string {
    83  	if x != nil {
    84  		return x.Non_IPQuery
    85  	}
    86  	return ""
    87  }
    88  
    89  var File_proxy_dns_config_proto protoreflect.FileDescriptor
    90  
    91  var file_proxy_dns_config_proto_rawDesc = []byte{
    92  	0x0a, 0x16, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66,
    93  	0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70,
    94  	0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6e, 0x73, 0x1a, 0x1c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
    95  	0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
    96  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7c, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
    97  	0x12, 0x31, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
    98  	0x32, 0x19, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e,
    99  	0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72,
   100  	0x76, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65,
   101  	0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76,
   102  	0x65, 0x6c, 0x12, 0x20, 0x0a, 0x0c, 0x6e, 0x6f, 0x6e, 0x5f, 0x49, 0x50, 0x5f, 0x71, 0x75, 0x65,
   103  	0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x6f, 0x6e, 0x49, 0x50, 0x51,
   104  	0x75, 0x65, 0x72, 0x79, 0x42, 0x4c, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79,
   105  	0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6e, 0x73, 0x50, 0x01, 0x5a, 0x23, 0x67, 0x69,
   106  	0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72,
   107  	0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6e,
   108  	0x73, 0xaa, 0x02, 0x0e, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x44,
   109  	0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   110  }
   111  
   112  var (
   113  	file_proxy_dns_config_proto_rawDescOnce sync.Once
   114  	file_proxy_dns_config_proto_rawDescData = file_proxy_dns_config_proto_rawDesc
   115  )
   116  
   117  func file_proxy_dns_config_proto_rawDescGZIP() []byte {
   118  	file_proxy_dns_config_proto_rawDescOnce.Do(func() {
   119  		file_proxy_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_dns_config_proto_rawDescData)
   120  	})
   121  	return file_proxy_dns_config_proto_rawDescData
   122  }
   123  
   124  var file_proxy_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   125  var file_proxy_dns_config_proto_goTypes = []interface{}{
   126  	(*Config)(nil),       // 0: xray.proxy.dns.Config
   127  	(*net.Endpoint)(nil), // 1: xray.common.net.Endpoint
   128  }
   129  var file_proxy_dns_config_proto_depIdxs = []int32{
   130  	1, // 0: xray.proxy.dns.Config.server:type_name -> xray.common.net.Endpoint
   131  	1, // [1:1] is the sub-list for method output_type
   132  	1, // [1:1] is the sub-list for method input_type
   133  	1, // [1:1] is the sub-list for extension type_name
   134  	1, // [1:1] is the sub-list for extension extendee
   135  	0, // [0:1] is the sub-list for field type_name
   136  }
   137  
   138  func init() { file_proxy_dns_config_proto_init() }
   139  func file_proxy_dns_config_proto_init() {
   140  	if File_proxy_dns_config_proto != nil {
   141  		return
   142  	}
   143  	if !protoimpl.UnsafeEnabled {
   144  		file_proxy_dns_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   145  			switch v := v.(*Config); i {
   146  			case 0:
   147  				return &v.state
   148  			case 1:
   149  				return &v.sizeCache
   150  			case 2:
   151  				return &v.unknownFields
   152  			default:
   153  				return nil
   154  			}
   155  		}
   156  	}
   157  	type x struct{}
   158  	out := protoimpl.TypeBuilder{
   159  		File: protoimpl.DescBuilder{
   160  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   161  			RawDescriptor: file_proxy_dns_config_proto_rawDesc,
   162  			NumEnums:      0,
   163  			NumMessages:   1,
   164  			NumExtensions: 0,
   165  			NumServices:   0,
   166  		},
   167  		GoTypes:           file_proxy_dns_config_proto_goTypes,
   168  		DependencyIndexes: file_proxy_dns_config_proto_depIdxs,
   169  		MessageInfos:      file_proxy_dns_config_proto_msgTypes,
   170  	}.Build()
   171  	File_proxy_dns_config_proto = out.File
   172  	file_proxy_dns_config_proto_rawDesc = nil
   173  	file_proxy_dns_config_proto_goTypes = nil
   174  	file_proxy_dns_config_proto_depIdxs = nil
   175  }