File
Blob: kv/aof/proto/log.pb.go
| 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // versions: |
| 3 | // protoc-gen-go v1.36.11 |
| 4 | // protoc v7.34.0 |
| 5 | // source: kv/aof/proto/log.proto |
| 6 | |
| 7 | package proto |
| 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 | unsafe "unsafe" |
| 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 | type LogVersion int32 |
| 25 | |
| 26 | const ( |
| 27 | LogVersion_UNKNOWN_VERSION LogVersion = 0 |
| 28 | // uncompressed |
| 29 | LogVersion_V1 LogVersion = 1 |
| 30 | ) |
| 31 | |
| 32 | // Enum value maps for LogVersion. |
| 33 | var ( |
| 34 | LogVersion_name = map[int32]string{ |
| 35 | 0: "UNKNOWN_VERSION", |
| 36 | 1: "V1", |
| 37 | } |
| 38 | LogVersion_value = map[string]int32{ |
| 39 | "UNKNOWN_VERSION": 0, |
| 40 | "V1": 1, |
| 41 | } |
| 42 | ) |
| 43 | |
| 44 | func (x LogVersion) Enum() *LogVersion { |
| 45 | p := new(LogVersion) |
| 46 | *p = x |
| 47 | return p |
| 48 | } |
| 49 | |
| 50 | func (x LogVersion) String() string { |
| 51 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 52 | } |
| 53 | |
| 54 | func (LogVersion) Descriptor() protoreflect.EnumDescriptor { |
| 55 | return file_kv_aof_proto_log_proto_enumTypes[0].Descriptor() |
| 56 | } |
| 57 | |
| 58 | func (LogVersion) Type() protoreflect.EnumType { |
| 59 | return &file_kv_aof_proto_log_proto_enumTypes[0] |
| 60 | } |
| 61 | |
| 62 | func (x LogVersion) Number() protoreflect.EnumNumber { |
| 63 | return protoreflect.EnumNumber(x) |
| 64 | } |
| 65 | |
| 66 | // Deprecated: Use LogVersion.Descriptor instead. |
| 67 | func (LogVersion) EnumDescriptor() ([]byte, []int) { |
| 68 | return file_kv_aof_proto_log_proto_rawDescGZIP(), []int{0} |
| 69 | } |
| 70 | |
| 71 | type LogEntry struct { |
| 72 | state protoimpl.MessageState `protogen:"open.v1"` |
| 73 | Version LogVersion `protobuf:"varint,1,opt,name=version,proto3,enum=proto.LogVersion" json:"version,omitempty"` |
| 74 | Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` |
| 75 | Checksum uint64 `protobuf:"varint,5,opt,name=checksum,proto3" json:"checksum,omitempty"` |
| 76 | unknownFields protoimpl.UnknownFields |
| 77 | sizeCache protoimpl.SizeCache |
| 78 | } |
| 79 | |
| 80 | func (x *LogEntry) Reset() { |
| 81 | *x = LogEntry{} |
| 82 | mi := &file_kv_aof_proto_log_proto_msgTypes[0] |
| 83 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 84 | ms.StoreMessageInfo(mi) |
| 85 | } |
| 86 | |
| 87 | func (x *LogEntry) String() string { |
| 88 | return protoimpl.X.MessageStringOf(x) |
| 89 | } |
| 90 | |
| 91 | func (*LogEntry) ProtoMessage() {} |
| 92 | |
| 93 | func (x *LogEntry) ProtoReflect() protoreflect.Message { |
| 94 | mi := &file_kv_aof_proto_log_proto_msgTypes[0] |
| 95 | if x != nil { |
| 96 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 97 | if ms.LoadMessageInfo() == nil { |
| 98 | ms.StoreMessageInfo(mi) |
| 99 | } |
| 100 | return ms |
| 101 | } |
| 102 | return mi.MessageOf(x) |
| 103 | } |
| 104 | |
| 105 | // Deprecated: Use LogEntry.ProtoReflect.Descriptor instead. |
| 106 | func (*LogEntry) Descriptor() ([]byte, []int) { |
| 107 | return file_kv_aof_proto_log_proto_rawDescGZIP(), []int{0} |
| 108 | } |
| 109 | |
| 110 | func (x *LogEntry) GetVersion() LogVersion { |
| 111 | if x != nil { |
| 112 | return x.Version |
| 113 | } |
| 114 | return LogVersion_UNKNOWN_VERSION |
| 115 | } |
| 116 | |
| 117 | func (x *LogEntry) GetData() []byte { |
| 118 | if x != nil { |
| 119 | return x.Data |
| 120 | } |
| 121 | return nil |
| 122 | } |
| 123 | |
| 124 | func (x *LogEntry) GetChecksum() uint64 { |
| 125 | if x != nil { |
| 126 | return x.Checksum |
| 127 | } |
| 128 | return 0 |
| 129 | } |
| 130 | |
| 131 | var File_kv_aof_proto_log_proto protoreflect.FileDescriptor |
| 132 | |
| 133 | const file_kv_aof_proto_log_proto_rawDesc = "" + |
| 134 | "\n" + |
| 135 | "\x16kv/aof/proto/log.proto\x12\x05proto\"g\n" + |
| 136 | "\bLogEntry\x12+\n" + |
| 137 | "\aversion\x18\x01 \x01(\x0e2\x11.proto.LogVersionR\aversion\x12\x12\n" + |
| 138 | "\x04data\x18\x02 \x01(\fR\x04data\x12\x1a\n" + |
| 139 | "\bchecksum\x18\x05 \x01(\x04R\bchecksum*)\n" + |
| 140 | "\n" + |
| 141 | "LogVersion\x12\x13\n" + |
| 142 | "\x0fUNKNOWN_VERSION\x10\x00\x12\x06\n" + |
| 143 | "\x02V1\x10\x01B*H\x01Z&go.miragespace.co/specter/kv/aof/protob\x06proto3" |
| 144 | |
| 145 | var ( |
| 146 | file_kv_aof_proto_log_proto_rawDescOnce sync.Once |
| 147 | file_kv_aof_proto_log_proto_rawDescData []byte |
| 148 | ) |
| 149 | |
| 150 | func file_kv_aof_proto_log_proto_rawDescGZIP() []byte { |
| 151 | file_kv_aof_proto_log_proto_rawDescOnce.Do(func() { |
| 152 | file_kv_aof_proto_log_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_kv_aof_proto_log_proto_rawDesc), len(file_kv_aof_proto_log_proto_rawDesc))) |
| 153 | }) |
| 154 | return file_kv_aof_proto_log_proto_rawDescData |
| 155 | } |
| 156 | |
| 157 | var file_kv_aof_proto_log_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 158 | var file_kv_aof_proto_log_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 159 | var file_kv_aof_proto_log_proto_goTypes = []any{ |
| 160 | (LogVersion)(0), // 0: proto.LogVersion |
| 161 | (*LogEntry)(nil), // 1: proto.LogEntry |
| 162 | } |
| 163 | var file_kv_aof_proto_log_proto_depIdxs = []int32{ |
| 164 | 0, // 0: proto.LogEntry.version:type_name -> proto.LogVersion |
| 165 | 1, // [1:1] is the sub-list for method output_type |
| 166 | 1, // [1:1] is the sub-list for method input_type |
| 167 | 1, // [1:1] is the sub-list for extension type_name |
| 168 | 1, // [1:1] is the sub-list for extension extendee |
| 169 | 0, // [0:1] is the sub-list for field type_name |
| 170 | } |
| 171 | |
| 172 | func init() { file_kv_aof_proto_log_proto_init() } |
| 173 | func file_kv_aof_proto_log_proto_init() { |
| 174 | if File_kv_aof_proto_log_proto != nil { |
| 175 | return |
| 176 | } |
| 177 | type x struct{} |
| 178 | out := protoimpl.TypeBuilder{ |
| 179 | File: protoimpl.DescBuilder{ |
| 180 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 181 | RawDescriptor: unsafe.Slice(unsafe.StringData(file_kv_aof_proto_log_proto_rawDesc), len(file_kv_aof_proto_log_proto_rawDesc)), |
| 182 | NumEnums: 1, |
| 183 | NumMessages: 1, |
| 184 | NumExtensions: 0, |
| 185 | NumServices: 0, |
| 186 | }, |
| 187 | GoTypes: file_kv_aof_proto_log_proto_goTypes, |
| 188 | DependencyIndexes: file_kv_aof_proto_log_proto_depIdxs, |
| 189 | EnumInfos: file_kv_aof_proto_log_proto_enumTypes, |
| 190 | MessageInfos: file_kv_aof_proto_log_proto_msgTypes, |
| 191 | }.Build() |
| 192 | File_kv_aof_proto_log_proto = out.File |
| 193 | file_kv_aof_proto_log_proto_goTypes = nil |
| 194 | file_kv_aof_proto_log_proto_depIdxs = nil |
| 195 | } |