/
githubmirror
/
etcd
Обзор
Документация
Войти
/
githubmirror
/
etcd
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
server/storage/wal/walpb/record.pb.go
212 строк
6 KB
Wei Fu
*: re-generate pb file by google.golang.org/protobuf
15 май 2026, 13:36
15 май 2026, 13:36
2df1151
Код
Авторство
О чём код?
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v3.20.3 // source: record.proto package walpb import ( reflect "reflect" sync "sync" unsafe "unsafe" raftpb "go.etcd.io/raft/v3/raftpb" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) 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 Record struct { state protoimpl.MessageState `protogen:"open.v1"` Type *int64 `protobuf:"varint,1,opt,name=type" json:"type,omitempty"` Crc *uint32 `protobuf:"varint,2,opt,name=crc" json:"crc,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data" json:"data,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Record) Reset() { *x = Record{} mi := &file_record_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Record) String() string { return protoimpl.X.MessageStringOf(x) } func (*Record) ProtoMessage() {} func (x *Record) ProtoReflect() protoreflect.Message { mi := &file_record_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 Record.ProtoReflect.Descriptor instead. func (*Record) Descriptor() ([]byte, []int) { return file_record_proto_rawDescGZIP(), []int{0} } func (x *Record) GetType() int64 { if x != nil && x.Type != nil { return *x.Type } return 0 } func (x *Record) GetCrc() uint32 { if x != nil && x.Crc != nil { return *x.Crc } return 0 } func (x *Record) GetData() []byte { if x != nil { return x.Data } return nil } // Keep in sync with raftpb.SnapshotMetadata. type Snapshot struct { state protoimpl.MessageState `protogen:"open.v1"` Index *uint64 `protobuf:"varint,1,opt,name=index" json:"index,omitempty"` Term *uint64 `protobuf:"varint,2,opt,name=term" json:"term,omitempty"` // Field populated since >=etcd-3.5.0. ConfState *raftpb.ConfState `protobuf:"bytes,3,opt,name=conf_state,json=confState" json:"conf_state,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Snapshot) Reset() { *x = Snapshot{} mi := &file_record_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Snapshot) String() string { return protoimpl.X.MessageStringOf(x) } func (*Snapshot) ProtoMessage() {} func (x *Snapshot) ProtoReflect() protoreflect.Message { mi := &file_record_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 Snapshot.ProtoReflect.Descriptor instead. func (*Snapshot) Descriptor() ([]byte, []int) { return file_record_proto_rawDescGZIP(), []int{1} } func (x *Snapshot) GetIndex() uint64 { if x != nil && x.Index != nil { return *x.Index } return 0 } func (x *Snapshot) GetTerm() uint64 { if x != nil && x.Term != nil { return *x.Term } return 0 } func (x *Snapshot) GetConfState() *raftpb.ConfState { if x != nil { return x.ConfState } return nil } var File_record_proto protoreflect.FileDescriptor const file_record_proto_rawDesc = "" + "\n" + "\frecord.proto\x12\x05walpb\x1a\x11raftpb/raft.proto\"B\n" + "\x06Record\x12\x12\n" + "\x04type\x18\x01 \x01(\x03R\x04type\x12\x10\n" + "\x03crc\x18\x02 \x01(\rR\x03crc\x12\x12\n" + "\x04data\x18\x03 \x01(\fR\x04data\"f\n" + "\bSnapshot\x12\x14\n" + "\x05index\x18\x01 \x01(\x04R\x05index\x12\x12\n" + "\x04term\x18\x02 \x01(\x04R\x04term\x120\n" + "\n" + "conf_state\x18\x03 \x01(\v2\x11.raftpb.ConfStateR\tconfStateB-Z+go.etcd.io/etcd/server/v3/storage/wal/walpb" var ( file_record_proto_rawDescOnce sync.Once file_record_proto_rawDescData []byte ) func file_record_proto_rawDescGZIP() []byte { file_record_proto_rawDescOnce.Do(func() { file_record_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_record_proto_rawDesc), len(file_record_proto_rawDesc))) }) return file_record_proto_rawDescData } var file_record_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_record_proto_goTypes = []any{ (*Record)(nil), // 0: walpb.Record (*Snapshot)(nil), // 1: walpb.Snapshot (*raftpb.ConfState)(nil), // 2: raftpb.ConfState } var file_record_proto_depIdxs = []int32{ 2, // 0: walpb.Snapshot.conf_state:type_name -> raftpb.ConfState 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension extendee 0, // [0:1] is the sub-list for field type_name } func init() { file_record_proto_init() } func file_record_proto_init() { if File_record_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_record_proto_rawDesc), len(file_record_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, GoTypes: file_record_proto_goTypes, DependencyIndexes: file_record_proto_depIdxs, MessageInfos: file_record_proto_msgTypes, }.Build() File_record_proto = out.File file_record_proto_goTypes = nil file_record_proto_depIdxs = nil }