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

package dependencyv3

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

type Dependency_DependencyType int32

const (
	Dependency_HEADER           Dependency_DependencyType = 0
	Dependency_FILTER_STATE_KEY Dependency_DependencyType = 1
	Dependency_DYNAMIC_METADATA Dependency_DependencyType = 2
)

// Enum value maps for Dependency_DependencyType.
var (
	Dependency_DependencyType_name = map[int32]string{
		0: "HEADER",
		1: "FILTER_STATE_KEY",
		2: "DYNAMIC_METADATA",
	}
	Dependency_DependencyType_value = map[string]int32{
		"HEADER":           0,
		"FILTER_STATE_KEY": 1,
		"DYNAMIC_METADATA": 2,
	}
)

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

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

func (Dependency_DependencyType) Descriptor() protoreflect.EnumDescriptor {
	return file_envoy_extensions_filters_common_dependency_v3_dependency_proto_enumTypes[0].Descriptor()
}

func (Dependency_DependencyType) Type() protoreflect.EnumType {
	return &file_envoy_extensions_filters_common_dependency_v3_dependency_proto_enumTypes[0]
}

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

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

// Dependency specification and string identifier.
type Dependency struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The kind of dependency.
	Type Dependency_DependencyType `protobuf:"varint,1,opt,name=type,proto3,enum=envoy.extensions.filters.common.dependency.v3.Dependency_DependencyType" json:"type,omitempty"`
	// The string identifier for the dependency.
	Name          string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Dependency) ProtoMessage() {}

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

func (x *Dependency) GetType() Dependency_DependencyType {
	if x != nil {
		return x.Type
	}
	return Dependency_HEADER
}

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

// Dependency specification for a filter. For a filter chain to be valid, any
// dependency that is required must be provided by an earlier filter.
type FilterDependencies struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// A list of dependencies required on the decode path.
	DecodeRequired []*Dependency `protobuf:"bytes,1,rep,name=decode_required,json=decodeRequired,proto3" json:"decode_required,omitempty"`
	// A list of dependencies provided on the decode path.
	DecodeProvided []*Dependency `protobuf:"bytes,2,rep,name=decode_provided,json=decodeProvided,proto3" json:"decode_provided,omitempty"`
	// A list of dependencies required on the encode path.
	EncodeRequired []*Dependency `protobuf:"bytes,3,rep,name=encode_required,json=encodeRequired,proto3" json:"encode_required,omitempty"`
	// A list of dependencies provided on the encode path.
	EncodeProvided []*Dependency `protobuf:"bytes,4,rep,name=encode_provided,json=encodeProvided,proto3" json:"encode_provided,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*FilterDependencies) ProtoMessage() {}

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

func (x *FilterDependencies) GetDecodeRequired() []*Dependency {
	if x != nil {
		return x.DecodeRequired
	}
	return nil
}

func (x *FilterDependencies) GetDecodeProvided() []*Dependency {
	if x != nil {
		return x.DecodeProvided
	}
	return nil
}

func (x *FilterDependencies) GetEncodeRequired() []*Dependency {
	if x != nil {
		return x.EncodeRequired
	}
	return nil
}

func (x *FilterDependencies) GetEncodeProvided() []*Dependency {
	if x != nil {
		return x.EncodeProvided
	}
	return nil
}

// Matching requirements for a filter. For a match tree to be used with a filter, the match
// requirements must be satisfied.
//
// This protobuf is provided by the filter implementation as a way to communicate the matching
// requirements to the filter factories, allowing for config rejection if the requirements are
// not satisfied.
type MatchingRequirements struct {
	state              protoimpl.MessageState                   `protogen:"open.v1"`
	DataInputAllowList *MatchingRequirements_DataInputAllowList `protobuf:"bytes,1,opt,name=data_input_allow_list,json=dataInputAllowList,proto3" json:"data_input_allow_list,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

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

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

func (*MatchingRequirements) ProtoMessage() {}

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

func (x *MatchingRequirements) GetDataInputAllowList() *MatchingRequirements_DataInputAllowList {
	if x != nil {
		return x.DataInputAllowList
	}
	return nil
}

type MatchingRequirements_DataInputAllowList struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// An explicit list of data inputs that are allowed to be used with this filter.
	TypeUrl       []string `protobuf:"bytes,1,rep,name=type_url,json=typeUrl,proto3" json:"type_url,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*MatchingRequirements_DataInputAllowList) ProtoMessage() {}

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

func (x *MatchingRequirements_DataInputAllowList) GetTypeUrl() []string {
	if x != nil {
		return x.TypeUrl
	}
	return nil
}

var File_envoy_extensions_filters_common_dependency_v3_dependency_proto protoreflect.FileDescriptor

const file_envoy_extensions_filters_common_dependency_v3_dependency_proto_rawDesc = "" +
	"\n" +
	">envoy/extensions/filters/common/dependency/v3/dependency.proto\x12-envoy.extensions.filters.common.dependency.v3\x1a\x1dudpa/annotations/status.proto\x1a\x17validate/validate.proto\"\xd1\x01\n" +
	"\n" +
	"Dependency\x12\\\n" +
	"\x04type\x18\x01 \x01(\x0e2H.envoy.extensions.filters.common.dependency.v3.Dependency.DependencyTypeR\x04type\x12\x1b\n" +
	"\x04name\x18\x02 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x04name\"H\n" +
	"\x0eDependencyType\x12\n" +
	"\n" +
	"\x06HEADER\x10\x00\x12\x14\n" +
	"\x10FILTER_STATE_KEY\x10\x01\x12\x14\n" +
	"\x10DYNAMIC_METADATA\x10\x02\"\xa4\x03\n" +
	"\x12FilterDependencies\x12b\n" +
	"\x0fdecode_required\x18\x01 \x03(\v29.envoy.extensions.filters.common.dependency.v3.DependencyR\x0edecodeRequired\x12b\n" +
	"\x0fdecode_provided\x18\x02 \x03(\v29.envoy.extensions.filters.common.dependency.v3.DependencyR\x0edecodeProvided\x12b\n" +
	"\x0fencode_required\x18\x03 \x03(\v29.envoy.extensions.filters.common.dependency.v3.DependencyR\x0eencodeRequired\x12b\n" +
	"\x0fencode_provided\x18\x04 \x03(\v29.envoy.extensions.filters.common.dependency.v3.DependencyR\x0eencodeProvided\"\xd3\x01\n" +
	"\x14MatchingRequirements\x12\x89\x01\n" +
	"\x15data_input_allow_list\x18\x01 \x01(\v2V.envoy.extensions.filters.common.dependency.v3.MatchingRequirements.DataInputAllowListR\x12dataInputAllowList\x1a/\n" +
	"\x12DataInputAllowList\x12\x19\n" +
	"\btype_url\x18\x01 \x03(\tR\atypeUrlB\xbb\x01\xba\x80\xc8\xd1\x06\x02\x10\x02\n" +
	";io.envoyproxy.envoy.extensions.filters.common.dependency.v3B\x0fDependencyProtoP\x01Zagithub.com/envoyproxy/go-control-plane/envoy/extensions/filters/common/dependency/v3;dependencyv3b\x06proto3"

var (
	file_envoy_extensions_filters_common_dependency_v3_dependency_proto_rawDescOnce sync.Once
	file_envoy_extensions_filters_common_dependency_v3_dependency_proto_rawDescData []byte
)

func file_envoy_extensions_filters_common_dependency_v3_dependency_proto_rawDescGZIP() []byte {
	file_envoy_extensions_filters_common_dependency_v3_dependency_proto_rawDescOnce.Do(func() {
		file_envoy_extensions_filters_common_dependency_v3_dependency_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_extensions_filters_common_dependency_v3_dependency_proto_rawDesc), len(file_envoy_extensions_filters_common_dependency_v3_dependency_proto_rawDesc)))
	})
	return file_envoy_extensions_filters_common_dependency_v3_dependency_proto_rawDescData
}

var file_envoy_extensions_filters_common_dependency_v3_dependency_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_envoy_extensions_filters_common_dependency_v3_dependency_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_envoy_extensions_filters_common_dependency_v3_dependency_proto_goTypes = []any{
	(Dependency_DependencyType)(0),                  // 0: envoy.extensions.filters.common.dependency.v3.Dependency.DependencyType
	(*Dependency)(nil),                              // 1: envoy.extensions.filters.common.dependency.v3.Dependency
	(*FilterDependencies)(nil),                      // 2: envoy.extensions.filters.common.dependency.v3.FilterDependencies
	(*MatchingRequirements)(nil),                    // 3: envoy.extensions.filters.common.dependency.v3.MatchingRequirements
	(*MatchingRequirements_DataInputAllowList)(nil), // 4: envoy.extensions.filters.common.dependency.v3.MatchingRequirements.DataInputAllowList
}
var file_envoy_extensions_filters_common_dependency_v3_dependency_proto_depIdxs = []int32{
	0, // 0: envoy.extensions.filters.common.dependency.v3.Dependency.type:type_name -> envoy.extensions.filters.common.dependency.v3.Dependency.DependencyType
	1, // 1: envoy.extensions.filters.common.dependency.v3.FilterDependencies.decode_required:type_name -> envoy.extensions.filters.common.dependency.v3.Dependency
	1, // 2: envoy.extensions.filters.common.dependency.v3.FilterDependencies.decode_provided:type_name -> envoy.extensions.filters.common.dependency.v3.Dependency
	1, // 3: envoy.extensions.filters.common.dependency.v3.FilterDependencies.encode_required:type_name -> envoy.extensions.filters.common.dependency.v3.Dependency
	1, // 4: envoy.extensions.filters.common.dependency.v3.FilterDependencies.encode_provided:type_name -> envoy.extensions.filters.common.dependency.v3.Dependency
	4, // 5: envoy.extensions.filters.common.dependency.v3.MatchingRequirements.data_input_allow_list:type_name -> envoy.extensions.filters.common.dependency.v3.MatchingRequirements.DataInputAllowList
	6, // [6:6] is the sub-list for method output_type
	6, // [6:6] is the sub-list for method input_type
	6, // [6:6] is the sub-list for extension type_name
	6, // [6:6] is the sub-list for extension extendee
	0, // [0:6] is the sub-list for field type_name
}

func init() { file_envoy_extensions_filters_common_dependency_v3_dependency_proto_init() }
func file_envoy_extensions_filters_common_dependency_v3_dependency_proto_init() {
	if File_envoy_extensions_filters_common_dependency_v3_dependency_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_common_dependency_v3_dependency_proto_rawDesc), len(file_envoy_extensions_filters_common_dependency_v3_dependency_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_extensions_filters_common_dependency_v3_dependency_proto_goTypes,
		DependencyIndexes: file_envoy_extensions_filters_common_dependency_v3_dependency_proto_depIdxs,
		EnumInfos:         file_envoy_extensions_filters_common_dependency_v3_dependency_proto_enumTypes,
		MessageInfos:      file_envoy_extensions_filters_common_dependency_v3_dependency_proto_msgTypes,
	}.Build()
	File_envoy_extensions_filters_common_dependency_v3_dependency_proto = out.File
	file_envoy_extensions_filters_common_dependency_v3_dependency_proto_goTypes = nil
	file_envoy_extensions_filters_common_dependency_v3_dependency_proto_depIdxs = nil
}
