public sealed class GenerateRandomBytesRequest : IMessage<GenerateRandomBytesRequest>, IEquatable<GenerateRandomBytesRequest>, IDeepCloneable<GenerateRandomBytesRequest>, IBufferMessage, IMessage
Request message for
[KeyManagementService.GenerateRandomBytes][google.cloud.kms.v1.KeyManagementService.GenerateRandomBytes].
The project-specific location in which to generate random bytes.
For example, "projects/my-project/locations/us-central1".
Property Value
Type
Description
System.String
ProtectionLevel
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."],[[["The latest version of the `GenerateRandomBytesRequest` is 3.16.0, while version 3.0.0 is also available along with multiple previous versions."],["`GenerateRandomBytesRequest` is a message used for requesting random byte generation via the KeyManagementService."],["The `GenerateRandomBytesRequest` class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits from the `Object` class."],["This request object includes properties to define the `LengthBytes`, `Location`, and `ProtectionLevel`, with the `LengthBytes` property specifying the amount of randomness to be retrieved."],["Only the HSM protection level is currently supported when generating the random data, as defined by the ProtectionLevel property."]]],[]]