public MapField<string, ByteString> SecretEnv { get; }
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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-19 UTC."],[[["\u003cp\u003eThe latest version available for \u003ccode\u003eGoogle.Cloud.CloudBuild.V1.Secret\u003c/code\u003e is 2.15.0, and multiple previous versions, ranging from 2.14.0 down to 1.0.0, are also accessible.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecret\u003c/code\u003e class is used to manage a collection of encrypted environment variables, along with the corresponding Cloud KMS key required for decryption.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecret\u003c/code\u003e class implements multiple interfaces including IMessage, IEquatable, IDeepCloneable, and IBufferMessage.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003eKmsKeyName\u003c/code\u003e to specify the Cloud KMS key, and \u003ccode\u003eSecretEnv\u003c/code\u003e to manage the map of environment variables and their encrypted values, which have a 64 KB size limit and must be unique within a build's secrets.\u003c/p\u003e\n"],["\u003cp\u003eThe preferred method for using secrets is \u003ccode\u003ekmsKeyName\u003c/code\u003e with \u003ccode\u003eavailable_secrets\u003c/code\u003e, instead of using \u003ccode\u003ekmsKeyName\u003c/code\u003e with \u003ccode\u003esecret\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]