// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/kms/v1/asymmetricsignature/asymmetric_signature_key.proto

package kms

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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)
)

// Supported asymmetric signature algorithms.
type AsymmetricSignatureAlgorithm int32

const (
	AsymmetricSignatureAlgorithm_ASYMMETRIC_SIGNATURE_ALGORITHM_UNSPECIFIED AsymmetricSignatureAlgorithm = 0
	// RSA-2048 signature with PSS padding and SHA-256
	AsymmetricSignatureAlgorithm_RSA_2048_SIGN_PSS_SHA_256 AsymmetricSignatureAlgorithm = 1
	// RSA-2048 signature with PSS padding and SHA-384
	AsymmetricSignatureAlgorithm_RSA_2048_SIGN_PSS_SHA_384 AsymmetricSignatureAlgorithm = 2
	// RSA-2048 signature with PSS padding and SHA-512
	AsymmetricSignatureAlgorithm_RSA_2048_SIGN_PSS_SHA_512 AsymmetricSignatureAlgorithm = 3
	// RSA-3072 signature with PSS padding and SHA-256
	AsymmetricSignatureAlgorithm_RSA_3072_SIGN_PSS_SHA_256 AsymmetricSignatureAlgorithm = 4
	// RSA-3072 signature with PSS padding and SHA-384
	AsymmetricSignatureAlgorithm_RSA_3072_SIGN_PSS_SHA_384 AsymmetricSignatureAlgorithm = 5
	// RSA-3072 signature with PSS padding and SHA-512
	AsymmetricSignatureAlgorithm_RSA_3072_SIGN_PSS_SHA_512 AsymmetricSignatureAlgorithm = 6
	// RSA-4096 signature with PSS padding and SHA-256
	AsymmetricSignatureAlgorithm_RSA_4096_SIGN_PSS_SHA_256 AsymmetricSignatureAlgorithm = 7
	// RSA-4096 signature with PSS padding and SHA-384
	AsymmetricSignatureAlgorithm_RSA_4096_SIGN_PSS_SHA_384 AsymmetricSignatureAlgorithm = 8
	// RSA-4096 signature with PSS padding and SHA-512
	AsymmetricSignatureAlgorithm_RSA_4096_SIGN_PSS_SHA_512 AsymmetricSignatureAlgorithm = 9
	// ECDSA signature with NIST P-256 curve and SHA-256
	AsymmetricSignatureAlgorithm_ECDSA_NIST_P256_SHA_256 AsymmetricSignatureAlgorithm = 10
	// ECDSA signature with NIST P-384 curve and SHA-384
	AsymmetricSignatureAlgorithm_ECDSA_NIST_P384_SHA_384 AsymmetricSignatureAlgorithm = 11
	// ECDSA signature with NIST P-521 curve and SHA-512
	AsymmetricSignatureAlgorithm_ECDSA_NIST_P521_SHA_512 AsymmetricSignatureAlgorithm = 12
	// ECDSA signature with SECP256_K1 curve and SHA-256
	AsymmetricSignatureAlgorithm_ECDSA_SECP256_K1_SHA_256 AsymmetricSignatureAlgorithm = 13
)

// Enum value maps for AsymmetricSignatureAlgorithm.
var (
	AsymmetricSignatureAlgorithm_name = map[int32]string{
		0:  "ASYMMETRIC_SIGNATURE_ALGORITHM_UNSPECIFIED",
		1:  "RSA_2048_SIGN_PSS_SHA_256",
		2:  "RSA_2048_SIGN_PSS_SHA_384",
		3:  "RSA_2048_SIGN_PSS_SHA_512",
		4:  "RSA_3072_SIGN_PSS_SHA_256",
		5:  "RSA_3072_SIGN_PSS_SHA_384",
		6:  "RSA_3072_SIGN_PSS_SHA_512",
		7:  "RSA_4096_SIGN_PSS_SHA_256",
		8:  "RSA_4096_SIGN_PSS_SHA_384",
		9:  "RSA_4096_SIGN_PSS_SHA_512",
		10: "ECDSA_NIST_P256_SHA_256",
		11: "ECDSA_NIST_P384_SHA_384",
		12: "ECDSA_NIST_P521_SHA_512",
		13: "ECDSA_SECP256_K1_SHA_256",
	}
	AsymmetricSignatureAlgorithm_value = map[string]int32{
		"ASYMMETRIC_SIGNATURE_ALGORITHM_UNSPECIFIED": 0,
		"RSA_2048_SIGN_PSS_SHA_256":                  1,
		"RSA_2048_SIGN_PSS_SHA_384":                  2,
		"RSA_2048_SIGN_PSS_SHA_512":                  3,
		"RSA_3072_SIGN_PSS_SHA_256":                  4,
		"RSA_3072_SIGN_PSS_SHA_384":                  5,
		"RSA_3072_SIGN_PSS_SHA_512":                  6,
		"RSA_4096_SIGN_PSS_SHA_256":                  7,
		"RSA_4096_SIGN_PSS_SHA_384":                  8,
		"RSA_4096_SIGN_PSS_SHA_512":                  9,
		"ECDSA_NIST_P256_SHA_256":                    10,
		"ECDSA_NIST_P384_SHA_384":                    11,
		"ECDSA_NIST_P521_SHA_512":                    12,
		"ECDSA_SECP256_K1_SHA_256":                   13,
	}
)

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

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

func (AsymmetricSignatureAlgorithm) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_enumTypes[0].Descriptor()
}

func (AsymmetricSignatureAlgorithm) Type() protoreflect.EnumType {
	return &file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_enumTypes[0]
}

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

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

type AsymmetricSignatureKey_Status int32

const (
	AsymmetricSignatureKey_STATUS_UNSPECIFIED AsymmetricSignatureKey_Status = 0
	// The key is being created.
	AsymmetricSignatureKey_CREATING AsymmetricSignatureKey_Status = 1
	// The key is active and can be used for encryption and decryption or signature and verification.
	// Can be set to INACTIVE using the [AsymmetricKeyService.Update] method.
	AsymmetricSignatureKey_ACTIVE AsymmetricSignatureKey_Status = 2
	// The key is inactive and unusable.
	// Can be set to ACTIVE using the [AsymmetricKeyService.Update] method.
	AsymmetricSignatureKey_INACTIVE AsymmetricSignatureKey_Status = 3
)

// Enum value maps for AsymmetricSignatureKey_Status.
var (
	AsymmetricSignatureKey_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "CREATING",
		2: "ACTIVE",
		3: "INACTIVE",
	}
	AsymmetricSignatureKey_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"CREATING":           1,
		"ACTIVE":             2,
		"INACTIVE":           3,
	}
)

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

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

func (AsymmetricSignatureKey_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_enumTypes[1].Descriptor()
}

func (AsymmetricSignatureKey_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_enumTypes[1]
}

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

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

// An asymmetric KMS key that may contain several versions of the cryptographic material.
type AsymmetricSignatureKey struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the key.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the folder that the key belongs to.
	FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Time when the key was created.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Name of the key.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the key.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Custom labels for the key as `key:value` pairs. Maximum 64 per key.
	Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Current status of the key.
	Status AsymmetricSignatureKey_Status `protobuf:"varint,7,opt,name=status,proto3,enum=yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureKey_Status" json:"status,omitempty"`
	// Signature Algorithm ID.
	SignatureAlgorithm AsymmetricSignatureAlgorithm `protobuf:"varint,8,opt,name=signature_algorithm,json=signatureAlgorithm,proto3,enum=yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureAlgorithm" json:"signature_algorithm,omitempty"`
	// Flag that inhibits deletion of the key
	DeletionProtection bool `protobuf:"varint,9,opt,name=deletion_protection,json=deletionProtection,proto3" json:"deletion_protection,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

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

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

func (*AsymmetricSignatureKey) ProtoMessage() {}

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

func (x *AsymmetricSignatureKey) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *AsymmetricSignatureKey) GetFolderId() string {
	if x != nil {
		return x.FolderId
	}
	return ""
}

func (x *AsymmetricSignatureKey) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

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

func (x *AsymmetricSignatureKey) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *AsymmetricSignatureKey) GetLabels() map[string]string {
	if x != nil {
		return x.Labels
	}
	return nil
}

func (x *AsymmetricSignatureKey) GetStatus() AsymmetricSignatureKey_Status {
	if x != nil {
		return x.Status
	}
	return AsymmetricSignatureKey_STATUS_UNSPECIFIED
}

func (x *AsymmetricSignatureKey) GetSignatureAlgorithm() AsymmetricSignatureAlgorithm {
	if x != nil {
		return x.SignatureAlgorithm
	}
	return AsymmetricSignatureAlgorithm_ASYMMETRIC_SIGNATURE_ALGORITHM_UNSPECIFIED
}

func (x *AsymmetricSignatureKey) GetDeletionProtection() bool {
	if x != nil {
		return x.DeletionProtection
	}
	return false
}

var File_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto protoreflect.FileDescriptor

const file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_rawDesc = "" +
	"\n" +
	"Fyandex/cloud/kms/v1/asymmetricsignature/asymmetric_signature_key.proto\x12'yandex.cloud.kms.v1.asymmetricsignature\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa9\x05\n" +
	"\x16AsymmetricSignatureKey\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
	"\tfolder_id\x18\x02 \x01(\tR\bfolderId\x129\n" +
	"\n" +
	"created_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x12\n" +
	"\x04name\x18\x04 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x05 \x01(\tR\vdescription\x12c\n" +
	"\x06labels\x18\x06 \x03(\v2K.yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureKey.LabelsEntryR\x06labels\x12^\n" +
	"\x06status\x18\a \x01(\x0e2F.yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureKey.StatusR\x06status\x12v\n" +
	"\x13signature_algorithm\x18\b \x01(\x0e2E.yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureAlgorithmR\x12signatureAlgorithm\x12/\n" +
	"\x13deletion_protection\x18\t \x01(\bR\x12deletionProtection\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"H\n" +
	"\x06Status\x12\x16\n" +
	"\x12STATUS_UNSPECIFIED\x10\x00\x12\f\n" +
	"\bCREATING\x10\x01\x12\n" +
	"\n" +
	"\x06ACTIVE\x10\x02\x12\f\n" +
	"\bINACTIVE\x10\x03*\xda\x03\n" +
	"\x1cAsymmetricSignatureAlgorithm\x12.\n" +
	"*ASYMMETRIC_SIGNATURE_ALGORITHM_UNSPECIFIED\x10\x00\x12\x1d\n" +
	"\x19RSA_2048_SIGN_PSS_SHA_256\x10\x01\x12\x1d\n" +
	"\x19RSA_2048_SIGN_PSS_SHA_384\x10\x02\x12\x1d\n" +
	"\x19RSA_2048_SIGN_PSS_SHA_512\x10\x03\x12\x1d\n" +
	"\x19RSA_3072_SIGN_PSS_SHA_256\x10\x04\x12\x1d\n" +
	"\x19RSA_3072_SIGN_PSS_SHA_384\x10\x05\x12\x1d\n" +
	"\x19RSA_3072_SIGN_PSS_SHA_512\x10\x06\x12\x1d\n" +
	"\x19RSA_4096_SIGN_PSS_SHA_256\x10\a\x12\x1d\n" +
	"\x19RSA_4096_SIGN_PSS_SHA_384\x10\b\x12\x1d\n" +
	"\x19RSA_4096_SIGN_PSS_SHA_512\x10\t\x12\x1b\n" +
	"\x17ECDSA_NIST_P256_SHA_256\x10\n" +
	"\x12\x1b\n" +
	"\x17ECDSA_NIST_P384_SHA_384\x10\v\x12\x1b\n" +
	"\x17ECDSA_NIST_P521_SHA_512\x10\f\x12\x1c\n" +
	"\x18ECDSA_SECP256_K1_SHA_256\x10\rBj\n" +
	"\x17yandex.cloud.api.kms.v1ZOgithub.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/asymmetricsignature;kmsb\x06proto3"

var (
	file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_rawDescOnce sync.Once
	file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_rawDescData []byte
)

func file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_rawDescGZIP() []byte {
	file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_rawDesc), len(file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_rawDesc)))
	})
	return file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_rawDescData
}

var file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_goTypes = []any{
	(AsymmetricSignatureAlgorithm)(0),  // 0: yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureAlgorithm
	(AsymmetricSignatureKey_Status)(0), // 1: yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureKey.Status
	(*AsymmetricSignatureKey)(nil),     // 2: yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureKey
	nil,                                // 3: yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureKey.LabelsEntry
	(*timestamppb.Timestamp)(nil),      // 4: google.protobuf.Timestamp
}
var file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_depIdxs = []int32{
	4, // 0: yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureKey.created_at:type_name -> google.protobuf.Timestamp
	3, // 1: yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureKey.labels:type_name -> yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureKey.LabelsEntry
	1, // 2: yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureKey.status:type_name -> yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureKey.Status
	0, // 3: yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureKey.signature_algorithm:type_name -> yandex.cloud.kms.v1.asymmetricsignature.AsymmetricSignatureAlgorithm
	4, // [4:4] is the sub-list for method output_type
	4, // [4:4] is the sub-list for method input_type
	4, // [4:4] is the sub-list for extension type_name
	4, // [4:4] is the sub-list for extension extendee
	0, // [0:4] is the sub-list for field type_name
}

func init() { file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_init() }
func file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_init() {
	if File_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_rawDesc), len(file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_msgTypes,
	}.Build()
	File_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto = out.File
	file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_goTypes = nil
	file_yandex_cloud_kms_v1_asymmetricsignature_asymmetric_signature_key_proto_depIdxs = nil
}
