A secret payload resource in the Secret Manager API. This contains the
sensitive secret payload that is associated with a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
Optional. If specified, [SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will verify the integrity of the
received [data][google.cloud.secretmanager.v1.SecretPayload.data] on [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] calls using
the crc32c checksum and store it to include in future
[SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion] responses. If a checksum is
not provided in the [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion] request, the
[SecretManagerService][google.cloud.secretmanager.v1.SecretManagerService] will generate and store one for you.
[[["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 page documents the \u003ccode\u003eSecretPayload\u003c/code\u003e class, which is a resource used in the Secret Manager API to store sensitive secret data associated with a secret version.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eSecretPayload\u003c/code\u003e is 2.5.0, and several older versions, starting from 1.3.0 to the current 2.5.0, are listed and documented on the page.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecretPayload\u003c/code\u003e class implements interfaces like \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\u003eThe \u003ccode\u003eSecretPayload\u003c/code\u003e class has two main properties: \u003ccode\u003eData\u003c/code\u003e, which stores the actual secret data (up to 64KiB), and \u003ccode\u003eDataCrc32C\u003c/code\u003e, which is an optional field for integrity verification using a CRC32C checksum.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for \u003ccode\u003eSecretPayload\u003c/code\u003e, one taking no parameters, and another taking a \u003ccode\u003eSecretPayload\u003c/code\u003e object as parameter.\u003c/p\u003e\n"]]],[],null,[]]