// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v6.31.1
// source: bonanza.build/pkg/proto/configuration/model/parser/parser.proto

package parser

import (
	eviction "github.com/buildbarn/bb-storage/pkg/proto/configuration/eviction"
	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 ParsedObjectPool struct {
	state                  protoimpl.MessageState          `protogen:"open.v1"`
	CacheReplacementPolicy eviction.CacheReplacementPolicy `protobuf:"varint,1,opt,name=cache_replacement_policy,json=cacheReplacementPolicy,proto3,enum=buildbarn.configuration.eviction.CacheReplacementPolicy" json:"cache_replacement_policy,omitempty"`
	Count                  int64                           `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	SizeBytes              int64                           `protobuf:"varint,3,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
	unknownFields          protoimpl.UnknownFields
	sizeCache              protoimpl.SizeCache
}

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

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

func (*ParsedObjectPool) ProtoMessage() {}

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

func (x *ParsedObjectPool) GetCacheReplacementPolicy() eviction.CacheReplacementPolicy {
	if x != nil {
		return x.CacheReplacementPolicy
	}
	return eviction.CacheReplacementPolicy(0)
}

func (x *ParsedObjectPool) GetCount() int64 {
	if x != nil {
		return x.Count
	}
	return 0
}

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

var File_bonanza_build_pkg_proto_configuration_model_parser_parser_proto protoreflect.FileDescriptor

const file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_rawDesc = "" +
	"\n" +
	"?bonanza.build/pkg/proto/configuration/model/parser/parser.proto\x12\"bonanza.configuration.model.parser\x1aOgithub.com/buildbarn/bb-storage/pkg/proto/configuration/eviction/eviction.proto\"\xbb\x01\n" +
	"\x10ParsedObjectPool\x12r\n" +
	"\x18cache_replacement_policy\x18\x01 \x01(\x0e28.buildbarn.configuration.eviction.CacheReplacementPolicyR\x16cacheReplacementPolicy\x12\x14\n" +
	"\x05count\x18\x02 \x01(\x03R\x05count\x12\x1d\n" +
	"\n" +
	"size_bytes\x18\x03 \x01(\x03R\tsizeBytesb\x06proto3"

var (
	file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_rawDescOnce sync.Once
	file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_rawDescData []byte
)

func file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_rawDescGZIP() []byte {
	file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_rawDescOnce.Do(func() {
		file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_rawDesc), len(file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_rawDesc)))
	})
	return file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_rawDescData
}

var file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_goTypes = []any{
	(*ParsedObjectPool)(nil),             // 0: bonanza.configuration.model.parser.ParsedObjectPool
	(eviction.CacheReplacementPolicy)(0), // 1: buildbarn.configuration.eviction.CacheReplacementPolicy
}
var file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_depIdxs = []int32{
	1, // 0: bonanza.configuration.model.parser.ParsedObjectPool.cache_replacement_policy:type_name -> buildbarn.configuration.eviction.CacheReplacementPolicy
	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_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_init() }
func file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_init() {
	if File_bonanza_build_pkg_proto_configuration_model_parser_parser_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_rawDesc), len(file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_goTypes,
		DependencyIndexes: file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_depIdxs,
		MessageInfos:      file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_msgTypes,
	}.Build()
	File_bonanza_build_pkg_proto_configuration_model_parser_parser_proto = out.File
	file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_goTypes = nil
	file_bonanza_build_pkg_proto_configuration_model_parser_parser_proto_depIdxs = nil
}
