public sealed class GenerateRandomBytesRequest : IMessage<GenerateRandomBytesRequest>, IEquatable<GenerateRandomBytesRequest>, IDeepCloneable<GenerateRandomBytesRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Key Management Service v1 API class GenerateRandomBytesRequest.
Request message for
[KeyManagementService.GenerateRandomBytes][google.cloud.kms.v1.KeyManagementService.GenerateRandomBytes].
public ProtectionLevel ProtectionLevel { get; set; }
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] to use when
generating the random data. Currently, only
[HSM][google.cloud.kms.v1.ProtectionLevel.HSM] protection level is
supported.
[[["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\u003eGenerateRandomBytesRequest\u003c/code\u003e class within the Google Cloud Key Management Service (KMS) v1 API, specifically for version 3.7.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e class is used to request the generation of random bytes via the \u003ccode\u003eKeyManagementService.GenerateRandomBytes\u003c/code\u003e method and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes an extensive list of versions, ranging from 3.16.0 (the latest) down to 2.2.0, with links to specific documentation for each version.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties for specifying \u003ccode\u003eLengthBytes\u003c/code\u003e (ranging from 8 to 1024), \u003ccode\u003eLocation\u003c/code\u003e of the project, and the \u003ccode\u003eProtectionLevel\u003c/code\u003e (currently only supporting \u003ccode\u003eHSM\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides information about the class's constructors, inherited members, and the assembly it belongs to.\u003c/p\u003e\n"]]],[],null,[]]