github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/proxy/dns/config.pb.go (about) 1 package dns 2 3 import ( 4 net "github.com/v2fly/v2ray-core/v5/common/net" 5 _ "github.com/v2fly/v2ray-core/v5/common/protoext" 6 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 7 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 8 reflect "reflect" 9 sync "sync" 10 ) 11 12 const ( 13 // Verify that this generated code is sufficiently up-to-date. 14 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 15 // Verify that runtime/protoimpl is sufficiently up-to-date. 16 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 17 ) 18 19 type Config struct { 20 state protoimpl.MessageState 21 sizeCache protoimpl.SizeCache 22 unknownFields protoimpl.UnknownFields 23 24 // Server is the DNS server address. If specified, this address overrides the 25 // original one. 26 Server *net.Endpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` 27 UserLevel uint32 `protobuf:"varint,2,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"` 28 } 29 30 func (x *Config) Reset() { 31 *x = Config{} 32 if protoimpl.UnsafeEnabled { 33 mi := &file_proxy_dns_config_proto_msgTypes[0] 34 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 35 ms.StoreMessageInfo(mi) 36 } 37 } 38 39 func (x *Config) String() string { 40 return protoimpl.X.MessageStringOf(x) 41 } 42 43 func (*Config) ProtoMessage() {} 44 45 func (x *Config) ProtoReflect() protoreflect.Message { 46 mi := &file_proxy_dns_config_proto_msgTypes[0] 47 if protoimpl.UnsafeEnabled && x != nil { 48 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 49 if ms.LoadMessageInfo() == nil { 50 ms.StoreMessageInfo(mi) 51 } 52 return ms 53 } 54 return mi.MessageOf(x) 55 } 56 57 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 58 func (*Config) Descriptor() ([]byte, []int) { 59 return file_proxy_dns_config_proto_rawDescGZIP(), []int{0} 60 } 61 62 func (x *Config) GetServer() *net.Endpoint { 63 if x != nil { 64 return x.Server 65 } 66 return nil 67 } 68 69 func (x *Config) GetUserLevel() uint32 { 70 if x != nil { 71 return x.UserLevel 72 } 73 return 0 74 } 75 76 type SimplifiedConfig struct { 77 state protoimpl.MessageState 78 sizeCache protoimpl.SizeCache 79 unknownFields protoimpl.UnknownFields 80 } 81 82 func (x *SimplifiedConfig) Reset() { 83 *x = SimplifiedConfig{} 84 if protoimpl.UnsafeEnabled { 85 mi := &file_proxy_dns_config_proto_msgTypes[1] 86 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 87 ms.StoreMessageInfo(mi) 88 } 89 } 90 91 func (x *SimplifiedConfig) String() string { 92 return protoimpl.X.MessageStringOf(x) 93 } 94 95 func (*SimplifiedConfig) ProtoMessage() {} 96 97 func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message { 98 mi := &file_proxy_dns_config_proto_msgTypes[1] 99 if protoimpl.UnsafeEnabled && x != nil { 100 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 101 if ms.LoadMessageInfo() == nil { 102 ms.StoreMessageInfo(mi) 103 } 104 return ms 105 } 106 return mi.MessageOf(x) 107 } 108 109 // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead. 110 func (*SimplifiedConfig) Descriptor() ([]byte, []int) { 111 return file_proxy_dns_config_proto_rawDescGZIP(), []int{1} 112 } 113 114 var File_proxy_dns_config_proto protoreflect.FileDescriptor 115 116 var file_proxy_dns_config_proto_rawDesc = []byte{ 117 0x0a, 0x16, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 118 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 119 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x64, 0x6e, 0x73, 0x1a, 0x1c, 120 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x65, 0x73, 0x74, 0x69, 121 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f, 122 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 123 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x60, 124 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x37, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 125 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 126 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 127 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 128 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 129 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65, 0x6c, 130 0x22, 0x27, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 131 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x13, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 132 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x03, 0x64, 0x6e, 0x73, 0x42, 0x5d, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 133 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 134 0x79, 0x2e, 0x64, 0x6e, 0x73, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 135 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 136 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x64, 0x6e, 137 0x73, 0xaa, 0x02, 0x14, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 138 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x44, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 139 } 140 141 var ( 142 file_proxy_dns_config_proto_rawDescOnce sync.Once 143 file_proxy_dns_config_proto_rawDescData = file_proxy_dns_config_proto_rawDesc 144 ) 145 146 func file_proxy_dns_config_proto_rawDescGZIP() []byte { 147 file_proxy_dns_config_proto_rawDescOnce.Do(func() { 148 file_proxy_dns_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_dns_config_proto_rawDescData) 149 }) 150 return file_proxy_dns_config_proto_rawDescData 151 } 152 153 var file_proxy_dns_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 154 var file_proxy_dns_config_proto_goTypes = []interface{}{ 155 (*Config)(nil), // 0: v2ray.core.proxy.dns.Config 156 (*SimplifiedConfig)(nil), // 1: v2ray.core.proxy.dns.SimplifiedConfig 157 (*net.Endpoint)(nil), // 2: v2ray.core.common.net.Endpoint 158 } 159 var file_proxy_dns_config_proto_depIdxs = []int32{ 160 2, // 0: v2ray.core.proxy.dns.Config.server:type_name -> v2ray.core.common.net.Endpoint 161 1, // [1:1] is the sub-list for method output_type 162 1, // [1:1] is the sub-list for method input_type 163 1, // [1:1] is the sub-list for extension type_name 164 1, // [1:1] is the sub-list for extension extendee 165 0, // [0:1] is the sub-list for field type_name 166 } 167 168 func init() { file_proxy_dns_config_proto_init() } 169 func file_proxy_dns_config_proto_init() { 170 if File_proxy_dns_config_proto != nil { 171 return 172 } 173 if !protoimpl.UnsafeEnabled { 174 file_proxy_dns_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 175 switch v := v.(*Config); i { 176 case 0: 177 return &v.state 178 case 1: 179 return &v.sizeCache 180 case 2: 181 return &v.unknownFields 182 default: 183 return nil 184 } 185 } 186 file_proxy_dns_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 187 switch v := v.(*SimplifiedConfig); i { 188 case 0: 189 return &v.state 190 case 1: 191 return &v.sizeCache 192 case 2: 193 return &v.unknownFields 194 default: 195 return nil 196 } 197 } 198 } 199 type x struct{} 200 out := protoimpl.TypeBuilder{ 201 File: protoimpl.DescBuilder{ 202 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 203 RawDescriptor: file_proxy_dns_config_proto_rawDesc, 204 NumEnums: 0, 205 NumMessages: 2, 206 NumExtensions: 0, 207 NumServices: 0, 208 }, 209 GoTypes: file_proxy_dns_config_proto_goTypes, 210 DependencyIndexes: file_proxy_dns_config_proto_depIdxs, 211 MessageInfos: file_proxy_dns_config_proto_msgTypes, 212 }.Build() 213 File_proxy_dns_config_proto = out.File 214 file_proxy_dns_config_proto_rawDesc = nil 215 file_proxy_dns_config_proto_goTypes = nil 216 file_proxy_dns_config_proto_depIdxs = nil 217 }