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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-09 UTC."],[[["The latest version of the `GenerateRandomBytesRequest` documentation is 3.16.0, and the page contains links to previous versions, ranging back to version 2.2.0."],["`GenerateRandomBytesRequest` is a request message used for the `KeyManagementService.GenerateRandomBytes` operation."],["It implements several interfaces, including `IMessage\u003cGenerateRandomBytesRequest\u003e`, `IEquatable\u003cGenerateRandomBytesRequest\u003e`, `IDeepCloneable\u003cGenerateRandomBytesRequest\u003e`, `IBufferMessage`, and `IMessage`."],["The class has two constructors and three properties: `LengthBytes`, `Location`, and `ProtectionLevel`, to specify parameters for the random bytes request."],["`GenerateRandomBytesRequest` requires a minimum of 8 and maximum of 1024 bytes, and currently only the HSM protection level is supported."]]],[]]