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"]],[["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 details the \u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Kms.V1\u003c/code\u003e namespace, used to request random byte generation from the Key Management Service.\u003c/p\u003e\n"],["\u003cp\u003eThe latest available version is 3.16.0, and documentation is available for numerous versions spanning from 2.2.0 to 3.16.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e class has properties such as \u003ccode\u003eLengthBytes\u003c/code\u003e, which specifies the length of the random bytes to generate (between 8 and 1024), \u003ccode\u003eLocation\u003c/code\u003e, which identifies the project location, and \u003ccode\u003eProtectionLevel\u003c/code\u003e, which sets the level of protection for the generated data.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation shows that this class inherits from \u003ccode\u003eObject\u003c/code\u003e, and it provides inherited members like \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, \u003ccode\u003eMemberwiseClone()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]