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

package ip_taggingv3

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

// The type of requests the filter should apply to. The supported types
// are internal, external or both. The
// :ref:`x-forwarded-for<config_http_conn_man_headers_x-forwarded-for_internal_origin>` header is
// used to determine if a request is internal and will result in
// :ref:`x-envoy-internal<config_http_conn_man_headers_x-envoy-internal>`
// being set. The filter defaults to both, and it will apply to all request types.
type IPTagging_RequestType int32

const (
	// Both external and internal requests will be tagged. This is the default value.
	IPTagging_BOTH IPTagging_RequestType = 0
	// Only internal requests will be tagged.
	IPTagging_INTERNAL IPTagging_RequestType = 1
	// Only external requests will be tagged.
	IPTagging_EXTERNAL IPTagging_RequestType = 2
)

// Enum value maps for IPTagging_RequestType.
var (
	IPTagging_RequestType_name = map[int32]string{
		0: "BOTH",
		1: "INTERNAL",
		2: "EXTERNAL",
	}
	IPTagging_RequestType_value = map[string]int32{
		"BOTH":     0,
		"INTERNAL": 1,
		"EXTERNAL": 2,
	}
)

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

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

func (IPTagging_RequestType) Descriptor() protoreflect.EnumDescriptor {
	return file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_enumTypes[0].Descriptor()
}

func (IPTagging_RequestType) Type() protoreflect.EnumType {
	return &file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_enumTypes[0]
}

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

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

// Describes how to apply the tags to the headers.
type IPTagging_IpTagHeader_HeaderAction int32

const (
	// (DEFAULT) The header specified in :ref:`ip_tag_header <envoy_v3_api_field_extensions.filters.http.ip_tagging.v3.IPTagging.ip_tag_header>`
	// will be dropped, before the tags are applied. The incoming header will be "sanitized" regardless of whether the request is internal or external.
	//
	// Note that the header will be visible unsanitized to any filters that are invoked before the ip-tag-header filter, unless it has an *x-envoy* prefix.
	IPTagging_IpTagHeader_SANITIZE IPTagging_IpTagHeader_HeaderAction = 0
	// Tags will be appended to the header specified in
	// :ref:`ip_tag_header <envoy_v3_api_field_extensions.filters.http.ip_tagging.v3.IPTagging.ip_tag_header>`.
	//
	// Please note that this could cause the header to retain values set by the http client regardless of whether the request is internal or external.
	IPTagging_IpTagHeader_APPEND_IF_EXISTS_OR_ADD IPTagging_IpTagHeader_HeaderAction = 1
)

// Enum value maps for IPTagging_IpTagHeader_HeaderAction.
var (
	IPTagging_IpTagHeader_HeaderAction_name = map[int32]string{
		0: "SANITIZE",
		1: "APPEND_IF_EXISTS_OR_ADD",
	}
	IPTagging_IpTagHeader_HeaderAction_value = map[string]int32{
		"SANITIZE":                0,
		"APPEND_IF_EXISTS_OR_ADD": 1,
	}
)

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

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

func (IPTagging_IpTagHeader_HeaderAction) Descriptor() protoreflect.EnumDescriptor {
	return file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_enumTypes[1].Descriptor()
}

func (IPTagging_IpTagHeader_HeaderAction) Type() protoreflect.EnumType {
	return &file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_enumTypes[1]
}

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

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

// [#next-free-field: 6]
type IPTagging struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The type of request the filter should apply to.
	RequestType IPTagging_RequestType `protobuf:"varint,1,opt,name=request_type,json=requestType,proto3,enum=envoy.extensions.filters.http.ip_tagging.v3.IPTagging_RequestType" json:"request_type,omitempty"`
	// [#comment:TODO(ccaraman): Extend functionality to load IP tags from file system.
	// Tracked by issue https://github.com/envoyproxy/envoy/issues/2695]
	// The set of IP tags for the filter.
	IpTags []*IPTagging_IPTag `protobuf:"bytes,4,rep,name=ip_tags,json=ipTags,proto3" json:"ip_tags,omitempty"`
	// Specify to which header the tags will be written.
	//
	// If left unspecified, the tags will be appended to the “x-envoy-ip-tags“ header.
	IpTagHeader   *IPTagging_IpTagHeader `protobuf:"bytes,5,opt,name=ip_tag_header,json=ipTagHeader,proto3" json:"ip_tag_header,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*IPTagging) ProtoMessage() {}

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

func (x *IPTagging) GetRequestType() IPTagging_RequestType {
	if x != nil {
		return x.RequestType
	}
	return IPTagging_BOTH
}

func (x *IPTagging) GetIpTags() []*IPTagging_IPTag {
	if x != nil {
		return x.IpTags
	}
	return nil
}

func (x *IPTagging) GetIpTagHeader() *IPTagging_IpTagHeader {
	if x != nil {
		return x.IpTagHeader
	}
	return nil
}

// Supplies the IP tag name and the IP address subnets.
type IPTagging_IPTag struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Specifies the IP tag name to apply.
	IpTagName string `protobuf:"bytes,1,opt,name=ip_tag_name,json=ipTagName,proto3" json:"ip_tag_name,omitempty"`
	// A list of IP address subnets that will be tagged with
	// ip_tag_name. Both IPv4 and IPv6 are supported.
	IpList        []*v3.CidrRange `protobuf:"bytes,2,rep,name=ip_list,json=ipList,proto3" json:"ip_list,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*IPTagging_IPTag) ProtoMessage() {}

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

func (x *IPTagging_IPTag) GetIpTagName() string {
	if x != nil {
		return x.IpTagName
	}
	return ""
}

func (x *IPTagging_IPTag) GetIpList() []*v3.CidrRange {
	if x != nil {
		return x.IpList
	}
	return nil
}

// Specify to which header the tags will be written.
type IPTagging_IpTagHeader struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Header to use for ip-tagging.
	//
	// This header will be sanitized based on the config in
	// :ref:`action <envoy_v3_api_field_extensions.filters.http.ip_tagging.v3.IPTagging.IpTagHeader.action>`
	// rather than the defaults for x-envoy prefixed headers.
	Header string `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// Control if the :ref:`header <envoy_v3_api_field_extensions.filters.http.ip_tagging.v3.IPTagging.IpTagHeader.header>`
	// will be sanitized, or be appended to.
	//
	// Default: *SANITIZE*.
	Action        IPTagging_IpTagHeader_HeaderAction `protobuf:"varint,2,opt,name=action,proto3,enum=envoy.extensions.filters.http.ip_tagging.v3.IPTagging_IpTagHeader_HeaderAction" json:"action,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*IPTagging_IpTagHeader) ProtoMessage() {}

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

func (x *IPTagging_IpTagHeader) GetHeader() string {
	if x != nil {
		return x.Header
	}
	return ""
}

func (x *IPTagging_IpTagHeader) GetAction() IPTagging_IpTagHeader_HeaderAction {
	if x != nil {
		return x.Action
	}
	return IPTagging_IpTagHeader_SANITIZE
}

var File_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto protoreflect.FileDescriptor

const file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_rawDesc = "" +
	"\n" +
	"<envoy/extensions/filters/http/ip_tagging/v3/ip_tagging.proto\x12+envoy.extensions.filters.http.ip_tagging.v3\x1a\"envoy/config/core/v3/address.proto\x1a\x1dudpa/annotations/status.proto\x1a!udpa/annotations/versioning.proto\x1a\x17validate/validate.proto\"\xb1\x06\n" +
	"\tIPTagging\x12o\n" +
	"\frequest_type\x18\x01 \x01(\x0e2B.envoy.extensions.filters.http.ip_tagging.v3.IPTagging.RequestTypeB\b\xfaB\x05\x82\x01\x02\x10\x01R\vrequestType\x12_\n" +
	"\aip_tags\x18\x04 \x03(\v2<.envoy.extensions.filters.http.ip_tagging.v3.IPTagging.IPTagB\b\xfaB\x05\x92\x01\x02\b\x01R\x06ipTags\x12f\n" +
	"\rip_tag_header\x18\x05 \x01(\v2B.envoy.extensions.filters.http.ip_tagging.v3.IPTagging.IpTagHeaderR\vipTagHeader\x1a\xa0\x01\n" +
	"\x05IPTag\x12\x1e\n" +
	"\vip_tag_name\x18\x01 \x01(\tR\tipTagName\x128\n" +
	"\aip_list\x18\x02 \x03(\v2\x1f.envoy.config.core.v3.CidrRangeR\x06ipList:=\x9aň\x1e8\n" +
	"6envoy.config.filter.http.ip_tagging.v2.IPTagging.IPTag\x1a\xd8\x01\n" +
	"\vIpTagHeader\x12%\n" +
	"\x06header\x18\x01 \x01(\tB\r\xfaB\n" +
	"r\b\x10\x01\xc8\x01\x00\xc0\x01\x01R\x06header\x12g\n" +
	"\x06action\x18\x02 \x01(\x0e2O.envoy.extensions.filters.http.ip_tagging.v3.IPTagging.IpTagHeader.HeaderActionR\x06action\"9\n" +
	"\fHeaderAction\x12\f\n" +
	"\bSANITIZE\x10\x00\x12\x1b\n" +
	"\x17APPEND_IF_EXISTS_OR_ADD\x10\x01\"3\n" +
	"\vRequestType\x12\b\n" +
	"\x04BOTH\x10\x00\x12\f\n" +
	"\bINTERNAL\x10\x01\x12\f\n" +
	"\bEXTERNAL\x10\x02:7\x9aň\x1e2\n" +
	"0envoy.config.filter.http.ip_tagging.v2.IPTaggingB\xb6\x01\xba\x80\xc8\xd1\x06\x02\x10\x02\n" +
	"9io.envoyproxy.envoy.extensions.filters.http.ip_tagging.v3B\x0eIpTaggingProtoP\x01Z_github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/ip_tagging/v3;ip_taggingv3b\x06proto3"

var (
	file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_rawDescOnce sync.Once
	file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_rawDescData []byte
)

func file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_rawDescGZIP() []byte {
	file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_rawDescOnce.Do(func() {
		file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_rawDesc), len(file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_rawDesc)))
	})
	return file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_rawDescData
}

var file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_goTypes = []any{
	(IPTagging_RequestType)(0),              // 0: envoy.extensions.filters.http.ip_tagging.v3.IPTagging.RequestType
	(IPTagging_IpTagHeader_HeaderAction)(0), // 1: envoy.extensions.filters.http.ip_tagging.v3.IPTagging.IpTagHeader.HeaderAction
	(*IPTagging)(nil),                       // 2: envoy.extensions.filters.http.ip_tagging.v3.IPTagging
	(*IPTagging_IPTag)(nil),                 // 3: envoy.extensions.filters.http.ip_tagging.v3.IPTagging.IPTag
	(*IPTagging_IpTagHeader)(nil),           // 4: envoy.extensions.filters.http.ip_tagging.v3.IPTagging.IpTagHeader
	(*v3.CidrRange)(nil),                    // 5: envoy.config.core.v3.CidrRange
}
var file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_depIdxs = []int32{
	0, // 0: envoy.extensions.filters.http.ip_tagging.v3.IPTagging.request_type:type_name -> envoy.extensions.filters.http.ip_tagging.v3.IPTagging.RequestType
	3, // 1: envoy.extensions.filters.http.ip_tagging.v3.IPTagging.ip_tags:type_name -> envoy.extensions.filters.http.ip_tagging.v3.IPTagging.IPTag
	4, // 2: envoy.extensions.filters.http.ip_tagging.v3.IPTagging.ip_tag_header:type_name -> envoy.extensions.filters.http.ip_tagging.v3.IPTagging.IpTagHeader
	5, // 3: envoy.extensions.filters.http.ip_tagging.v3.IPTagging.IPTag.ip_list:type_name -> envoy.config.core.v3.CidrRange
	1, // 4: envoy.extensions.filters.http.ip_tagging.v3.IPTagging.IpTagHeader.action:type_name -> envoy.extensions.filters.http.ip_tagging.v3.IPTagging.IpTagHeader.HeaderAction
	5, // [5:5] is the sub-list for method output_type
	5, // [5:5] is the sub-list for method input_type
	5, // [5:5] is the sub-list for extension type_name
	5, // [5:5] is the sub-list for extension extendee
	0, // [0:5] is the sub-list for field type_name
}

func init() { file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_init() }
func file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_init() {
	if File_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_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_ip_tagging_v3_ip_tagging_proto_rawDesc), len(file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_goTypes,
		DependencyIndexes: file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_depIdxs,
		EnumInfos:         file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_enumTypes,
		MessageInfos:      file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_msgTypes,
	}.Build()
	File_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto = out.File
	file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_goTypes = nil
	file_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto_depIdxs = nil
}
