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.v1.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
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
clearVariables()
public Environment.Builder clearVariables()
Returns
clone()
public Environment.Builder clone()
Returns
Overrides
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
getMutableVariables()
public Map<String,String> getMutableVariables()
Use alternate mutation accessors instead.
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
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
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
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
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
removeVariables(String key)
public Environment.Builder removeVariables(String key)
A map of environment variable names to values.
map<string, string> variables = 1;
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