mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-14 02:20:41 +02:00
NameList, NameBatch and their serde were an earlier in-memory directory batch implementation. The redis3 filer store uses its own ItemList backed by Redis sorted sets, so these types had no production callers (NameList only via its own test, LoadNameList none at all). Drop them and the now-orphaned NameBatchData proto message, regenerating skiplist.pb.go with the repo-standard protoc-gen-go v1.36.6.
303 lines
9.2 KiB
Go
303 lines
9.2 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc v6.33.4
|
|
// source: skiplist.proto
|
|
|
|
package skiplist
|
|
|
|
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 SkipListProto struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
StartLevels []*SkipListElementReference `protobuf:"bytes,1,rep,name=start_levels,json=startLevels,proto3" json:"start_levels,omitempty"`
|
|
EndLevels []*SkipListElementReference `protobuf:"bytes,2,rep,name=end_levels,json=endLevels,proto3" json:"end_levels,omitempty"`
|
|
MaxNewLevel int32 `protobuf:"varint,3,opt,name=max_new_level,json=maxNewLevel,proto3" json:"max_new_level,omitempty"`
|
|
MaxLevel int32 `protobuf:"varint,4,opt,name=max_level,json=maxLevel,proto3" json:"max_level,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SkipListProto) Reset() {
|
|
*x = SkipListProto{}
|
|
mi := &file_skiplist_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SkipListProto) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SkipListProto) ProtoMessage() {}
|
|
|
|
func (x *SkipListProto) ProtoReflect() protoreflect.Message {
|
|
mi := &file_skiplist_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 SkipListProto.ProtoReflect.Descriptor instead.
|
|
func (*SkipListProto) Descriptor() ([]byte, []int) {
|
|
return file_skiplist_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *SkipListProto) GetStartLevels() []*SkipListElementReference {
|
|
if x != nil {
|
|
return x.StartLevels
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SkipListProto) GetEndLevels() []*SkipListElementReference {
|
|
if x != nil {
|
|
return x.EndLevels
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SkipListProto) GetMaxNewLevel() int32 {
|
|
if x != nil {
|
|
return x.MaxNewLevel
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SkipListProto) GetMaxLevel() int32 {
|
|
if x != nil {
|
|
return x.MaxLevel
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SkipListElementReference struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ElementPointer int64 `protobuf:"varint,1,opt,name=element_pointer,json=elementPointer,proto3" json:"element_pointer,omitempty"`
|
|
Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SkipListElementReference) Reset() {
|
|
*x = SkipListElementReference{}
|
|
mi := &file_skiplist_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SkipListElementReference) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SkipListElementReference) ProtoMessage() {}
|
|
|
|
func (x *SkipListElementReference) ProtoReflect() protoreflect.Message {
|
|
mi := &file_skiplist_proto_msgTypes[1]
|
|
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 SkipListElementReference.ProtoReflect.Descriptor instead.
|
|
func (*SkipListElementReference) Descriptor() ([]byte, []int) {
|
|
return file_skiplist_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *SkipListElementReference) GetElementPointer() int64 {
|
|
if x != nil {
|
|
return x.ElementPointer
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SkipListElementReference) GetKey() []byte {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SkipListElement struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Next []*SkipListElementReference `protobuf:"bytes,2,rep,name=next,proto3" json:"next,omitempty"`
|
|
Level int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"`
|
|
Key []byte `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
|
|
Value []byte `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
|
|
Prev *SkipListElementReference `protobuf:"bytes,6,opt,name=prev,proto3" json:"prev,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SkipListElement) Reset() {
|
|
*x = SkipListElement{}
|
|
mi := &file_skiplist_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SkipListElement) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SkipListElement) ProtoMessage() {}
|
|
|
|
func (x *SkipListElement) ProtoReflect() protoreflect.Message {
|
|
mi := &file_skiplist_proto_msgTypes[2]
|
|
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 SkipListElement.ProtoReflect.Descriptor instead.
|
|
func (*SkipListElement) Descriptor() ([]byte, []int) {
|
|
return file_skiplist_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *SkipListElement) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SkipListElement) GetNext() []*SkipListElementReference {
|
|
if x != nil {
|
|
return x.Next
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SkipListElement) GetLevel() int32 {
|
|
if x != nil {
|
|
return x.Level
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SkipListElement) GetKey() []byte {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SkipListElement) GetValue() []byte {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SkipListElement) GetPrev() *SkipListElementReference {
|
|
if x != nil {
|
|
return x.Prev
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_skiplist_proto protoreflect.FileDescriptor
|
|
|
|
const file_skiplist_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0eskiplist.proto\x12\bskiplist\"\xda\x01\n" +
|
|
"\rSkipListProto\x12E\n" +
|
|
"\fstart_levels\x18\x01 \x03(\v2\".skiplist.SkipListElementReferenceR\vstartLevels\x12A\n" +
|
|
"\n" +
|
|
"end_levels\x18\x02 \x03(\v2\".skiplist.SkipListElementReferenceR\tendLevels\x12\"\n" +
|
|
"\rmax_new_level\x18\x03 \x01(\x05R\vmaxNewLevel\x12\x1b\n" +
|
|
"\tmax_level\x18\x04 \x01(\x05R\bmaxLevel\"U\n" +
|
|
"\x18SkipListElementReference\x12'\n" +
|
|
"\x0felement_pointer\x18\x01 \x01(\x03R\x0eelementPointer\x12\x10\n" +
|
|
"\x03key\x18\x02 \x01(\fR\x03key\"\xcf\x01\n" +
|
|
"\x0fSkipListElement\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x126\n" +
|
|
"\x04next\x18\x02 \x03(\v2\".skiplist.SkipListElementReferenceR\x04next\x12\x14\n" +
|
|
"\x05level\x18\x03 \x01(\x05R\x05level\x12\x10\n" +
|
|
"\x03key\x18\x04 \x01(\fR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x05 \x01(\fR\x05value\x126\n" +
|
|
"\x04prev\x18\x06 \x01(\v2\".skiplist.SkipListElementReferenceR\x04prevB3Z1github.com/seaweedfs/seaweedfs/weed/util/skiplistb\x06proto3"
|
|
|
|
var (
|
|
file_skiplist_proto_rawDescOnce sync.Once
|
|
file_skiplist_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_skiplist_proto_rawDescGZIP() []byte {
|
|
file_skiplist_proto_rawDescOnce.Do(func() {
|
|
file_skiplist_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_skiplist_proto_rawDesc), len(file_skiplist_proto_rawDesc)))
|
|
})
|
|
return file_skiplist_proto_rawDescData
|
|
}
|
|
|
|
var file_skiplist_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_skiplist_proto_goTypes = []any{
|
|
(*SkipListProto)(nil), // 0: skiplist.SkipListProto
|
|
(*SkipListElementReference)(nil), // 1: skiplist.SkipListElementReference
|
|
(*SkipListElement)(nil), // 2: skiplist.SkipListElement
|
|
}
|
|
var file_skiplist_proto_depIdxs = []int32{
|
|
1, // 0: skiplist.SkipListProto.start_levels:type_name -> skiplist.SkipListElementReference
|
|
1, // 1: skiplist.SkipListProto.end_levels:type_name -> skiplist.SkipListElementReference
|
|
1, // 2: skiplist.SkipListElement.next:type_name -> skiplist.SkipListElementReference
|
|
1, // 3: skiplist.SkipListElement.prev:type_name -> skiplist.SkipListElementReference
|
|
4, // [4:4] is the sub-list for method output_type
|
|
4, // [4:4] is the sub-list for method input_type
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
0, // [0:4] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_skiplist_proto_init() }
|
|
func file_skiplist_proto_init() {
|
|
if File_skiplist_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_skiplist_proto_rawDesc), len(file_skiplist_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_skiplist_proto_goTypes,
|
|
DependencyIndexes: file_skiplist_proto_depIdxs,
|
|
MessageInfos: file_skiplist_proto_msgTypes,
|
|
}.Build()
|
|
File_skiplist_proto = out.File
|
|
file_skiplist_proto_goTypes = nil
|
|
file_skiplist_proto_depIdxs = nil
|
|
}
|