// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v7.35.1
// source: envoy/extensions/filters/udp/udp_proxy/session/ext_authz/v3/ext_authz.proto

package ext_authzv3

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

// External authorization for UDP proxy sessions over the gRPC
// :ref:`CheckRequest <envoy_v3_api_msg_service.auth.v3.CheckRequest>` API.
type FilterConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The prefix to use when emitting :ref:`statistics
	// <config_udp_session_filters_ext_authz_stats>`.
	StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"`
	// The external authorization gRPC service configuration (default timeout: 200ms).
	GrpcService *v3.GrpcService `protobuf:"bytes,2,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"`
	// The filter's behaviour in case the external authorization service does not respond back, or
	// when it returns an error. When set to true, the new session is established and traffic is
	// forwarded to the upstream. When set to false, the session is dropped. Defaults to false.
	FailureModeAllow bool `protobuf:"varint,3,opt,name=failure_mode_allow,json=failureModeAllow,proto3" json:"failure_mode_allow,omitempty"`
	// If configured, the filter will buffer datagrams while it is waiting for the authorization
	// response. If this field is not configured, there will be no buffering and downstream datagrams
	// that arrive while the authorization call is in progress will be dropped. In case this field is
	// set but the options are not configured, the default values will be applied as described in the
	// “BufferOptions“.
	BufferOptions *FilterConfig_BufferOptions `protobuf:"bytes,4,opt,name=buffer_options,json=bufferOptions,proto3" json:"buffer_options,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*FilterConfig) ProtoMessage() {}

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

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

func (x *FilterConfig) GetGrpcService() *v3.GrpcService {
	if x != nil {
		return x.GrpcService
	}
	return nil
}

func (x *FilterConfig) GetFailureModeAllow() bool {
	if x != nil {
		return x.FailureModeAllow
	}
	return false
}

func (x *FilterConfig) GetBufferOptions() *FilterConfig_BufferOptions {
	if x != nil {
		return x.BufferOptions
	}
	return nil
}

// Configuration for UDP datagrams buffering while the authorization call is in flight.
type FilterConfig_BufferOptions struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// If set, the filter will only buffer datagrams up to the requested limit, and will drop
	// new UDP datagrams if the buffer contains the max_buffered_datagrams value at the time
	// of a new datagram arrival. If not set, the default value is 1024 datagrams.
	MaxBufferedDatagrams *wrapperspb.UInt32Value `protobuf:"bytes,1,opt,name=max_buffered_datagrams,json=maxBufferedDatagrams,proto3" json:"max_buffered_datagrams,omitempty"`
	// If set, the filter will only buffer datagrams up to the requested total buffered bytes limit,
	// and will drop new UDP datagrams if the buffer contains the max_buffered_bytes value
	// at the time of a new datagram arrival. If not set, the default value is 16,384 (16KB).
	MaxBufferedBytes *wrapperspb.UInt64Value `protobuf:"bytes,2,opt,name=max_buffered_bytes,json=maxBufferedBytes,proto3" json:"max_buffered_bytes,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*FilterConfig_BufferOptions) ProtoMessage() {}

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

func (x *FilterConfig_BufferOptions) GetMaxBufferedDatagrams() *wrapperspb.UInt32Value {
	if x != nil {
		return x.MaxBufferedDatagrams
	}
	return nil
}

func (x *FilterConfig_BufferOptions) GetMaxBufferedBytes() *wrapperspb.UInt64Value {
	if x != nil {
		return x.MaxBufferedBytes
	}
	return nil
}

var File_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto protoreflect.FileDescriptor

const file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_rawDesc = "" +
	"\n" +
	"Kenvoy/extensions/filters/udp/udp_proxy/session/ext_authz/v3/ext_authz.proto\x12;envoy.extensions.filters.udp.udp_proxy.session.ext_authz.v3\x1a'envoy/config/core/v3/grpc_service.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dudpa/annotations/status.proto\x1a\x17validate/validate.proto\"\xe8\x03\n" +
	"\fFilterConfig\x12(\n" +
	"\vstat_prefix\x18\x01 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\n" +
	"statPrefix\x12N\n" +
	"\fgrpc_service\x18\x02 \x01(\v2!.envoy.config.core.v3.GrpcServiceB\b\xfaB\x05\x8a\x01\x02\x10\x01R\vgrpcService\x12,\n" +
	"\x12failure_mode_allow\x18\x03 \x01(\bR\x10failureModeAllow\x12~\n" +
	"\x0ebuffer_options\x18\x04 \x01(\v2W.envoy.extensions.filters.udp.udp_proxy.session.ext_authz.v3.FilterConfig.BufferOptionsR\rbufferOptions\x1a\xaf\x01\n" +
	"\rBufferOptions\x12R\n" +
	"\x16max_buffered_datagrams\x18\x01 \x01(\v2\x1c.google.protobuf.UInt32ValueR\x14maxBufferedDatagrams\x12J\n" +
	"\x12max_buffered_bytes\x18\x02 \x01(\v2\x1c.google.protobuf.UInt64ValueR\x10maxBufferedBytesB\xd4\x01\xba\x80\xc8\xd1\x06\x02\x10\x02\n" +
	"Iio.envoyproxy.envoy.extensions.filters.udp.udp_proxy.session.ext_authz.v3B\rExtAuthzProtoP\x01Zngithub.com/envoyproxy/go-control-plane/envoy/extensions/filters/udp/udp_proxy/session/ext_authz/v3;ext_authzv3b\x06proto3"

var (
	file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_rawDescOnce sync.Once
	file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_rawDescData []byte
)

func file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_rawDescGZIP() []byte {
	file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_rawDescOnce.Do(func() {
		file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_rawDesc), len(file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_rawDesc)))
	})
	return file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_rawDescData
}

var file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_goTypes = []any{
	(*FilterConfig)(nil),               // 0: envoy.extensions.filters.udp.udp_proxy.session.ext_authz.v3.FilterConfig
	(*FilterConfig_BufferOptions)(nil), // 1: envoy.extensions.filters.udp.udp_proxy.session.ext_authz.v3.FilterConfig.BufferOptions
	(*v3.GrpcService)(nil),             // 2: envoy.config.core.v3.GrpcService
	(*wrapperspb.UInt32Value)(nil),     // 3: google.protobuf.UInt32Value
	(*wrapperspb.UInt64Value)(nil),     // 4: google.protobuf.UInt64Value
}
var file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_depIdxs = []int32{
	2, // 0: envoy.extensions.filters.udp.udp_proxy.session.ext_authz.v3.FilterConfig.grpc_service:type_name -> envoy.config.core.v3.GrpcService
	1, // 1: envoy.extensions.filters.udp.udp_proxy.session.ext_authz.v3.FilterConfig.buffer_options:type_name -> envoy.extensions.filters.udp.udp_proxy.session.ext_authz.v3.FilterConfig.BufferOptions
	3, // 2: envoy.extensions.filters.udp.udp_proxy.session.ext_authz.v3.FilterConfig.BufferOptions.max_buffered_datagrams:type_name -> google.protobuf.UInt32Value
	4, // 3: envoy.extensions.filters.udp.udp_proxy.session.ext_authz.v3.FilterConfig.BufferOptions.max_buffered_bytes:type_name -> google.protobuf.UInt64Value
	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_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_init() }
func file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_init() {
	if File_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_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_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_rawDesc), len(file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_goTypes,
		DependencyIndexes: file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_depIdxs,
		MessageInfos:      file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_msgTypes,
	}.Build()
	File_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto = out.File
	file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_goTypes = nil
	file_envoy_extensions_filters_udp_udp_proxy_session_ext_authz_v3_ext_authz_proto_depIdxs = nil
}
