Interface Encryption.SecretManagerSourceOrBuilder (1.43.0)

publicstaticinterface Encryption.SecretManagerSourceOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getSecretVersion()

publicabstractStringgetSecretVersion()

Required. The name of the Secret Version containing the encryption key in the following format: projects/{project}/secrets/{secret_id}/versions/{version_number}

Note that only numbered versions are supported. Aliases like "latest" are not supported.

string secret_version = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The secretVersion.

getSecretVersionBytes()

publicabstractByteStringgetSecretVersionBytes()

Required. The name of the Secret Version containing the encryption key in the following format: projects/{project}/secrets/{secret_id}/versions/{version_number}

Note that only numbered versions are supported. Aliases like "latest" are not supported.

string secret_version = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for secretVersion.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.