public sealed class MacVerifyResponse : IMessage<MacVerifyResponse>, IEquatable<MacVerifyResponse>, IDeepCloneable<MacVerifyResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Key Management Service v1 API class MacVerifyResponse.
Response message for
[KeyManagementService.MacVerify][google.cloud.kms.v1.KeyManagementService.MacVerify].
The resource name of the
[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] used for
verification. Check this field to verify that the intended resource was
used for verification.
This field indicates whether or not the verification operation for
[MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac] over
[MacVerifyRequest.data][google.cloud.kms.v1.MacVerifyRequest.data] was
successful.
Integrity verification field. A flag indicating whether
[MacVerifyRequest.data_crc32c][google.cloud.kms.v1.MacVerifyRequest.data_crc32c]
was received by
[KeyManagementService][google.cloud.kms.v1.KeyManagementService] and used
for the integrity verification of the
[data][google.cloud.kms.v1.MacVerifyRequest.data]. A false value of this
field indicates either that
[MacVerifyRequest.data_crc32c][google.cloud.kms.v1.MacVerifyRequest.data_crc32c]
was left unset or that it was not delivered to
[KeyManagementService][google.cloud.kms.v1.KeyManagementService]. If you've
set
[MacVerifyRequest.data_crc32c][google.cloud.kms.v1.MacVerifyRequest.data_crc32c]
but this field is still false, discard the response and perform a limited
number of retries.
Integrity verification field. A flag indicating whether
[MacVerifyRequest.mac_crc32c][google.cloud.kms.v1.MacVerifyRequest.mac_crc32c]
was received by
[KeyManagementService][google.cloud.kms.v1.KeyManagementService] and used
for the integrity verification of the
[data][google.cloud.kms.v1.MacVerifyRequest.mac]. A false value of this
field indicates either that
[MacVerifyRequest.mac_crc32c][google.cloud.kms.v1.MacVerifyRequest.mac_crc32c]
was left unset or that it was not delivered to
[KeyManagementService][google.cloud.kms.v1.KeyManagementService]. If you've
set
[MacVerifyRequest.mac_crc32c][google.cloud.kms.v1.MacVerifyRequest.mac_crc32c]
but this field is still false, discard the response and perform a limited
number of retries.
public bool VerifiedSuccessIntegrity { get; set; }
Integrity verification field. This value is used for the integrity
verification of [MacVerifyResponse.success]. If the value of this field
contradicts the value of [MacVerifyResponse.success], 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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eMacVerifyResponse\u003c/code\u003e class within the Google Cloud Key Management Service v1 API, including its properties and functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMacVerifyResponse\u003c/code\u003e class is a response message for \u003ccode\u003eKeyManagementService.MacVerify\u003c/code\u003e, used to verify the MAC (Message Authentication Code) of a request.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eMacVerifyResponse\u003c/code\u003e include \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eProtectionLevel\u003c/code\u003e, \u003ccode\u003eSuccess\u003c/code\u003e, \u003ccode\u003eVerifiedDataCrc32C\u003c/code\u003e, \u003ccode\u003eVerifiedMacCrc32C\u003c/code\u003e, and \u003ccode\u003eVerifiedSuccessIntegrity\u003c/code\u003e, each providing critical details about the verification process and its outcome.\u003c/p\u003e\n"],["\u003cp\u003eThe page also contains a version history of this documentation, from version 2.2.0 to the latest version, 3.16.0.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Key Management Service v1 API - Class MacVerifyResponse (3.18.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.18.0 (latest)](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.17.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.17.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.16.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.16.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.15.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.15.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.14.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.13.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.12.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.11.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.10.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.9.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.8.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.7.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.6.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.5.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.4.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.3.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.2.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.1.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.0.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.9.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.8.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.7.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.6.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.5.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.4.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.3.0/Google.Cloud.Kms.V1.MacVerifyResponse)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.2.0/Google.Cloud.Kms.V1.MacVerifyResponse) \n\n public sealed class MacVerifyResponse : IMessage\u003cMacVerifyResponse\u003e, IEquatable\u003cMacVerifyResponse\u003e, IDeepCloneable\u003cMacVerifyResponse\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Key Management Service v1 API class MacVerifyResponse.\n\nResponse message for\n\\[KeyManagementService.MacVerify\\]\\[google.cloud.kms.v1.KeyManagementService.MacVerify\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MacVerifyResponse \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MacVerifyResponse](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.MacVerifyResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MacVerifyResponse](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.MacVerifyResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MacVerifyResponse](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.MacVerifyResponse), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Kms.V1](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Kms.V1.dll\n\nConstructors\n------------\n\n### MacVerifyResponse()\n\n public MacVerifyResponse()\n\n### MacVerifyResponse(MacVerifyResponse)\n\n public MacVerifyResponse(MacVerifyResponse other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nThe resource name of the\n\\[CryptoKeyVersion\\]\\[google.cloud.kms.v1.CryptoKeyVersion\\] used for\nverification. Check this field to verify that the intended resource was\nused for verification.\n\n### ProtectionLevel\n\n public ProtectionLevel ProtectionLevel { get; set; }\n\nThe \\[ProtectionLevel\\]\\[google.cloud.kms.v1.ProtectionLevel\\] of the\n\\[CryptoKeyVersion\\]\\[google.cloud.kms.v1.CryptoKeyVersion\\] used for\nverification.\n\n### Success\n\n public bool Success { get; set; }\n\nThis field indicates whether or not the verification operation for\n\\[MacVerifyRequest.mac\\]\\[google.cloud.kms.v1.MacVerifyRequest.mac\\] over\n\\[MacVerifyRequest.data\\]\\[google.cloud.kms.v1.MacVerifyRequest.data\\] was\nsuccessful.\n\n### VerifiedDataCrc32C\n\n public bool VerifiedDataCrc32C { get; set; }\n\nIntegrity verification field. A flag indicating whether\n\\[MacVerifyRequest.data_crc32c\\]\\[google.cloud.kms.v1.MacVerifyRequest.data_crc32c\\]\nwas received by\n\\[KeyManagementService\\]\\[google.cloud.kms.v1.KeyManagementService\\] and used\nfor the integrity verification of the\n\\[data\\]\\[google.cloud.kms.v1.MacVerifyRequest.data\\]. A false value of this\nfield indicates either that\n\\[MacVerifyRequest.data_crc32c\\]\\[google.cloud.kms.v1.MacVerifyRequest.data_crc32c\\]\nwas left unset or that it was not delivered to\n\\[KeyManagementService\\]\\[google.cloud.kms.v1.KeyManagementService\\]. If you've\nset\n\\[MacVerifyRequest.data_crc32c\\]\\[google.cloud.kms.v1.MacVerifyRequest.data_crc32c\\]\nbut this field is still false, discard the response and perform a limited\nnumber of retries.\n\n### VerifiedMacCrc32C\n\n public bool VerifiedMacCrc32C { get; set; }\n\nIntegrity verification field. A flag indicating whether\n\\[MacVerifyRequest.mac_crc32c\\]\\[google.cloud.kms.v1.MacVerifyRequest.mac_crc32c\\]\nwas received by\n\\[KeyManagementService\\]\\[google.cloud.kms.v1.KeyManagementService\\] and used\nfor the integrity verification of the\n\\[data\\]\\[google.cloud.kms.v1.MacVerifyRequest.mac\\]. A false value of this\nfield indicates either that\n\\[MacVerifyRequest.mac_crc32c\\]\\[google.cloud.kms.v1.MacVerifyRequest.mac_crc32c\\]\nwas left unset or that it was not delivered to\n\\[KeyManagementService\\]\\[google.cloud.kms.v1.KeyManagementService\\]. If you've\nset\n\\[MacVerifyRequest.mac_crc32c\\]\\[google.cloud.kms.v1.MacVerifyRequest.mac_crc32c\\]\nbut this field is still false, discard the response and perform a limited\nnumber of retries.\n\n### VerifiedSuccessIntegrity\n\n public bool VerifiedSuccessIntegrity { get; set; }\n\nIntegrity verification field. This value is used for the integrity\nverification of \\[MacVerifyResponse.success\\]. If the value of this field\ncontradicts the value of \\[MacVerifyResponse.success\\], discard the response\nand perform a limited number of retries."]]