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.events.cloud.batch.v1.Environment
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Environment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Environment build()
buildPartial()
public Environment buildPartial()
clear()
public Environment.Builder clear()
Overrides
clearEncryptedVariables()
public Environment.Builder clearEncryptedVariables()
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
.google.events.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;
clearField(Descriptors.FieldDescriptor field)
public Environment.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Environment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSecretVariables()
public Environment.Builder clearSecretVariables()
clearVariables()
public Environment.Builder clearVariables()
clone()
public Environment.Builder clone()
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 |
Name |
Description |
key |
String
|
containsVariables(String key)
public boolean containsVariables(String key)
A map of environment variable names to values.
map<string, string> variables = 1;
Parameter |
Name |
Description |
key |
String
|
getDefaultInstanceForType()
public Environment getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEncryptedVariables()
public Environment.KMSEnvMap getEncryptedVariables()
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
.google.events.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;
getEncryptedVariablesBuilder()
public Environment.KMSEnvMap.Builder getEncryptedVariablesBuilder()
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
.google.events.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;
getEncryptedVariablesOrBuilder()
public Environment.KMSEnvMapOrBuilder getEncryptedVariablesOrBuilder()
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
.google.events.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;
getMutableSecretVariables()
public Map<String,String> getMutableSecretVariables()
Use alternate mutation accessors instead.
getMutableVariables()
public Map<String,String> getMutableVariables()
Use alternate mutation accessors instead.
getSecretVariables()
public Map<String,String> getSecretVariables()
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 |
Type |
Description |
int |
|
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;
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;
Returns |
Type |
Description |
String |
|
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 |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
String |
|
getVariables()
public Map<String,String> getVariables()
getVariablesCount()
public int getVariablesCount()
A map of environment variable names to values.
map<string, string> variables = 1;
Returns |
Type |
Description |
int |
|
getVariablesMap()
public Map<String,String> getVariablesMap()
A map of environment variable names to values.
map<string, string> variables = 1;
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;
Returns |
Type |
Description |
String |
|
getVariablesOrThrow(String key)
public String getVariablesOrThrow(String key)
A map of environment variable names to values.
map<string, string> variables = 1;
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
String |
|
hasEncryptedVariables()
public boolean hasEncryptedVariables()
An encrypted JSON dictionary where the key/value pairs correspond to
environment variable names and their values.
.google.events.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;
Returns |
Type |
Description |
boolean |
Whether the encryptedVariables field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
isInitialized()
public final boolean isInitialized()
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.events.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;
mergeFrom(Environment other)
public Environment.Builder mergeFrom(Environment other)
public Environment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Environment.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Environment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
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;
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;
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 |
Name |
Description |
key |
String
|
removeVariables(String key)
public Environment.Builder removeVariables(String key)
A map of environment variable names to values.
map<string, string> variables = 1;
Parameter |
Name |
Description |
key |
String
|
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.events.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;
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.events.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;
setField(Descriptors.FieldDescriptor field, Object value)
public Environment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Environment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Environment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides