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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e class within the Google Cloud Key Management Service (KMS) v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e class is a request message used to call the \u003ccode\u003eKeyManagementService.GenerateRandomBytes\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation lists all versions of the class, with version 3.16.0 being the latest, and details the inheritance hierarchy and implemented interfaces for this specific class.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e class include \u003ccode\u003eLengthBytes\u003c/code\u003e to specify the amount of randomness to retrieve, \u003ccode\u003eLocation\u003c/code\u003e for the project-specific location, and \u003ccode\u003eProtectionLevel\u003c/code\u003e for the type of protection used, which currently only supports HSM.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation gives reference information for all the constructors and properties of the class, including the parameters and return types.\u003c/p\u003e\n"]]],[],null,[]]