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

package generic_secretv3

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

// GenericSecret formatter extension implements the “%SECRET(name)%“ command operator that
// resolves the value of a named generic secret obtained via SDS or static bootstrap configuration.
//
// The secret must be a :ref:`GenericSecret <envoy_v3_api_msg_extensions.transport_sockets.tls.v3.GenericSecret>`
// with the “secret“ field set.
//
// Example configuration adding an authorization header with a secret obtained via SDS:
//
// .. code-block:: yaml
//
//	http_uri:
//	  uri: https://api.example.com/v1/data
//	  cluster: api_backend
//	  timeout: 5s
//	request_headers_to_add:
//	- header:
//	    key: "authorization"
//	    value: "Bearer %SECRET(my-api-token)%"
//	formatters:
//	- name: envoy.formatter.generic_secret
//	  typed_config:
//	    "@type": type.googleapis.com/envoy.extensions.formatter.generic_secret.v3.GenericSecret
//	    secret_configs:
//	      my-api-token:
//	        name: bearer-token
//	        sds_config:
//	          ads: {}
type GenericSecret struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Map from formatter lookup name to SDS secret configuration. The map key is the name used
	// in the “%SECRET(name)%“ command operator.
	SecretConfigs map[string]*v3.SdsSecretConfig `protobuf:"bytes,1,rep,name=secret_configs,json=secretConfigs,proto3" json:"secret_configs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GenericSecret) ProtoMessage() {}

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

func (x *GenericSecret) GetSecretConfigs() map[string]*v3.SdsSecretConfig {
	if x != nil {
		return x.SecretConfigs
	}
	return nil
}

var File_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto protoreflect.FileDescriptor

const file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_rawDesc = "" +
	"\n" +
	"Aenvoy/extensions/formatter/generic_secret/v3/generic_secret.proto\x12,envoy.extensions.formatter.generic_secret.v3\x1a6envoy/extensions/transport_sockets/tls/v3/secret.proto\x1a\x1dudpa/annotations/status.proto\x1a\x17validate/validate.proto\"\x8e\x02\n" +
	"\rGenericSecret\x12\x7f\n" +
	"\x0esecret_configs\x18\x01 \x03(\v2N.envoy.extensions.formatter.generic_secret.v3.GenericSecret.SecretConfigsEntryB\b\xfaB\x05\x9a\x01\x02\b\x01R\rsecretConfigs\x1a|\n" +
	"\x12SecretConfigsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12P\n" +
	"\x05value\x18\x02 \x01(\v2:.envoy.extensions.transport_sockets.tls.v3.SdsSecretConfigR\x05value:\x028\x01B\xc0\x01\xba\x80\xc8\xd1\x06\x02\x10\x02\n" +
	":io.envoyproxy.envoy.extensions.formatter.generic_secret.v3B\x12GenericSecretProtoP\x01Zdgithub.com/envoyproxy/go-control-plane/envoy/extensions/formatter/generic_secret/v3;generic_secretv3b\x06proto3"

var (
	file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_rawDescOnce sync.Once
	file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_rawDescData []byte
)

func file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_rawDescGZIP() []byte {
	file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_rawDescOnce.Do(func() {
		file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_rawDesc), len(file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_rawDesc)))
	})
	return file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_rawDescData
}

var file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_goTypes = []any{
	(*GenericSecret)(nil),      // 0: envoy.extensions.formatter.generic_secret.v3.GenericSecret
	nil,                        // 1: envoy.extensions.formatter.generic_secret.v3.GenericSecret.SecretConfigsEntry
	(*v3.SdsSecretConfig)(nil), // 2: envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig
}
var file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_depIdxs = []int32{
	1, // 0: envoy.extensions.formatter.generic_secret.v3.GenericSecret.secret_configs:type_name -> envoy.extensions.formatter.generic_secret.v3.GenericSecret.SecretConfigsEntry
	2, // 1: envoy.extensions.formatter.generic_secret.v3.GenericSecret.SecretConfigsEntry.value:type_name -> envoy.extensions.transport_sockets.tls.v3.SdsSecretConfig
	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_formatter_generic_secret_v3_generic_secret_proto_init() }
func file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_init() {
	if File_envoy_extensions_formatter_generic_secret_v3_generic_secret_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_formatter_generic_secret_v3_generic_secret_proto_rawDesc), len(file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_goTypes,
		DependencyIndexes: file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_depIdxs,
		MessageInfos:      file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_msgTypes,
	}.Build()
	File_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto = out.File
	file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_goTypes = nil
	file_envoy_extensions_formatter_generic_secret_v3_generic_secret_proto_depIdxs = nil
}
