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-04-09 UTC."],[[["This page details the `GenerateRandomBytesRequest` class within the `Google.Cloud.Kms.V1` namespace, used to request random byte generation from the Key Management Service."],["The latest available version is 3.16.0, and documentation is available for numerous versions spanning from 2.2.0 to 3.16.0."],["`GenerateRandomBytesRequest` implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The `GenerateRandomBytesRequest` class has properties such as `LengthBytes`, which specifies the length of the random bytes to generate (between 8 and 1024), `Location`, which identifies the project location, and `ProtectionLevel`, which sets the level of protection for the generated data."],["The documentation shows that this class inherits from `Object`, and it provides inherited members like `GetHashCode()`, `GetType()`, `MemberwiseClone()`, and `ToString()`."]]],[]]