public static final class Environment.Builder extends com.google.protobuf.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| Modifier and Type | Method and Description |
|---|---|
Environment.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Environment |
build() |
Environment |
buildPartial() |
Environment.Builder |
clear() |
Environment.Builder |
clearEncryptedVariables()
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
|
Environment.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Environment.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Environment.Builder |
clearSecretVariables() |
Environment.Builder |
clearVariables() |
Environment.Builder |
clone() |
boolean |
containsSecretVariables(String key)
A map of environment variable names to Secret Manager secret names.
|
boolean |
containsVariables(String key)
A map of environment variable names to values.
|
Environment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Environment.KMSEnvMap |
getEncryptedVariables()
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
|
Environment.KMSEnvMap.Builder |
getEncryptedVariablesBuilder()
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
|
Environment.KMSEnvMapOrBuilder |
getEncryptedVariablesOrBuilder()
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
|
Map<String,String> |
getMutableSecretVariables()
Deprecated.
|
Map<String,String> |
getMutableVariables()
Deprecated.
|
Map<String,String> |
getSecretVariables()
Deprecated.
|
int |
getSecretVariablesCount()
A map of environment variable names to Secret Manager secret names.
|
Map<String,String> |
getSecretVariablesMap()
A map of environment variable names to Secret Manager secret names.
|
String |
getSecretVariablesOrDefault(String key,
String defaultValue)
A map of environment variable names to Secret Manager secret names.
|
String |
getSecretVariablesOrThrow(String key)
A map of environment variable names to Secret Manager secret names.
|
Map<String,String> |
getVariables()
Deprecated.
|
int |
getVariablesCount()
A map of environment variable names to values.
|
Map<String,String> |
getVariablesMap()
A map of environment variable names to values.
|
String |
getVariablesOrDefault(String key,
String defaultValue)
A map of environment variable names to values.
|
String |
getVariablesOrThrow(String key)
A map of environment variable names to values.
|
boolean |
hasEncryptedVariables()
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
Environment.Builder |
mergeEncryptedVariables(Environment.KMSEnvMap value)
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
|
Environment.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Environment.Builder |
mergeFrom(Environment other) |
Environment.Builder |
mergeFrom(com.google.protobuf.Message other) |
Environment.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Environment.Builder |
putAllSecretVariables(Map<String,String> values)
A map of environment variable names to Secret Manager secret names.
|
Environment.Builder |
putAllVariables(Map<String,String> values)
A map of environment variable names to values.
|
Environment.Builder |
putSecretVariables(String key,
String value)
A map of environment variable names to Secret Manager secret names.
|
Environment.Builder |
putVariables(String key,
String value)
A map of environment variable names to values.
|
Environment.Builder |
removeSecretVariables(String key)
A map of environment variable names to Secret Manager secret names.
|
Environment.Builder |
removeVariables(String key)
A map of environment variable names to values.
|
Environment.Builder |
setEncryptedVariables(Environment.KMSEnvMap.Builder builderForValue)
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
|
Environment.Builder |
setEncryptedVariables(Environment.KMSEnvMap value)
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
|
Environment.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Environment.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Environment.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Environment build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Environment buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Environment.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Environment.Builder>public Environment.Builder mergeFrom(Environment other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public Environment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Environment.Builder>IOExceptionpublic int getVariablesCount()
EnvironmentOrBuilderA map of environment variable names to values.
map<string, string> variables = 1;getVariablesCount in interface EnvironmentOrBuilderpublic boolean containsVariables(String key)
A map of environment variable names to values.
map<string, string> variables = 1;containsVariables in interface EnvironmentOrBuilder@Deprecated public Map<String,String> getVariables()
getVariablesMap() instead.getVariables in interface EnvironmentOrBuilderpublic Map<String,String> getVariablesMap()
A map of environment variable names to values.
map<string, string> variables = 1;getVariablesMap in interface EnvironmentOrBuilderpublic String getVariablesOrDefault(String key, String defaultValue)
A map of environment variable names to values.
map<string, string> variables = 1;getVariablesOrDefault in interface EnvironmentOrBuilderpublic String getVariablesOrThrow(String key)
A map of environment variable names to values.
map<string, string> variables = 1;getVariablesOrThrow in interface EnvironmentOrBuilderpublic Environment.Builder clearVariables()
public Environment.Builder removeVariables(String key)
A map of environment variable names to values.
map<string, string> variables = 1;@Deprecated public Map<String,String> getMutableVariables()
public Environment.Builder putVariables(String key, String value)
A map of environment variable names to values.
map<string, string> variables = 1;public Environment.Builder putAllVariables(Map<String,String> values)
A map of environment variable names to values.
map<string, string> variables = 1;public int getSecretVariablesCount()
EnvironmentOrBuilderA 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;getSecretVariablesCount in interface EnvironmentOrBuilderpublic 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;containsSecretVariables in interface EnvironmentOrBuilder@Deprecated public Map<String,String> getSecretVariables()
getSecretVariablesMap() instead.getSecretVariables in interface EnvironmentOrBuilderpublic 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;getSecretVariablesMap in interface EnvironmentOrBuilderpublic 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;getSecretVariablesOrDefault in interface EnvironmentOrBuilderpublic 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;getSecretVariablesOrThrow in interface EnvironmentOrBuilderpublic Environment.Builder clearSecretVariables()
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;@Deprecated public Map<String,String> getMutableSecretVariables()
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;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;public boolean hasEncryptedVariables()
An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
.google.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;hasEncryptedVariables in interface EnvironmentOrBuilderpublic Environment.KMSEnvMap getEncryptedVariables()
An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
.google.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;getEncryptedVariables in interface EnvironmentOrBuilderpublic 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.v1.Environment.KMSEnvMap encrypted_variables = 3;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.v1.Environment.KMSEnvMap encrypted_variables = 3;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.v1.Environment.KMSEnvMap encrypted_variables = 3;public Environment.Builder clearEncryptedVariables()
An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
.google.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;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.v1.Environment.KMSEnvMap encrypted_variables = 3;public Environment.KMSEnvMapOrBuilder getEncryptedVariablesOrBuilder()
An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.
.google.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;getEncryptedVariablesOrBuilder in interface EnvironmentOrBuilderpublic final Environment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>public final Environment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>Copyright © 2025 Google LLC. All rights reserved.