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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InlineSecret.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public InlineSecret build()
buildPartial()
public InlineSecret buildPartial()
clear()
public InlineSecret.Builder clear()
Overrides
clearEnvMap()
public InlineSecret.Builder clearEnvMap()
clearField(Descriptors.FieldDescriptor field)
public InlineSecret.Builder clearField(Descriptors.FieldDescriptor field)
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) = { ... }
clearOneof(Descriptors.OneofDescriptor oneof)
public InlineSecret.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public InlineSecret.Builder clone()
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 |
Name |
Description |
key |
String
|
getDefaultInstanceForType()
public InlineSecret getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEnvMap() (deprecated)
public Map<String,ByteString> getEnvMap()
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 |
Type |
Description |
int |
|
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;
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;
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 |
Name |
Description |
key |
String
|
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() (deprecated)
public Map<String,ByteString> getMutableEnvMap()
Use alternate mutation accessors instead.
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(InlineSecret other)
public InlineSecret.Builder mergeFrom(InlineSecret other)
public InlineSecret.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public InlineSecret.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InlineSecret.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
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 |
Name |
Description |
key |
String
|
setField(Descriptors.FieldDescriptor field, Object value)
public InlineSecret.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InlineSecret.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final InlineSecret.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides