// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/kms/v1/asymmetricencryption/asymmetric_encryption_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 encryption algorithms.
type AsymmetricEncryptionAlgorithm int32

const (
	AsymmetricEncryptionAlgorithm_ASYMMETRIC_ENCRYPTION_ALGORITHM_UNSPECIFIED AsymmetricEncryptionAlgorithm = 0
	// RSA-2048 encryption with OAEP padding and SHA-256
	AsymmetricEncryptionAlgorithm_RSA_2048_ENC_OAEP_SHA_256 AsymmetricEncryptionAlgorithm = 1
	// RSA-3072 encryption with OAEP padding and SHA-256
	AsymmetricEncryptionAlgorithm_RSA_3072_ENC_OAEP_SHA_256 AsymmetricEncryptionAlgorithm = 2
	// RSA-4096 encryption with OAEP padding and SHA-256
	AsymmetricEncryptionAlgorithm_RSA_4096_ENC_OAEP_SHA_256 AsymmetricEncryptionAlgorithm = 3
)

// Enum value maps for AsymmetricEncryptionAlgorithm.
var (
	AsymmetricEncryptionAlgorithm_name = map[int32]string{
		0: "ASYMMETRIC_ENCRYPTION_ALGORITHM_UNSPECIFIED",
		1: "RSA_2048_ENC_OAEP_SHA_256",
		2: "RSA_3072_ENC_OAEP_SHA_256",
		3: "RSA_4096_ENC_OAEP_SHA_256",
	}
	AsymmetricEncryptionAlgorithm_value = map[string]int32{
		"ASYMMETRIC_ENCRYPTION_ALGORITHM_UNSPECIFIED": 0,
		"RSA_2048_ENC_OAEP_SHA_256":                   1,
		"RSA_3072_ENC_OAEP_SHA_256":                   2,
		"RSA_4096_ENC_OAEP_SHA_256":                   3,
	}
)

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

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

func (AsymmetricEncryptionAlgorithm) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_enumTypes[0].Descriptor()
}

func (AsymmetricEncryptionAlgorithm) Type() protoreflect.EnumType {
	return &file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_enumTypes[0]
}

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

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

type AsymmetricEncryptionKey_Status int32

const (
	AsymmetricEncryptionKey_STATUS_UNSPECIFIED AsymmetricEncryptionKey_Status = 0
	// The key is being created.
	AsymmetricEncryptionKey_CREATING AsymmetricEncryptionKey_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.
	AsymmetricEncryptionKey_ACTIVE AsymmetricEncryptionKey_Status = 2
	// The key is inactive and unusable.
	// Can be set to ACTIVE using the [AsymmetricKeyService.Update] method.
	AsymmetricEncryptionKey_INACTIVE AsymmetricEncryptionKey_Status = 3
)

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

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

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

func (AsymmetricEncryptionKey_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_enumTypes[1].Descriptor()
}

func (AsymmetricEncryptionKey_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_enumTypes[1]
}

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

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

// An asymmetric KMS key that may contain several versions of the cryptographic material.
type AsymmetricEncryptionKey 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 AsymmetricEncryptionKey_Status `protobuf:"varint,7,opt,name=status,proto3,enum=yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionKey_Status" json:"status,omitempty"`
	// Asymmetric Encryption Algorithm ID.
	EncryptionAlgorithm AsymmetricEncryptionAlgorithm `protobuf:"varint,8,opt,name=encryption_algorithm,json=encryptionAlgorithm,proto3,enum=yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionAlgorithm" json:"encryption_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 *AsymmetricEncryptionKey) Reset() {
	*x = AsymmetricEncryptionKey{}
	mi := &file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*AsymmetricEncryptionKey) ProtoMessage() {}

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

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

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

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

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

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

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

func (x *AsymmetricEncryptionKey) GetStatus() AsymmetricEncryptionKey_Status {
	if x != nil {
		return x.Status
	}
	return AsymmetricEncryptionKey_STATUS_UNSPECIFIED
}

func (x *AsymmetricEncryptionKey) GetEncryptionAlgorithm() AsymmetricEncryptionAlgorithm {
	if x != nil {
		return x.EncryptionAlgorithm
	}
	return AsymmetricEncryptionAlgorithm_ASYMMETRIC_ENCRYPTION_ALGORITHM_UNSPECIFIED
}

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

var File_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto protoreflect.FileDescriptor

const file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_rawDesc = "" +
	"\n" +
	"Hyandex/cloud/kms/v1/asymmetricencryption/asymmetric_encryption_key.proto\x12(yandex.cloud.kms.v1.asymmetricencryption\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb2\x05\n" +
	"\x17AsymmetricEncryptionKey\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\x12e\n" +
	"\x06labels\x18\x06 \x03(\v2M.yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionKey.LabelsEntryR\x06labels\x12`\n" +
	"\x06status\x18\a \x01(\x0e2H.yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionKey.StatusR\x06status\x12z\n" +
	"\x14encryption_algorithm\x18\b \x01(\x0e2G.yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionAlgorithmR\x13encryptionAlgorithm\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*\xad\x01\n" +
	"\x1dAsymmetricEncryptionAlgorithm\x12/\n" +
	"+ASYMMETRIC_ENCRYPTION_ALGORITHM_UNSPECIFIED\x10\x00\x12\x1d\n" +
	"\x19RSA_2048_ENC_OAEP_SHA_256\x10\x01\x12\x1d\n" +
	"\x19RSA_3072_ENC_OAEP_SHA_256\x10\x02\x12\x1d\n" +
	"\x19RSA_4096_ENC_OAEP_SHA_256\x10\x03Bk\n" +
	"\x17yandex.cloud.api.kms.v1ZPgithub.com/yandex-cloud/go-genproto/yandex/cloud/kms/v1/asymmetricencryption;kmsb\x06proto3"

var (
	file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_rawDescOnce sync.Once
	file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_rawDescData []byte
)

func file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_rawDescGZIP() []byte {
	file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_rawDesc), len(file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_rawDesc)))
	})
	return file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_rawDescData
}

var file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_goTypes = []any{
	(AsymmetricEncryptionAlgorithm)(0),  // 0: yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionAlgorithm
	(AsymmetricEncryptionKey_Status)(0), // 1: yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionKey.Status
	(*AsymmetricEncryptionKey)(nil),     // 2: yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionKey
	nil,                                 // 3: yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionKey.LabelsEntry
	(*timestamppb.Timestamp)(nil),       // 4: google.protobuf.Timestamp
}
var file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_depIdxs = []int32{
	4, // 0: yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionKey.created_at:type_name -> google.protobuf.Timestamp
	3, // 1: yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionKey.labels:type_name -> yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionKey.LabelsEntry
	1, // 2: yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionKey.status:type_name -> yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionKey.Status
	0, // 3: yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionKey.encryption_algorithm:type_name -> yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionAlgorithm
	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_asymmetricencryption_asymmetric_encryption_key_proto_init() }
func file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_init() {
	if File_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_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_asymmetricencryption_asymmetric_encryption_key_proto_rawDesc), len(file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_msgTypes,
	}.Build()
	File_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto = out.File
	file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_goTypes = nil
	file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_key_proto_depIdxs = nil
}
