Map of environment variable name to its encrypted value.
Secret environment variables must be unique across all of a build's
secrets, and must be used by at least one build step. Values can be at most
64 KB in size. There can be at most 100 secret values across all of a
build's secrets.
Map of environment variable name to its encrypted value.
Secret environment variables must be unique across all of a build's
secrets, and must be used by at least one build step. Values can be at most
64 KB in size. There can be at most 100 secret values across all of a
build's secrets.
Map of environment variable name to its encrypted value.
Secret environment variables must be unique across all of a build's
secrets, and must be used by at least one build step. Values can be at most
64 KB in size. There can be at most 100 secret values across all of a
build's secrets.
Map of environment variable name to its encrypted value.
Secret environment variables must be unique across all of a build's
secrets, and must be used by at least one build step. Values can be at most
64 KB in size. There can be at most 100 secret values across all of a
build's secrets.
Map of environment variable name to its encrypted value.
Secret environment variables must be unique across all of a build's
secrets, and must be used by at least one build step. Values can be at most
64 KB in size. There can be at most 100 secret values across all of a
build's secrets.
[[["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 SecretOrBuilder (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.cloudbuild.v1.SecretOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.cloudbuild.v1.SecretOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.cloudbuild.v1.SecretOrBuilder) \n\n public interface SecretOrBuilder 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### containsSecretEnv(String key)\n\n public abstract boolean containsSecretEnv(String key)\n\nMap of environment variable name to its encrypted value.\nSecret environment variables must be unique across all of a build's\nsecrets, and must be used by at least one build step. Values can be at most\n64 KB in size. There can be at most 100 secret values across all of a\nbuild's secrets.\n\n`map\u003cstring, bytes\u003e secret_env = 3;`\n\n### getKmsKeyName()\n\n public abstract String getKmsKeyName()\n\nCloud KMS key name to use to decrypt these envs.\n\n`string kms_key_name = 1;`\n\n### getKmsKeyNameBytes()\n\n public abstract ByteString getKmsKeyNameBytes()\n\nCloud KMS key name to use to decrypt these envs.\n\n`string kms_key_name = 1;`\n\n### getSecretEnv()\n\n public abstract Map\u003cString,ByteString\u003e getSecretEnv()\n\nUse [#getSecretEnvMap()](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.cloudbuild.v1.SecretOrBuilder#com_google_events_cloud_cloudbuild_v1_SecretOrBuilder_getSecretEnvMap__) instead.\n\n### getSecretEnvCount()\n\n public abstract int getSecretEnvCount()\n\nMap of environment variable name to its encrypted value.\nSecret environment variables must be unique across all of a build's\nsecrets, and must be used by at least one build step. Values can be at most\n64 KB in size. There can be at most 100 secret values across all of a\nbuild's secrets.\n\n`map\u003cstring, bytes\u003e secret_env = 3;`\n\n### getSecretEnvMap()\n\n public abstract Map\u003cString,ByteString\u003e getSecretEnvMap()\n\nMap of environment variable name to its encrypted value.\nSecret environment variables must be unique across all of a build's\nsecrets, and must be used by at least one build step. Values can be at most\n64 KB in size. There can be at most 100 secret values across all of a\nbuild's secrets.\n\n`map\u003cstring, bytes\u003e secret_env = 3;`\n\n### getSecretEnvOrDefault(String key, ByteString defaultValue)\n\n public abstract ByteString getSecretEnvOrDefault(String key, ByteString defaultValue)\n\nMap of environment variable name to its encrypted value.\nSecret environment variables must be unique across all of a build's\nsecrets, and must be used by at least one build step. Values can be at most\n64 KB in size. There can be at most 100 secret values across all of a\nbuild's secrets.\n\n`map\u003cstring, bytes\u003e secret_env = 3;`\n\n### getSecretEnvOrThrow(String key)\n\n public abstract ByteString getSecretEnvOrThrow(String key)\n\nMap of environment variable name to its encrypted value.\nSecret environment variables must be unique across all of a build's\nsecrets, and must be used by at least one build step. Values can be at most\n64 KB in size. There can be at most 100 secret values across all of a\nbuild's secrets.\n\n`map\u003cstring, bytes\u003e secret_env = 3;`"]]