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

package original_dstv3

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

// Configuration for the Original Destination cluster.
type OriginalDstCluster struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// When true, an HTTP header can be used to override the original dst address. The default header is
	// :ref:`x-envoy-original-dst-host <config_http_conn_man_headers_x-envoy-original-dst-host>`.
	//
	// .. attention::
	//
	//	This header isn't sanitized by default, so enabling this feature allows HTTP clients to
	//	route traffic to arbitrary hosts and/or ports, which may have serious security
	//	consequences.
	//
	// .. note::
	//
	//	If the header appears multiple times only the first value is used.
	UseHttpHeader bool `protobuf:"varint,1,opt,name=use_http_header,json=useHttpHeader,proto3" json:"use_http_header,omitempty"`
	// The http header to override destination address if :ref:`use_http_header
	// <envoy_v3_api_field_extensions.clusters.original_dst.v3.OriginalDstCluster.use_http_header>`
	// is set to true. If the value is empty,
	// :ref:`x-envoy-original-dst-host <config_http_conn_man_headers_x-envoy-original-dst-host>` will be used.
	HttpHeaderName string `protobuf:"bytes,2,opt,name=http_header_name,json=httpHeaderName,proto3" json:"http_header_name,omitempty"`
	// The port to override for the original dst address. This port
	// will take precedence over filter state and header override ports.
	UpstreamPortOverride *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=upstream_port_override,json=upstreamPortOverride,proto3" json:"upstream_port_override,omitempty"`
	// The dynamic metadata key to override destination address.
	// First the request metadata is considered, then the connection one.
	MetadataKey   *v3.MetadataKey `protobuf:"bytes,4,opt,name=metadata_key,json=metadataKey,proto3" json:"metadata_key,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*OriginalDstCluster) ProtoMessage() {}

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

func (x *OriginalDstCluster) GetUseHttpHeader() bool {
	if x != nil {
		return x.UseHttpHeader
	}
	return false
}

func (x *OriginalDstCluster) GetHttpHeaderName() string {
	if x != nil {
		return x.HttpHeaderName
	}
	return ""
}

func (x *OriginalDstCluster) GetUpstreamPortOverride() *wrapperspb.UInt32Value {
	if x != nil {
		return x.UpstreamPortOverride
	}
	return nil
}

func (x *OriginalDstCluster) GetMetadataKey() *v3.MetadataKey {
	if x != nil {
		return x.MetadataKey
	}
	return nil
}

var File_envoy_extensions_clusters_original_dst_v3_original_dst_proto protoreflect.FileDescriptor

const file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_rawDesc = "" +
	"\n" +
	"<envoy/extensions/clusters/original_dst/v3/original_dst.proto\x12)envoy.extensions.clusters.original_dst.v3\x1a%envoy/type/metadata/v3/metadata.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dudpa/annotations/status.proto\x1a\x17validate/validate.proto\"\x8d\x02\n" +
	"\x12OriginalDstCluster\x12&\n" +
	"\x0fuse_http_header\x18\x01 \x01(\bR\ruseHttpHeader\x12(\n" +
	"\x10http_header_name\x18\x02 \x01(\tR\x0ehttpHeaderName\x12]\n" +
	"\x16upstream_port_override\x18\x03 \x01(\v2\x1c.google.protobuf.UInt32ValueB\t\xfaB\x06*\x04\x18\xff\xff\x03R\x14upstreamPortOverride\x12F\n" +
	"\fmetadata_key\x18\x04 \x01(\v2#.envoy.type.metadata.v3.MetadataKeyR\vmetadataKeyB\xb6\x01\xba\x80\xc8\xd1\x06\x02\x10\x02\n" +
	"7io.envoyproxy.envoy.extensions.clusters.original_dst.v3B\x10OriginalDstProtoP\x01Z_github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/original_dst/v3;original_dstv3b\x06proto3"

var (
	file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_rawDescOnce sync.Once
	file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_rawDescData []byte
)

func file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_rawDescGZIP() []byte {
	file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_rawDescOnce.Do(func() {
		file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_rawDesc), len(file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_rawDesc)))
	})
	return file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_rawDescData
}

var file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_goTypes = []any{
	(*OriginalDstCluster)(nil),     // 0: envoy.extensions.clusters.original_dst.v3.OriginalDstCluster
	(*wrapperspb.UInt32Value)(nil), // 1: google.protobuf.UInt32Value
	(*v3.MetadataKey)(nil),         // 2: envoy.type.metadata.v3.MetadataKey
}
var file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_depIdxs = []int32{
	1, // 0: envoy.extensions.clusters.original_dst.v3.OriginalDstCluster.upstream_port_override:type_name -> google.protobuf.UInt32Value
	2, // 1: envoy.extensions.clusters.original_dst.v3.OriginalDstCluster.metadata_key:type_name -> envoy.type.metadata.v3.MetadataKey
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_init() }
func file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_init() {
	if File_envoy_extensions_clusters_original_dst_v3_original_dst_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_clusters_original_dst_v3_original_dst_proto_rawDesc), len(file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_goTypes,
		DependencyIndexes: file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_depIdxs,
		MessageInfos:      file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_msgTypes,
	}.Build()
	File_envoy_extensions_clusters_original_dst_v3_original_dst_proto = out.File
	file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_goTypes = nil
	file_envoy_extensions_clusters_original_dst_v3_original_dst_proto_depIdxs = nil
}
