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"]],[["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-03-21 UTC."],[[["The `GenerateRandomBytesRequest` class is a request message for the `KeyManagementService.GenerateRandomBytes` method within the Google Cloud KMS API."],["This class implements multiple interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, allowing for message handling, comparison, cloning, and buffering."],["Key properties of this request include `LengthBytes`, which specifies the desired length of random bytes (8-1024), `Location`, which sets the project location, and `ProtectionLevel`, which defines the security level for the random data generation."],["There 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."],["The `GenerateRandomBytesRequest` class has two constructors, a default one and another that takes an existing `GenerateRandomBytesRequest` object for copying."]]],[]]