badgerpb4.pb.go raw

   1  //
   2  // SPDX-FileCopyrightText: © Hypermode Inc. <hello@hypermode.com>
   3  // SPDX-License-Identifier: Apache-2.0
   4  
   5  // Use protos/gen.sh to generate .pb.go files.
   6  
   7  // Code generated by protoc-gen-go. DO NOT EDIT.
   8  // versions:
   9  // 	protoc-gen-go v1.31.0
  10  // 	protoc        v3.21.12
  11  // source: badgerpb4.proto
  12  
  13  package pb
  14  
  15  import (
  16  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  17  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  18  	reflect "reflect"
  19  	sync "sync"
  20  )
  21  
  22  const (
  23  	// Verify that this generated code is sufficiently up-to-date.
  24  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  25  	// Verify that runtime/protoimpl is sufficiently up-to-date.
  26  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  27  )
  28  
  29  type EncryptionAlgo int32
  30  
  31  const (
  32  	EncryptionAlgo_aes EncryptionAlgo = 0
  33  )
  34  
  35  // Enum value maps for EncryptionAlgo.
  36  var (
  37  	EncryptionAlgo_name = map[int32]string{
  38  		0: "aes",
  39  	}
  40  	EncryptionAlgo_value = map[string]int32{
  41  		"aes": 0,
  42  	}
  43  )
  44  
  45  func (x EncryptionAlgo) Enum() *EncryptionAlgo {
  46  	p := new(EncryptionAlgo)
  47  	*p = x
  48  	return p
  49  }
  50  
  51  func (x EncryptionAlgo) String() string {
  52  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  53  }
  54  
  55  func (EncryptionAlgo) Descriptor() protoreflect.EnumDescriptor {
  56  	return file_badgerpb4_proto_enumTypes[0].Descriptor()
  57  }
  58  
  59  func (EncryptionAlgo) Type() protoreflect.EnumType {
  60  	return &file_badgerpb4_proto_enumTypes[0]
  61  }
  62  
  63  func (x EncryptionAlgo) Number() protoreflect.EnumNumber {
  64  	return protoreflect.EnumNumber(x)
  65  }
  66  
  67  // Deprecated: Use EncryptionAlgo.Descriptor instead.
  68  func (EncryptionAlgo) EnumDescriptor() ([]byte, []int) {
  69  	return file_badgerpb4_proto_rawDescGZIP(), []int{0}
  70  }
  71  
  72  type ManifestChange_Operation int32
  73  
  74  const (
  75  	ManifestChange_CREATE ManifestChange_Operation = 0
  76  	ManifestChange_DELETE ManifestChange_Operation = 1
  77  )
  78  
  79  // Enum value maps for ManifestChange_Operation.
  80  var (
  81  	ManifestChange_Operation_name = map[int32]string{
  82  		0: "CREATE",
  83  		1: "DELETE",
  84  	}
  85  	ManifestChange_Operation_value = map[string]int32{
  86  		"CREATE": 0,
  87  		"DELETE": 1,
  88  	}
  89  )
  90  
  91  func (x ManifestChange_Operation) Enum() *ManifestChange_Operation {
  92  	p := new(ManifestChange_Operation)
  93  	*p = x
  94  	return p
  95  }
  96  
  97  func (x ManifestChange_Operation) String() string {
  98  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  99  }
 100  
 101  func (ManifestChange_Operation) Descriptor() protoreflect.EnumDescriptor {
 102  	return file_badgerpb4_proto_enumTypes[1].Descriptor()
 103  }
 104  
 105  func (ManifestChange_Operation) Type() protoreflect.EnumType {
 106  	return &file_badgerpb4_proto_enumTypes[1]
 107  }
 108  
 109  func (x ManifestChange_Operation) Number() protoreflect.EnumNumber {
 110  	return protoreflect.EnumNumber(x)
 111  }
 112  
 113  // Deprecated: Use ManifestChange_Operation.Descriptor instead.
 114  func (ManifestChange_Operation) EnumDescriptor() ([]byte, []int) {
 115  	return file_badgerpb4_proto_rawDescGZIP(), []int{3, 0}
 116  }
 117  
 118  type Checksum_Algorithm int32
 119  
 120  const (
 121  	Checksum_CRC32C   Checksum_Algorithm = 0
 122  	Checksum_XXHash64 Checksum_Algorithm = 1
 123  )
 124  
 125  // Enum value maps for Checksum_Algorithm.
 126  var (
 127  	Checksum_Algorithm_name = map[int32]string{
 128  		0: "CRC32C",
 129  		1: "XXHash64",
 130  	}
 131  	Checksum_Algorithm_value = map[string]int32{
 132  		"CRC32C":   0,
 133  		"XXHash64": 1,
 134  	}
 135  )
 136  
 137  func (x Checksum_Algorithm) Enum() *Checksum_Algorithm {
 138  	p := new(Checksum_Algorithm)
 139  	*p = x
 140  	return p
 141  }
 142  
 143  func (x Checksum_Algorithm) String() string {
 144  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
 145  }
 146  
 147  func (Checksum_Algorithm) Descriptor() protoreflect.EnumDescriptor {
 148  	return file_badgerpb4_proto_enumTypes[2].Descriptor()
 149  }
 150  
 151  func (Checksum_Algorithm) Type() protoreflect.EnumType {
 152  	return &file_badgerpb4_proto_enumTypes[2]
 153  }
 154  
 155  func (x Checksum_Algorithm) Number() protoreflect.EnumNumber {
 156  	return protoreflect.EnumNumber(x)
 157  }
 158  
 159  // Deprecated: Use Checksum_Algorithm.Descriptor instead.
 160  func (Checksum_Algorithm) EnumDescriptor() ([]byte, []int) {
 161  	return file_badgerpb4_proto_rawDescGZIP(), []int{4, 0}
 162  }
 163  
 164  type KV struct {
 165  	state         protoimpl.MessageState
 166  	sizeCache     protoimpl.SizeCache
 167  	unknownFields protoimpl.UnknownFields
 168  
 169  	Key       []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
 170  	Value     []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
 171  	UserMeta  []byte `protobuf:"bytes,3,opt,name=user_meta,json=userMeta,proto3" json:"user_meta,omitempty"`
 172  	Version   uint64 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
 173  	ExpiresAt uint64 `protobuf:"varint,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
 174  	Meta      []byte `protobuf:"bytes,6,opt,name=meta,proto3" json:"meta,omitempty"`
 175  	// Stream id is used to identify which stream the KV came from.
 176  	StreamId uint32 `protobuf:"varint,10,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
 177  	// Stream done is used to indicate end of stream.
 178  	StreamDone bool `protobuf:"varint,11,opt,name=stream_done,json=streamDone,proto3" json:"stream_done,omitempty"`
 179  }
 180  
 181  func (x *KV) Reset() {
 182  	*x = KV{}
 183  	if protoimpl.UnsafeEnabled {
 184  		mi := &file_badgerpb4_proto_msgTypes[0]
 185  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 186  		ms.StoreMessageInfo(mi)
 187  	}
 188  }
 189  
 190  func (x *KV) String() string {
 191  	return protoimpl.X.MessageStringOf(x)
 192  }
 193  
 194  func (*KV) ProtoMessage() {}
 195  
 196  func (x *KV) ProtoReflect() protoreflect.Message {
 197  	mi := &file_badgerpb4_proto_msgTypes[0]
 198  	if protoimpl.UnsafeEnabled && x != nil {
 199  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 200  		if ms.LoadMessageInfo() == nil {
 201  			ms.StoreMessageInfo(mi)
 202  		}
 203  		return ms
 204  	}
 205  	return mi.MessageOf(x)
 206  }
 207  
 208  // Deprecated: Use KV.ProtoReflect.Descriptor instead.
 209  func (*KV) Descriptor() ([]byte, []int) {
 210  	return file_badgerpb4_proto_rawDescGZIP(), []int{0}
 211  }
 212  
 213  func (x *KV) GetKey() []byte {
 214  	if x != nil {
 215  		return x.Key
 216  	}
 217  	return nil
 218  }
 219  
 220  func (x *KV) GetValue() []byte {
 221  	if x != nil {
 222  		return x.Value
 223  	}
 224  	return nil
 225  }
 226  
 227  func (x *KV) GetUserMeta() []byte {
 228  	if x != nil {
 229  		return x.UserMeta
 230  	}
 231  	return nil
 232  }
 233  
 234  func (x *KV) GetVersion() uint64 {
 235  	if x != nil {
 236  		return x.Version
 237  	}
 238  	return 0
 239  }
 240  
 241  func (x *KV) GetExpiresAt() uint64 {
 242  	if x != nil {
 243  		return x.ExpiresAt
 244  	}
 245  	return 0
 246  }
 247  
 248  func (x *KV) GetMeta() []byte {
 249  	if x != nil {
 250  		return x.Meta
 251  	}
 252  	return nil
 253  }
 254  
 255  func (x *KV) GetStreamId() uint32 {
 256  	if x != nil {
 257  		return x.StreamId
 258  	}
 259  	return 0
 260  }
 261  
 262  func (x *KV) GetStreamDone() bool {
 263  	if x != nil {
 264  		return x.StreamDone
 265  	}
 266  	return false
 267  }
 268  
 269  type KVList struct {
 270  	state         protoimpl.MessageState
 271  	sizeCache     protoimpl.SizeCache
 272  	unknownFields protoimpl.UnknownFields
 273  
 274  	Kv []*KV `protobuf:"bytes,1,rep,name=kv,proto3" json:"kv,omitempty"`
 275  	// alloc_ref used internally for memory management.
 276  	AllocRef uint64 `protobuf:"varint,10,opt,name=alloc_ref,json=allocRef,proto3" json:"alloc_ref,omitempty"`
 277  }
 278  
 279  func (x *KVList) Reset() {
 280  	*x = KVList{}
 281  	if protoimpl.UnsafeEnabled {
 282  		mi := &file_badgerpb4_proto_msgTypes[1]
 283  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 284  		ms.StoreMessageInfo(mi)
 285  	}
 286  }
 287  
 288  func (x *KVList) String() string {
 289  	return protoimpl.X.MessageStringOf(x)
 290  }
 291  
 292  func (*KVList) ProtoMessage() {}
 293  
 294  func (x *KVList) ProtoReflect() protoreflect.Message {
 295  	mi := &file_badgerpb4_proto_msgTypes[1]
 296  	if protoimpl.UnsafeEnabled && x != nil {
 297  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 298  		if ms.LoadMessageInfo() == nil {
 299  			ms.StoreMessageInfo(mi)
 300  		}
 301  		return ms
 302  	}
 303  	return mi.MessageOf(x)
 304  }
 305  
 306  // Deprecated: Use KVList.ProtoReflect.Descriptor instead.
 307  func (*KVList) Descriptor() ([]byte, []int) {
 308  	return file_badgerpb4_proto_rawDescGZIP(), []int{1}
 309  }
 310  
 311  func (x *KVList) GetKv() []*KV {
 312  	if x != nil {
 313  		return x.Kv
 314  	}
 315  	return nil
 316  }
 317  
 318  func (x *KVList) GetAllocRef() uint64 {
 319  	if x != nil {
 320  		return x.AllocRef
 321  	}
 322  	return 0
 323  }
 324  
 325  type ManifestChangeSet struct {
 326  	state         protoimpl.MessageState
 327  	sizeCache     protoimpl.SizeCache
 328  	unknownFields protoimpl.UnknownFields
 329  
 330  	// A set of changes that are applied atomically.
 331  	Changes []*ManifestChange `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"`
 332  }
 333  
 334  func (x *ManifestChangeSet) Reset() {
 335  	*x = ManifestChangeSet{}
 336  	if protoimpl.UnsafeEnabled {
 337  		mi := &file_badgerpb4_proto_msgTypes[2]
 338  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 339  		ms.StoreMessageInfo(mi)
 340  	}
 341  }
 342  
 343  func (x *ManifestChangeSet) String() string {
 344  	return protoimpl.X.MessageStringOf(x)
 345  }
 346  
 347  func (*ManifestChangeSet) ProtoMessage() {}
 348  
 349  func (x *ManifestChangeSet) ProtoReflect() protoreflect.Message {
 350  	mi := &file_badgerpb4_proto_msgTypes[2]
 351  	if protoimpl.UnsafeEnabled && x != nil {
 352  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 353  		if ms.LoadMessageInfo() == nil {
 354  			ms.StoreMessageInfo(mi)
 355  		}
 356  		return ms
 357  	}
 358  	return mi.MessageOf(x)
 359  }
 360  
 361  // Deprecated: Use ManifestChangeSet.ProtoReflect.Descriptor instead.
 362  func (*ManifestChangeSet) Descriptor() ([]byte, []int) {
 363  	return file_badgerpb4_proto_rawDescGZIP(), []int{2}
 364  }
 365  
 366  func (x *ManifestChangeSet) GetChanges() []*ManifestChange {
 367  	if x != nil {
 368  		return x.Changes
 369  	}
 370  	return nil
 371  }
 372  
 373  type ManifestChange struct {
 374  	state         protoimpl.MessageState
 375  	sizeCache     protoimpl.SizeCache
 376  	unknownFields protoimpl.UnknownFields
 377  
 378  	Id             uint64                   `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` // Table ID.
 379  	Op             ManifestChange_Operation `protobuf:"varint,2,opt,name=Op,proto3,enum=badgerpb4.ManifestChange_Operation" json:"Op,omitempty"`
 380  	Level          uint32                   `protobuf:"varint,3,opt,name=Level,proto3" json:"Level,omitempty"` // Only used for CREATE.
 381  	KeyId          uint64                   `protobuf:"varint,4,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
 382  	EncryptionAlgo EncryptionAlgo           `protobuf:"varint,5,opt,name=encryption_algo,json=encryptionAlgo,proto3,enum=badgerpb4.EncryptionAlgo" json:"encryption_algo,omitempty"`
 383  	Compression    uint32                   `protobuf:"varint,6,opt,name=compression,proto3" json:"compression,omitempty"` // Only used for CREATE Op.
 384  }
 385  
 386  func (x *ManifestChange) Reset() {
 387  	*x = ManifestChange{}
 388  	if protoimpl.UnsafeEnabled {
 389  		mi := &file_badgerpb4_proto_msgTypes[3]
 390  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 391  		ms.StoreMessageInfo(mi)
 392  	}
 393  }
 394  
 395  func (x *ManifestChange) String() string {
 396  	return protoimpl.X.MessageStringOf(x)
 397  }
 398  
 399  func (*ManifestChange) ProtoMessage() {}
 400  
 401  func (x *ManifestChange) ProtoReflect() protoreflect.Message {
 402  	mi := &file_badgerpb4_proto_msgTypes[3]
 403  	if protoimpl.UnsafeEnabled && x != nil {
 404  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 405  		if ms.LoadMessageInfo() == nil {
 406  			ms.StoreMessageInfo(mi)
 407  		}
 408  		return ms
 409  	}
 410  	return mi.MessageOf(x)
 411  }
 412  
 413  // Deprecated: Use ManifestChange.ProtoReflect.Descriptor instead.
 414  func (*ManifestChange) Descriptor() ([]byte, []int) {
 415  	return file_badgerpb4_proto_rawDescGZIP(), []int{3}
 416  }
 417  
 418  func (x *ManifestChange) GetId() uint64 {
 419  	if x != nil {
 420  		return x.Id
 421  	}
 422  	return 0
 423  }
 424  
 425  func (x *ManifestChange) GetOp() ManifestChange_Operation {
 426  	if x != nil {
 427  		return x.Op
 428  	}
 429  	return ManifestChange_CREATE
 430  }
 431  
 432  func (x *ManifestChange) GetLevel() uint32 {
 433  	if x != nil {
 434  		return x.Level
 435  	}
 436  	return 0
 437  }
 438  
 439  func (x *ManifestChange) GetKeyId() uint64 {
 440  	if x != nil {
 441  		return x.KeyId
 442  	}
 443  	return 0
 444  }
 445  
 446  func (x *ManifestChange) GetEncryptionAlgo() EncryptionAlgo {
 447  	if x != nil {
 448  		return x.EncryptionAlgo
 449  	}
 450  	return EncryptionAlgo_aes
 451  }
 452  
 453  func (x *ManifestChange) GetCompression() uint32 {
 454  	if x != nil {
 455  		return x.Compression
 456  	}
 457  	return 0
 458  }
 459  
 460  type Checksum struct {
 461  	state         protoimpl.MessageState
 462  	sizeCache     protoimpl.SizeCache
 463  	unknownFields protoimpl.UnknownFields
 464  
 465  	Algo Checksum_Algorithm `protobuf:"varint,1,opt,name=algo,proto3,enum=badgerpb4.Checksum_Algorithm" json:"algo,omitempty"` // For storing type of Checksum algorithm used
 466  	Sum  uint64             `protobuf:"varint,2,opt,name=sum,proto3" json:"sum,omitempty"`
 467  }
 468  
 469  func (x *Checksum) Reset() {
 470  	*x = Checksum{}
 471  	if protoimpl.UnsafeEnabled {
 472  		mi := &file_badgerpb4_proto_msgTypes[4]
 473  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 474  		ms.StoreMessageInfo(mi)
 475  	}
 476  }
 477  
 478  func (x *Checksum) String() string {
 479  	return protoimpl.X.MessageStringOf(x)
 480  }
 481  
 482  func (*Checksum) ProtoMessage() {}
 483  
 484  func (x *Checksum) ProtoReflect() protoreflect.Message {
 485  	mi := &file_badgerpb4_proto_msgTypes[4]
 486  	if protoimpl.UnsafeEnabled && x != nil {
 487  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 488  		if ms.LoadMessageInfo() == nil {
 489  			ms.StoreMessageInfo(mi)
 490  		}
 491  		return ms
 492  	}
 493  	return mi.MessageOf(x)
 494  }
 495  
 496  // Deprecated: Use Checksum.ProtoReflect.Descriptor instead.
 497  func (*Checksum) Descriptor() ([]byte, []int) {
 498  	return file_badgerpb4_proto_rawDescGZIP(), []int{4}
 499  }
 500  
 501  func (x *Checksum) GetAlgo() Checksum_Algorithm {
 502  	if x != nil {
 503  		return x.Algo
 504  	}
 505  	return Checksum_CRC32C
 506  }
 507  
 508  func (x *Checksum) GetSum() uint64 {
 509  	if x != nil {
 510  		return x.Sum
 511  	}
 512  	return 0
 513  }
 514  
 515  type DataKey struct {
 516  	state         protoimpl.MessageState
 517  	sizeCache     protoimpl.SizeCache
 518  	unknownFields protoimpl.UnknownFields
 519  
 520  	KeyId     uint64 `protobuf:"varint,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
 521  	Data      []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
 522  	Iv        []byte `protobuf:"bytes,3,opt,name=iv,proto3" json:"iv,omitempty"`
 523  	CreatedAt int64  `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
 524  }
 525  
 526  func (x *DataKey) Reset() {
 527  	*x = DataKey{}
 528  	if protoimpl.UnsafeEnabled {
 529  		mi := &file_badgerpb4_proto_msgTypes[5]
 530  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 531  		ms.StoreMessageInfo(mi)
 532  	}
 533  }
 534  
 535  func (x *DataKey) String() string {
 536  	return protoimpl.X.MessageStringOf(x)
 537  }
 538  
 539  func (*DataKey) ProtoMessage() {}
 540  
 541  func (x *DataKey) ProtoReflect() protoreflect.Message {
 542  	mi := &file_badgerpb4_proto_msgTypes[5]
 543  	if protoimpl.UnsafeEnabled && x != nil {
 544  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 545  		if ms.LoadMessageInfo() == nil {
 546  			ms.StoreMessageInfo(mi)
 547  		}
 548  		return ms
 549  	}
 550  	return mi.MessageOf(x)
 551  }
 552  
 553  // Deprecated: Use DataKey.ProtoReflect.Descriptor instead.
 554  func (*DataKey) Descriptor() ([]byte, []int) {
 555  	return file_badgerpb4_proto_rawDescGZIP(), []int{5}
 556  }
 557  
 558  func (x *DataKey) GetKeyId() uint64 {
 559  	if x != nil {
 560  		return x.KeyId
 561  	}
 562  	return 0
 563  }
 564  
 565  func (x *DataKey) GetData() []byte {
 566  	if x != nil {
 567  		return x.Data
 568  	}
 569  	return nil
 570  }
 571  
 572  func (x *DataKey) GetIv() []byte {
 573  	if x != nil {
 574  		return x.Iv
 575  	}
 576  	return nil
 577  }
 578  
 579  func (x *DataKey) GetCreatedAt() int64 {
 580  	if x != nil {
 581  		return x.CreatedAt
 582  	}
 583  	return 0
 584  }
 585  
 586  type Match struct {
 587  	state         protoimpl.MessageState
 588  	sizeCache     protoimpl.SizeCache
 589  	unknownFields protoimpl.UnknownFields
 590  
 591  	Prefix      []byte `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
 592  	IgnoreBytes string `protobuf:"bytes,2,opt,name=ignore_bytes,json=ignoreBytes,proto3" json:"ignore_bytes,omitempty"` // Comma separated with dash to represent ranges "1, 2-3, 4-7, 9"
 593  }
 594  
 595  func (x *Match) Reset() {
 596  	*x = Match{}
 597  	if protoimpl.UnsafeEnabled {
 598  		mi := &file_badgerpb4_proto_msgTypes[6]
 599  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 600  		ms.StoreMessageInfo(mi)
 601  	}
 602  }
 603  
 604  func (x *Match) String() string {
 605  	return protoimpl.X.MessageStringOf(x)
 606  }
 607  
 608  func (*Match) ProtoMessage() {}
 609  
 610  func (x *Match) ProtoReflect() protoreflect.Message {
 611  	mi := &file_badgerpb4_proto_msgTypes[6]
 612  	if protoimpl.UnsafeEnabled && x != nil {
 613  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 614  		if ms.LoadMessageInfo() == nil {
 615  			ms.StoreMessageInfo(mi)
 616  		}
 617  		return ms
 618  	}
 619  	return mi.MessageOf(x)
 620  }
 621  
 622  // Deprecated: Use Match.ProtoReflect.Descriptor instead.
 623  func (*Match) Descriptor() ([]byte, []int) {
 624  	return file_badgerpb4_proto_rawDescGZIP(), []int{6}
 625  }
 626  
 627  func (x *Match) GetPrefix() []byte {
 628  	if x != nil {
 629  		return x.Prefix
 630  	}
 631  	return nil
 632  }
 633  
 634  func (x *Match) GetIgnoreBytes() string {
 635  	if x != nil {
 636  		return x.IgnoreBytes
 637  	}
 638  	return ""
 639  }
 640  
 641  var File_badgerpb4_proto protoreflect.FileDescriptor
 642  
 643  var file_badgerpb4_proto_rawDesc = []byte{
 644  	0x0a, 0x0f, 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x70, 0x62, 0x34, 0x2e, 0x70, 0x72, 0x6f, 0x74,
 645  	0x6f, 0x12, 0x09, 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x70, 0x62, 0x34, 0x22, 0xd4, 0x01, 0x0a,
 646  	0x02, 0x4b, 0x56, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
 647  	0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
 648  	0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x75,
 649  	0x73, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08,
 650  	0x75, 0x73, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73,
 651  	0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
 652  	0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74,
 653  	0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41,
 654  	0x74, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52,
 655  	0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f,
 656  	0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d,
 657  	0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x64, 0x6f, 0x6e,
 658  	0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x44,
 659  	0x6f, 0x6e, 0x65, 0x22, 0x44, 0x0a, 0x06, 0x4b, 0x56, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a,
 660  	0x02, 0x6b, 0x76, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x62, 0x61, 0x64, 0x67,
 661  	0x65, 0x72, 0x70, 0x62, 0x34, 0x2e, 0x4b, 0x56, 0x52, 0x02, 0x6b, 0x76, 0x12, 0x1b, 0x0a, 0x09,
 662  	0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x04, 0x52,
 663  	0x08, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x52, 0x65, 0x66, 0x22, 0x48, 0x0a, 0x11, 0x4d, 0x61, 0x6e,
 664  	0x69, 0x66, 0x65, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x53, 0x65, 0x74, 0x12, 0x33,
 665  	0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
 666  	0x19, 0x2e, 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x70, 0x62, 0x34, 0x2e, 0x4d, 0x61, 0x6e, 0x69,
 667  	0x66, 0x65, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e,
 668  	0x67, 0x65, 0x73, 0x22, 0x8d, 0x02, 0x0a, 0x0e, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74,
 669  	0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
 670  	0x28, 0x04, 0x52, 0x02, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x02, 0x4f, 0x70, 0x18, 0x02, 0x20, 0x01,
 671  	0x28, 0x0e, 0x32, 0x23, 0x2e, 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x70, 0x62, 0x34, 0x2e, 0x4d,
 672  	0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x4f, 0x70,
 673  	0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x02, 0x4f, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x4c,
 674  	0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x4c, 0x65, 0x76, 0x65,
 675  	0x6c, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
 676  	0x04, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x72,
 677  	0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28,
 678  	0x0e, 0x32, 0x19, 0x2e, 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x70, 0x62, 0x34, 0x2e, 0x45, 0x6e,
 679  	0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x67, 0x6f, 0x52, 0x0e, 0x65, 0x6e,
 680  	0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x6c, 0x67, 0x6f, 0x12, 0x20, 0x0a, 0x0b,
 681  	0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28,
 682  	0x0d, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x23,
 683  	0x0a, 0x09, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0a, 0x0a, 0x06, 0x43,
 684  	0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54,
 685  	0x45, 0x10, 0x01, 0x22, 0x76, 0x0a, 0x08, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x12,
 686  	0x31, 0x0a, 0x04, 0x61, 0x6c, 0x67, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e,
 687  	0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x70, 0x62, 0x34, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73,
 688  	0x75, 0x6d, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x52, 0x04, 0x61, 0x6c,
 689  	0x67, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52,
 690  	0x03, 0x73, 0x75, 0x6d, 0x22, 0x25, 0x0a, 0x09, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68,
 691  	0x6d, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x52, 0x43, 0x33, 0x32, 0x43, 0x10, 0x00, 0x12, 0x0c, 0x0a,
 692  	0x08, 0x58, 0x58, 0x48, 0x61, 0x73, 0x68, 0x36, 0x34, 0x10, 0x01, 0x22, 0x63, 0x0a, 0x07, 0x44,
 693  	0x61, 0x74, 0x61, 0x4b, 0x65, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64,
 694  	0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x12, 0x0a,
 695  	0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74,
 696  	0x61, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x76, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69,
 697  	0x76, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18,
 698  	0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74,
 699  	0x22, 0x42, 0x0a, 0x05, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x72, 0x65,
 700  	0x66, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69,
 701  	0x78, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65,
 702  	0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x42,
 703  	0x79, 0x74, 0x65, 0x73, 0x2a, 0x19, 0x0a, 0x0e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69,
 704  	0x6f, 0x6e, 0x41, 0x6c, 0x67, 0x6f, 0x12, 0x07, 0x0a, 0x03, 0x61, 0x65, 0x73, 0x10, 0x00, 0x42,
 705  	0x23, 0x5a, 0x21, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x67,
 706  	0x72, 0x61, 0x70, 0x68, 0x2d, 0x69, 0x6f, 0x2f, 0x62, 0x61, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x76,
 707  	0x34, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 708  }
 709  
 710  var (
 711  	file_badgerpb4_proto_rawDescOnce sync.Once
 712  	file_badgerpb4_proto_rawDescData = file_badgerpb4_proto_rawDesc
 713  )
 714  
 715  func file_badgerpb4_proto_rawDescGZIP() []byte {
 716  	file_badgerpb4_proto_rawDescOnce.Do(func() {
 717  		file_badgerpb4_proto_rawDescData = protoimpl.X.CompressGZIP(file_badgerpb4_proto_rawDescData)
 718  	})
 719  	return file_badgerpb4_proto_rawDescData
 720  }
 721  
 722  var file_badgerpb4_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
 723  var file_badgerpb4_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
 724  var file_badgerpb4_proto_goTypes = []interface{}{
 725  	(EncryptionAlgo)(0),           // 0: badgerpb4.EncryptionAlgo
 726  	(ManifestChange_Operation)(0), // 1: badgerpb4.ManifestChange.Operation
 727  	(Checksum_Algorithm)(0),       // 2: badgerpb4.Checksum.Algorithm
 728  	(*KV)(nil),                    // 3: badgerpb4.KV
 729  	(*KVList)(nil),                // 4: badgerpb4.KVList
 730  	(*ManifestChangeSet)(nil),     // 5: badgerpb4.ManifestChangeSet
 731  	(*ManifestChange)(nil),        // 6: badgerpb4.ManifestChange
 732  	(*Checksum)(nil),              // 7: badgerpb4.Checksum
 733  	(*DataKey)(nil),               // 8: badgerpb4.DataKey
 734  	(*Match)(nil),                 // 9: badgerpb4.Match
 735  }
 736  var file_badgerpb4_proto_depIdxs = []int32{
 737  	3, // 0: badgerpb4.KVList.kv:type_name -> badgerpb4.KV
 738  	6, // 1: badgerpb4.ManifestChangeSet.changes:type_name -> badgerpb4.ManifestChange
 739  	1, // 2: badgerpb4.ManifestChange.Op:type_name -> badgerpb4.ManifestChange.Operation
 740  	0, // 3: badgerpb4.ManifestChange.encryption_algo:type_name -> badgerpb4.EncryptionAlgo
 741  	2, // 4: badgerpb4.Checksum.algo:type_name -> badgerpb4.Checksum.Algorithm
 742  	5, // [5:5] is the sub-list for method output_type
 743  	5, // [5:5] is the sub-list for method input_type
 744  	5, // [5:5] is the sub-list for extension type_name
 745  	5, // [5:5] is the sub-list for extension extendee
 746  	0, // [0:5] is the sub-list for field type_name
 747  }
 748  
 749  func init() { file_badgerpb4_proto_init() }
 750  func file_badgerpb4_proto_init() {
 751  	if File_badgerpb4_proto != nil {
 752  		return
 753  	}
 754  	if !protoimpl.UnsafeEnabled {
 755  		file_badgerpb4_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
 756  			switch v := v.(*KV); i {
 757  			case 0:
 758  				return &v.state
 759  			case 1:
 760  				return &v.sizeCache
 761  			case 2:
 762  				return &v.unknownFields
 763  			default:
 764  				return nil
 765  			}
 766  		}
 767  		file_badgerpb4_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
 768  			switch v := v.(*KVList); i {
 769  			case 0:
 770  				return &v.state
 771  			case 1:
 772  				return &v.sizeCache
 773  			case 2:
 774  				return &v.unknownFields
 775  			default:
 776  				return nil
 777  			}
 778  		}
 779  		file_badgerpb4_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
 780  			switch v := v.(*ManifestChangeSet); i {
 781  			case 0:
 782  				return &v.state
 783  			case 1:
 784  				return &v.sizeCache
 785  			case 2:
 786  				return &v.unknownFields
 787  			default:
 788  				return nil
 789  			}
 790  		}
 791  		file_badgerpb4_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
 792  			switch v := v.(*ManifestChange); i {
 793  			case 0:
 794  				return &v.state
 795  			case 1:
 796  				return &v.sizeCache
 797  			case 2:
 798  				return &v.unknownFields
 799  			default:
 800  				return nil
 801  			}
 802  		}
 803  		file_badgerpb4_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
 804  			switch v := v.(*Checksum); i {
 805  			case 0:
 806  				return &v.state
 807  			case 1:
 808  				return &v.sizeCache
 809  			case 2:
 810  				return &v.unknownFields
 811  			default:
 812  				return nil
 813  			}
 814  		}
 815  		file_badgerpb4_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
 816  			switch v := v.(*DataKey); i {
 817  			case 0:
 818  				return &v.state
 819  			case 1:
 820  				return &v.sizeCache
 821  			case 2:
 822  				return &v.unknownFields
 823  			default:
 824  				return nil
 825  			}
 826  		}
 827  		file_badgerpb4_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
 828  			switch v := v.(*Match); i {
 829  			case 0:
 830  				return &v.state
 831  			case 1:
 832  				return &v.sizeCache
 833  			case 2:
 834  				return &v.unknownFields
 835  			default:
 836  				return nil
 837  			}
 838  		}
 839  	}
 840  	type x struct{}
 841  	out := protoimpl.TypeBuilder{
 842  		File: protoimpl.DescBuilder{
 843  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 844  			RawDescriptor: file_badgerpb4_proto_rawDesc,
 845  			NumEnums:      3,
 846  			NumMessages:   7,
 847  			NumExtensions: 0,
 848  			NumServices:   0,
 849  		},
 850  		GoTypes:           file_badgerpb4_proto_goTypes,
 851  		DependencyIndexes: file_badgerpb4_proto_depIdxs,
 852  		EnumInfos:         file_badgerpb4_proto_enumTypes,
 853  		MessageInfos:      file_badgerpb4_proto_msgTypes,
 854  	}.Build()
 855  	File_badgerpb4_proto = out.File
 856  	file_badgerpb4_proto_rawDesc = nil
 857  	file_badgerpb4_proto_goTypes = nil
 858  	file_badgerpb4_proto_depIdxs = nil
 859  }
 860