# Secret Manager V1BETA2 API - Class Google::Cloud::SecretManager::V1beta2::SecretPayload (v0.8.0)

0.8.0 (latest) 0.7.1 0.6.0 0.5.1 0.4.0 0.3.1 0.2.0 0.1.1 Reference documentation and code samples for the Secret Manager V1BETA2 API class Google::Cloud::SecretManager::V1beta2::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-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretVersion "Google::Cloud::SecretManager::V1beta2::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-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client "Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client (class)") will verify the integrity of the received [data](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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.


  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-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client "Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client (class)") will verify the integrity of the received [data](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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.


  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-v1beta2/latest/Google-Cloud-SecretManager-V1beta2-SecretManagerService-Client "Google::Cloud::SecretManager::V1beta2::SecretManagerService::Client (class)") will verify the integrity of the received [data](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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](https://docs.cloud.google.com/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.


  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