// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v7.35.1
// source: envoy/type/v3/scope.proto

package typev3

import (
	_ "github.com/cncf/xds/go/udpa/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
	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)
)

// Stats scope configuration.
// This configuration can be used to create a singleton scope that is shared
// across multiple instances within the process.
// [#next-free-field: 7]
type Scope struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Max number of counters allowed in this scope.
	MaxCounters *wrapperspb.UInt32Value `protobuf:"bytes,1,opt,name=max_counters,json=maxCounters,proto3" json:"max_counters,omitempty"`
	// Max number of gauges allowed in this scope.
	MaxGauges *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=max_gauges,json=maxGauges,proto3" json:"max_gauges,omitempty"`
	// Max number of histograms allowed in this scope.
	MaxHistograms *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=max_histograms,json=maxHistograms,proto3" json:"max_histograms,omitempty"`
	// Whether the scope and its stats can be evicted from the store caches.
	// The eviction policy is a mark-and-sweep approach where stats are evicted
	// if they are not updated or accessed between two successive eviction sweeps.
	// The eviction will happen only if the :ref:`stats_eviction_interval <envoy_v3_api_field_config.bootstrap.v3.Bootstrap.stats_eviction_interval>` is configured in
	// the bootstrap.
	EnableEviction bool `protobuf:"varint,4,opt,name=enable_eviction,json=enableEviction,proto3" json:"enable_eviction,omitempty"`
	// The stats scope prefix.
	Prefix string `protobuf:"bytes,5,opt,name=prefix,proto3" json:"prefix,omitempty"`
	// The sharing name of the scope. If non-empty, the scope is shared across
	// multiple instances with the same sharing_name if all fields in this message
	// have the same values.
	SharingName   string `protobuf:"bytes,6,opt,name=sharing_name,json=sharingName,proto3" json:"sharing_name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Scope) ProtoMessage() {}

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

func (x *Scope) GetMaxCounters() *wrapperspb.UInt32Value {
	if x != nil {
		return x.MaxCounters
	}
	return nil
}

func (x *Scope) GetMaxGauges() *wrapperspb.UInt32Value {
	if x != nil {
		return x.MaxGauges
	}
	return nil
}

func (x *Scope) GetMaxHistograms() *wrapperspb.UInt32Value {
	if x != nil {
		return x.MaxHistograms
	}
	return nil
}

func (x *Scope) GetEnableEviction() bool {
	if x != nil {
		return x.EnableEviction
	}
	return false
}

func (x *Scope) GetPrefix() string {
	if x != nil {
		return x.Prefix
	}
	return ""
}

func (x *Scope) GetSharingName() string {
	if x != nil {
		return x.SharingName
	}
	return ""
}

var File_envoy_type_v3_scope_proto protoreflect.FileDescriptor

const file_envoy_type_v3_scope_proto_rawDesc = "" +
	"\n" +
	"\x19envoy/type/v3/scope.proto\x12\renvoy.type.v3\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dudpa/annotations/status.proto\"\xae\x02\n" +
	"\x05Scope\x12?\n" +
	"\fmax_counters\x18\x01 \x01(\v2\x1c.google.protobuf.UInt32ValueR\vmaxCounters\x12;\n" +
	"\n" +
	"max_gauges\x18\x02 \x01(\v2\x1c.google.protobuf.UInt32ValueR\tmaxGauges\x12C\n" +
	"\x0emax_histograms\x18\x03 \x01(\v2\x1c.google.protobuf.UInt32ValueR\rmaxHistograms\x12'\n" +
	"\x0fenable_eviction\x18\x04 \x01(\bR\x0eenableEviction\x12\x16\n" +
	"\x06prefix\x18\x05 \x01(\tR\x06prefix\x12!\n" +
	"\fsharing_name\x18\x06 \x01(\tR\vsharingNameBp\xba\x80\xc8\xd1\x06\x02\x10\x02\n" +
	"\x1bio.envoyproxy.envoy.type.v3B\n" +
	"ScopeProtoP\x01Z;github.com/envoyproxy/go-control-plane/envoy/type/v3;typev3b\x06proto3"

var (
	file_envoy_type_v3_scope_proto_rawDescOnce sync.Once
	file_envoy_type_v3_scope_proto_rawDescData []byte
)

func file_envoy_type_v3_scope_proto_rawDescGZIP() []byte {
	file_envoy_type_v3_scope_proto_rawDescOnce.Do(func() {
		file_envoy_type_v3_scope_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_type_v3_scope_proto_rawDesc), len(file_envoy_type_v3_scope_proto_rawDesc)))
	})
	return file_envoy_type_v3_scope_proto_rawDescData
}

var file_envoy_type_v3_scope_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_envoy_type_v3_scope_proto_goTypes = []any{
	(*Scope)(nil),                  // 0: envoy.type.v3.Scope
	(*wrapperspb.UInt32Value)(nil), // 1: google.protobuf.UInt32Value
}
var file_envoy_type_v3_scope_proto_depIdxs = []int32{
	1, // 0: envoy.type.v3.Scope.max_counters:type_name -> google.protobuf.UInt32Value
	1, // 1: envoy.type.v3.Scope.max_gauges:type_name -> google.protobuf.UInt32Value
	1, // 2: envoy.type.v3.Scope.max_histograms:type_name -> google.protobuf.UInt32Value
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_envoy_type_v3_scope_proto_init() }
func file_envoy_type_v3_scope_proto_init() {
	if File_envoy_type_v3_scope_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_envoy_type_v3_scope_proto_rawDesc), len(file_envoy_type_v3_scope_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_type_v3_scope_proto_goTypes,
		DependencyIndexes: file_envoy_type_v3_scope_proto_depIdxs,
		MessageInfos:      file_envoy_type_v3_scope_proto_msgTypes,
	}.Build()
	File_envoy_type_v3_scope_proto = out.File
	file_envoy_type_v3_scope_proto_goTypes = nil
	file_envoy_type_v3_scope_proto_depIdxs = nil
}
