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 reference documentation for the \u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e class within the Google Cloud Key Management Service (KMS) v1 API, specifically for the .NET library.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e class is used to request the generation of random bytes, supporting the retrieval of between 8 and 1024 bytes, and currently only supports \u003ccode\u003eHSM\u003c/code\u003e as the protection level.\u003c/p\u003e\n"],["\u003cp\u003eThe page includes version-specific documentation, ranging from version 2.2.0 to the latest version, 3.16.0, allowing users to access information relevant to their specific version of the API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e class implements multiple interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e and inherits methods from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains properties such as \u003ccode\u003eLengthBytes\u003c/code\u003e, \u003ccode\u003eLocation\u003c/code\u003e, and \u003ccode\u003eProtectionLevel\u003c/code\u003e, which are used to specify the parameters of the request for generating random bytes.\u003c/p\u003e\n"]]],[],null,[]]