// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v6.33.2
// source: envoy/extensions/access_loggers/stats/v3/stats.proto

package statsv3

import (
	_ "github.com/cncf/xds/go/udpa/annotations"
	_ "github.com/cncf/xds/go/xds/annotations/v3"
	_ "github.com/envoyproxy/protoc-gen-validate/validate"
	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)
)

// The histogram units. The units are needed for some stat sinks.
type Config_Histogram_Unit int32

const (
	Config_Histogram_Unspecified  Config_Histogram_Unit = 0
	Config_Histogram_Bytes        Config_Histogram_Unit = 1
	Config_Histogram_Microseconds Config_Histogram_Unit = 2
	Config_Histogram_Milliseconds Config_Histogram_Unit = 3
	// Values are scaled to range 0-1.0, indicating 0%-100%. Values can be outside this range,
	// but must be positive. Values extremely far out of this range may overflow.
	Config_Histogram_Percent Config_Histogram_Unit = 4
)

// Enum value maps for Config_Histogram_Unit.
var (
	Config_Histogram_Unit_name = map[int32]string{
		0: "Unspecified",
		1: "Bytes",
		2: "Microseconds",
		3: "Milliseconds",
		4: "Percent",
	}
	Config_Histogram_Unit_value = map[string]int32{
		"Unspecified":  0,
		"Bytes":        1,
		"Microseconds": 2,
		"Milliseconds": 3,
		"Percent":      4,
	}
)

func (x Config_Histogram_Unit) Enum() *Config_Histogram_Unit {
	p := new(Config_Histogram_Unit)
	*p = x
	return p
}

func (x Config_Histogram_Unit) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Config_Histogram_Unit) Descriptor() protoreflect.EnumDescriptor {
	return file_envoy_extensions_access_loggers_stats_v3_stats_proto_enumTypes[0].Descriptor()
}

func (Config_Histogram_Unit) Type() protoreflect.EnumType {
	return &file_envoy_extensions_access_loggers_stats_v3_stats_proto_enumTypes[0]
}

func (x Config_Histogram_Unit) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Config_Histogram_Unit.Descriptor instead.
func (Config_Histogram_Unit) EnumDescriptor() ([]byte, []int) {
	return file_envoy_extensions_access_loggers_stats_v3_stats_proto_rawDescGZIP(), []int{0, 2, 0}
}

type Config struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The stat prefix for the generated stats.
	StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"`
	// The histograms this logger will emit.
	Histograms []*Config_Histogram `protobuf:"bytes,3,rep,name=histograms,proto3" json:"histograms,omitempty"`
	// The counters this logger will emit.
	Counters      []*Config_Counter `protobuf:"bytes,4,rep,name=counters,proto3" json:"counters,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Config) ProtoMessage() {}

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

func (x *Config) GetStatPrefix() string {
	if x != nil {
		return x.StatPrefix
	}
	return ""
}

func (x *Config) GetHistograms() []*Config_Histogram {
	if x != nil {
		return x.Histograms
	}
	return nil
}

func (x *Config) GetCounters() []*Config_Counter {
	if x != nil {
		return x.Counters
	}
	return nil
}

// Defines a tag on a stat.
type Config_Tag struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name of the tag.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The value of the tag, using :ref:`command operators <config_access_log_command_operators>`.
	ValueFormat   string `protobuf:"bytes,2,opt,name=value_format,json=valueFormat,proto3" json:"value_format,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Config_Tag) ProtoMessage() {}

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

func (x *Config_Tag) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *Config_Tag) GetValueFormat() string {
	if x != nil {
		return x.ValueFormat
	}
	return ""
}

// Defines the name and tags of a stat.
type Config_Stat struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name of the stat.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The tags for the stat.
	Tags          []*Config_Tag `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Config_Stat) ProtoMessage() {}

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

func (x *Config_Stat) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *Config_Stat) GetTags() []*Config_Tag {
	if x != nil {
		return x.Tags
	}
	return nil
}

// Configuration for a histogram stat.
type Config_Histogram struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name and tags of this histogram.
	Stat *Config_Stat `protobuf:"bytes,1,opt,name=stat,proto3" json:"stat,omitempty"`
	// The units for this histogram.
	Unit Config_Histogram_Unit `protobuf:"varint,2,opt,name=unit,proto3,enum=envoy.extensions.access_loggers.stats.v3.Config_Histogram_Unit" json:"unit,omitempty"`
	// The format string for the value of this histogram, using :ref:`command operators <config_access_log_command_operators>`.
	// This must evaluate to a positive number.
	ValueFormat   string `protobuf:"bytes,3,opt,name=value_format,json=valueFormat,proto3" json:"value_format,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Config_Histogram) Reset() {
	*x = Config_Histogram{}
	mi := &file_envoy_extensions_access_loggers_stats_v3_stats_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Config_Histogram) ProtoMessage() {}

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

func (x *Config_Histogram) GetStat() *Config_Stat {
	if x != nil {
		return x.Stat
	}
	return nil
}

func (x *Config_Histogram) GetUnit() Config_Histogram_Unit {
	if x != nil {
		return x.Unit
	}
	return Config_Histogram_Unspecified
}

func (x *Config_Histogram) GetValueFormat() string {
	if x != nil {
		return x.ValueFormat
	}
	return ""
}

// Configuration for a counter stat.
type Config_Counter struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The name and tags of this counter.
	Stat *Config_Stat `protobuf:"bytes,1,opt,name=stat,proto3" json:"stat,omitempty"`
	// The format string for the value to add to this counter, using :ref:`command operators <config_access_log_command_operators>`.
	// One of “value_format“ or “value_fixed“ must be configured.
	ValueFormat string `protobuf:"bytes,2,opt,name=value_format,json=valueFormat,proto3" json:"value_format,omitempty"`
	// A fixed value to add to this counter.
	// One of “value_format“ or “value_fixed“ must be configured.
	ValueFixed    *wrapperspb.UInt64Value `protobuf:"bytes,3,opt,name=value_fixed,json=valueFixed,proto3" json:"value_fixed,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *Config_Counter) Reset() {
	*x = Config_Counter{}
	mi := &file_envoy_extensions_access_loggers_stats_v3_stats_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*Config_Counter) ProtoMessage() {}

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

func (x *Config_Counter) GetStat() *Config_Stat {
	if x != nil {
		return x.Stat
	}
	return nil
}

func (x *Config_Counter) GetValueFormat() string {
	if x != nil {
		return x.ValueFormat
	}
	return ""
}

func (x *Config_Counter) GetValueFixed() *wrapperspb.UInt64Value {
	if x != nil {
		return x.ValueFixed
	}
	return nil
}

var File_envoy_extensions_access_loggers_stats_v3_stats_proto protoreflect.FileDescriptor

const file_envoy_extensions_access_loggers_stats_v3_stats_proto_rawDesc = "" +
	"\n" +
	"4envoy/extensions/access_loggers/stats/v3/stats.proto\x12(envoy.extensions.access_loggers.stats.v3\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1fxds/annotations/v3/status.proto\x1a\x1dudpa/annotations/status.proto\x1a\x17validate/validate.proto\"\xd2\a\n" +
	"\x06Config\x12(\n" +
	"\vstat_prefix\x18\x01 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\n" +
	"statPrefix\x12Z\n" +
	"\n" +
	"histograms\x18\x03 \x03(\v2:.envoy.extensions.access_loggers.stats.v3.Config.HistogramR\n" +
	"histograms\x12T\n" +
	"\bcounters\x18\x04 \x03(\v28.envoy.extensions.access_loggers.stats.v3.Config.CounterR\bcounters\x1aN\n" +
	"\x03Tag\x12\x1b\n" +
	"\x04name\x18\x01 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x04name\x12*\n" +
	"\fvalue_format\x18\x02 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\vvalueFormat\x1am\n" +
	"\x04Stat\x12\x1b\n" +
	"\x04name\x18\x01 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x04name\x12H\n" +
	"\x04tags\x18\x02 \x03(\v24.envoy.extensions.access_loggers.stats.v3.Config.TagR\x04tags\x1a\xc6\x02\n" +
	"\tHistogram\x12S\n" +
	"\x04stat\x18\x01 \x01(\v25.envoy.extensions.access_loggers.stats.v3.Config.StatB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x04stat\x12]\n" +
	"\x04unit\x18\x02 \x01(\x0e2?.envoy.extensions.access_loggers.stats.v3.Config.Histogram.UnitB\b\xfaB\x05\x82\x01\x02\x10\x01R\x04unit\x120\n" +
	"\fvalue_format\x18\x03 \x01(\tB\r\xfaB\n" +
	"r\b\x10\x01:\x01%B\x01%R\vvalueFormat\"S\n" +
	"\x04Unit\x12\x0f\n" +
	"\vUnspecified\x10\x00\x12\t\n" +
	"\x05Bytes\x10\x01\x12\x10\n" +
	"\fMicroseconds\x10\x02\x12\x10\n" +
	"\fMilliseconds\x10\x03\x12\v\n" +
	"\aPercent\x10\x04\x1a\xd9\x01\n" +
	"\aCounter\x12S\n" +
	"\x04stat\x18\x01 \x01(\v25.envoy.extensions.access_loggers.stats.v3.Config.StatB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x04stat\x121\n" +
	"\fvalue_format\x18\x02 \x01(\tB\x0e\xfaB\vr\t:\x01%B\x01%\xd0\x01\x01R\vvalueFormat\x12F\n" +
	"\vvalue_fixed\x18\x03 \x01(\v2\x1c.google.protobuf.UInt64ValueB\a\xfaB\x042\x02 \x00R\n" +
	"valueFixed:\b\xd2Ƥ\xe1\x06\x02\b\x01B\xa7\x01\xba\x80\xc8\xd1\x06\x02\x10\x02\n" +
	"6io.envoyproxy.envoy.extensions.access_loggers.stats.v3B\n" +
	"StatsProtoP\x01ZWgithub.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/stats/v3;statsv3b\x06proto3"

var (
	file_envoy_extensions_access_loggers_stats_v3_stats_proto_rawDescOnce sync.Once
	file_envoy_extensions_access_loggers_stats_v3_stats_proto_rawDescData []byte
)

func file_envoy_extensions_access_loggers_stats_v3_stats_proto_rawDescGZIP() []byte {
	file_envoy_extensions_access_loggers_stats_v3_stats_proto_rawDescOnce.Do(func() {
		file_envoy_extensions_access_loggers_stats_v3_stats_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_extensions_access_loggers_stats_v3_stats_proto_rawDesc), len(file_envoy_extensions_access_loggers_stats_v3_stats_proto_rawDesc)))
	})
	return file_envoy_extensions_access_loggers_stats_v3_stats_proto_rawDescData
}

var file_envoy_extensions_access_loggers_stats_v3_stats_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_envoy_extensions_access_loggers_stats_v3_stats_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_envoy_extensions_access_loggers_stats_v3_stats_proto_goTypes = []any{
	(Config_Histogram_Unit)(0),     // 0: envoy.extensions.access_loggers.stats.v3.Config.Histogram.Unit
	(*Config)(nil),                 // 1: envoy.extensions.access_loggers.stats.v3.Config
	(*Config_Tag)(nil),             // 2: envoy.extensions.access_loggers.stats.v3.Config.Tag
	(*Config_Stat)(nil),            // 3: envoy.extensions.access_loggers.stats.v3.Config.Stat
	(*Config_Histogram)(nil),       // 4: envoy.extensions.access_loggers.stats.v3.Config.Histogram
	(*Config_Counter)(nil),         // 5: envoy.extensions.access_loggers.stats.v3.Config.Counter
	(*wrapperspb.UInt64Value)(nil), // 6: google.protobuf.UInt64Value
}
var file_envoy_extensions_access_loggers_stats_v3_stats_proto_depIdxs = []int32{
	4, // 0: envoy.extensions.access_loggers.stats.v3.Config.histograms:type_name -> envoy.extensions.access_loggers.stats.v3.Config.Histogram
	5, // 1: envoy.extensions.access_loggers.stats.v3.Config.counters:type_name -> envoy.extensions.access_loggers.stats.v3.Config.Counter
	2, // 2: envoy.extensions.access_loggers.stats.v3.Config.Stat.tags:type_name -> envoy.extensions.access_loggers.stats.v3.Config.Tag
	3, // 3: envoy.extensions.access_loggers.stats.v3.Config.Histogram.stat:type_name -> envoy.extensions.access_loggers.stats.v3.Config.Stat
	0, // 4: envoy.extensions.access_loggers.stats.v3.Config.Histogram.unit:type_name -> envoy.extensions.access_loggers.stats.v3.Config.Histogram.Unit
	3, // 5: envoy.extensions.access_loggers.stats.v3.Config.Counter.stat:type_name -> envoy.extensions.access_loggers.stats.v3.Config.Stat
	6, // 6: envoy.extensions.access_loggers.stats.v3.Config.Counter.value_fixed:type_name -> google.protobuf.UInt64Value
	7, // [7:7] is the sub-list for method output_type
	7, // [7:7] is the sub-list for method input_type
	7, // [7:7] is the sub-list for extension type_name
	7, // [7:7] is the sub-list for extension extendee
	0, // [0:7] is the sub-list for field type_name
}

func init() { file_envoy_extensions_access_loggers_stats_v3_stats_proto_init() }
func file_envoy_extensions_access_loggers_stats_v3_stats_proto_init() {
	if File_envoy_extensions_access_loggers_stats_v3_stats_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_envoy_extensions_access_loggers_stats_v3_stats_proto_rawDesc), len(file_envoy_extensions_access_loggers_stats_v3_stats_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_extensions_access_loggers_stats_v3_stats_proto_goTypes,
		DependencyIndexes: file_envoy_extensions_access_loggers_stats_v3_stats_proto_depIdxs,
		EnumInfos:         file_envoy_extensions_access_loggers_stats_v3_stats_proto_enumTypes,
		MessageInfos:      file_envoy_extensions_access_loggers_stats_v3_stats_proto_msgTypes,
	}.Build()
	File_envoy_extensions_access_loggers_stats_v3_stats_proto = out.File
	file_envoy_extensions_access_loggers_stats_v3_stats_proto_goTypes = nil
	file_envoy_extensions_access_loggers_stats_v3_stats_proto_depIdxs = nil
}
