Interface SecretEnvVarOrBuilder (2.18.0)

publicinterface SecretEnvVarOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getKey()

publicabstractStringgetKey()

Name of the environment variable.

string key = 1;

Returns
Type Description
String

The key.

getKeyBytes()

publicabstractByteStringgetKeyBytes()

Name of the environment variable.

string key = 1;

Returns
Type Description
ByteString

The bytes for key.

getProjectId()

publicabstractStringgetProjectId()

Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.

string project_id = 2;

Returns
Type Description
String

The projectId.

getProjectIdBytes()

publicabstractByteStringgetProjectIdBytes()

Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.

string project_id = 2;

Returns
Type Description
ByteString

The bytes for projectId.

getSecret()

publicabstractStringgetSecret()

Name of the secret in secret manager (not the full resource name).

string secret = 3;

Returns
Type Description
String

The secret.

getSecretBytes()

publicabstractByteStringgetSecretBytes()

Name of the secret in secret manager (not the full resource name).

string secret = 3;

Returns
Type Description
ByteString

The bytes for secret.

getVersion()

publicabstractStringgetVersion()

Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.

string version = 4;

Returns
Type Description
String

The version.

getVersionBytes()

publicabstractByteStringgetVersionBytes()

Version of the secret (version number or the string 'latest'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.

string version = 4;

Returns
Type Description
ByteString

The bytes for version.

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年10月30日 UTC.