// 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/asymmetricencryption/asymmetric_encryption_crypto_service.proto

package kms

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	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 AsymmetricDecryptRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the asymmetric KMS key to use for decryption.
	KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	// Ciphertext to be decrypted.
	// Should be encoded with base64.
	Ciphertext    []byte `protobuf:"bytes,2,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AsymmetricDecryptRequest) ProtoMessage() {}

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

func (x *AsymmetricDecryptRequest) GetKeyId() string {
	if x != nil {
		return x.KeyId
	}
	return ""
}

func (x *AsymmetricDecryptRequest) GetCiphertext() []byte {
	if x != nil {
		return x.Ciphertext
	}
	return nil
}

type AsymmetricDecryptResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the asymmetric KMS key that was used for decryption.
	KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	// Decrypted plaintext.
	Plaintext     []byte `protobuf:"bytes,2,opt,name=plaintext,proto3" json:"plaintext,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AsymmetricDecryptResponse) ProtoMessage() {}

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

func (x *AsymmetricDecryptResponse) GetKeyId() string {
	if x != nil {
		return x.KeyId
	}
	return ""
}

func (x *AsymmetricDecryptResponse) GetPlaintext() []byte {
	if x != nil {
		return x.Plaintext
	}
	return nil
}

type AsymmetricGetPublicKeyRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the asymmetric KMS key to be used for public key retrieval.
	KeyId         string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AsymmetricGetPublicKeyRequest) ProtoMessage() {}

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

func (x *AsymmetricGetPublicKeyRequest) GetKeyId() string {
	if x != nil {
		return x.KeyId
	}
	return ""
}

type AsymmetricGetPublicKeyResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the asymmetric KMS key to get public key of.
	KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	// Public key value.
	// The value is a PEM-encoded X.509 public key, also known as SubjectPublicKeyInfo (SPKI),
	// as defined in RFC 5280.
	PublicKey     string `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *AsymmetricGetPublicKeyResponse) Reset() {
	*x = AsymmetricGetPublicKeyResponse{}
	mi := &file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*AsymmetricGetPublicKeyResponse) ProtoMessage() {}

func (x *AsymmetricGetPublicKeyResponse) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_msgTypes[3]
	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 AsymmetricGetPublicKeyResponse.ProtoReflect.Descriptor instead.
func (*AsymmetricGetPublicKeyResponse) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_rawDescGZIP(), []int{3}
}

func (x *AsymmetricGetPublicKeyResponse) GetKeyId() string {
	if x != nil {
		return x.KeyId
	}
	return ""
}

func (x *AsymmetricGetPublicKeyResponse) GetPublicKey() string {
	if x != nil {
		return x.PublicKey
	}
	return ""
}

var File_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_rawDesc = "" +
	"\n" +
	"Syandex/cloud/kms/v1/asymmetricencryption/asymmetric_encryption_crypto_service.proto\x12(yandex.cloud.kms.v1.asymmetricencryption\x1a\x1cgoogle/api/annotations.proto\x1a\x1dyandex/cloud/validation.proto\"p\n" +
	"\x18AsymmetricDecryptRequest\x12#\n" +
	"\x06key_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\x05keyId\x12/\n" +
	"\n" +
	"ciphertext\x18\x02 \x01(\fB\x0f\xe8\xc71\x01\x8a\xc81\a<=32768R\n" +
	"ciphertext\"P\n" +
	"\x19AsymmetricDecryptResponse\x12\x15\n" +
	"\x06key_id\x18\x01 \x01(\tR\x05keyId\x12\x1c\n" +
	"\tplaintext\x18\x02 \x01(\fR\tplaintext\"D\n" +
	"\x1dAsymmetricGetPublicKeyRequest\x12#\n" +
	"\x06key_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\x05keyId\"V\n" +
	"\x1eAsymmetricGetPublicKeyResponse\x12\x15\n" +
	"\x06key_id\x18\x01 \x01(\tR\x05keyId\x12\x1d\n" +
	"\n" +
	"public_key\x18\x02 \x01(\tR\tpublicKey2\xd7\x03\n" +
	"!AsymmetricEncryptionCryptoService\x12\xd0\x01\n" +
	"\aDecrypt\x12B.yandex.cloud.kms.v1.asymmetricencryption.AsymmetricDecryptRequest\x1aC.yandex.cloud.kms.v1.asymmetricencryption.AsymmetricDecryptResponse\"<\x82\xd3\xe4\x93\x026:\x01*\"1/kms/v1/asymmetricEncryptionKeys/{key_id}:decrypt\x12\xde\x01\n" +
	"\fGetPublicKey\x12G.yandex.cloud.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyRequest\x1aH.yandex.cloud.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyResponse\";\x82\xd3\xe4\x93\x025\x123/kms/v1/asymmetricEncryptionKeys/{key_id}/publicKeyBk\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_crypto_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_rawDescData []byte
)

func file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_rawDesc), len(file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_rawDesc)))
	})
	return file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_rawDescData
}

var file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_goTypes = []any{
	(*AsymmetricDecryptRequest)(nil),       // 0: yandex.cloud.kms.v1.asymmetricencryption.AsymmetricDecryptRequest
	(*AsymmetricDecryptResponse)(nil),      // 1: yandex.cloud.kms.v1.asymmetricencryption.AsymmetricDecryptResponse
	(*AsymmetricGetPublicKeyRequest)(nil),  // 2: yandex.cloud.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyRequest
	(*AsymmetricGetPublicKeyResponse)(nil), // 3: yandex.cloud.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyResponse
}
var file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionCryptoService.Decrypt:input_type -> yandex.cloud.kms.v1.asymmetricencryption.AsymmetricDecryptRequest
	2, // 1: yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionCryptoService.GetPublicKey:input_type -> yandex.cloud.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyRequest
	1, // 2: yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionCryptoService.Decrypt:output_type -> yandex.cloud.kms.v1.asymmetricencryption.AsymmetricDecryptResponse
	3, // 3: yandex.cloud.kms.v1.asymmetricencryption.AsymmetricEncryptionCryptoService.GetPublicKey:output_type -> yandex.cloud.kms.v1.asymmetricencryption.AsymmetricGetPublicKeyResponse
	2, // [2:4] is the sub-list for method output_type
	0, // [0:2] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() {
	file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_init()
}
func file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_init() {
	if File_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_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_crypto_service_proto_rawDesc), len(file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto = out.File
	file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_goTypes = nil
	file_yandex_cloud_kms_v1_asymmetricencryption_asymmetric_encryption_crypto_service_proto_depIdxs = nil
}
