public static final class Environment.Builder extends GeneratedMessageV3.Builder<Environment.Builder> implements EnvironmentOrBuilder
An Environment describes a collection of environment variables to set when
executing Tasks.
Protobuf type google.cloud.batch.v1alpha.Environment
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 Environment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Environment build()
Returns
buildPartial()
public Environment buildPartial()
Returns
clear()
public Environment.Builder clear()
Returns
Overrides
clearEncryptedVariables()
public Environment.Builder clearEncryptedVariables()
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
.google.cloud.batch.v1alpha.Environment.KMSEnvMap encrypted_variables = 3;
Returns
clearField(Descriptors.FieldDescriptor field)
public Environment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Environment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSecretVariables()
public Environment.Builder clearSecretVariables()
Returns
clearVariables()
public Environment.Builder clearVariables()
Returns
clone()
public Environment.Builder clone()
Returns
Overrides
containsSecretVariables(String key)
public boolean containsSecretVariables(String key)
A map of environment variable names to Secret Manager secret names.
The VM will access the named secrets to set the value of each environment
variable.
map<string, string> secret_variables = 2;
Parameter
Returns
containsVariables(String key)
public boolean containsVariables(String key)
A map of environment variable names to values.
map<string, string> variables = 1;
Parameter
Returns
getDefaultInstanceForType()
public Environment getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEncryptedVariables()
public Environment.KMSEnvMap getEncryptedVariables()
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
.google.cloud.batch.v1alpha.Environment.KMSEnvMap encrypted_variables = 3;
Returns
getEncryptedVariablesBuilder()
public Environment.KMSEnvMap.Builder getEncryptedVariablesBuilder()
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
.google.cloud.batch.v1alpha.Environment.KMSEnvMap encrypted_variables = 3;
Returns
getEncryptedVariablesOrBuilder()
public Environment.KMSEnvMapOrBuilder getEncryptedVariablesOrBuilder()
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
.google.cloud.batch.v1alpha.Environment.KMSEnvMap encrypted_variables = 3;
Returns
getMutableSecretVariables()
public Map<String,String> getMutableSecretVariables()
Use alternate mutation accessors instead.
Returns
getMutableVariables()
public Map<String,String> getMutableVariables()
Use alternate mutation accessors instead.
Returns
getSecretVariables()
public Map<String,String> getSecretVariables()
Returns
getSecretVariablesCount()
public int getSecretVariablesCount()
A map of environment variable names to Secret Manager secret names.
The VM will access the named secrets to set the value of each environment
variable.
map<string, string> secret_variables = 2;
Returns
getSecretVariablesMap()
public Map<String,String> getSecretVariablesMap()
A map of environment variable names to Secret Manager secret names.
The VM will access the named secrets to set the value of each environment
variable.
map<string, string> secret_variables = 2;
Returns
getSecretVariablesOrDefault(String key, String defaultValue)
public String getSecretVariablesOrDefault(String key, String defaultValue)
A map of environment variable names to Secret Manager secret names.
The VM will access the named secrets to set the value of each environment
variable.
map<string, string> secret_variables = 2;
Parameters
Returns
getSecretVariablesOrThrow(String key)
public String getSecretVariablesOrThrow(String key)
A map of environment variable names to Secret Manager secret names.
The VM will access the named secrets to set the value of each environment
variable.
map<string, string> secret_variables = 2;
Parameter
Returns
getVariables()
public Map<String,String> getVariables()
Returns
getVariablesCount()
public int getVariablesCount()
A map of environment variable names to values.
map<string, string> variables = 1;
Returns
getVariablesMap()
public Map<String,String> getVariablesMap()
A map of environment variable names to values.
map<string, string> variables = 1;
Returns
getVariablesOrDefault(String key, String defaultValue)
public String getVariablesOrDefault(String key, String defaultValue)
A map of environment variable names to values.
map<string, string> variables = 1;
Parameters
Returns
getVariablesOrThrow(String key)
public String getVariablesOrThrow(String key)
A map of environment variable names to values.
map<string, string> variables = 1;
Parameter
Returns
hasEncryptedVariables()
public boolean hasEncryptedVariables()
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
.google.cloud.batch.v1alpha.Environment.KMSEnvMap encrypted_variables = 3;
Returns
Type |
Description |
boolean |
Whether the encryptedVariables field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Name |
Description |
number |
int
|
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Name |
Description |
number |
int
|
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeEncryptedVariables(Environment.KMSEnvMap value)
public Environment.Builder mergeEncryptedVariables(Environment.KMSEnvMap value)
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
.google.cloud.batch.v1alpha.Environment.KMSEnvMap encrypted_variables = 3;
Parameter
Returns
mergeFrom(Environment other)
public Environment.Builder mergeFrom(Environment other)
Parameter
Returns
public Environment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Environment.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Environment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAllSecretVariables(Map<String,String> values)
public Environment.Builder putAllSecretVariables(Map<String,String> values)
A map of environment variable names to Secret Manager secret names.
The VM will access the named secrets to set the value of each environment
variable.
map<string, string> secret_variables = 2;
Parameter
Returns
putAllVariables(Map<String,String> values)
public Environment.Builder putAllVariables(Map<String,String> values)
A map of environment variable names to values.
map<string, string> variables = 1;
Parameter
Returns
putSecretVariables(String key, String value)
public Environment.Builder putSecretVariables(String key, String value)
A map of environment variable names to Secret Manager secret names.
The VM will access the named secrets to set the value of each environment
variable.
map<string, string> secret_variables = 2;
Parameters
Returns
putVariables(String key, String value)
public Environment.Builder putVariables(String key, String value)
A map of environment variable names to values.
map<string, string> variables = 1;
Parameters
Returns
removeSecretVariables(String key)
public Environment.Builder removeSecretVariables(String key)
A map of environment variable names to Secret Manager secret names.
The VM will access the named secrets to set the value of each environment
variable.
map<string, string> secret_variables = 2;
Parameter
Returns
removeVariables(String key)
public Environment.Builder removeVariables(String key)
A map of environment variable names to values.
map<string, string> variables = 1;
Parameter
Returns
setEncryptedVariables(Environment.KMSEnvMap value)
public Environment.Builder setEncryptedVariables(Environment.KMSEnvMap value)
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
.google.cloud.batch.v1alpha.Environment.KMSEnvMap encrypted_variables = 3;
Parameter
Returns
setEncryptedVariables(Environment.KMSEnvMap.Builder builderForValue)
public Environment.Builder setEncryptedVariables(Environment.KMSEnvMap.Builder builderForValue)
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
.google.cloud.batch.v1alpha.Environment.KMSEnvMap encrypted_variables = 3;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Environment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Environment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Environment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides