public sealed class GenerateRandomBytesRequest : IMessage<GenerateRandomBytesRequest>, IEquatable<GenerateRandomBytesRequest>, IDeepCloneable<GenerateRandomBytesRequest>, IBufferMessage, IMessage
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. Defaults to
[SOFTWARE][google.cloud.kms.v1.ProtectionLevel.SOFTWARE].
[[["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\u003eThe \u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e class is a request message for the \u003ccode\u003eKeyManagementService.GenerateRandomBytes\u003c/code\u003e method within the Google Cloud KMS API.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for message handling, comparison, cloning, and buffering.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of this request include \u003ccode\u003eLengthBytes\u003c/code\u003e, which specifies the desired length of random bytes (8-1024), \u003ccode\u003eLocation\u003c/code\u003e, which sets the project location, and \u003ccode\u003eProtectionLevel\u003c/code\u003e, which defines the security level for the random data generation.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple available versions of the API, ranging from version 2.2.0 up to 3.16.0, with 3.16.0 being the latest, and version 2.5.0 being the one focused on in the provided content.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e class has two constructors, a default one and another that takes an existing \u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e object for copying.\u003c/p\u003e\n"]]],[],null,[]]