// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v6.33.2
// source: envoy/api/v2/auth/secret.proto

package auth

import (
	_ "github.com/cncf/xds/go/udpa/annotations"
	core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core"
	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 GenericSecret struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Secret of generic type and is available to filters.
	Secret        *core.DataSource `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GenericSecret) Reset() {
	*x = GenericSecret{}
	mi := &file_envoy_api_v2_auth_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_api_v2_auth_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_api_v2_auth_secret_proto_rawDescGZIP(), []int{0}
}

func (x *GenericSecret) GetSecret() *core.DataSource {
	if x != nil {
		return x.Secret
	}
	return nil
}

type SdsSecretConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Name (FQDN, UUID, SPKI, SHA256, etc.) by which the secret can be uniquely referred to.
	// When both name and config are specified, then secret can be fetched and/or reloaded via
	// SDS. When only name is specified, then secret will be loaded from static resources.
	Name          string             `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	SdsConfig     *core.ConfigSource `protobuf:"bytes,2,opt,name=sds_config,json=sdsConfig,proto3" json:"sds_config,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SdsSecretConfig) ProtoMessage() {}

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

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

func (x *SdsSecretConfig) GetSdsConfig() *core.ConfigSource {
	if x != nil {
		return x.SdsConfig
	}
	return nil
}

// [#next-free-field: 6]
type Secret struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Name (FQDN, UUID, SPKI, SHA256, etc.) by which the secret can be uniquely referred to.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are valid to be assigned to Type:
	//
	//	*Secret_TlsCertificate
	//	*Secret_SessionTicketKeys
	//	*Secret_ValidationContext
	//	*Secret_GenericSecret
	Type          isSecret_Type `protobuf_oneof:"type"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Secret) ProtoMessage() {}

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

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

func (x *Secret) GetType() isSecret_Type {
	if x != nil {
		return x.Type
	}
	return nil
}

func (x *Secret) GetTlsCertificate() *TlsCertificate {
	if x != nil {
		if x, ok := x.Type.(*Secret_TlsCertificate); ok {
			return x.TlsCertificate
		}
	}
	return nil
}

func (x *Secret) GetSessionTicketKeys() *TlsSessionTicketKeys {
	if x != nil {
		if x, ok := x.Type.(*Secret_SessionTicketKeys); ok {
			return x.SessionTicketKeys
		}
	}
	return nil
}

func (x *Secret) GetValidationContext() *CertificateValidationContext {
	if x != nil {
		if x, ok := x.Type.(*Secret_ValidationContext); ok {
			return x.ValidationContext
		}
	}
	return nil
}

func (x *Secret) GetGenericSecret() *GenericSecret {
	if x != nil {
		if x, ok := x.Type.(*Secret_GenericSecret); ok {
			return x.GenericSecret
		}
	}
	return nil
}

type isSecret_Type interface {
	isSecret_Type()
}

type Secret_TlsCertificate struct {
	TlsCertificate *TlsCertificate `protobuf:"bytes,2,opt,name=tls_certificate,json=tlsCertificate,proto3,oneof"`
}

type Secret_SessionTicketKeys struct {
	SessionTicketKeys *TlsSessionTicketKeys `protobuf:"bytes,3,opt,name=session_ticket_keys,json=sessionTicketKeys,proto3,oneof"`
}

type Secret_ValidationContext struct {
	ValidationContext *CertificateValidationContext `protobuf:"bytes,4,opt,name=validation_context,json=validationContext,proto3,oneof"`
}

type Secret_GenericSecret struct {
	GenericSecret *GenericSecret `protobuf:"bytes,5,opt,name=generic_secret,json=genericSecret,proto3,oneof"`
}

func (*Secret_TlsCertificate) isSecret_Type() {}

func (*Secret_SessionTicketKeys) isSecret_Type() {}

func (*Secret_ValidationContext) isSecret_Type() {}

func (*Secret_GenericSecret) isSecret_Type() {}

var File_envoy_api_v2_auth_secret_proto protoreflect.FileDescriptor

const file_envoy_api_v2_auth_secret_proto_rawDesc = "" +
	"\n" +
	"\x1eenvoy/api/v2/auth/secret.proto\x12\x11envoy.api.v2.auth\x1a\x1eenvoy/api/v2/auth/common.proto\x1a\x1cenvoy/api/v2/core/base.proto\x1a%envoy/api/v2/core/config_source.proto\x1a\x1eudpa/annotations/migrate.proto\x1a udpa/annotations/sensitive.proto\x1a\x1dudpa/annotations/status.proto\"N\n" +
	"\rGenericSecret\x12=\n" +
	"\x06secret\x18\x01 \x01(\v2\x1d.envoy.api.v2.core.DataSourceB\x06\xb8\xb7\x8b\xa4\x02\x01R\x06secret\"e\n" +
	"\x0fSdsSecretConfig\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12>\n" +
	"\n" +
	"sds_config\x18\x02 \x01(\v2\x1f.envoy.api.v2.core.ConfigSourceR\tsdsConfig\"\xfa\x02\n" +
	"\x06Secret\x12\x12\n" +
	"\x04name\x18\x01 \x01(\tR\x04name\x12L\n" +
	"\x0ftls_certificate\x18\x02 \x01(\v2!.envoy.api.v2.auth.TlsCertificateH\x00R\x0etlsCertificate\x12Y\n" +
	"\x13session_ticket_keys\x18\x03 \x01(\v2'.envoy.api.v2.auth.TlsSessionTicketKeysH\x00R\x11sessionTicketKeys\x12`\n" +
	"\x12validation_context\x18\x04 \x01(\v2/.envoy.api.v2.auth.CertificateValidationContextH\x00R\x11validationContext\x12I\n" +
	"\x0egeneric_secret\x18\x05 \x01(\v2 .envoy.api.v2.auth.GenericSecretH\x00R\rgenericSecretB\x06\n" +
	"\x04typeB\xa3\x01\xf2\x98\xfe\x8f\x05+\x12)envoy.extensions.transport_sockets.tls.v3\xba\x80\xc8\xd1\x06\x02\x10\x01\n" +
	"\x1fio.envoyproxy.envoy.api.v2.authB\vSecretProtoP\x01Z8github.com/envoyproxy/go-control-plane/envoy/api/v2/authb\x06proto3"

var (
	file_envoy_api_v2_auth_secret_proto_rawDescOnce sync.Once
	file_envoy_api_v2_auth_secret_proto_rawDescData []byte
)

func file_envoy_api_v2_auth_secret_proto_rawDescGZIP() []byte {
	file_envoy_api_v2_auth_secret_proto_rawDescOnce.Do(func() {
		file_envoy_api_v2_auth_secret_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_api_v2_auth_secret_proto_rawDesc), len(file_envoy_api_v2_auth_secret_proto_rawDesc)))
	})
	return file_envoy_api_v2_auth_secret_proto_rawDescData
}

var file_envoy_api_v2_auth_secret_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_envoy_api_v2_auth_secret_proto_goTypes = []any{
	(*GenericSecret)(nil),                // 0: envoy.api.v2.auth.GenericSecret
	(*SdsSecretConfig)(nil),              // 1: envoy.api.v2.auth.SdsSecretConfig
	(*Secret)(nil),                       // 2: envoy.api.v2.auth.Secret
	(*core.DataSource)(nil),              // 3: envoy.api.v2.core.DataSource
	(*core.ConfigSource)(nil),            // 4: envoy.api.v2.core.ConfigSource
	(*TlsCertificate)(nil),               // 5: envoy.api.v2.auth.TlsCertificate
	(*TlsSessionTicketKeys)(nil),         // 6: envoy.api.v2.auth.TlsSessionTicketKeys
	(*CertificateValidationContext)(nil), // 7: envoy.api.v2.auth.CertificateValidationContext
}
var file_envoy_api_v2_auth_secret_proto_depIdxs = []int32{
	3, // 0: envoy.api.v2.auth.GenericSecret.secret:type_name -> envoy.api.v2.core.DataSource
	4, // 1: envoy.api.v2.auth.SdsSecretConfig.sds_config:type_name -> envoy.api.v2.core.ConfigSource
	5, // 2: envoy.api.v2.auth.Secret.tls_certificate:type_name -> envoy.api.v2.auth.TlsCertificate
	6, // 3: envoy.api.v2.auth.Secret.session_ticket_keys:type_name -> envoy.api.v2.auth.TlsSessionTicketKeys
	7, // 4: envoy.api.v2.auth.Secret.validation_context:type_name -> envoy.api.v2.auth.CertificateValidationContext
	0, // 5: envoy.api.v2.auth.Secret.generic_secret:type_name -> envoy.api.v2.auth.GenericSecret
	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_api_v2_auth_secret_proto_init() }
func file_envoy_api_v2_auth_secret_proto_init() {
	if File_envoy_api_v2_auth_secret_proto != nil {
		return
	}
	file_envoy_api_v2_auth_common_proto_init()
	file_envoy_api_v2_auth_secret_proto_msgTypes[2].OneofWrappers = []any{
		(*Secret_TlsCertificate)(nil),
		(*Secret_SessionTicketKeys)(nil),
		(*Secret_ValidationContext)(nil),
		(*Secret_GenericSecret)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_envoy_api_v2_auth_secret_proto_rawDesc), len(file_envoy_api_v2_auth_secret_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_api_v2_auth_secret_proto_goTypes,
		DependencyIndexes: file_envoy_api_v2_auth_secret_proto_depIdxs,
		MessageInfos:      file_envoy_api_v2_auth_secret_proto_msgTypes,
	}.Build()
	File_envoy_api_v2_auth_secret_proto = out.File
	file_envoy_api_v2_auth_secret_proto_goTypes = nil
	file_envoy_api_v2_auth_secret_proto_depIdxs = nil
}
