// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.9
// 	protoc        v6.31.1
// source: github.com/buildbarn/bb-storage/pkg/proto/blobstore/local/local.proto

package local

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 BlockLocation struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	OffsetBytes   int64                  `protobuf:"varint,1,opt,name=offset_bytes,json=offsetBytes,proto3" json:"offset_bytes,omitempty"`
	SizeBytes     int64                  `protobuf:"varint,2,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *BlockLocation) Reset() {
	*x = BlockLocation{}
	mi := &file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *BlockLocation) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*BlockLocation) ProtoMessage() {}

func (x *BlockLocation) ProtoReflect() protoreflect.Message {
	mi := &file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_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 BlockLocation.ProtoReflect.Descriptor instead.
func (*BlockLocation) Descriptor() ([]byte, []int) {
	return file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_rawDescGZIP(), []int{0}
}

func (x *BlockLocation) GetOffsetBytes() int64 {
	if x != nil {
		return x.OffsetBytes
	}
	return 0
}

func (x *BlockLocation) GetSizeBytes() int64 {
	if x != nil {
		return x.SizeBytes
	}
	return 0
}

type BlockState struct {
	state            protoimpl.MessageState `protogen:"open.v1"`
	WriteOffsetBytes int64                  `protobuf:"varint,2,opt,name=write_offset_bytes,json=writeOffsetBytes,proto3" json:"write_offset_bytes,omitempty"`
	EpochHashSeeds   []uint64               `protobuf:"varint,3,rep,packed,name=epoch_hash_seeds,json=epochHashSeeds,proto3" json:"epoch_hash_seeds,omitempty"`
	BlockLocation    *BlockLocation         `protobuf:"bytes,4,opt,name=block_location,json=blockLocation,proto3" json:"block_location,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

func (x *BlockState) Reset() {
	*x = BlockState{}
	mi := &file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *BlockState) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*BlockState) ProtoMessage() {}

func (x *BlockState) ProtoReflect() protoreflect.Message {
	mi := &file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_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 BlockState.ProtoReflect.Descriptor instead.
func (*BlockState) Descriptor() ([]byte, []int) {
	return file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_rawDescGZIP(), []int{1}
}

func (x *BlockState) GetWriteOffsetBytes() int64 {
	if x != nil {
		return x.WriteOffsetBytes
	}
	return 0
}

func (x *BlockState) GetEpochHashSeeds() []uint64 {
	if x != nil {
		return x.EpochHashSeeds
	}
	return nil
}

func (x *BlockState) GetBlockLocation() *BlockLocation {
	if x != nil {
		return x.BlockLocation
	}
	return nil
}

type PersistentState struct {
	state                            protoimpl.MessageState `protogen:"open.v1"`
	OldestEpochId                    uint32                 `protobuf:"varint,1,opt,name=oldest_epoch_id,json=oldestEpochId,proto3" json:"oldest_epoch_id,omitempty"`
	Blocks                           []*BlockState          `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"`
	KeyLocationMapHashInitialization uint64                 `protobuf:"varint,3,opt,name=key_location_map_hash_initialization,json=keyLocationMapHashInitialization,proto3" json:"key_location_map_hash_initialization,omitempty"`
	unknownFields                    protoimpl.UnknownFields
	sizeCache                        protoimpl.SizeCache
}

func (x *PersistentState) Reset() {
	*x = PersistentState{}
	mi := &file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *PersistentState) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*PersistentState) ProtoMessage() {}

func (x *PersistentState) ProtoReflect() protoreflect.Message {
	mi := &file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_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 PersistentState.ProtoReflect.Descriptor instead.
func (*PersistentState) Descriptor() ([]byte, []int) {
	return file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_rawDescGZIP(), []int{2}
}

func (x *PersistentState) GetOldestEpochId() uint32 {
	if x != nil {
		return x.OldestEpochId
	}
	return 0
}

func (x *PersistentState) GetBlocks() []*BlockState {
	if x != nil {
		return x.Blocks
	}
	return nil
}

func (x *PersistentState) GetKeyLocationMapHashInitialization() uint64 {
	if x != nil {
		return x.KeyLocationMapHashInitialization
	}
	return 0
}

var File_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto protoreflect.FileDescriptor

const file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_rawDesc = "" +
	"\n" +
	"Egithub.com/buildbarn/bb-storage/pkg/proto/blobstore/local/local.proto\x12\x19buildbarn.blobstore.local\"Q\n" +
	"\rBlockLocation\x12!\n" +
	"\foffset_bytes\x18\x01 \x01(\x03R\voffsetBytes\x12\x1d\n" +
	"\n" +
	"size_bytes\x18\x02 \x01(\x03R\tsizeBytes\"\xbb\x01\n" +
	"\n" +
	"BlockState\x12,\n" +
	"\x12write_offset_bytes\x18\x02 \x01(\x03R\x10writeOffsetBytes\x12(\n" +
	"\x10epoch_hash_seeds\x18\x03 \x03(\x04R\x0eepochHashSeeds\x12O\n" +
	"\x0eblock_location\x18\x04 \x01(\v2(.buildbarn.blobstore.local.BlockLocationR\rblockLocationJ\x04\b\x01\x10\x02\"\xc8\x01\n" +
	"\x0fPersistentState\x12&\n" +
	"\x0foldest_epoch_id\x18\x01 \x01(\rR\roldestEpochId\x12=\n" +
	"\x06blocks\x18\x02 \x03(\v2%.buildbarn.blobstore.local.BlockStateR\x06blocks\x12N\n" +
	"$key_location_map_hash_initialization\x18\x03 \x01(\x04R keyLocationMapHashInitializationB;Z9github.com/buildbarn/bb-storage/pkg/proto/blobstore/localb\x06proto3"

var (
	file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_rawDescOnce sync.Once
	file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_rawDescData []byte
)

func file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_rawDescGZIP() []byte {
	file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_rawDescOnce.Do(func() {
		file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_rawDesc), len(file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_rawDesc)))
	})
	return file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_rawDescData
}

var file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_goTypes = []any{
	(*BlockLocation)(nil),   // 0: buildbarn.blobstore.local.BlockLocation
	(*BlockState)(nil),      // 1: buildbarn.blobstore.local.BlockState
	(*PersistentState)(nil), // 2: buildbarn.blobstore.local.PersistentState
}
var file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_depIdxs = []int32{
	0, // 0: buildbarn.blobstore.local.BlockState.block_location:type_name -> buildbarn.blobstore.local.BlockLocation
	1, // 1: buildbarn.blobstore.local.PersistentState.blocks:type_name -> buildbarn.blobstore.local.BlockState
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_init() }
func file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_init() {
	if File_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_rawDesc), len(file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_goTypes,
		DependencyIndexes: file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_depIdxs,
		MessageInfos:      file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_msgTypes,
	}.Build()
	File_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto = out.File
	file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_goTypes = nil
	file_github_com_buildbarn_bb_storage_pkg_proto_blobstore_local_local_proto_depIdxs = nil
}
