github.com/imannamdari/v2ray-core/v5@v5.0.5/app/dns/fakedns/fakedns.pb.go (about) 1 package fakedns 2 3 import ( 4 reflect "reflect" 5 sync "sync" 6 7 _ "github.com/imannamdari/v2ray-core/v5/common/protoext" 8 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 9 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 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 FakeDnsPool struct { 20 state protoimpl.MessageState 21 sizeCache protoimpl.SizeCache 22 unknownFields protoimpl.UnknownFields 23 24 IpPool string `protobuf:"bytes,1,opt,name=ip_pool,json=ipPool,proto3" json:"ip_pool,omitempty"` //CIDR of IP pool used as fake DNS IP 25 LruSize int64 `protobuf:"varint,2,opt,name=lruSize,proto3" json:"lruSize,omitempty"` //Size of Pool for remembering relationship between domain name and IP address 26 } 27 28 func (x *FakeDnsPool) Reset() { 29 *x = FakeDnsPool{} 30 if protoimpl.UnsafeEnabled { 31 mi := &file_app_dns_fakedns_fakedns_proto_msgTypes[0] 32 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 33 ms.StoreMessageInfo(mi) 34 } 35 } 36 37 func (x *FakeDnsPool) String() string { 38 return protoimpl.X.MessageStringOf(x) 39 } 40 41 func (*FakeDnsPool) ProtoMessage() {} 42 43 func (x *FakeDnsPool) ProtoReflect() protoreflect.Message { 44 mi := &file_app_dns_fakedns_fakedns_proto_msgTypes[0] 45 if protoimpl.UnsafeEnabled && x != nil { 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 if ms.LoadMessageInfo() == nil { 48 ms.StoreMessageInfo(mi) 49 } 50 return ms 51 } 52 return mi.MessageOf(x) 53 } 54 55 // Deprecated: Use FakeDnsPool.ProtoReflect.Descriptor instead. 56 func (*FakeDnsPool) Descriptor() ([]byte, []int) { 57 return file_app_dns_fakedns_fakedns_proto_rawDescGZIP(), []int{0} 58 } 59 60 func (x *FakeDnsPool) GetIpPool() string { 61 if x != nil { 62 return x.IpPool 63 } 64 return "" 65 } 66 67 func (x *FakeDnsPool) GetLruSize() int64 { 68 if x != nil { 69 return x.LruSize 70 } 71 return 0 72 } 73 74 type FakeDnsPoolMulti struct { 75 state protoimpl.MessageState 76 sizeCache protoimpl.SizeCache 77 unknownFields protoimpl.UnknownFields 78 79 Pools []*FakeDnsPool `protobuf:"bytes,1,rep,name=pools,proto3" json:"pools,omitempty"` 80 } 81 82 func (x *FakeDnsPoolMulti) Reset() { 83 *x = FakeDnsPoolMulti{} 84 if protoimpl.UnsafeEnabled { 85 mi := &file_app_dns_fakedns_fakedns_proto_msgTypes[1] 86 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 87 ms.StoreMessageInfo(mi) 88 } 89 } 90 91 func (x *FakeDnsPoolMulti) String() string { 92 return protoimpl.X.MessageStringOf(x) 93 } 94 95 func (*FakeDnsPoolMulti) ProtoMessage() {} 96 97 func (x *FakeDnsPoolMulti) ProtoReflect() protoreflect.Message { 98 mi := &file_app_dns_fakedns_fakedns_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 FakeDnsPoolMulti.ProtoReflect.Descriptor instead. 110 func (*FakeDnsPoolMulti) Descriptor() ([]byte, []int) { 111 return file_app_dns_fakedns_fakedns_proto_rawDescGZIP(), []int{1} 112 } 113 114 func (x *FakeDnsPoolMulti) GetPools() []*FakeDnsPool { 115 if x != nil { 116 return x.Pools 117 } 118 return nil 119 } 120 121 var File_app_dns_fakedns_fakedns_proto protoreflect.FileDescriptor 122 123 var file_app_dns_fakedns_fakedns_proto_rawDesc = []byte{ 124 0x0a, 0x1d, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x66, 0x61, 0x6b, 0x65, 0x64, 0x6e, 125 0x73, 0x2f, 0x66, 0x61, 0x6b, 0x65, 0x64, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 126 0x1a, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 127 0x64, 0x6e, 0x73, 0x2e, 0x66, 0x61, 0x6b, 0x65, 0x64, 0x6e, 0x73, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 128 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 129 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, 0x0a, 130 0x0b, 0x46, 0x61, 0x6b, 0x65, 0x44, 0x6e, 0x73, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 131 0x69, 0x70, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 132 0x70, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x72, 0x75, 0x53, 0x69, 0x7a, 0x65, 133 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6c, 0x72, 0x75, 0x53, 0x69, 0x7a, 0x65, 0x3a, 134 0x1a, 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x82, 0xb5, 135 0x18, 0x09, 0x12, 0x07, 0x66, 0x61, 0x6b, 0x65, 0x44, 0x6e, 0x73, 0x22, 0x72, 0x0a, 0x10, 0x46, 136 0x61, 0x6b, 0x65, 0x44, 0x6e, 0x73, 0x50, 0x6f, 0x6f, 0x6c, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x12, 137 0x3d, 0x0a, 0x05, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 138 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 139 0x64, 0x6e, 0x73, 0x2e, 0x66, 0x61, 0x6b, 0x65, 0x64, 0x6e, 0x73, 0x2e, 0x46, 0x61, 0x6b, 0x65, 140 0x44, 0x6e, 0x73, 0x50, 0x6f, 0x6f, 0x6c, 0x52, 0x05, 0x70, 0x6f, 0x6f, 0x6c, 0x73, 0x3a, 0x1f, 141 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x82, 0xb5, 0x18, 142 0x0e, 0x12, 0x0c, 0x66, 0x61, 0x6b, 0x65, 0x44, 0x6e, 0x73, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x42, 143 0x6f, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 144 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x66, 0x61, 0x6b, 0x65, 0x64, 0x6e, 145 0x73, 0x50, 0x01, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 146 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 147 0x2f, 0x76, 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x66, 0x61, 0x6b, 0x65, 148 0x64, 0x6e, 0x73, 0xaa, 0x02, 0x1a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 149 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x44, 0x6e, 0x73, 0x2e, 0x46, 0x61, 0x6b, 0x65, 0x64, 0x6e, 0x73, 150 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 151 } 152 153 var ( 154 file_app_dns_fakedns_fakedns_proto_rawDescOnce sync.Once 155 file_app_dns_fakedns_fakedns_proto_rawDescData = file_app_dns_fakedns_fakedns_proto_rawDesc 156 ) 157 158 func file_app_dns_fakedns_fakedns_proto_rawDescGZIP() []byte { 159 file_app_dns_fakedns_fakedns_proto_rawDescOnce.Do(func() { 160 file_app_dns_fakedns_fakedns_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_dns_fakedns_fakedns_proto_rawDescData) 161 }) 162 return file_app_dns_fakedns_fakedns_proto_rawDescData 163 } 164 165 var file_app_dns_fakedns_fakedns_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 166 var file_app_dns_fakedns_fakedns_proto_goTypes = []interface{}{ 167 (*FakeDnsPool)(nil), // 0: v2ray.core.app.dns.fakedns.FakeDnsPool 168 (*FakeDnsPoolMulti)(nil), // 1: v2ray.core.app.dns.fakedns.FakeDnsPoolMulti 169 } 170 var file_app_dns_fakedns_fakedns_proto_depIdxs = []int32{ 171 0, // 0: v2ray.core.app.dns.fakedns.FakeDnsPoolMulti.pools:type_name -> v2ray.core.app.dns.fakedns.FakeDnsPool 172 1, // [1:1] is the sub-list for method output_type 173 1, // [1:1] is the sub-list for method input_type 174 1, // [1:1] is the sub-list for extension type_name 175 1, // [1:1] is the sub-list for extension extendee 176 0, // [0:1] is the sub-list for field type_name 177 } 178 179 func init() { file_app_dns_fakedns_fakedns_proto_init() } 180 func file_app_dns_fakedns_fakedns_proto_init() { 181 if File_app_dns_fakedns_fakedns_proto != nil { 182 return 183 } 184 if !protoimpl.UnsafeEnabled { 185 file_app_dns_fakedns_fakedns_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 186 switch v := v.(*FakeDnsPool); i { 187 case 0: 188 return &v.state 189 case 1: 190 return &v.sizeCache 191 case 2: 192 return &v.unknownFields 193 default: 194 return nil 195 } 196 } 197 file_app_dns_fakedns_fakedns_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 198 switch v := v.(*FakeDnsPoolMulti); i { 199 case 0: 200 return &v.state 201 case 1: 202 return &v.sizeCache 203 case 2: 204 return &v.unknownFields 205 default: 206 return nil 207 } 208 } 209 } 210 type x struct{} 211 out := protoimpl.TypeBuilder{ 212 File: protoimpl.DescBuilder{ 213 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 214 RawDescriptor: file_app_dns_fakedns_fakedns_proto_rawDesc, 215 NumEnums: 0, 216 NumMessages: 2, 217 NumExtensions: 0, 218 NumServices: 0, 219 }, 220 GoTypes: file_app_dns_fakedns_fakedns_proto_goTypes, 221 DependencyIndexes: file_app_dns_fakedns_fakedns_proto_depIdxs, 222 MessageInfos: file_app_dns_fakedns_fakedns_proto_msgTypes, 223 }.Build() 224 File_app_dns_fakedns_fakedns_proto = out.File 225 file_app_dns_fakedns_fakedns_proto_rawDesc = nil 226 file_app_dns_fakedns_fakedns_proto_goTypes = nil 227 file_app_dns_fakedns_fakedns_proto_depIdxs = nil 228 }