Interface SecretKeySelectorOrBuilder (0.2.1)

public interface SecretKeySelectorOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getSecret()

public abstract String getSecret()

Required. The name of the secret in Cloud Secret Manager. Format: {secret_name} if the secret is in the same project. projects/{project}/secrets/{secret_name} if the secret is in a different project.

string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The secret.

getSecretBytes()

public abstract ByteString getSecretBytes()

Required. The name of the secret in Cloud Secret Manager. Format: {secret_name} if the secret is in the same project. projects/{project}/secrets/{secret_name} if the secret is in a different project.

string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for secret.

getVersion()

public abstract String getVersion()

The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.

string version = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The version.

getVersionBytes()

public abstract ByteString getVersionBytes()

The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.

string version = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for version.