public static final class InlineSecret.Builder extends GeneratedMessageV3.Builder<InlineSecret.Builder> implements InlineSecretOrBuilder
Pairs a set of secret environment variables mapped to encrypted
values with the Cloud KMS key to use to decrypt the value.
Protobuf type google.devtools.cloudbuild.v1.InlineSecret
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InlineSecret.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public InlineSecret build()
Returns
buildPartial()
public InlineSecret buildPartial()
Returns
clear()
public InlineSecret.Builder clear()
Returns
Overrides
clearEnvMap()
public InlineSecret.Builder clearEnvMap()
Returns
clearField(Descriptors.FieldDescriptor field)
public InlineSecret.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearKmsKeyName()
public InlineSecret.Builder clearKmsKeyName()
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
clearOneof(Descriptors.OneofDescriptor oneof)
public InlineSecret.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public InlineSecret.Builder clone()
Returns
Overrides
containsEnvMap(String key)
public 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
Returns
getDefaultInstanceForType()
public InlineSecret getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEnvMap()
public Map<String,ByteString> getEnvMap()
Returns
getEnvMapCount()
public 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
getEnvMapMap()
public 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
getEnvMapOrDefault(String key, ByteString defaultValue)
public 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
Returns
getEnvMapOrThrow(String key)
public 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
Returns
getKmsKeyName()
public 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 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.
|
getMutableEnvMap()
public Map<String,ByteString> getMutableEnvMap()
Use alternate mutation accessors instead.
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(InlineSecret other)
public InlineSecret.Builder mergeFrom(InlineSecret other)
Parameter
Returns
public InlineSecret.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public InlineSecret.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InlineSecret.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAllEnvMap(Map<String,ByteString> values)
public InlineSecret.Builder putAllEnvMap(Map<String,ByteString> values)
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
Returns
putEnvMap(String key, ByteString value)
public InlineSecret.Builder putEnvMap(String key, ByteString value)
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
Returns
removeEnvMap(String key)
public InlineSecret.Builder removeEnvMap(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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public InlineSecret.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setKmsKeyName(String value)
public InlineSecret.Builder setKmsKeyName(String value)
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) = { ... }
Parameter
Name | Description |
value | String
The kmsKeyName to set.
|
Returns
setKmsKeyNameBytes(ByteString value)
public InlineSecret.Builder setKmsKeyNameBytes(ByteString value)
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) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for kmsKeyName to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InlineSecret.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final InlineSecret.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides