The CRC32C value is encoded as a Int64 for compatibility, and can be
safely downconverted to uint32 in languages that support this type.
https://cloud.google.com/apis/design/design_patterns#integer_types
The CRC32C value is encoded as a Int64 for compatibility, and can be
safely downconverted to uint32 in languages that support this type.
https://cloud.google.com/apis/design/design_patterns#integer_types
The CRC32C value is encoded as a Int64 for compatibility, and can be
safely downconverted to uint32 in languages that support this type.
https://cloud.google.com/apis/design/design_patterns#integer_types
[[["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-03 UTC."],[],[],null,["# Secret Manager V1BETA2 API - Class Google::Cloud::SecretManager::V1beta2::SecretPayload (v0.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.0 (latest)](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretPayload)\n- [0.3.1](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/0.3.1/Google-Cloud-SecretManager-V1beta2-SecretPayload)\n- [0.2.0](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/0.2.0/Google-Cloud-SecretManager-V1beta2-SecretPayload)\n- [0.1.1](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/0.1.1/Google-Cloud-SecretManager-V1beta2-SecretPayload) \nReference documentation and code samples for the Secret Manager V1BETA2 API class Google::Cloud::SecretManager::V1beta2::SecretPayload.\n\nA secret payload resource in the Secret Manager API. This contains the\nsensitive secret payload that is associated with a\n[SecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion \"Google::Cloud::SecretManager::V1beta2::SecretVersion (class)\"). \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #data\n\n def data() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The secret data. Must be no larger than 64KiB.\n\n### #data=\n\n def data=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The secret data. Must be no larger than 64KiB. \n**Returns**\n\n- (::String) --- The secret data. Must be no larger than 64KiB.\n\n### #data_crc32c\n\n def data_crc32c() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Optional. If specified, [SecretManagerService](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client \"Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client (class)\") will verify the integrity of the received [data](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretPayload#Google__Cloud__SecretManager__V1beta2__SecretPayload_data_instance_ \"Google::Cloud::SecretManager::V1beta2::SecretPayload#data (method)\") on [SecretManagerService.AddSecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client#Google__Cloud__SecretManager__V1beta2__SecretManagerService__Client_add_secret_version_instance_ \"Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#add_secret_version (method)\") calls using the crc32c checksum and store it to include in future [SecretManagerService.AccessSecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client#Google__Cloud__SecretManager__V1beta2__SecretManagerService__Client_access_secret_version_instance_ \"Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#access_secret_version (method)\") responses. If a checksum is not provided in the [SecretManagerService.AddSecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client#Google__Cloud__SecretManager__V1beta2__SecretManagerService__Client_add_secret_version_instance_ \"Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#add_secret_version (method)\") request, the [SecretManagerService](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client \"Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client (class)\") will generate and store one for you.\n\n\n The CRC32C value is encoded as a Int64 for compatibility, and can be\n safely downconverted to uint32 in languages that support this type.\n https://cloud.google.com/apis/design/design_patterns#integer_types\n\n### #data_crc32c=\n\n def data_crc32c=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Optional. If specified, [SecretManagerService](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client \"Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client (class)\") will verify the integrity of the received [data](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretPayload#Google__Cloud__SecretManager__V1beta2__SecretPayload_data_instance_ \"Google::Cloud::SecretManager::V1beta2::SecretPayload#data (method)\") on [SecretManagerService.AddSecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client#Google__Cloud__SecretManager__V1beta2__SecretManagerService__Client_add_secret_version_instance_ \"Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#add_secret_version (method)\") calls using the crc32c checksum and store it to include in future [SecretManagerService.AccessSecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client#Google__Cloud__SecretManager__V1beta2__SecretManagerService__Client_access_secret_version_instance_ \"Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#access_secret_version (method)\") responses. If a checksum is not provided in the [SecretManagerService.AddSecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client#Google__Cloud__SecretManager__V1beta2__SecretManagerService__Client_add_secret_version_instance_ \"Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#add_secret_version (method)\") request, the [SecretManagerService](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client \"Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client (class)\") will generate and store one for you.\n\n\n The CRC32C value is encoded as a Int64 for compatibility, and can be\n safely downconverted to uint32 in languages that support this type.\nhttps://cloud.google.com/apis/design/design_patterns#integer_types \n**Returns**\n\n- (::Integer) --- Optional. If specified, [SecretManagerService](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client \"Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client (class)\") will verify the integrity of the received [data](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretPayload#Google__Cloud__SecretManager__V1beta2__SecretPayload_data_instance_ \"Google::Cloud::SecretManager::V1beta2::SecretPayload#data (method)\") on [SecretManagerService.AddSecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client#Google__Cloud__SecretManager__V1beta2__SecretManagerService__Client_add_secret_version_instance_ \"Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#add_secret_version (method)\") calls using the crc32c checksum and store it to include in future [SecretManagerService.AccessSecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client#Google__Cloud__SecretManager__V1beta2__SecretManagerService__Client_access_secret_version_instance_ \"Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#access_secret_version (method)\") responses. If a checksum is not provided in the [SecretManagerService.AddSecretVersion](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client#Google__Cloud__SecretManager__V1beta2__SecretManagerService__Client_add_secret_version_instance_ \"Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client#add_secret_version (method)\") request, the [SecretManagerService](/ruby/docs/reference/google-cloud-secret_manager-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client \"Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client (class)\") will generate and store one for you.\n\n\n The CRC32C value is encoded as a Int64 for compatibility, and can be\n safely downconverted to uint32 in languages that support this type.\n https://cloud.google.com/apis/design/design_patterns#integer_types"]]