首次提交代码
This commit is contained in:
167
internal/bloom/bloomfile.pb.go
Normal file
167
internal/bloom/bloomfile.pb.go
Normal file
@@ -0,0 +1,167 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.10
|
||||
// protoc v5.29.4
|
||||
// source: bloomfile.proto
|
||||
|
||||
package bloom
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type Header struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Version uint64 `protobuf:"varint,1,opt,name=Version,proto3" json:"Version,omitempty"` // 版本,当前为1
|
||||
M uint64 `protobuf:"varint,2,opt,name=M,proto3" json:"M,omitempty"` // 存贮空间上限
|
||||
K uint64 `protobuf:"varint,3,opt,name=K,proto3" json:"K,omitempty"` // hash函数个数
|
||||
ElementsMax uint64 `protobuf:"varint,4,opt,name=ElementsMax,proto3" json:"ElementsMax,omitempty"` // 创建空间元素数量
|
||||
ElementsAdded uint64 `protobuf:"varint,5,opt,name=ElementsAdded,proto3" json:"ElementsAdded,omitempty"` // 实际加入元素数量
|
||||
FalsePositiveRate float64 `protobuf:"fixed64,6,opt,name=FalsePositiveRate,proto3" json:"FalsePositiveRate,omitempty"` // 假阳率
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Header) Reset() {
|
||||
*x = Header{}
|
||||
mi := &file_bloomfile_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Header) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Header) ProtoMessage() {}
|
||||
|
||||
func (x *Header) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_bloomfile_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Header.ProtoReflect.Descriptor instead.
|
||||
func (*Header) Descriptor() ([]byte, []int) {
|
||||
return file_bloomfile_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *Header) GetVersion() uint64 {
|
||||
if x != nil {
|
||||
return x.Version
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Header) GetM() uint64 {
|
||||
if x != nil {
|
||||
return x.M
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Header) GetK() uint64 {
|
||||
if x != nil {
|
||||
return x.K
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Header) GetElementsMax() uint64 {
|
||||
if x != nil {
|
||||
return x.ElementsMax
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Header) GetElementsAdded() uint64 {
|
||||
if x != nil {
|
||||
return x.ElementsAdded
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *Header) GetFalsePositiveRate() float64 {
|
||||
if x != nil {
|
||||
return x.FalsePositiveRate
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
var File_bloomfile_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_bloomfile_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x0fbloomfile.proto\x12\x05bloom\"\xb4\x01\n" +
|
||||
"\x06Header\x12\x18\n" +
|
||||
"\aVersion\x18\x01 \x01(\x04R\aVersion\x12\f\n" +
|
||||
"\x01M\x18\x02 \x01(\x04R\x01M\x12\f\n" +
|
||||
"\x01K\x18\x03 \x01(\x04R\x01K\x12 \n" +
|
||||
"\vElementsMax\x18\x04 \x01(\x04R\vElementsMax\x12$\n" +
|
||||
"\rElementsAdded\x18\x05 \x01(\x04R\rElementsAdded\x12,\n" +
|
||||
"\x11FalsePositiveRate\x18\x06 \x01(\x01R\x11FalsePositiveRateB\x16Z\x14internal/bloom;bloomb\x06proto3"
|
||||
|
||||
var (
|
||||
file_bloomfile_proto_rawDescOnce sync.Once
|
||||
file_bloomfile_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_bloomfile_proto_rawDescGZIP() []byte {
|
||||
file_bloomfile_proto_rawDescOnce.Do(func() {
|
||||
file_bloomfile_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_bloomfile_proto_rawDesc), len(file_bloomfile_proto_rawDesc)))
|
||||
})
|
||||
return file_bloomfile_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_bloomfile_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_bloomfile_proto_goTypes = []any{
|
||||
(*Header)(nil), // 0: bloom.Header
|
||||
}
|
||||
var file_bloomfile_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_bloomfile_proto_init() }
|
||||
func file_bloomfile_proto_init() {
|
||||
if File_bloomfile_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_bloomfile_proto_rawDesc), len(file_bloomfile_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_bloomfile_proto_goTypes,
|
||||
DependencyIndexes: file_bloomfile_proto_depIdxs,
|
||||
MessageInfos: file_bloomfile_proto_msgTypes,
|
||||
}.Build()
|
||||
File_bloomfile_proto = out.File
|
||||
file_bloomfile_proto_goTypes = nil
|
||||
file_bloomfile_proto_depIdxs = nil
|
||||
}
|
||||
Reference in New Issue
Block a user