github.com/v2fly/v2ray-core/v4@v4.45.2/proxy/dns/config.pb.go (about) 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: proxy/dns/config.proto 6 7 package dns 8 9 import ( 10 net "github.com/v2fly/v2ray-core/v4/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, 0x14, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 86 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6e, 0x73, 0x1a, 0x1c, 87 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x65, 0x73, 0x74, 0x69, 88 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x60, 0x0a, 0x06, 89 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 90 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 91 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x45, 92 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 93 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 94 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x42, 0x5d, 95 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 96 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6e, 0x73, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 97 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 98 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x70, 0x72, 0x6f, 99 0x78, 0x79, 0x2f, 0x64, 0x6e, 0x73, 0xaa, 0x02, 0x14, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 100 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x44, 0x6e, 0x73, 0x62, 0x06, 0x70, 101 0x72, 0x6f, 0x74, 0x6f, 0x33, 102 } 103 104 var ( 105 file_proxy_dns_config_proto_rawDescOnce sync.Once 106 file_proxy_dns_config_proto_rawDescData = file_proxy_dns_config_proto_rawDesc 107 ) 108 109 func file_proxy_dns_config_proto_rawDescGZIP() []byte { 110 file_proxy_dns_config_proto_rawDescOnce.Do(func() { 111 file_proxy_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_dns_config_proto_rawDescData) 112 }) 113 return file_proxy_dns_config_proto_rawDescData 114 } 115 116 var file_proxy_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 117 var file_proxy_dns_config_proto_goTypes = []interface{}{ 118 (*Config)(nil), // 0: v2ray.core.proxy.dns.Config 119 (*net.Endpoint)(nil), // 1: v2ray.core.common.net.Endpoint 120 } 121 var file_proxy_dns_config_proto_depIdxs = []int32{ 122 1, // 0: v2ray.core.proxy.dns.Config.server:type_name -> v2ray.core.common.net.Endpoint 123 1, // [1:1] is the sub-list for method output_type 124 1, // [1:1] is the sub-list for method input_type 125 1, // [1:1] is the sub-list for extension type_name 126 1, // [1:1] is the sub-list for extension extendee 127 0, // [0:1] is the sub-list for field type_name 128 } 129 130 func init() { file_proxy_dns_config_proto_init() } 131 func file_proxy_dns_config_proto_init() { 132 if File_proxy_dns_config_proto != nil { 133 return 134 } 135 if !protoimpl.UnsafeEnabled { 136 file_proxy_dns_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 137 switch v := v.(*Config); i { 138 case 0: 139 return &v.state 140 case 1: 141 return &v.sizeCache 142 case 2: 143 return &v.unknownFields 144 default: 145 return nil 146 } 147 } 148 } 149 type x struct{} 150 out := protoimpl.TypeBuilder{ 151 File: protoimpl.DescBuilder{ 152 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 153 RawDescriptor: file_proxy_dns_config_proto_rawDesc, 154 NumEnums: 0, 155 NumMessages: 1, 156 NumExtensions: 0, 157 NumServices: 0, 158 }, 159 GoTypes: file_proxy_dns_config_proto_goTypes, 160 DependencyIndexes: file_proxy_dns_config_proto_depIdxs, 161 MessageInfos: file_proxy_dns_config_proto_msgTypes, 162 }.Build() 163 File_proxy_dns_config_proto = out.File 164 file_proxy_dns_config_proto_rawDesc = nil 165 file_proxy_dns_config_proto_goTypes = nil 166 file_proxy_dns_config_proto_depIdxs = nil 167 }