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

package filter_chainv3

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"
	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)
)

// Filter-level configuration for the filter chain filter. This filter acts as a wrapper
// that applies a configurable chain of HTTP filters to incoming requests.
//
// When a request arrives the filter collects all active filter chains in order from least
// to most specific: “default_filter_chain“ first, then any per-route chains ordered from
// the outermost scope (e.g. route configuration level) to the innermost scope (route level).
// Each filter in a less-specific chain is applied **unless** a more-specific chain contains
// a filter with the same “name“.
//
// The final set of filters is applied in order from least to most specific, so that the
// least-specific filter runs first and the most-specific filter runs last. This allows
// more specific filters to override the behavior of less specific ones.
//
// If no chains are found at all the filter passes through without modifying the request.
type FilterChainConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Default filter chain to apply when processing every request.
	//
	// This field is optional. When omitted the filter still participates in per-route
	// override resolution.
	DefaultFilterChain *FilterChain `protobuf:"bytes,1,opt,name=default_filter_chain,json=defaultFilterChain,proto3" json:"default_filter_chain,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

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

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

func (*FilterChainConfig) ProtoMessage() {}

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

func (x *FilterChainConfig) GetDefaultFilterChain() *FilterChain {
	if x != nil {
		return x.DefaultFilterChain
	}
	return nil
}

// Per-route configuration for the filter chain filter. This allows different filter chains
// to be applied on different routes.
//
// .. note::
//
//	Only the initial route match is considered for filter chain selection. Subsequent
//	internal route refreshes do not affect the filter chain applied to the request.
//
// When multiple per-route configs exist along the route hierarchy (e.g. one at virtual-host
// level and one at route level) the same merge rules apply iteratively from least specific
// to most specific, so the most specific definition of any named filter always wins.
type FilterChainConfigPerRoute struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Filter chain to apply on this route. Must contain at least one filter.
	//
	// .. note::
	//
	//	Not all HTTP filters are compatible to be used within this route level filter chain
	//	for now.
	FilterChain   *FilterChain `protobuf:"bytes,1,opt,name=filter_chain,json=filterChain,proto3" json:"filter_chain,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*FilterChainConfigPerRoute) ProtoMessage() {}

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

func (x *FilterChainConfigPerRoute) GetFilterChain() *FilterChain {
	if x != nil {
		return x.FilterChain
	}
	return nil
}

// A filter chain is a list of HTTP filters that are applied in order.
// This message is used to define a reusable chain of filters.
type FilterChain struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// A list of HTTP filter configurations to be applied in order.
	// Each filter in the chain will process the request/response in sequence.
	// At least one filter must be specified.
	//
	// .. warning::
	//
	//	Please do not configure the ``filter_chain`` filter itself or ``composite`` filter
	//	within this list recursively to avoid undefined behavior.
	//
	// .. note::
	//
	//	It is possible to configure ``terminal`` filters (filters that do not expect next filter
	//	in the chain, e.g., ``envoy.filters.http.router``) in the middle of the chain. However,
	//	use it with caution to avoid unexpected behavior.
	//
	// [#extension-category: envoy.filters.http]
	Filters       []*v3.TypedExtensionConfig `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*FilterChain) ProtoMessage() {}

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

func (x *FilterChain) GetFilters() []*v3.TypedExtensionConfig {
	if x != nil {
		return x.Filters
	}
	return nil
}

var File_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto protoreflect.FileDescriptor

const file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_rawDesc = "" +
	"\n" +
	"@envoy/extensions/filters/http/filter_chain/v3/filter_chain.proto\x12-envoy.extensions.filters.http.filter_chain.v3\x1a$envoy/config/core/v3/extension.proto\x1a\x1dudpa/annotations/status.proto\x1a\x17validate/validate.proto\"\x81\x01\n" +
	"\x11FilterChainConfig\x12l\n" +
	"\x14default_filter_chain\x18\x01 \x01(\v2:.envoy.extensions.filters.http.filter_chain.v3.FilterChainR\x12defaultFilterChain\"\x84\x01\n" +
	"\x19FilterChainConfigPerRoute\x12g\n" +
	"\ffilter_chain\x18\x01 \x01(\v2:.envoy.extensions.filters.http.filter_chain.v3.FilterChainB\b\xfaB\x05\x8a\x01\x02\x10\x01R\vfilterChain\"]\n" +
	"\vFilterChain\x12N\n" +
	"\afilters\x18\x01 \x03(\v2*.envoy.config.core.v3.TypedExtensionConfigB\b\xfaB\x05\x92\x01\x02\b\x01R\afiltersB\xbe\x01\xba\x80\xc8\xd1\x06\x02\x10\x02\n" +
	";io.envoyproxy.envoy.extensions.filters.http.filter_chain.v3B\x10FilterChainProtoP\x01Zcgithub.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/filter_chain/v3;filter_chainv3b\x06proto3"

var (
	file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_rawDescOnce sync.Once
	file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_rawDescData []byte
)

func file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_rawDescGZIP() []byte {
	file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_rawDescOnce.Do(func() {
		file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_rawDesc), len(file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_rawDesc)))
	})
	return file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_rawDescData
}

var file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_goTypes = []any{
	(*FilterChainConfig)(nil),         // 0: envoy.extensions.filters.http.filter_chain.v3.FilterChainConfig
	(*FilterChainConfigPerRoute)(nil), // 1: envoy.extensions.filters.http.filter_chain.v3.FilterChainConfigPerRoute
	(*FilterChain)(nil),               // 2: envoy.extensions.filters.http.filter_chain.v3.FilterChain
	(*v3.TypedExtensionConfig)(nil),   // 3: envoy.config.core.v3.TypedExtensionConfig
}
var file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_depIdxs = []int32{
	2, // 0: envoy.extensions.filters.http.filter_chain.v3.FilterChainConfig.default_filter_chain:type_name -> envoy.extensions.filters.http.filter_chain.v3.FilterChain
	2, // 1: envoy.extensions.filters.http.filter_chain.v3.FilterChainConfigPerRoute.filter_chain:type_name -> envoy.extensions.filters.http.filter_chain.v3.FilterChain
	3, // 2: envoy.extensions.filters.http.filter_chain.v3.FilterChain.filters:type_name -> envoy.config.core.v3.TypedExtensionConfig
	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_extensions_filters_http_filter_chain_v3_filter_chain_proto_init() }
func file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_init() {
	if File_envoy_extensions_filters_http_filter_chain_v3_filter_chain_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_http_filter_chain_v3_filter_chain_proto_rawDesc), len(file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_goTypes,
		DependencyIndexes: file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_depIdxs,
		MessageInfos:      file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_msgTypes,
	}.Build()
	File_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto = out.File
	file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_goTypes = nil
	file_envoy_extensions_filters_http_filter_chain_v3_filter_chain_proto_depIdxs = nil
}
