public final class Environment extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
Environment.Builder
An Environment describes a collection of environment variables to set when
executing Tasks.
|
static class |
Environment.KMSEnvMap
Protobuf type
google.cloud.batch.v1.Environment.KMSEnvMap |
static interface |
Environment.KMSEnvMapOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ENCRYPTED_VARIABLES_FIELD_NUMBER |
static int |
SECRET_VARIABLES_FIELD_NUMBER |
static int |
VARIABLES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
equals(Object obj) |
static Environment |
getDefaultInstance() |
Environment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Environment.KMSEnvMap |
getEncryptedVariables()
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.
|
com.google.protobuf.Parser<Environment> |
getParserForType() |
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.
|
int |
getSerializedSize() |
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.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static Environment.Builder |
newBuilder() |
static Environment.Builder |
newBuilder(Environment prototype) |
Environment.Builder |
newBuilderForType() |
protected Environment.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Environment |
parseDelimitedFrom(InputStream input) |
static Environment |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Environment |
parseFrom(byte[] data) |
static Environment |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Environment |
parseFrom(ByteBuffer data) |
static Environment |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Environment |
parseFrom(com.google.protobuf.ByteString data) |
static Environment |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Environment |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Environment |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Environment |
parseFrom(InputStream input) |
static Environment |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Environment> |
parser() |
Environment.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int VARIABLES_FIELD_NUMBER
public static final int SECRET_VARIABLES_FIELD_NUMBER
public static final int ENCRYPTED_VARIABLES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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.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 boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Environment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Environment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Environment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Environment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Environment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Environment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Environment parseFrom(InputStream input) throws IOException
IOExceptionpublic static Environment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Environment parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Environment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Environment parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Environment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Environment.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Environment.Builder newBuilder()
public static Environment.Builder newBuilder(Environment prototype)
public Environment.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Environment.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Environment getDefaultInstance()
public static com.google.protobuf.Parser<Environment> parser()
public com.google.protobuf.Parser<Environment> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Environment getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.