Interface SecretPayloadOrBuilder (2.2.0)

public interface SecretPayloadOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getData()

public abstract ByteString getData()

The secret data. Must be no larger than 64KiB.

bytes data = 1;

Returns
TypeDescription
ByteString

The data.

getDataCrc32C()

public abstract long getDataCrc32C()

Optional. If specified, SecretManagerService will verify the integrity of the received data on SecretManagerService.AddSecretVersion calls using the crc32c checksum and store it to include in future SecretManagerService.AccessSecretVersion responses. If a checksum is not provided in the SecretManagerService.AddSecretVersion request, the SecretManagerService 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

optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
long

The dataCrc32c.

hasDataCrc32C()

public abstract boolean hasDataCrc32C()

Optional. If specified, SecretManagerService will verify the integrity of the received data on SecretManagerService.AddSecretVersion calls using the crc32c checksum and store it to include in future SecretManagerService.AccessSecretVersion responses. If a checksum is not provided in the SecretManagerService.AddSecretVersion request, the SecretManagerService 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

optional int64 data_crc32c = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the dataCrc32c field is set.