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

package commonv3

import (
	_ "github.com/cncf/xds/go/udpa/annotations"
	v3 "github.com/envoyproxy/go-control-plane/envoy/type/v3"
	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)
)

// [#protodoc-title: Outlier detection error buckets]
// Error bucket for HTTP codes.
// [#not-implemented-hide:]
type HttpErrors struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Range         *v3.Int32Range         `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*HttpErrors) ProtoMessage() {}

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

func (x *HttpErrors) GetRange() *v3.Int32Range {
	if x != nil {
		return x.Range
	}
	return nil
}

// Error bucket for locally originated errors.
// [#not-implemented-hide:]
type LocalOriginErrors struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*LocalOriginErrors) ProtoMessage() {}

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

// Error bucket for database errors.
// Sub-parameters may be added later, like malformed response, error on write, etc.
// [#not-implemented-hide:]
type DatabaseErrors struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DatabaseErrors) ProtoMessage() {}

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

// Union of possible error buckets.
// [#not-implemented-hide:]
type ErrorBuckets struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// List of buckets "catching" HTTP codes.
	HttpErrors []*HttpErrors `protobuf:"bytes,1,rep,name=http_errors,json=httpErrors,proto3" json:"http_errors,omitempty"`
	// List of buckets "catching" locally originated errors.
	LocalOriginErrors []*LocalOriginErrors `protobuf:"bytes,2,rep,name=local_origin_errors,json=localOriginErrors,proto3" json:"local_origin_errors,omitempty"`
	// List of buckets "catching" database errors.
	DatabaseErrors []*DatabaseErrors `protobuf:"bytes,3,rep,name=database_errors,json=databaseErrors,proto3" json:"database_errors,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*ErrorBuckets) ProtoMessage() {}

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

func (x *ErrorBuckets) GetHttpErrors() []*HttpErrors {
	if x != nil {
		return x.HttpErrors
	}
	return nil
}

func (x *ErrorBuckets) GetLocalOriginErrors() []*LocalOriginErrors {
	if x != nil {
		return x.LocalOriginErrors
	}
	return nil
}

func (x *ErrorBuckets) GetDatabaseErrors() []*DatabaseErrors {
	if x != nil {
		return x.DatabaseErrors
	}
	return nil
}

var File_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto protoreflect.FileDescriptor

const file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_rawDesc = "" +
	"\n" +
	"Genvoy/extensions/outlier_detection_monitors/common/v3/error_types.proto\x125envoy.extensions.outlier_detection_monitors.common.v3\x1a\x19envoy/type/v3/range.proto\x1a\x1dudpa/annotations/status.proto\"=\n" +
	"\n" +
	"HttpErrors\x12/\n" +
	"\x05range\x18\x01 \x01(\v2\x19.envoy.type.v3.Int32RangeR\x05range\"\x13\n" +
	"\x11LocalOriginErrors\"\x10\n" +
	"\x0eDatabaseErrors\"\xdc\x02\n" +
	"\fErrorBuckets\x12b\n" +
	"\vhttp_errors\x18\x01 \x03(\v2A.envoy.extensions.outlier_detection_monitors.common.v3.HttpErrorsR\n" +
	"httpErrors\x12x\n" +
	"\x13local_origin_errors\x18\x02 \x03(\v2H.envoy.extensions.outlier_detection_monitors.common.v3.LocalOriginErrorsR\x11localOriginErrors\x12n\n" +
	"\x0fdatabase_errors\x18\x03 \x03(\v2E.envoy.extensions.outlier_detection_monitors.common.v3.DatabaseErrorsR\x0edatabaseErrorsB\xc7\x01\xba\x80\xc8\xd1\x06\x02\x10\x02\n" +
	"Cio.envoyproxy.envoy.extensions.outlier_detection_monitors.common.v3B\x0fErrorTypesProtoP\x01Zegithub.com/envoyproxy/go-control-plane/envoy/extensions/outlier_detection_monitors/common/v3;commonv3b\x06proto3"

var (
	file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_rawDescOnce sync.Once
	file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_rawDescData []byte
)

func file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_rawDescGZIP() []byte {
	file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_rawDescOnce.Do(func() {
		file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_rawDesc), len(file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_rawDesc)))
	})
	return file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_rawDescData
}

var file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_goTypes = []any{
	(*HttpErrors)(nil),        // 0: envoy.extensions.outlier_detection_monitors.common.v3.HttpErrors
	(*LocalOriginErrors)(nil), // 1: envoy.extensions.outlier_detection_monitors.common.v3.LocalOriginErrors
	(*DatabaseErrors)(nil),    // 2: envoy.extensions.outlier_detection_monitors.common.v3.DatabaseErrors
	(*ErrorBuckets)(nil),      // 3: envoy.extensions.outlier_detection_monitors.common.v3.ErrorBuckets
	(*v3.Int32Range)(nil),     // 4: envoy.type.v3.Int32Range
}
var file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_depIdxs = []int32{
	4, // 0: envoy.extensions.outlier_detection_monitors.common.v3.HttpErrors.range:type_name -> envoy.type.v3.Int32Range
	0, // 1: envoy.extensions.outlier_detection_monitors.common.v3.ErrorBuckets.http_errors:type_name -> envoy.extensions.outlier_detection_monitors.common.v3.HttpErrors
	1, // 2: envoy.extensions.outlier_detection_monitors.common.v3.ErrorBuckets.local_origin_errors:type_name -> envoy.extensions.outlier_detection_monitors.common.v3.LocalOriginErrors
	2, // 3: envoy.extensions.outlier_detection_monitors.common.v3.ErrorBuckets.database_errors:type_name -> envoy.extensions.outlier_detection_monitors.common.v3.DatabaseErrors
	4, // [4:4] is the sub-list for method output_type
	4, // [4:4] is the sub-list for method input_type
	4, // [4:4] is the sub-list for extension type_name
	4, // [4:4] is the sub-list for extension extendee
	0, // [0:4] is the sub-list for field type_name
}

func init() { file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_init() }
func file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_init() {
	if File_envoy_extensions_outlier_detection_monitors_common_v3_error_types_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_outlier_detection_monitors_common_v3_error_types_proto_rawDesc), len(file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_goTypes,
		DependencyIndexes: file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_depIdxs,
		MessageInfos:      file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_msgTypes,
	}.Build()
	File_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto = out.File
	file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_goTypes = nil
	file_envoy_extensions_outlier_detection_monitors_common_v3_error_types_proto_depIdxs = nil
}
