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"]],[["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."],[[["This page provides documentation for the `GenerateRandomBytesRequest` class within the Google Cloud Key Management Service v1 API, specifically for .NET."],["The `GenerateRandomBytesRequest` class is used to define parameters for requesting the generation of random bytes, as requested through the `KeyManagementService.GenerateRandomBytes` function."],["This class implements several interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and contains properties like `LengthBytes`, `Location`, and `ProtectionLevel`."],["The `LengthBytes` property specifies the desired length of random data, ranging from 8 to 1024 bytes, while the `ProtectionLevel` property is restricted to `HSM` for secure random data generation."],["A history of the different versions of the `GenerateRandomBytesRequest` class are listed, ranging from version 3.16.0 down to 2.2.0, including links to access each version's documentation."]]],[]]