Integrity verification field. A CRC32C checksum of the returned MacSignResponse.mac. An integrity check of MacSignResponse.mac can be performed by computing the CRC32C checksum of MacSignResponse.mac and comparing your results to this field. Discard the response in case of non-matching checksum values, and 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.
↳ verified_data_crc32c
bool
Integrity verification field. A flag indicating whether MacSignRequest.data_crc32c was received by KeyManagementService and used for the integrity verification of the data. A false value of this field indicates either that MacSignRequest.data_crc32c was left unset or that it was not delivered to KeyManagementService. If you've set MacSignRequest.data_crc32c but this field is still false, discard the response and perform a limited number of retries.
Check this field to verify that the intended resource was used for signing.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getMac
The created signature.
Returns
Type
Description
string
setMac
The created signature.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getMacCrc32C
Integrity verification field. A CRC32C checksum of the returned
MacSignResponse.mac. An
integrity check of
MacSignResponse.mac can be
performed by computing the CRC32C checksum of
MacSignResponse.mac and
comparing your results to this field. Discard the response in case of
non-matching checksum values, and 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.
Integrity verification field. A CRC32C checksum of the returned
MacSignResponse.mac. An
integrity check of
MacSignResponse.mac can be
performed by computing the CRC32C checksum of
MacSignResponse.mac and
comparing your results to this field. Discard the response in case of
non-matching checksum values, and 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
Type
Description
int|string|null
setMacCrc32C
Integrity verification field. A CRC32C checksum of the returned
MacSignResponse.mac. An
integrity check of
MacSignResponse.mac can be
performed by computing the CRC32C checksum of
MacSignResponse.mac and
comparing your results to this field. Discard the response in case of
non-matching checksum values, and 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.
Integrity verification field. A CRC32C checksum of the returned
MacSignResponse.mac. An
integrity check of
MacSignResponse.mac can be
performed by computing the CRC32C checksum of
MacSignResponse.mac and
comparing your results to this field. Discard the response in case of
non-matching checksum values, and 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
getVerifiedDataCrc32C
Integrity verification field. A flag indicating whether
MacSignRequest.data_crc32c
was received by
KeyManagementService and used
for the integrity verification of the
data. A false value of this
field indicates either that
MacSignRequest.data_crc32c
was left unset or that it was not delivered to
KeyManagementService. If you've
set
MacSignRequest.data_crc32c
but this field is still false, discard the response and perform a limited
number of retries.
Returns
Type
Description
bool
setVerifiedDataCrc32C
Integrity verification field. A flag indicating whether
MacSignRequest.data_crc32c
was received by
KeyManagementService and used
for the integrity verification of the
data. A false value of this
field indicates either that
MacSignRequest.data_crc32c
was left unset or that it was not delivered to
KeyManagementService. If you've
set
MacSignRequest.data_crc32c
but this field is still false, discard the response and perform a limited
number of retries.
[[["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-09 UTC."],[],[],null,["# Cloud KMS V1 Client - Class MacSignResponse (2.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.1 (latest)](/php/docs/reference/cloud-kms/latest/V1.MacSignResponse)\n- [2.3.0](/php/docs/reference/cloud-kms/2.3.0/V1.MacSignResponse)\n- [2.2.0](/php/docs/reference/cloud-kms/2.2.0/V1.MacSignResponse)\n- [2.1.6](/php/docs/reference/cloud-kms/2.1.6/V1.MacSignResponse)\n- [2.0.0](/php/docs/reference/cloud-kms/2.0.0/V1.MacSignResponse)\n- [1.23.0](/php/docs/reference/cloud-kms/1.23.0/V1.MacSignResponse)\n- [1.22.1](/php/docs/reference/cloud-kms/1.22.1/V1.MacSignResponse)\n- [1.21.4](/php/docs/reference/cloud-kms/1.21.4/V1.MacSignResponse)\n- [1.20.3](/php/docs/reference/cloud-kms/1.20.3/V1.MacSignResponse)\n- [1.19.0](/php/docs/reference/cloud-kms/1.19.0/V1.MacSignResponse)\n- [1.18.1](/php/docs/reference/cloud-kms/1.18.1/V1.MacSignResponse)\n- [1.17.0](/php/docs/reference/cloud-kms/1.17.0/V1.MacSignResponse)\n- [1.16.4](/php/docs/reference/cloud-kms/1.16.4/V1.MacSignResponse)\n- [1.15.3](/php/docs/reference/cloud-kms/1.15.3/V1.MacSignResponse) \nReference documentation and code samples for the Cloud KMS V1 Client class MacSignResponse.\n\nResponse message for\n[KeyManagementService.MacSign](/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient#_Google_Cloud_Kms_V1_Client_KeyManagementServiceClient__macSign__).\n\nGenerated from protobuf message `google.cloud.kms.v1.MacSignResponse`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Kms \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe resource name of the\n[CryptoKeyVersion](/php/docs/reference/cloud-kms/latest/V1.CryptoKeyVersion) used for signing.\n\nCheck this field to verify that the intended resource was used for signing.\n\n### setName\n\nThe resource name of the\n[CryptoKeyVersion](/php/docs/reference/cloud-kms/latest/V1.CryptoKeyVersion) used for signing.\n\nCheck this field to verify that the intended resource was used for signing.\n\n### getMac\n\nThe created signature.\n\n### setMac\n\nThe created signature.\n\n### getMacCrc32C\n\nIntegrity verification field. A CRC32C checksum of the returned\n[MacSignResponse.mac](/php/docs/reference/cloud-kms/latest/V1.MacSignResponse#_Google_Cloud_Kms_V1_MacSignResponse__getMac__). An\nintegrity check of\n[MacSignResponse.mac](/php/docs/reference/cloud-kms/latest/V1.MacSignResponse#_Google_Cloud_Kms_V1_MacSignResponse__getMac__) can be\nperformed by computing the CRC32C checksum of\n[MacSignResponse.mac](/php/docs/reference/cloud-kms/latest/V1.MacSignResponse#_Google_Cloud_Kms_V1_MacSignResponse__getMac__) and\ncomparing your results to this field. Discard the response in case of\nnon-matching checksum values, and perform a limited number of retries. A\npersistent mismatch may indicate an issue in your computation of the CRC32C\nchecksum. Note: This field is defined as int64 for reasons of compatibility\nacross different languages. However, it is a non-negative integer, which\nwill never exceed 2\\^32-1, and can be safely downconverted to uint32 in\nlanguages that support this type.\n\n### hasMacCrc32C\n\n### clearMacCrc32C\n\n### getMacCrc32CUnwrapped\n\nReturns the unboxed value from `getMacCrc32C()`\n\nIntegrity verification field. A CRC32C checksum of the returned\n[MacSignResponse.mac](/php/docs/reference/cloud-kms/latest/V1.MacSignResponse#_Google_Cloud_Kms_V1_MacSignResponse__getMac__). An\nintegrity check of\n[MacSignResponse.mac](/php/docs/reference/cloud-kms/latest/V1.MacSignResponse#_Google_Cloud_Kms_V1_MacSignResponse__getMac__) can be\nperformed by computing the CRC32C checksum of\n[MacSignResponse.mac](/php/docs/reference/cloud-kms/latest/V1.MacSignResponse#_Google_Cloud_Kms_V1_MacSignResponse__getMac__) and\ncomparing your results to this field. Discard the response in case of\nnon-matching checksum values, and perform a limited number of retries. A\npersistent mismatch may indicate an issue in your computation of the CRC32C\nchecksum. Note: This field is defined as int64 for reasons of compatibility\nacross different languages. However, it is a non-negative integer, which\nwill never exceed 2\\^32-1, and can be safely downconverted to uint32 in\nlanguages that support this type.\n\n### setMacCrc32C\n\nIntegrity verification field. A CRC32C checksum of the returned\n[MacSignResponse.mac](/php/docs/reference/cloud-kms/latest/V1.MacSignResponse#_Google_Cloud_Kms_V1_MacSignResponse__getMac__). An\nintegrity check of\n[MacSignResponse.mac](/php/docs/reference/cloud-kms/latest/V1.MacSignResponse#_Google_Cloud_Kms_V1_MacSignResponse__getMac__) can be\nperformed by computing the CRC32C checksum of\n[MacSignResponse.mac](/php/docs/reference/cloud-kms/latest/V1.MacSignResponse#_Google_Cloud_Kms_V1_MacSignResponse__getMac__) and\ncomparing your results to this field. Discard the response in case of\nnon-matching checksum values, and perform a limited number of retries. A\npersistent mismatch may indicate an issue in your computation of the CRC32C\nchecksum. Note: This field is defined as int64 for reasons of compatibility\nacross different languages. However, it is a non-negative integer, which\nwill never exceed 2\\^32-1, and can be safely downconverted to uint32 in\nlanguages that support this type.\n\n### setMacCrc32CUnwrapped\n\nSets the field by wrapping a primitive type in a Google\\\\Protobuf\\\\Int64Value object.\n\nIntegrity verification field. A CRC32C checksum of the returned\n[MacSignResponse.mac](/php/docs/reference/cloud-kms/latest/V1.MacSignResponse#_Google_Cloud_Kms_V1_MacSignResponse__getMac__). An\nintegrity check of\n[MacSignResponse.mac](/php/docs/reference/cloud-kms/latest/V1.MacSignResponse#_Google_Cloud_Kms_V1_MacSignResponse__getMac__) can be\nperformed by computing the CRC32C checksum of\n[MacSignResponse.mac](/php/docs/reference/cloud-kms/latest/V1.MacSignResponse#_Google_Cloud_Kms_V1_MacSignResponse__getMac__) and\ncomparing your results to this field. Discard the response in case of\nnon-matching checksum values, and perform a limited number of retries. A\npersistent mismatch may indicate an issue in your computation of the CRC32C\nchecksum. Note: This field is defined as int64 for reasons of compatibility\nacross different languages. However, it is a non-negative integer, which\nwill never exceed 2\\^32-1, and can be safely downconverted to uint32 in\nlanguages that support this type.\n\n### getVerifiedDataCrc32C\n\nIntegrity verification field. A flag indicating whether\nMacSignRequest.data_crc32c\nwas received by\n[KeyManagementService](/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient) and used\nfor the integrity verification of the\n[data](/php/docs/reference/cloud-kms/latest/V1.MacSignRequest#_Google_Cloud_Kms_V1_MacSignRequest__getData__). A false value of this\nfield indicates either that\nMacSignRequest.data_crc32c\nwas left unset or that it was not delivered to\n[KeyManagementService](/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient). If you've\nset\nMacSignRequest.data_crc32c\nbut this field is still false, discard the response and perform a limited\nnumber of retries.\n\n### setVerifiedDataCrc32C\n\nIntegrity verification field. A flag indicating whether\nMacSignRequest.data_crc32c\nwas received by\n[KeyManagementService](/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient) and used\nfor the integrity verification of the\n[data](/php/docs/reference/cloud-kms/latest/V1.MacSignRequest#_Google_Cloud_Kms_V1_MacSignRequest__getData__). A false value of this\nfield indicates either that\nMacSignRequest.data_crc32c\nwas left unset or that it was not delivered to\n[KeyManagementService](/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient). If you've\nset\nMacSignRequest.data_crc32c\nbut this field is still false, discard the response and perform a limited\nnumber of retries.\n\n### getProtectionLevel\n\nThe [ProtectionLevel](/php/docs/reference/cloud-kms/latest/V1.ProtectionLevel) of the\n[CryptoKeyVersion](/php/docs/reference/cloud-kms/latest/V1.CryptoKeyVersion) used for signing.\n\n### setProtectionLevel\n\nThe [ProtectionLevel](/php/docs/reference/cloud-kms/latest/V1.ProtectionLevel) of the\n[CryptoKeyVersion](/php/docs/reference/cloud-kms/latest/V1.CryptoKeyVersion) used for signing."]]