Interface InlineSecretOrBuilder (3.48.0)

public interface InlineSecretOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsEnvMap(String key)

public abstract boolean containsEnvMap(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> env_map = 2;

Parameter
Name Description
key String
Returns
Type Description
boolean

getEnvMap() (deprecated)

public abstract Map<String,ByteString> getEnvMap()

Use #getEnvMapMap() instead.

Returns
Type Description
Map<String,ByteString>

getEnvMapCount()

public abstract int getEnvMapCount()

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> env_map = 2;

Returns
Type Description
int

getEnvMapMap()

public abstract Map<String,ByteString> getEnvMapMap()

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> env_map = 2;

Returns
Type Description
Map<String,ByteString>

getEnvMapOrDefault(String key, ByteString defaultValue)

public abstract ByteString getEnvMapOrDefault(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> env_map = 2;

Parameters
Name Description
key String
defaultValue ByteString
Returns
Type Description
ByteString

getEnvMapOrThrow(String key)

public abstract ByteString getEnvMapOrThrow(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> env_map = 2;

Parameter
Name Description
key String
Returns
Type Description
ByteString

getKmsKeyName()

public abstract String getKmsKeyName()

Resource name of Cloud KMS crypto key to decrypt the encrypted value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/*

string kms_key_name = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The kmsKeyName.

getKmsKeyNameBytes()

public abstract ByteString getKmsKeyNameBytes()

Resource name of Cloud KMS crypto key to decrypt the encrypted value. In format: projects/*/locations/*/keyRings/*/cryptoKeys/*

string kms_key_name = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for kmsKeyName.