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\u003eThe \u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e class is used to request the generation of random bytes through the Key Management Service.\u003c/p\u003e\n"],["\u003cp\u003eThis request allows specifying the length of the desired random data, ranging from a minimum of 8 bytes to a maximum of 1024 bytes.\u003c/p\u003e\n"],["\u003cp\u003eThe location for generating random bytes is configurable and should be provided in the format "projects/my-project/locations/us-central1".\u003c/p\u003e\n"],["\u003cp\u003eIt's possible to set the \u003ccode\u003eProtectionLevel\u003c/code\u003e for the random data generation, defaulting to \u003ccode\u003eSOFTWARE\u003c/code\u003e if not specified.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eGenerateRandomBytesRequest\u003c/code\u003e is 3.16.0, and there are many previous versions listed as well.\u003c/p\u003e\n"]]],[],null,[]]