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. 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\u003eThe latest version of the \u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e documentation is 3.16.0, and the page contains links to previous versions, ranging back to version 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e is a request message used for the \u003ccode\u003eKeyManagementService.GenerateRandomBytes\u003c/code\u003e operation.\u003c/p\u003e\n"],["\u003cp\u003eIt implements several interfaces, including \u003ccode\u003eIMessage<GenerateRandomBytesRequest>\u003c/code\u003e, \u003ccode\u003eIEquatable<GenerateRandomBytesRequest>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<GenerateRandomBytesRequest>\u003c/code\u003e, \u003ccode\u003eIBufferMessage\u003c/code\u003e, and \u003ccode\u003eIMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors and three properties: \u003ccode\u003eLengthBytes\u003c/code\u003e, \u003ccode\u003eLocation\u003c/code\u003e, and \u003ccode\u003eProtectionLevel\u003c/code\u003e, to specify parameters for the random bytes request.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e requires a minimum of 8 and maximum of 1024 bytes, and currently only the HSM protection level is supported.\u003c/p\u003e\n"]]],[],null,[]]