Package com.google.cloud.batch.v1alpha
Class Environment.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Environment.Builder>
com.google.cloud.batch.v1alpha.Environment.Builder
- All Implemented Interfaces:
EnvironmentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Environment
public static final class Environment.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.booleanA map of environment variable names to Secret Manager secret names.booleancontainsVariables(String key) A map of environment variable names to values.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorAn encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.Deprecated.Deprecated.Deprecated.intA map of environment variable names to Secret Manager secret names.A map of environment variable names to Secret Manager secret names.getSecretVariablesOrDefault(String key, String defaultValue) A map of environment variable names to Secret Manager secret names.A map of environment variable names to Secret Manager secret names.Deprecated.intA map of environment variable names to values.A map of environment variable names to values.getVariablesOrDefault(String key, String defaultValue) A map of environment variable names to values.A map of environment variable names to values.booleanAn encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanAn encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.mergeFrom(Environment other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllSecretVariables(Map<String, String> values) A map of environment variable names to Secret Manager secret names.putAllVariables(Map<String, String> values) A map of environment variable names to values.putSecretVariables(String key, String value) A map of environment variable names to Secret Manager secret names.putVariables(String key, String value) A map of environment variable names to values.A map of environment variable names to Secret Manager secret names.removeVariables(String key) A map of environment variable names to values.An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.setEncryptedVariables(Environment.KMSEnvMap.Builder builderForValue) An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Environment.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Environment.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Environment.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Environment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Environment.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Environment.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Environment.Builder>
-
mergeFrom
public Environment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Environment.Builder>- Throws:
IOException
-
getVariablesCount
public int getVariablesCount()Description copied from interface:EnvironmentOrBuilderA map of environment variable names to values.
map<string, string> variables = 1;- Specified by:
getVariablesCountin interfaceEnvironmentOrBuilder
-
containsVariables
A map of environment variable names to values.
map<string, string> variables = 1;- Specified by:
containsVariablesin interfaceEnvironmentOrBuilder
-
getVariables
Deprecated.UsegetVariablesMap()instead.- Specified by:
getVariablesin interfaceEnvironmentOrBuilder
-
getVariablesMap
A map of environment variable names to values.
map<string, string> variables = 1;- Specified by:
getVariablesMapin interfaceEnvironmentOrBuilder
-
getVariablesOrDefault
A map of environment variable names to values.
map<string, string> variables = 1;- Specified by:
getVariablesOrDefaultin interfaceEnvironmentOrBuilder
-
getVariablesOrThrow
A map of environment variable names to values.
map<string, string> variables = 1;- Specified by:
getVariablesOrThrowin interfaceEnvironmentOrBuilder
-
clearVariables
-
removeVariables
A map of environment variable names to values.
map<string, string> variables = 1; -
getMutableVariables
Deprecated.Use alternate mutation accessors instead. -
putVariables
A map of environment variable names to values.
map<string, string> variables = 1; -
putAllVariables
A map of environment variable names to values.
map<string, string> variables = 1; -
getSecretVariablesCount
public int getSecretVariablesCount()Description copied from interface: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;- Specified by:
getSecretVariablesCountin interfaceEnvironmentOrBuilder
-
containsSecretVariables
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;- Specified by:
containsSecretVariablesin interfaceEnvironmentOrBuilder
-
getSecretVariables
Deprecated.UsegetSecretVariablesMap()instead.- Specified by:
getSecretVariablesin interfaceEnvironmentOrBuilder
-
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;- Specified by:
getSecretVariablesMapin interfaceEnvironmentOrBuilder
-
getSecretVariablesOrDefault
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;- Specified by:
getSecretVariablesOrDefaultin interfaceEnvironmentOrBuilder
-
getSecretVariablesOrThrow
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;- Specified by:
getSecretVariablesOrThrowin interfaceEnvironmentOrBuilder
-
clearSecretVariables
-
removeSecretVariables
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; -
getMutableSecretVariables
Deprecated.Use alternate mutation accessors instead. -
putSecretVariables
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; -
putAllSecretVariables
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; -
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;- Specified by:
hasEncryptedVariablesin interfaceEnvironmentOrBuilder- Returns:
- Whether the encryptedVariables field is set.
-
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;- Specified by:
getEncryptedVariablesin interfaceEnvironmentOrBuilder- Returns:
- The encryptedVariables.
-
setEncryptedVariables
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; -
setEncryptedVariables
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; -
mergeEncryptedVariables
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; -
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; -
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; -
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;- Specified by:
getEncryptedVariablesOrBuilderin interfaceEnvironmentOrBuilder
-