Interface SecretOrBuilder (3.56.0)

public interface SecretOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsSecretEnv(String key)

public abstract boolean containsSecretEnv(String key)

Map of environment variable name to its encrypted value.

Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets.

map<string, bytes> secret_env = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

getKmsKeyName()

public abstract String getKmsKeyName()

Cloud KMS key name to use to decrypt these envs.

string kms_key_name = 1;

Returns
Type Description
String

The kmsKeyName.

getKmsKeyNameBytes()

public abstract ByteString getKmsKeyNameBytes()

Cloud KMS key name to use to decrypt these envs.

string kms_key_name = 1;

Returns
Type Description
ByteString

The bytes for kmsKeyName.

getSecretEnv() (deprecated)

public abstract Map<String,ByteString> getSecretEnv()

Use #getSecretEnvMap() instead.

Returns
Type Description
Map<String,ByteString>

getSecretEnvCount()

public abstract int getSecretEnvCount()

Map of environment variable name to its encrypted value.

Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets.

map<string, bytes> secret_env = 3;

Returns
Type Description
int

getSecretEnvMap()

public abstract Map<String,ByteString> getSecretEnvMap()

Map of environment variable name to its encrypted value.

Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets.

map<string, bytes> secret_env = 3;

Returns
Type Description
Map<String,ByteString>

getSecretEnvOrDefault(String key, ByteString defaultValue)

public abstract ByteString getSecretEnvOrDefault(String key, ByteString defaultValue)

Map of environment variable name to its encrypted value.

Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets.

map<string, bytes> secret_env = 3;

Parameters
Name Description
key String
defaultValue ByteString
Returns
Type Description
ByteString

getSecretEnvOrThrow(String key)

public abstract ByteString getSecretEnvOrThrow(String key)

Map of environment variable name to its encrypted value.

Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets.

map<string, bytes> secret_env = 3;

Parameter
Name Description
key String
Returns
Type Description
ByteString