Interface SecretOrBuilder (3.5.6)

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
NameDescription
keyString
Returns
TypeDescription
boolean

getKmsKeyName()

public abstract String getKmsKeyName()

Cloud KMS key name to use to decrypt these envs.

string kms_key_name = 1;

Returns
TypeDescription
String

The kmsKeyName.

getKmsKeyNameBytes()

public abstract ByteString getKmsKeyNameBytes()

Cloud KMS key name to use to decrypt these envs.

string kms_key_name = 1;

Returns
TypeDescription
ByteString

The bytes for kmsKeyName.

getSecretEnv()

public abstract Map<String,ByteString> getSecretEnv()

Use #getSecretEnvMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueByteString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
ByteString