# Secret Manager V1 API - Class Google::Cloud::SecretManager::V1::SecretPayload (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.21.0 0.20.0 0.19.2 0.18.0 0.17.2 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.3 Reference documentation and code samples for the Secret Manager V1 API class Google::Cloud::SecretManager::V1::SecretPayload.

A secret payload resource in the Secret Manager API. This contains the
sensitive secret payload that is associated with a
[SecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretVersion "Google::Cloud::SecretManager::V1::SecretVersion (class)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #data

    def data() -> ::String

**Returns**

- (::String) --- The secret data. Must be no larger than 64KiB.

### #data=

    def data=(value) -> ::String

**Parameter**

- **value** (::String) --- The secret data. Must be no larger than 64KiB.
**Returns**

- (::String) --- The secret data. Must be no larger than 64KiB.

### #data_crc32c

    def data_crc32c() -> ::Integer

**Returns**

- (::Integer) --- Optional. If specified, [SecretManagerService](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client "Google::Cloud::SecretManager::V1::SecretManagerService::Client (class)") will verify the integrity of the received [data](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretPayload#Google__Cloud__SecretManager__V1__SecretPayload_data_instance_ "Google::Cloud::SecretManager::V1::SecretPayload#data (method)") on [SecretManagerService.AddSecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client#Google__Cloud__SecretManager__V1__SecretManagerService__Client_add_secret_version_instance_ "Google::Cloud::SecretManager::V1::SecretManagerService::Client#add_secret_version (method)") calls using the crc32c checksum and store it to include in future [SecretManagerService.AccessSecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client#Google__Cloud__SecretManager__V1__SecretManagerService__Client_access_secret_version_instance_ "Google::Cloud::SecretManager::V1::SecretManagerService::Client#access_secret_version (method)") responses. If a checksum is not provided in the [SecretManagerService.AddSecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client#Google__Cloud__SecretManager__V1__SecretManagerService__Client_add_secret_version_instance_ "Google::Cloud::SecretManager::V1::SecretManagerService::Client#add_secret_version (method)") request, the [SecretManagerService](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client "Google::Cloud::SecretManager::V1::SecretManagerService::Client (class)") will generate and store one for you.


  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

### #data_crc32c=

    def data_crc32c=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Optional. If specified, [SecretManagerService](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client "Google::Cloud::SecretManager::V1::SecretManagerService::Client (class)") will verify the integrity of the received [data](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretPayload#Google__Cloud__SecretManager__V1__SecretPayload_data_instance_ "Google::Cloud::SecretManager::V1::SecretPayload#data (method)") on [SecretManagerService.AddSecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client#Google__Cloud__SecretManager__V1__SecretManagerService__Client_add_secret_version_instance_ "Google::Cloud::SecretManager::V1::SecretManagerService::Client#add_secret_version (method)") calls using the crc32c checksum and store it to include in future [SecretManagerService.AccessSecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client#Google__Cloud__SecretManager__V1__SecretManagerService__Client_access_secret_version_instance_ "Google::Cloud::SecretManager::V1::SecretManagerService::Client#access_secret_version (method)") responses. If a checksum is not provided in the [SecretManagerService.AddSecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client#Google__Cloud__SecretManager__V1__SecretManagerService__Client_add_secret_version_instance_ "Google::Cloud::SecretManager::V1::SecretManagerService::Client#add_secret_version (method)") request, the [SecretManagerService](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client "Google::Cloud::SecretManager::V1::SecretManagerService::Client (class)") will generate and store one for you.


  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
**Returns**

- (::Integer) --- Optional. If specified, [SecretManagerService](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client "Google::Cloud::SecretManager::V1::SecretManagerService::Client (class)") will verify the integrity of the received [data](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretPayload#Google__Cloud__SecretManager__V1__SecretPayload_data_instance_ "Google::Cloud::SecretManager::V1::SecretPayload#data (method)") on [SecretManagerService.AddSecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client#Google__Cloud__SecretManager__V1__SecretManagerService__Client_add_secret_version_instance_ "Google::Cloud::SecretManager::V1::SecretManagerService::Client#add_secret_version (method)") calls using the crc32c checksum and store it to include in future [SecretManagerService.AccessSecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client#Google__Cloud__SecretManager__V1__SecretManagerService__Client_access_secret_version_instance_ "Google::Cloud::SecretManager::V1::SecretManagerService::Client#access_secret_version (method)") responses. If a checksum is not provided in the [SecretManagerService.AddSecretVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client#Google__Cloud__SecretManager__V1__SecretManagerService__Client_add_secret_version_instance_ "Google::Cloud::SecretManager::V1::SecretManagerService::Client#add_secret_version (method)") request, the [SecretManagerService](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1/latest/Google-Cloud-SecretManager-V1-SecretManagerService-Client "Google::Cloud::SecretManager::V1::SecretManagerService::Client (class)") will generate and store one for you.


  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