github.com/eagleql/xray-core@v1.4.4/app/dns/fakedns/fakedns.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.13.0 5 // source: app/dns/fakedns/fakedns.proto 6 7 package fakedns 8 9 import ( 10 proto "github.com/golang/protobuf/proto" 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 // This is a compile-time assertion that a sufficiently up-to-date version 25 // of the legacy proto package is being used. 26 const _ = proto.ProtoPackageIsVersion4 27 28 type FakeDnsPool struct { 29 state protoimpl.MessageState 30 sizeCache protoimpl.SizeCache 31 unknownFields protoimpl.UnknownFields 32 33 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 34 LruSize int64 `protobuf:"varint,2,opt,name=lruSize,proto3" json:"lruSize,omitempty"` //Size of Pool for remembering relationship between domain name and IP address 35 } 36 37 func (x *FakeDnsPool) Reset() { 38 *x = FakeDnsPool{} 39 if protoimpl.UnsafeEnabled { 40 mi := &file_app_dns_fakedns_fakedns_proto_msgTypes[0] 41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 42 ms.StoreMessageInfo(mi) 43 } 44 } 45 46 func (x *FakeDnsPool) String() string { 47 return protoimpl.X.MessageStringOf(x) 48 } 49 50 func (*FakeDnsPool) ProtoMessage() {} 51 52 func (x *FakeDnsPool) ProtoReflect() protoreflect.Message { 53 mi := &file_app_dns_fakedns_fakedns_proto_msgTypes[0] 54 if protoimpl.UnsafeEnabled && x != nil { 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 if ms.LoadMessageInfo() == nil { 57 ms.StoreMessageInfo(mi) 58 } 59 return ms 60 } 61 return mi.MessageOf(x) 62 } 63 64 // Deprecated: Use FakeDnsPool.ProtoReflect.Descriptor instead. 65 func (*FakeDnsPool) Descriptor() ([]byte, []int) { 66 return file_app_dns_fakedns_fakedns_proto_rawDescGZIP(), []int{0} 67 } 68 69 func (x *FakeDnsPool) GetIpPool() string { 70 if x != nil { 71 return x.IpPool 72 } 73 return "" 74 } 75 76 func (x *FakeDnsPool) GetLruSize() int64 { 77 if x != nil { 78 return x.LruSize 79 } 80 return 0 81 } 82 83 var File_app_dns_fakedns_fakedns_proto protoreflect.FileDescriptor 84 85 var file_app_dns_fakedns_fakedns_proto_rawDesc = []byte{ 86 0x0a, 0x1d, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x66, 0x61, 0x6b, 0x65, 0x64, 0x6e, 87 0x73, 0x2f, 0x66, 0x61, 0x6b, 0x65, 0x64, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 88 0x1a, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 89 0x64, 0x6e, 0x73, 0x2e, 0x66, 0x61, 0x6b, 0x65, 0x64, 0x6e, 0x73, 0x22, 0x40, 0x0a, 0x0b, 0x46, 90 0x61, 0x6b, 0x65, 0x44, 0x6e, 0x73, 0x50, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x70, 91 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x70, 0x50, 92 0x6f, 0x6f, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x72, 0x75, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x02, 93 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6c, 0x72, 0x75, 0x53, 0x69, 0x7a, 0x65, 0x42, 0x5f, 0x0a, 94 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 95 0x61, 0x70, 0x70, 0x2e, 0x64, 0x6e, 0x73, 0x2e, 0x66, 0x61, 0x6b, 0x65, 0x64, 0x6e, 0x73, 0x50, 96 0x01, 0x5a, 0x1e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 97 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x64, 0x6e, 0x73, 0x2f, 0x66, 0x61, 0x6b, 0x65, 0x64, 0x6e, 98 0x73, 0xaa, 0x02, 0x1a, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 99 0x70, 0x70, 0x2e, 0x44, 0x6e, 0x73, 0x2e, 0x46, 0x61, 0x6b, 0x65, 0x64, 0x6e, 0x73, 0x62, 0x06, 100 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 101 } 102 103 var ( 104 file_app_dns_fakedns_fakedns_proto_rawDescOnce sync.Once 105 file_app_dns_fakedns_fakedns_proto_rawDescData = file_app_dns_fakedns_fakedns_proto_rawDesc 106 ) 107 108 func file_app_dns_fakedns_fakedns_proto_rawDescGZIP() []byte { 109 file_app_dns_fakedns_fakedns_proto_rawDescOnce.Do(func() { 110 file_app_dns_fakedns_fakedns_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_dns_fakedns_fakedns_proto_rawDescData) 111 }) 112 return file_app_dns_fakedns_fakedns_proto_rawDescData 113 } 114 115 var file_app_dns_fakedns_fakedns_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 116 var file_app_dns_fakedns_fakedns_proto_goTypes = []interface{}{ 117 (*FakeDnsPool)(nil), // 0: xray.app.dns.fakedns.FakeDnsPool 118 } 119 var file_app_dns_fakedns_fakedns_proto_depIdxs = []int32{ 120 0, // [0:0] is the sub-list for method output_type 121 0, // [0:0] is the sub-list for method input_type 122 0, // [0:0] is the sub-list for extension type_name 123 0, // [0:0] is the sub-list for extension extendee 124 0, // [0:0] is the sub-list for field type_name 125 } 126 127 func init() { file_app_dns_fakedns_fakedns_proto_init() } 128 func file_app_dns_fakedns_fakedns_proto_init() { 129 if File_app_dns_fakedns_fakedns_proto != nil { 130 return 131 } 132 if !protoimpl.UnsafeEnabled { 133 file_app_dns_fakedns_fakedns_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 134 switch v := v.(*FakeDnsPool); i { 135 case 0: 136 return &v.state 137 case 1: 138 return &v.sizeCache 139 case 2: 140 return &v.unknownFields 141 default: 142 return nil 143 } 144 } 145 } 146 type x struct{} 147 out := protoimpl.TypeBuilder{ 148 File: protoimpl.DescBuilder{ 149 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 150 RawDescriptor: file_app_dns_fakedns_fakedns_proto_rawDesc, 151 NumEnums: 0, 152 NumMessages: 1, 153 NumExtensions: 0, 154 NumServices: 0, 155 }, 156 GoTypes: file_app_dns_fakedns_fakedns_proto_goTypes, 157 DependencyIndexes: file_app_dns_fakedns_fakedns_proto_depIdxs, 158 MessageInfos: file_app_dns_fakedns_fakedns_proto_msgTypes, 159 }.Build() 160 File_app_dns_fakedns_fakedns_proto = out.File 161 file_app_dns_fakedns_fakedns_proto_rawDesc = nil 162 file_app_dns_fakedns_fakedns_proto_goTypes = nil 163 file_app_dns_fakedns_fakedns_proto_depIdxs = nil 164 }