public sealed class TransientCryptoKey : IMessage<TransientCryptoKey>, IEquatable<TransientCryptoKey>, IDeepCloneable<TransientCryptoKey>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Data Loss Prevention v2 API class TransientCryptoKey.
Use this to have a random data crypto key generated.
It will be discarded after the request finishes.
Required. Name of the key.
This is an arbitrary string used to differentiate different keys.
A unique key is generated per name: two separate TransientCryptoKey
protos share the same generated key if their names are the same.
When the data crypto key is generated, this name is not used in any way
(repeating the api call will result in a different key being generated).
[[["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-07 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eTransientCryptoKey\u003c/code\u003e class within the Google Cloud Data Loss Prevention (DLP) v2 API, spanning multiple versions.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 4.16.0, while the documentation covers versions back to 2.15.0, allowing users to find the specific version they require.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTransientCryptoKey\u003c/code\u003e class is used to generate a random data crypto key that is discarded after a request is completed, and can be constructed with a default constructor, or by copying another TransientCryptoKey object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property of \u003ccode\u003eTransientCryptoKey\u003c/code\u003e is a required string that differentiates keys, and if two separate \u003ccode\u003eTransientCryptoKey\u003c/code\u003e protos share the same name, they will have the same generated key, however, repeating the API call will result in a different key.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, while also providing members inherited from the object class.\u003c/p\u003e\n"]]],[],null,[]]