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