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.
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.
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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Interface EnvironmentOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.batch.v1.EnvironmentOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.batch.v1.EnvironmentOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.batch.v1.EnvironmentOrBuilder) \n\n public interface EnvironmentOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### containsSecretVariables(String key)\n\n public abstract boolean containsSecretVariables(String key)\n\nA map of environment variable names to Secret Manager secret names.\nThe VM will access the named secrets to set the value of each environment\nvariable.\n\n`map\u003cstring, string\u003e secret_variables = 2;`\n\n### containsVariables(String key)\n\n public abstract boolean containsVariables(String key)\n\nA map of environment variable names to values.\n\n`map\u003cstring, string\u003e variables = 1;`\n\n### getEncryptedVariables()\n\n public abstract Environment.KMSEnvMap getEncryptedVariables()\n\nAn encrypted JSON dictionary where the key/value pairs correspond to\nenvironment variable names and their values.\n\n`.google.events.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;`\n\n### getEncryptedVariablesOrBuilder()\n\n public abstract Environment.KMSEnvMapOrBuilder getEncryptedVariablesOrBuilder()\n\nAn encrypted JSON dictionary where the key/value pairs correspond to\nenvironment variable names and their values.\n\n`.google.events.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;`\n\n### getSecretVariables()\n\n public abstract Map\u003cString,String\u003e getSecretVariables()\n\nUse [#getSecretVariablesMap()](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.batch.v1.EnvironmentOrBuilder#com_google_events_cloud_batch_v1_EnvironmentOrBuilder_getSecretVariablesMap__) instead.\n\n### getSecretVariablesCount()\n\n public abstract int getSecretVariablesCount()\n\nA map of environment variable names to Secret Manager secret names.\nThe VM will access the named secrets to set the value of each environment\nvariable.\n\n`map\u003cstring, string\u003e secret_variables = 2;`\n\n### getSecretVariablesMap()\n\n public abstract Map\u003cString,String\u003e getSecretVariablesMap()\n\nA map of environment variable names to Secret Manager secret names.\nThe VM will access the named secrets to set the value of each environment\nvariable.\n\n`map\u003cstring, string\u003e secret_variables = 2;`\n\n### getSecretVariablesOrDefault(String key, String defaultValue)\n\n public abstract String getSecretVariablesOrDefault(String key, String defaultValue)\n\nA map of environment variable names to Secret Manager secret names.\nThe VM will access the named secrets to set the value of each environment\nvariable.\n\n`map\u003cstring, string\u003e secret_variables = 2;`\n\n### getSecretVariablesOrThrow(String key)\n\n public abstract String getSecretVariablesOrThrow(String key)\n\nA map of environment variable names to Secret Manager secret names.\nThe VM will access the named secrets to set the value of each environment\nvariable.\n\n`map\u003cstring, string\u003e secret_variables = 2;`\n\n### getVariables()\n\n public abstract Map\u003cString,String\u003e getVariables()\n\nUse [#getVariablesMap()](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.batch.v1.EnvironmentOrBuilder#com_google_events_cloud_batch_v1_EnvironmentOrBuilder_getVariablesMap__) instead.\n\n### getVariablesCount()\n\n public abstract int getVariablesCount()\n\nA map of environment variable names to values.\n\n`map\u003cstring, string\u003e variables = 1;`\n\n### getVariablesMap()\n\n public abstract Map\u003cString,String\u003e getVariablesMap()\n\nA map of environment variable names to values.\n\n`map\u003cstring, string\u003e variables = 1;`\n\n### getVariablesOrDefault(String key, String defaultValue)\n\n public abstract String getVariablesOrDefault(String key, String defaultValue)\n\nA map of environment variable names to values.\n\n`map\u003cstring, string\u003e variables = 1;`\n\n### getVariablesOrThrow(String key)\n\n public abstract String getVariablesOrThrow(String key)\n\nA map of environment variable names to values.\n\n`map\u003cstring, string\u003e variables = 1;`\n\n### hasEncryptedVariables()\n\n public abstract boolean hasEncryptedVariables()\n\nAn encrypted JSON dictionary where the key/value pairs correspond to\nenvironment variable names and their values.\n\n`.google.events.cloud.batch.v1.Environment.KMSEnvMap encrypted_variables = 3;`"]]