github.com/xraypb/Xray-core@v1.8.1/proxy/dns/config.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.1
     4  // 	protoc        v3.21.12
     5  // source: proxy/dns/config.proto
     6  
     7  package dns
     8  
     9  import (
    10  	net "github.com/xraypb/Xray-core/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  }
    34  
    35  func (x *Config) Reset() {
    36  	*x = Config{}
    37  	if protoimpl.UnsafeEnabled {
    38  		mi := &file_proxy_dns_config_proto_msgTypes[0]
    39  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    40  		ms.StoreMessageInfo(mi)
    41  	}
    42  }
    43  
    44  func (x *Config) String() string {
    45  	return protoimpl.X.MessageStringOf(x)
    46  }
    47  
    48  func (*Config) ProtoMessage() {}
    49  
    50  func (x *Config) ProtoReflect() protoreflect.Message {
    51  	mi := &file_proxy_dns_config_proto_msgTypes[0]
    52  	if protoimpl.UnsafeEnabled && x != nil {
    53  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    54  		if ms.LoadMessageInfo() == nil {
    55  			ms.StoreMessageInfo(mi)
    56  		}
    57  		return ms
    58  	}
    59  	return mi.MessageOf(x)
    60  }
    61  
    62  // Deprecated: Use Config.ProtoReflect.Descriptor instead.
    63  func (*Config) Descriptor() ([]byte, []int) {
    64  	return file_proxy_dns_config_proto_rawDescGZIP(), []int{0}
    65  }
    66  
    67  func (x *Config) GetServer() *net.Endpoint {
    68  	if x != nil {
    69  		return x.Server
    70  	}
    71  	return nil
    72  }
    73  
    74  func (x *Config) GetUserLevel() uint32 {
    75  	if x != nil {
    76  		return x.UserLevel
    77  	}
    78  	return 0
    79  }
    80  
    81  var File_proxy_dns_config_proto protoreflect.FileDescriptor
    82  
    83  var file_proxy_dns_config_proto_rawDesc = []byte{
    84  	0x0a, 0x16, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66,
    85  	0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70,
    86  	0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6e, 0x73, 0x1a, 0x1c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
    87  	0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
    88  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5a, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
    89  	0x12, 0x31, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
    90  	0x32, 0x19, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e,
    91  	0x65, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72,
    92  	0x76, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65,
    93  	0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76,
    94  	0x65, 0x6c, 0x42, 0x4c, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70,
    95  	0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6e, 0x73, 0x50, 0x01, 0x5a, 0x23, 0x67, 0x69, 0x74, 0x68,
    96  	0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79,
    97  	0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6e, 0x73, 0xaa,
    98  	0x02, 0x0e, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x44, 0x6e, 0x73,
    99  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   100  }
   101  
   102  var (
   103  	file_proxy_dns_config_proto_rawDescOnce sync.Once
   104  	file_proxy_dns_config_proto_rawDescData = file_proxy_dns_config_proto_rawDesc
   105  )
   106  
   107  func file_proxy_dns_config_proto_rawDescGZIP() []byte {
   108  	file_proxy_dns_config_proto_rawDescOnce.Do(func() {
   109  		file_proxy_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_dns_config_proto_rawDescData)
   110  	})
   111  	return file_proxy_dns_config_proto_rawDescData
   112  }
   113  
   114  var file_proxy_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   115  var file_proxy_dns_config_proto_goTypes = []interface{}{
   116  	(*Config)(nil),       // 0: xray.proxy.dns.Config
   117  	(*net.Endpoint)(nil), // 1: xray.common.net.Endpoint
   118  }
   119  var file_proxy_dns_config_proto_depIdxs = []int32{
   120  	1, // 0: xray.proxy.dns.Config.server:type_name -> xray.common.net.Endpoint
   121  	1, // [1:1] is the sub-list for method output_type
   122  	1, // [1:1] is the sub-list for method input_type
   123  	1, // [1:1] is the sub-list for extension type_name
   124  	1, // [1:1] is the sub-list for extension extendee
   125  	0, // [0:1] is the sub-list for field type_name
   126  }
   127  
   128  func init() { file_proxy_dns_config_proto_init() }
   129  func file_proxy_dns_config_proto_init() {
   130  	if File_proxy_dns_config_proto != nil {
   131  		return
   132  	}
   133  	if !protoimpl.UnsafeEnabled {
   134  		file_proxy_dns_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   135  			switch v := v.(*Config); i {
   136  			case 0:
   137  				return &v.state
   138  			case 1:
   139  				return &v.sizeCache
   140  			case 2:
   141  				return &v.unknownFields
   142  			default:
   143  				return nil
   144  			}
   145  		}
   146  	}
   147  	type x struct{}
   148  	out := protoimpl.TypeBuilder{
   149  		File: protoimpl.DescBuilder{
   150  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   151  			RawDescriptor: file_proxy_dns_config_proto_rawDesc,
   152  			NumEnums:      0,
   153  			NumMessages:   1,
   154  			NumExtensions: 0,
   155  			NumServices:   0,
   156  		},
   157  		GoTypes:           file_proxy_dns_config_proto_goTypes,
   158  		DependencyIndexes: file_proxy_dns_config_proto_depIdxs,
   159  		MessageInfos:      file_proxy_dns_config_proto_msgTypes,
   160  	}.Build()
   161  	File_proxy_dns_config_proto = out.File
   162  	file_proxy_dns_config_proto_rawDesc = nil
   163  	file_proxy_dns_config_proto_goTypes = nil
   164  	file_proxy_dns_config_proto_depIdxs = nil
   165  }