diff --git a/pb/badgerpb3.pb.go b/pb/badgerpb4.pb.go similarity index 78% rename from pb/badgerpb3.pb.go rename to pb/badgerpb4.pb.go index 927878ca0..521f99293 100644 --- a/pb/badgerpb3.pb.go +++ b/pb/badgerpb4.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: badgerpb3.proto +// source: badgerpb4.proto package pb @@ -41,7 +41,7 @@ func (x EncryptionAlgo) String() string { } func (EncryptionAlgo) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_6d729c99bbc38987, []int{0} + return fileDescriptor_452c1d780baa15ef, []int{0} } type ManifestChange_Operation int32 @@ -66,7 +66,7 @@ func (x ManifestChange_Operation) String() string { } func (ManifestChange_Operation) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_6d729c99bbc38987, []int{3, 0} + return fileDescriptor_452c1d780baa15ef, []int{3, 0} } type Checksum_Algorithm int32 @@ -91,7 +91,7 @@ func (x Checksum_Algorithm) String() string { } func (Checksum_Algorithm) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_6d729c99bbc38987, []int{4, 0} + return fileDescriptor_452c1d780baa15ef, []int{4, 0} } type KV struct { @@ -111,7 +111,7 @@ func (m *KV) Reset() { *m = KV{} } func (m *KV) String() string { return proto.CompactTextString(m) } func (*KV) ProtoMessage() {} func (*KV) Descriptor() ([]byte, []int) { - return fileDescriptor_6d729c99bbc38987, []int{0} + return fileDescriptor_452c1d780baa15ef, []int{0} } func (m *KV) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -206,7 +206,7 @@ func (m *KVList) Reset() { *m = KVList{} } func (m *KVList) String() string { return proto.CompactTextString(m) } func (*KVList) ProtoMessage() {} func (*KVList) Descriptor() ([]byte, []int) { - return fileDescriptor_6d729c99bbc38987, []int{1} + return fileDescriptor_452c1d780baa15ef, []int{1} } func (m *KVList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -258,7 +258,7 @@ func (m *ManifestChangeSet) Reset() { *m = ManifestChangeSet{} } func (m *ManifestChangeSet) String() string { return proto.CompactTextString(m) } func (*ManifestChangeSet) ProtoMessage() {} func (*ManifestChangeSet) Descriptor() ([]byte, []int) { - return fileDescriptor_6d729c99bbc38987, []int{2} + return fileDescriptor_452c1d780baa15ef, []int{2} } func (m *ManifestChangeSet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -296,10 +296,10 @@ func (m *ManifestChangeSet) GetChanges() []*ManifestChange { type ManifestChange struct { Id uint64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` - Op ManifestChange_Operation `protobuf:"varint,2,opt,name=Op,proto3,enum=badgerpb3.ManifestChange_Operation" json:"Op,omitempty"` + Op ManifestChange_Operation `protobuf:"varint,2,opt,name=Op,proto3,enum=badgerpb4.ManifestChange_Operation" json:"Op,omitempty"` Level uint32 `protobuf:"varint,3,opt,name=Level,proto3" json:"Level,omitempty"` KeyId uint64 `protobuf:"varint,4,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` - EncryptionAlgo EncryptionAlgo `protobuf:"varint,5,opt,name=encryption_algo,json=encryptionAlgo,proto3,enum=badgerpb3.EncryptionAlgo" json:"encryption_algo,omitempty"` + EncryptionAlgo EncryptionAlgo `protobuf:"varint,5,opt,name=encryption_algo,json=encryptionAlgo,proto3,enum=badgerpb4.EncryptionAlgo" json:"encryption_algo,omitempty"` Compression uint32 `protobuf:"varint,6,opt,name=compression,proto3" json:"compression,omitempty"` } @@ -307,7 +307,7 @@ func (m *ManifestChange) Reset() { *m = ManifestChange{} } func (m *ManifestChange) String() string { return proto.CompactTextString(m) } func (*ManifestChange) ProtoMessage() {} func (*ManifestChange) Descriptor() ([]byte, []int) { - return fileDescriptor_6d729c99bbc38987, []int{3} + return fileDescriptor_452c1d780baa15ef, []int{3} } func (m *ManifestChange) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -379,7 +379,7 @@ func (m *ManifestChange) GetCompression() uint32 { } type Checksum struct { - Algo Checksum_Algorithm `protobuf:"varint,1,opt,name=algo,proto3,enum=badgerpb3.Checksum_Algorithm" json:"algo,omitempty"` + Algo Checksum_Algorithm `protobuf:"varint,1,opt,name=algo,proto3,enum=badgerpb4.Checksum_Algorithm" json:"algo,omitempty"` Sum uint64 `protobuf:"varint,2,opt,name=sum,proto3" json:"sum,omitempty"` } @@ -387,7 +387,7 @@ func (m *Checksum) Reset() { *m = Checksum{} } func (m *Checksum) String() string { return proto.CompactTextString(m) } func (*Checksum) ProtoMessage() {} func (*Checksum) Descriptor() ([]byte, []int) { - return fileDescriptor_6d729c99bbc38987, []int{4} + return fileDescriptor_452c1d780baa15ef, []int{4} } func (m *Checksum) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -441,7 +441,7 @@ func (m *DataKey) Reset() { *m = DataKey{} } func (m *DataKey) String() string { return proto.CompactTextString(m) } func (*DataKey) ProtoMessage() {} func (*DataKey) Descriptor() ([]byte, []int) { - return fileDescriptor_6d729c99bbc38987, []int{5} + return fileDescriptor_452c1d780baa15ef, []int{5} } func (m *DataKey) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -507,7 +507,7 @@ func (m *Match) Reset() { *m = Match{} } func (m *Match) String() string { return proto.CompactTextString(m) } func (*Match) ProtoMessage() {} func (*Match) Descriptor() ([]byte, []int) { - return fileDescriptor_6d729c99bbc38987, []int{6} + return fileDescriptor_452c1d780baa15ef, []int{6} } func (m *Match) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -551,63 +551,63 @@ func (m *Match) GetIgnoreBytes() string { } func init() { - proto.RegisterEnum("badgerpb3.EncryptionAlgo", EncryptionAlgo_name, EncryptionAlgo_value) - proto.RegisterEnum("badgerpb3.ManifestChange_Operation", ManifestChange_Operation_name, ManifestChange_Operation_value) - proto.RegisterEnum("badgerpb3.Checksum_Algorithm", Checksum_Algorithm_name, Checksum_Algorithm_value) - proto.RegisterType((*KV)(nil), "badgerpb3.KV") - proto.RegisterType((*KVList)(nil), "badgerpb3.KVList") - proto.RegisterType((*ManifestChangeSet)(nil), "badgerpb3.ManifestChangeSet") - proto.RegisterType((*ManifestChange)(nil), "badgerpb3.ManifestChange") - proto.RegisterType((*Checksum)(nil), "badgerpb3.Checksum") - proto.RegisterType((*DataKey)(nil), "badgerpb3.DataKey") - proto.RegisterType((*Match)(nil), "badgerpb3.Match") -} - -func init() { proto.RegisterFile("badgerpb3.proto", fileDescriptor_6d729c99bbc38987) } - -var fileDescriptor_6d729c99bbc38987 = []byte{ - // 651 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x54, 0x4d, 0x6b, 0xdb, 0x40, - 0x10, 0xf5, 0xca, 0xf2, 0xd7, 0x38, 0x71, 0xdc, 0xa5, 0x2d, 0x0a, 0x25, 0xae, 0xa3, 0x50, 0x30, - 0x85, 0xda, 0x34, 0x2e, 0xbd, 0xf4, 0xe4, 0x2f, 0x88, 0x71, 0x42, 0x60, 0x1b, 0x42, 0xe8, 0xc5, - 0xac, 0xa5, 0xb1, 0x2d, 0x6c, 0x4b, 0x62, 0xb5, 0x16, 0xf1, 0x8f, 0x28, 0xf4, 0x67, 0xf5, 0x98, - 0x43, 0x0f, 0x3d, 0x96, 0xe4, 0x8f, 0x94, 0x5d, 0x29, 0xae, 0x7d, 0xe8, 0x6d, 0xe6, 0xcd, 0x68, - 0xde, 0xe8, 0xbd, 0x91, 0xe0, 0x68, 0xc2, 0xdd, 0x19, 0x8a, 0x70, 0xd2, 0x6e, 0x86, 0x22, 0x90, - 0x01, 0x2d, 0x6d, 0x01, 0xfb, 0x17, 0x01, 0x63, 0x74, 0x4b, 0xab, 0x90, 0x5d, 0xe0, 0xc6, 0x22, - 0x75, 0xd2, 0x38, 0x60, 0x2a, 0xa4, 0x2f, 0x21, 0x17, 0xf3, 0xe5, 0x1a, 0x2d, 0x43, 0x63, 0x49, - 0x42, 0xdf, 0x40, 0x69, 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, 0x2b, 0x12, 0x05, 0xd3, 0xe5, 0x92, 0xa7, 0x67, 0xaf, 0x63, 0x65, 0x95, 0x17, 0xa7, - 0xe7, 0x6e, 0x78, 0xb1, 0x3a, 0x67, 0x47, 0x20, 0x97, 0xe8, 0xaa, 0x73, 0x56, 0x1a, 0x67, 0x59, - 0x29, 0x45, 0x3a, 0xd2, 0xee, 0x42, 0xee, 0x8a, 0x4b, 0x67, 0x4e, 0x5f, 0x43, 0x3e, 0x14, 0x38, - 0xf5, 0xee, 0xd3, 0x0f, 0x2b, 0xcd, 0xe8, 0x29, 0x1c, 0x78, 0x33, 0x3f, 0x10, 0x38, 0x9e, 0x6c, - 0x24, 0x46, 0x9a, 0xab, 0xc4, 0xca, 0x09, 0xd6, 0x55, 0xd0, 0xfb, 0x63, 0xa8, 0xec, 0x3b, 0x41, - 0x0b, 0x90, 0xe5, 0x18, 0x55, 0x33, 0xdd, 0x2f, 0x3f, 0x1f, 0x6b, 0xe4, 0xe1, 0xb1, 0x46, 0xfe, - 0x3c, 0xd6, 0xc8, 0x8f, 0xa7, 0x5a, 0xe6, 0xe1, 0xa9, 0x96, 0xf9, 0xfd, 0x54, 0xcb, 0x7c, 0x3b, - 0x9d, 0x79, 0x72, 0xbe, 0x9e, 0x34, 0x9d, 0x60, 0xd5, 0x72, 0x67, 0x82, 0x87, 0xf3, 0x0f, 0x5e, - 0xd0, 0x4a, 0xf4, 0x6c, 0xc5, 0xed, 0x56, 0x38, 0x99, 0xe4, 0xf5, 0x1f, 0xa0, 0xfd, 0x37, 0x00, - 0x00, 0xff, 0xff, 0xa2, 0x8d, 0xa8, 0xf5, 0x14, 0x04, 0x00, 0x00, + proto.RegisterEnum("badgerpb4.EncryptionAlgo", EncryptionAlgo_name, EncryptionAlgo_value) + proto.RegisterEnum("badgerpb4.ManifestChange_Operation", ManifestChange_Operation_name, ManifestChange_Operation_value) + proto.RegisterEnum("badgerpb4.Checksum_Algorithm", Checksum_Algorithm_name, Checksum_Algorithm_value) + proto.RegisterType((*KV)(nil), "badgerpb4.KV") + proto.RegisterType((*KVList)(nil), "badgerpb4.KVList") + proto.RegisterType((*ManifestChangeSet)(nil), "badgerpb4.ManifestChangeSet") + proto.RegisterType((*ManifestChange)(nil), "badgerpb4.ManifestChange") + proto.RegisterType((*Checksum)(nil), "badgerpb4.Checksum") + proto.RegisterType((*DataKey)(nil), "badgerpb4.DataKey") + proto.RegisterType((*Match)(nil), "badgerpb4.Match") +} + +func init() { proto.RegisterFile("badgerpb4.proto", fileDescriptor_452c1d780baa15ef) } + +var fileDescriptor_452c1d780baa15ef = []byte{ + // 653 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x54, 0x4f, 0x6b, 0xdb, 0x4e, + 0x10, 0xf5, 0xca, 0xf2, 0xbf, 0x71, 0xe2, 0xf8, 0xb7, 0xfc, 0x5a, 0x14, 0x4a, 0x5c, 0x47, 0xa1, + 0x60, 0x0a, 0xb5, 0x69, 0x1c, 0x7a, 0xe9, 0xc9, 0xff, 0x20, 0xc6, 0x09, 0x81, 0x6d, 0x08, 0xa1, + 0x17, 0xb3, 0x96, 0xc6, 0xb6, 0xb0, 0x2d, 0x89, 0xd5, 0x5a, 0xc4, 0x1f, 0xa2, 0xd0, 0x8f, 0xd5, + 0x63, 0x0e, 0x3d, 0xf4, 0x58, 0x92, 0x2f, 0x52, 0x76, 0xa5, 0xb8, 0xf6, 0xa1, 0xb7, 0x99, 0x37, + 0xa3, 0x79, 0xa3, 0xf7, 0x46, 0x82, 0xa3, 0x09, 0x77, 0x67, 0x28, 0xc2, 0xc9, 0x45, 0x33, 0x14, + 0x81, 0x0c, 0x68, 0x69, 0x0b, 0xd8, 0x3f, 0x09, 0x18, 0xa3, 0x3b, 0x5a, 0x85, 0xec, 0x02, 0x37, + 0x16, 0xa9, 0x93, 0xc6, 0x01, 0x53, 0x21, 0xfd, 0x1f, 0x72, 0x31, 0x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d8, 0x0e, 0x14, 0xfa, 0x5c, 0xf2, 0x11, 0x6e, + 0x76, 0x44, 0x22, 0xbb, 0x22, 0x51, 0x30, 0x5d, 0x2e, 0x79, 0x7a, 0xf6, 0x3a, 0x56, 0x56, 0x79, + 0x71, 0x7a, 0xee, 0x86, 0x17, 0xab, 0x73, 0x76, 0x04, 0x72, 0x89, 0xae, 0x3a, 0x67, 0xa5, 0x71, + 0x96, 0x95, 0x52, 0xa4, 0x23, 0xed, 0x2e, 0xe4, 0xae, 0xb9, 0x74, 0xe6, 0xf4, 0x35, 0xe4, 0x43, + 0x81, 0x53, 0xef, 0x21, 0xfd, 0xb0, 0xd2, 0x8c, 0x9e, 0xc2, 0x81, 0x37, 0xf3, 0x03, 0x81, 0xe3, + 0xc9, 0x46, 0x62, 0xa4, 0xb9, 0x4a, 0xac, 0x9c, 0x60, 0x5d, 0x05, 0xbd, 0x3f, 0x86, 0xca, 0xbe, + 0x13, 0xb4, 0x00, 0x59, 0x8e, 0x51, 0x35, 0xd3, 0xfd, 0xfc, 0xe3, 0xa9, 0x46, 0x1e, 0x9f, 0x6a, + 0xe4, 0xf7, 0x53, 0x8d, 0x7c, 0x7f, 0xae, 0x65, 0x1e, 0x9f, 0x6b, 0x99, 0x5f, 0xcf, 0xb5, 0xcc, + 0xd7, 0xd3, 0x99, 0x27, 0xe7, 0xeb, 0x49, 0xd3, 0x09, 0x56, 0x2d, 0x77, 0x26, 0x78, 0x38, 0xff, + 0xe0, 0x05, 0xad, 0x44, 0xcf, 0x56, 0x7c, 0xd1, 0x0a, 0x27, 0x93, 0xbc, 0xfe, 0x03, 0xb4, 0xff, + 0x04, 0x00, 0x00, 0xff, 0xff, 0xec, 0x26, 0x3b, 0x76, 0x14, 0x04, 0x00, 0x00, } func (m *KV) Marshal() (dAtA []byte, err error) { @@ -641,45 +641,45 @@ func (m *KV) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x58 } if m.StreamId != 0 { - i = encodeVarintBadgerpb3(dAtA, i, uint64(m.StreamId)) + i = encodeVarintBadgerpb4(dAtA, i, uint64(m.StreamId)) i-- dAtA[i] = 0x50 } if len(m.Meta) > 0 { i -= len(m.Meta) copy(dAtA[i:], m.Meta) - i = encodeVarintBadgerpb3(dAtA, i, uint64(len(m.Meta))) + i = encodeVarintBadgerpb4(dAtA, i, uint64(len(m.Meta))) i-- dAtA[i] = 0x32 } if m.ExpiresAt != 0 { - i = encodeVarintBadgerpb3(dAtA, i, uint64(m.ExpiresAt)) + i = encodeVarintBadgerpb4(dAtA, i, uint64(m.ExpiresAt)) i-- dAtA[i] = 0x28 } if m.Version != 0 { - i = encodeVarintBadgerpb3(dAtA, i, uint64(m.Version)) + i = encodeVarintBadgerpb4(dAtA, i, uint64(m.Version)) i-- dAtA[i] = 0x20 } if len(m.UserMeta) > 0 { i -= len(m.UserMeta) copy(dAtA[i:], m.UserMeta) - i = encodeVarintBadgerpb3(dAtA, i, uint64(len(m.UserMeta))) + i = encodeVarintBadgerpb4(dAtA, i, uint64(len(m.UserMeta))) i-- dAtA[i] = 0x1a } if len(m.Value) > 0 { i -= len(m.Value) copy(dAtA[i:], m.Value) - i = encodeVarintBadgerpb3(dAtA, i, uint64(len(m.Value))) + i = encodeVarintBadgerpb4(dAtA, i, uint64(len(m.Value))) i-- dAtA[i] = 0x12 } if len(m.Key) > 0 { i -= len(m.Key) copy(dAtA[i:], m.Key) - i = encodeVarintBadgerpb3(dAtA, i, uint64(len(m.Key))) + i = encodeVarintBadgerpb4(dAtA, i, uint64(len(m.Key))) i-- dAtA[i] = 0xa } @@ -707,7 +707,7 @@ func (m *KVList) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.AllocRef != 0 { - i = encodeVarintBadgerpb3(dAtA, i, uint64(m.AllocRef)) + i = encodeVarintBadgerpb4(dAtA, i, uint64(m.AllocRef)) i-- dAtA[i] = 0x50 } @@ -719,7 +719,7 @@ func (m *KVList) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintBadgerpb3(dAtA, i, uint64(size)) + i = encodeVarintBadgerpb4(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -756,7 +756,7 @@ func (m *ManifestChangeSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintBadgerpb3(dAtA, i, uint64(size)) + i = encodeVarintBadgerpb4(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -786,32 +786,32 @@ func (m *ManifestChange) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.Compression != 0 { - i = encodeVarintBadgerpb3(dAtA, i, uint64(m.Compression)) + i = encodeVarintBadgerpb4(dAtA, i, uint64(m.Compression)) i-- dAtA[i] = 0x30 } if m.EncryptionAlgo != 0 { - i = encodeVarintBadgerpb3(dAtA, i, uint64(m.EncryptionAlgo)) + i = encodeVarintBadgerpb4(dAtA, i, uint64(m.EncryptionAlgo)) i-- dAtA[i] = 0x28 } if m.KeyId != 0 { - i = encodeVarintBadgerpb3(dAtA, i, uint64(m.KeyId)) + i = encodeVarintBadgerpb4(dAtA, i, uint64(m.KeyId)) i-- dAtA[i] = 0x20 } if m.Level != 0 { - i = encodeVarintBadgerpb3(dAtA, i, uint64(m.Level)) + i = encodeVarintBadgerpb4(dAtA, i, uint64(m.Level)) i-- dAtA[i] = 0x18 } if m.Op != 0 { - i = encodeVarintBadgerpb3(dAtA, i, uint64(m.Op)) + i = encodeVarintBadgerpb4(dAtA, i, uint64(m.Op)) i-- dAtA[i] = 0x10 } if m.Id != 0 { - i = encodeVarintBadgerpb3(dAtA, i, uint64(m.Id)) + i = encodeVarintBadgerpb4(dAtA, i, uint64(m.Id)) i-- dAtA[i] = 0x8 } @@ -839,12 +839,12 @@ func (m *Checksum) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.Sum != 0 { - i = encodeVarintBadgerpb3(dAtA, i, uint64(m.Sum)) + i = encodeVarintBadgerpb4(dAtA, i, uint64(m.Sum)) i-- dAtA[i] = 0x10 } if m.Algo != 0 { - i = encodeVarintBadgerpb3(dAtA, i, uint64(m.Algo)) + i = encodeVarintBadgerpb4(dAtA, i, uint64(m.Algo)) i-- dAtA[i] = 0x8 } @@ -872,26 +872,26 @@ func (m *DataKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.CreatedAt != 0 { - i = encodeVarintBadgerpb3(dAtA, i, uint64(m.CreatedAt)) + i = encodeVarintBadgerpb4(dAtA, i, uint64(m.CreatedAt)) i-- dAtA[i] = 0x20 } if len(m.Iv) > 0 { i -= len(m.Iv) copy(dAtA[i:], m.Iv) - i = encodeVarintBadgerpb3(dAtA, i, uint64(len(m.Iv))) + i = encodeVarintBadgerpb4(dAtA, i, uint64(len(m.Iv))) i-- dAtA[i] = 0x1a } if len(m.Data) > 0 { i -= len(m.Data) copy(dAtA[i:], m.Data) - i = encodeVarintBadgerpb3(dAtA, i, uint64(len(m.Data))) + i = encodeVarintBadgerpb4(dAtA, i, uint64(len(m.Data))) i-- dAtA[i] = 0x12 } if m.KeyId != 0 { - i = encodeVarintBadgerpb3(dAtA, i, uint64(m.KeyId)) + i = encodeVarintBadgerpb4(dAtA, i, uint64(m.KeyId)) i-- dAtA[i] = 0x8 } @@ -921,22 +921,22 @@ func (m *Match) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.IgnoreBytes) > 0 { i -= len(m.IgnoreBytes) copy(dAtA[i:], m.IgnoreBytes) - i = encodeVarintBadgerpb3(dAtA, i, uint64(len(m.IgnoreBytes))) + i = encodeVarintBadgerpb4(dAtA, i, uint64(len(m.IgnoreBytes))) i-- dAtA[i] = 0x12 } if len(m.Prefix) > 0 { i -= len(m.Prefix) copy(dAtA[i:], m.Prefix) - i = encodeVarintBadgerpb3(dAtA, i, uint64(len(m.Prefix))) + i = encodeVarintBadgerpb4(dAtA, i, uint64(len(m.Prefix))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarintBadgerpb3(dAtA []byte, offset int, v uint64) int { - offset -= sovBadgerpb3(v) +func encodeVarintBadgerpb4(dAtA []byte, offset int, v uint64) int { + offset -= sovBadgerpb4(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -954,28 +954,28 @@ func (m *KV) Size() (n int) { _ = l l = len(m.Key) if l > 0 { - n += 1 + l + sovBadgerpb3(uint64(l)) + n += 1 + l + sovBadgerpb4(uint64(l)) } l = len(m.Value) if l > 0 { - n += 1 + l + sovBadgerpb3(uint64(l)) + n += 1 + l + sovBadgerpb4(uint64(l)) } l = len(m.UserMeta) if l > 0 { - n += 1 + l + sovBadgerpb3(uint64(l)) + n += 1 + l + sovBadgerpb4(uint64(l)) } if m.Version != 0 { - n += 1 + sovBadgerpb3(uint64(m.Version)) + n += 1 + sovBadgerpb4(uint64(m.Version)) } if m.ExpiresAt != 0 { - n += 1 + sovBadgerpb3(uint64(m.ExpiresAt)) + n += 1 + sovBadgerpb4(uint64(m.ExpiresAt)) } l = len(m.Meta) if l > 0 { - n += 1 + l + sovBadgerpb3(uint64(l)) + n += 1 + l + sovBadgerpb4(uint64(l)) } if m.StreamId != 0 { - n += 1 + sovBadgerpb3(uint64(m.StreamId)) + n += 1 + sovBadgerpb4(uint64(m.StreamId)) } if m.StreamDone { n += 2 @@ -992,11 +992,11 @@ func (m *KVList) Size() (n int) { if len(m.Kv) > 0 { for _, e := range m.Kv { l = e.Size() - n += 1 + l + sovBadgerpb3(uint64(l)) + n += 1 + l + sovBadgerpb4(uint64(l)) } } if m.AllocRef != 0 { - n += 1 + sovBadgerpb3(uint64(m.AllocRef)) + n += 1 + sovBadgerpb4(uint64(m.AllocRef)) } return n } @@ -1010,7 +1010,7 @@ func (m *ManifestChangeSet) Size() (n int) { if len(m.Changes) > 0 { for _, e := range m.Changes { l = e.Size() - n += 1 + l + sovBadgerpb3(uint64(l)) + n += 1 + l + sovBadgerpb4(uint64(l)) } } return n @@ -1023,22 +1023,22 @@ func (m *ManifestChange) Size() (n int) { var l int _ = l if m.Id != 0 { - n += 1 + sovBadgerpb3(uint64(m.Id)) + n += 1 + sovBadgerpb4(uint64(m.Id)) } if m.Op != 0 { - n += 1 + sovBadgerpb3(uint64(m.Op)) + n += 1 + sovBadgerpb4(uint64(m.Op)) } if m.Level != 0 { - n += 1 + sovBadgerpb3(uint64(m.Level)) + n += 1 + sovBadgerpb4(uint64(m.Level)) } if m.KeyId != 0 { - n += 1 + sovBadgerpb3(uint64(m.KeyId)) + n += 1 + sovBadgerpb4(uint64(m.KeyId)) } if m.EncryptionAlgo != 0 { - n += 1 + sovBadgerpb3(uint64(m.EncryptionAlgo)) + n += 1 + sovBadgerpb4(uint64(m.EncryptionAlgo)) } if m.Compression != 0 { - n += 1 + sovBadgerpb3(uint64(m.Compression)) + n += 1 + sovBadgerpb4(uint64(m.Compression)) } return n } @@ -1050,10 +1050,10 @@ func (m *Checksum) Size() (n int) { var l int _ = l if m.Algo != 0 { - n += 1 + sovBadgerpb3(uint64(m.Algo)) + n += 1 + sovBadgerpb4(uint64(m.Algo)) } if m.Sum != 0 { - n += 1 + sovBadgerpb3(uint64(m.Sum)) + n += 1 + sovBadgerpb4(uint64(m.Sum)) } return n } @@ -1065,18 +1065,18 @@ func (m *DataKey) Size() (n int) { var l int _ = l if m.KeyId != 0 { - n += 1 + sovBadgerpb3(uint64(m.KeyId)) + n += 1 + sovBadgerpb4(uint64(m.KeyId)) } l = len(m.Data) if l > 0 { - n += 1 + l + sovBadgerpb3(uint64(l)) + n += 1 + l + sovBadgerpb4(uint64(l)) } l = len(m.Iv) if l > 0 { - n += 1 + l + sovBadgerpb3(uint64(l)) + n += 1 + l + sovBadgerpb4(uint64(l)) } if m.CreatedAt != 0 { - n += 1 + sovBadgerpb3(uint64(m.CreatedAt)) + n += 1 + sovBadgerpb4(uint64(m.CreatedAt)) } return n } @@ -1089,20 +1089,20 @@ func (m *Match) Size() (n int) { _ = l l = len(m.Prefix) if l > 0 { - n += 1 + l + sovBadgerpb3(uint64(l)) + n += 1 + l + sovBadgerpb4(uint64(l)) } l = len(m.IgnoreBytes) if l > 0 { - n += 1 + l + sovBadgerpb3(uint64(l)) + n += 1 + l + sovBadgerpb4(uint64(l)) } return n } -func sovBadgerpb3(x uint64) (n int) { +func sovBadgerpb4(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozBadgerpb3(x uint64) (n int) { - return sovBadgerpb3(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozBadgerpb4(x uint64) (n int) { + return sovBadgerpb4(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *KV) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -1112,7 +1112,7 @@ func (m *KV) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1140,7 +1140,7 @@ func (m *KV) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1153,11 +1153,11 @@ func (m *KV) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } if postIndex > l { return io.ErrUnexpectedEOF @@ -1174,7 +1174,7 @@ func (m *KV) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1187,11 +1187,11 @@ func (m *KV) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } if postIndex > l { return io.ErrUnexpectedEOF @@ -1208,7 +1208,7 @@ func (m *KV) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1221,11 +1221,11 @@ func (m *KV) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } if postIndex > l { return io.ErrUnexpectedEOF @@ -1242,7 +1242,7 @@ func (m *KV) Unmarshal(dAtA []byte) error { m.Version = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1261,7 +1261,7 @@ func (m *KV) Unmarshal(dAtA []byte) error { m.ExpiresAt = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1280,7 +1280,7 @@ func (m *KV) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1293,11 +1293,11 @@ func (m *KV) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } if postIndex > l { return io.ErrUnexpectedEOF @@ -1314,7 +1314,7 @@ func (m *KV) Unmarshal(dAtA []byte) error { m.StreamId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1333,7 +1333,7 @@ func (m *KV) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1348,12 +1348,12 @@ func (m *KV) Unmarshal(dAtA []byte) error { m.StreamDone = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipBadgerpb3(dAtA[iNdEx:]) + skippy, err := skipBadgerpb4(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1375,7 +1375,7 @@ func (m *KVList) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1403,7 +1403,7 @@ func (m *KVList) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1416,11 +1416,11 @@ func (m *KVList) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } if postIndex > l { return io.ErrUnexpectedEOF @@ -1437,7 +1437,7 @@ func (m *KVList) Unmarshal(dAtA []byte) error { m.AllocRef = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1451,12 +1451,12 @@ func (m *KVList) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipBadgerpb3(dAtA[iNdEx:]) + skippy, err := skipBadgerpb4(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1478,7 +1478,7 @@ func (m *ManifestChangeSet) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1506,7 +1506,7 @@ func (m *ManifestChangeSet) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1519,11 +1519,11 @@ func (m *ManifestChangeSet) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } if postIndex > l { return io.ErrUnexpectedEOF @@ -1535,12 +1535,12 @@ func (m *ManifestChangeSet) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipBadgerpb3(dAtA[iNdEx:]) + skippy, err := skipBadgerpb4(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1562,7 +1562,7 @@ func (m *ManifestChange) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1590,7 +1590,7 @@ func (m *ManifestChange) Unmarshal(dAtA []byte) error { m.Id = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1609,7 +1609,7 @@ func (m *ManifestChange) Unmarshal(dAtA []byte) error { m.Op = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1628,7 +1628,7 @@ func (m *ManifestChange) Unmarshal(dAtA []byte) error { m.Level = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1647,7 +1647,7 @@ func (m *ManifestChange) Unmarshal(dAtA []byte) error { m.KeyId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1666,7 +1666,7 @@ func (m *ManifestChange) Unmarshal(dAtA []byte) error { m.EncryptionAlgo = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1685,7 +1685,7 @@ func (m *ManifestChange) Unmarshal(dAtA []byte) error { m.Compression = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1699,12 +1699,12 @@ func (m *ManifestChange) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipBadgerpb3(dAtA[iNdEx:]) + skippy, err := skipBadgerpb4(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1726,7 +1726,7 @@ func (m *Checksum) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1754,7 +1754,7 @@ func (m *Checksum) Unmarshal(dAtA []byte) error { m.Algo = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1773,7 +1773,7 @@ func (m *Checksum) Unmarshal(dAtA []byte) error { m.Sum = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1787,12 +1787,12 @@ func (m *Checksum) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipBadgerpb3(dAtA[iNdEx:]) + skippy, err := skipBadgerpb4(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1814,7 +1814,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1842,7 +1842,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { m.KeyId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1861,7 +1861,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1874,11 +1874,11 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } if postIndex > l { return io.ErrUnexpectedEOF @@ -1895,7 +1895,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1908,11 +1908,11 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } if postIndex > l { return io.ErrUnexpectedEOF @@ -1929,7 +1929,7 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { m.CreatedAt = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1943,12 +1943,12 @@ func (m *DataKey) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipBadgerpb3(dAtA[iNdEx:]) + skippy, err := skipBadgerpb4(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1970,7 +1970,7 @@ func (m *Match) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1998,7 +1998,7 @@ func (m *Match) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2011,11 +2011,11 @@ func (m *Match) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } if postIndex > l { return io.ErrUnexpectedEOF @@ -2032,7 +2032,7 @@ func (m *Match) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowBadgerpb3 + return ErrIntOverflowBadgerpb4 } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2046,11 +2046,11 @@ func (m *Match) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } if postIndex > l { return io.ErrUnexpectedEOF @@ -2059,12 +2059,12 @@ func (m *Match) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipBadgerpb3(dAtA[iNdEx:]) + skippy, err := skipBadgerpb4(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthBadgerpb3 + return ErrInvalidLengthBadgerpb4 } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2078,7 +2078,7 @@ func (m *Match) Unmarshal(dAtA []byte) error { } return nil } -func skipBadgerpb3(dAtA []byte) (n int, err error) { +func skipBadgerpb4(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -2086,7 +2086,7 @@ func skipBadgerpb3(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowBadgerpb3 + return 0, ErrIntOverflowBadgerpb4 } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2103,7 +2103,7 @@ func skipBadgerpb3(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowBadgerpb3 + return 0, ErrIntOverflowBadgerpb4 } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2119,7 +2119,7 @@ func skipBadgerpb3(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowBadgerpb3 + return 0, ErrIntOverflowBadgerpb4 } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2132,14 +2132,14 @@ func skipBadgerpb3(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthBadgerpb3 + return 0, ErrInvalidLengthBadgerpb4 } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupBadgerpb3 + return 0, ErrUnexpectedEndOfGroupBadgerpb4 } depth-- case 5: @@ -2148,7 +2148,7 @@ func skipBadgerpb3(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthBadgerpb3 + return 0, ErrInvalidLengthBadgerpb4 } if depth == 0 { return iNdEx, nil @@ -2158,7 +2158,7 @@ func skipBadgerpb3(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthBadgerpb3 = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowBadgerpb3 = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupBadgerpb3 = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthBadgerpb4 = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowBadgerpb4 = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupBadgerpb4 = fmt.Errorf("proto: unexpected end of group") ) diff --git a/pb/badgerpb3.proto b/pb/badgerpb4.proto similarity index 99% rename from pb/badgerpb3.proto rename to pb/badgerpb4.proto index 855ec6d61..079c1cfee 100644 --- a/pb/badgerpb3.proto +++ b/pb/badgerpb4.proto @@ -17,7 +17,7 @@ // Use protos/gen.sh to generate .pb.go files. syntax = "proto3"; -package badgerpb3; +package badgerpb4; option go_package = "github.com/dgraph-io/badger/v4/pb"; diff --git a/pb/gen.sh b/pb/gen.sh index 68679a268..864845bcf 100755 --- a/pb/gen.sh +++ b/pb/gen.sh @@ -1,7 +1,7 @@ #!/bin/bash -# Run this script from its directory, so that badgerpb2.proto is where it's expected to +# Run this script from its directory, so that badgerpb4.proto is where it's expected to # be. go install github.com/gogo/protobuf/protoc-gen-gogofaster@latest -protoc --gogofaster_out=. --gogofaster_opt=paths=source_relative -I=. badgerpb3.proto +protoc --gogofaster_out=. --gogofaster_opt=paths=source_relative -I=. badgerpb4.proto diff --git a/pb/protos_test.go b/pb/protos_test.go index 723c81e54..ebaa945d5 100644 --- a/pb/protos_test.go +++ b/pb/protos_test.go @@ -35,7 +35,7 @@ func TestProtosRegenerate(t *testing.T) { err := Exec("./gen.sh") require.NoError(t, err, "Got error while regenerating protos: %v\n", err) - generatedProtos := "badgerpb3.pb.go" + generatedProtos := "badgerpb4.pb.go" err = Exec("git", "diff", "--quiet", "--", generatedProtos) - require.NoError(t, err, "badgerpb3.pb.go changed after regenerating") + require.NoError(t, err, "badgerpb4.pb.go changed after regenerating") }