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