Optional. An optional CRC32C checksum of theAsymmetricDecryptRequest.ciphertext. If specified,KeyManagementServicewill verify the integrity of the receivedAsymmetricDecryptRequest.ciphertextusing this checksum.KeyManagementServicewill report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(AsymmetricDecryptRequest.ciphertext) is equal toAsymmetricDecryptRequest.ciphertext_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.
getName
Required. The resource name of theCryptoKeyVersionto use for
decryption.
Returns
Type
Description
string
setName
Required. The resource name of theCryptoKeyVersionto use for
decryption.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCiphertext
Required. The data encrypted with the namedCryptoKeyVersion's public key using
OAEP.
Returns
Type
Description
string
setCiphertext
Required. The data encrypted with the namedCryptoKeyVersion's public key using
OAEP.
If specified,KeyManagementServicewill
verify the integrity of the receivedAsymmetricDecryptRequest.ciphertextusing this checksum.KeyManagementServicewill
report an error if the checksum verification fails. If you receive a
checksum error, your client should verify that
CRC32C(AsymmetricDecryptRequest.ciphertext)
is equal toAsymmetricDecryptRequest.ciphertext_crc32c,
and if so, perform a limited number of retries. A persistent mismatch may
indicate an issue in your computation of the CRC32C checksum. Note: This
field is defined as int64 for reasons of compatibility across different
languages. However, it is a non-negative integer, which will never exceed
2^32-1, and can be safely downconverted to uint32 in languages that support
this type.
Returns the unboxed value fromgetCiphertextCrc32C()
Optional. An optional CRC32C checksum of theAsymmetricDecryptRequest.ciphertext.
If specified,KeyManagementServicewill
verify the integrity of the receivedAsymmetricDecryptRequest.ciphertextusing this checksum.KeyManagementServicewill
report an error if the checksum verification fails. If you receive a
checksum error, your client should verify that
CRC32C(AsymmetricDecryptRequest.ciphertext)
is equal toAsymmetricDecryptRequest.ciphertext_crc32c,
and if so, perform a limited number of retries. A persistent mismatch may
indicate an issue in your computation of the CRC32C checksum. Note: This
field is defined as int64 for reasons of compatibility across different
languages. However, it is a non-negative integer, which will never exceed
2^32-1, and can be safely downconverted to uint32 in languages that support
this type.
If specified,KeyManagementServicewill
verify the integrity of the receivedAsymmetricDecryptRequest.ciphertextusing this checksum.KeyManagementServicewill
report an error if the checksum verification fails. If you receive a
checksum error, your client should verify that
CRC32C(AsymmetricDecryptRequest.ciphertext)
is equal toAsymmetricDecryptRequest.ciphertext_crc32c,
and if so, perform a limited number of retries. A persistent mismatch may
indicate an issue in your computation of the CRC32C checksum. Note: This
field is defined as int64 for reasons of compatibility across different
languages. However, it is a non-negative integer, which will never exceed
2^32-1, and can be safely downconverted to uint32 in languages that support
this type.
Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object.
Optional. An optional CRC32C checksum of theAsymmetricDecryptRequest.ciphertext.
If specified,KeyManagementServicewill
verify the integrity of the receivedAsymmetricDecryptRequest.ciphertextusing this checksum.KeyManagementServicewill
report an error if the checksum verification fails. If you receive a
checksum error, your client should verify that
CRC32C(AsymmetricDecryptRequest.ciphertext)
is equal toAsymmetricDecryptRequest.ciphertext_crc32c,
and if so, perform a limited number of retries. A persistent mismatch may
indicate an issue in your computation of the CRC32C checksum. Note: This
field is defined as int64 for reasons of compatibility across different
languages. However, it is a non-negative integer, which will never exceed
2^32-1, and can be safely downconverted to uint32 in languages that support
this type.
Parameter
Name
Description
var
int|string|null
Returns
Type
Description
$this
static::build
Parameters
Name
Description
name
string
Required. The resource name of theCryptoKeyVersionto use for
decryption. Please seeKeyManagementServiceClient::cryptoKeyVersionName()for help formatting this field.
ciphertext
string
Required. The data encrypted with the namedCryptoKeyVersion's public key using
OAEP.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud KMS V1 Client - Class AsymmetricDecryptRequest (2.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.1 (latest)](/php/docs/reference/cloud-kms/latest/V1.AsymmetricDecryptRequest)\n- [2.3.0](/php/docs/reference/cloud-kms/2.3.0/V1.AsymmetricDecryptRequest)\n- [2.2.0](/php/docs/reference/cloud-kms/2.2.0/V1.AsymmetricDecryptRequest)\n- [2.1.6](/php/docs/reference/cloud-kms/2.1.6/V1.AsymmetricDecryptRequest)\n- [2.0.0](/php/docs/reference/cloud-kms/2.0.0/V1.AsymmetricDecryptRequest)\n- [1.23.0](/php/docs/reference/cloud-kms/1.23.0/V1.AsymmetricDecryptRequest)\n- [1.22.1](/php/docs/reference/cloud-kms/1.22.1/V1.AsymmetricDecryptRequest)\n- [1.21.4](/php/docs/reference/cloud-kms/1.21.4/V1.AsymmetricDecryptRequest)\n- [1.20.3](/php/docs/reference/cloud-kms/1.20.3/V1.AsymmetricDecryptRequest)\n- [1.19.0](/php/docs/reference/cloud-kms/1.19.0/V1.AsymmetricDecryptRequest)\n- [1.18.1](/php/docs/reference/cloud-kms/1.18.1/V1.AsymmetricDecryptRequest)\n- [1.17.0](/php/docs/reference/cloud-kms/1.17.0/V1.AsymmetricDecryptRequest)\n- [1.16.4](/php/docs/reference/cloud-kms/1.16.4/V1.AsymmetricDecryptRequest)\n- [1.15.3](/php/docs/reference/cloud-kms/1.15.3/V1.AsymmetricDecryptRequest) \nReference documentation and code samples for the Cloud KMS V1 Client class AsymmetricDecryptRequest.\n\nRequest message for\n[KeyManagementService.AsymmetricDecrypt](/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient#_Google_Cloud_Kms_V1_Client_KeyManagementServiceClient__asymmetricDecrypt__).\n\nGenerated from protobuf message `google.cloud.kms.v1.AsymmetricDecryptRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Kms \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The resource name of the\n[CryptoKeyVersion](/php/docs/reference/cloud-kms/latest/V1.CryptoKeyVersion) to use for\ndecryption.\n\n### setName\n\nRequired. The resource name of the\n[CryptoKeyVersion](/php/docs/reference/cloud-kms/latest/V1.CryptoKeyVersion) to use for\ndecryption.\n\n### getCiphertext\n\nRequired. The data encrypted with the named\n[CryptoKeyVersion](/php/docs/reference/cloud-kms/latest/V1.CryptoKeyVersion)'s public key using\nOAEP.\n\n### setCiphertext\n\nRequired. The data encrypted with the named\n[CryptoKeyVersion](/php/docs/reference/cloud-kms/latest/V1.CryptoKeyVersion)'s public key using\nOAEP.\n\n### getCiphertextCrc32C\n\nOptional. An optional CRC32C checksum of the\n[AsymmetricDecryptRequest.ciphertext](/php/docs/reference/cloud-kms/latest/V1.AsymmetricDecryptRequest#_Google_Cloud_Kms_V1_AsymmetricDecryptRequest__getCiphertext__).\n\nIf specified,\n[KeyManagementService](/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient) will\nverify the integrity of the received\n[AsymmetricDecryptRequest.ciphertext](/php/docs/reference/cloud-kms/latest/V1.AsymmetricDecryptRequest#_Google_Cloud_Kms_V1_AsymmetricDecryptRequest__getCiphertext__)\nusing this checksum.\n[KeyManagementService](/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient) will\nreport an error if the checksum verification fails. If you receive a\nchecksum error, your client should verify that\nCRC32C([AsymmetricDecryptRequest.ciphertext](/php/docs/reference/cloud-kms/latest/V1.AsymmetricDecryptRequest#_Google_Cloud_Kms_V1_AsymmetricDecryptRequest__getCiphertext__))\nis equal to\nAsymmetricDecryptRequest.ciphertext_crc32c,\nand if so, perform a limited number of retries. A persistent mismatch may\nindicate an issue in your computation of the CRC32C checksum. Note: This\nfield is defined as int64 for reasons of compatibility across different\nlanguages. However, it is a non-negative integer, which will never exceed\n2\\^32-1, and can be safely downconverted to uint32 in languages that support\nthis type.\n\n### hasCiphertextCrc32C\n\n### clearCiphertextCrc32C\n\n### getCiphertextCrc32CUnwrapped\n\nReturns the unboxed value from `getCiphertextCrc32C()`\n\nOptional. An optional CRC32C checksum of the\n[AsymmetricDecryptRequest.ciphertext](/php/docs/reference/cloud-kms/latest/V1.AsymmetricDecryptRequest#_Google_Cloud_Kms_V1_AsymmetricDecryptRequest__getCiphertext__).\nIf specified,\n[KeyManagementService](/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient) will\nverify the integrity of the received\n[AsymmetricDecryptRequest.ciphertext](/php/docs/reference/cloud-kms/latest/V1.AsymmetricDecryptRequest#_Google_Cloud_Kms_V1_AsymmetricDecryptRequest__getCiphertext__)\nusing this checksum.\n[KeyManagementService](/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient) will\nreport an error if the checksum verification fails. If you receive a\nchecksum error, your client should verify that\nCRC32C([AsymmetricDecryptRequest.ciphertext](/php/docs/reference/cloud-kms/latest/V1.AsymmetricDecryptRequest#_Google_Cloud_Kms_V1_AsymmetricDecryptRequest__getCiphertext__))\nis equal to\nAsymmetricDecryptRequest.ciphertext_crc32c,\nand if so, perform a limited number of retries. A persistent mismatch may\nindicate an issue in your computation of the CRC32C checksum. Note: This\nfield is defined as int64 for reasons of compatibility across different\nlanguages. However, it is a non-negative integer, which will never exceed\n2\\^32-1, and can be safely downconverted to uint32 in languages that support\nthis type.\n\n### setCiphertextCrc32C\n\nOptional. An optional CRC32C checksum of the\n[AsymmetricDecryptRequest.ciphertext](/php/docs/reference/cloud-kms/latest/V1.AsymmetricDecryptRequest#_Google_Cloud_Kms_V1_AsymmetricDecryptRequest__getCiphertext__).\n\nIf specified,\n[KeyManagementService](/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient) will\nverify the integrity of the received\n[AsymmetricDecryptRequest.ciphertext](/php/docs/reference/cloud-kms/latest/V1.AsymmetricDecryptRequest#_Google_Cloud_Kms_V1_AsymmetricDecryptRequest__getCiphertext__)\nusing this checksum.\n[KeyManagementService](/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient) will\nreport an error if the checksum verification fails. If you receive a\nchecksum error, your client should verify that\nCRC32C([AsymmetricDecryptRequest.ciphertext](/php/docs/reference/cloud-kms/latest/V1.AsymmetricDecryptRequest#_Google_Cloud_Kms_V1_AsymmetricDecryptRequest__getCiphertext__))\nis equal to\nAsymmetricDecryptRequest.ciphertext_crc32c,\nand if so, perform a limited number of retries. A persistent mismatch may\nindicate an issue in your computation of the CRC32C checksum. Note: This\nfield is defined as int64 for reasons of compatibility across different\nlanguages. However, it is a non-negative integer, which will never exceed\n2\\^32-1, and can be safely downconverted to uint32 in languages that support\nthis type.\n\n### setCiphertextCrc32CUnwrapped\n\nSets the field by wrapping a primitive type in a Google\\\\Protobuf\\\\Int64Value object.\n\nOptional. An optional CRC32C checksum of the\n[AsymmetricDecryptRequest.ciphertext](/php/docs/reference/cloud-kms/latest/V1.AsymmetricDecryptRequest#_Google_Cloud_Kms_V1_AsymmetricDecryptRequest__getCiphertext__).\nIf specified,\n[KeyManagementService](/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient) will\nverify the integrity of the received\n[AsymmetricDecryptRequest.ciphertext](/php/docs/reference/cloud-kms/latest/V1.AsymmetricDecryptRequest#_Google_Cloud_Kms_V1_AsymmetricDecryptRequest__getCiphertext__)\nusing this checksum.\n[KeyManagementService](/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient) will\nreport an error if the checksum verification fails. If you receive a\nchecksum error, your client should verify that\nCRC32C([AsymmetricDecryptRequest.ciphertext](/php/docs/reference/cloud-kms/latest/V1.AsymmetricDecryptRequest#_Google_Cloud_Kms_V1_AsymmetricDecryptRequest__getCiphertext__))\nis equal to\nAsymmetricDecryptRequest.ciphertext_crc32c,\nand if so, perform a limited number of retries. A persistent mismatch may\nindicate an issue in your computation of the CRC32C checksum. Note: This\nfield is defined as int64 for reasons of compatibility across different\nlanguages. However, it is a non-negative integer, which will never exceed\n2\\^32-1, and can be safely downconverted to uint32 in languages that support\nthis type.\n\n### static::build"]]