public sealed class GetPublicKeyRequest : IMessage<GetPublicKeyRequest>, IEquatable<GetPublicKeyRequest>, IDeepCloneable<GetPublicKeyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Key Management Service v1 API class GetPublicKeyRequest.
Request message for
[KeyManagementService.GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
public PublicKey.Types.PublicKeyFormat PublicKeyFormat { get; set; }
Optional. The [PublicKey][google.cloud.kms.v1.PublicKey] format specified
by the user. This field is required for PQC algorithms. If specified, the
public key will be exported through the
[public_key][google.cloud.kms.v1.PublicKey.public_key] field in the
requested format. Otherwise, the [pem][google.cloud.kms.v1.PublicKey.pem]
field will be populated for non-PQC algorithms, and an error will be
returned for PQC algorithms.
[[["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 document provides reference documentation for the \u003ccode\u003eGetPublicKeyRequest\u003c/code\u003e class within the Google Cloud Key Management Service v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eGetPublicKeyRequest\u003c/code\u003e documentation is 3.16.0, with versions ranging back to 2.2.0 also available.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetPublicKeyRequest\u003c/code\u003e class is used to request a public key from a specified \u003ccode\u003eCryptoKeyVersion\u003c/code\u003e within the Key Management Service.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \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\u003eKey properties of the \u003ccode\u003eGetPublicKeyRequest\u003c/code\u003e include \u003ccode\u003eCryptoKeyVersionName\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, and \u003ccode\u003ePublicKeyFormat\u003c/code\u003e, allowing users to specify the key version and desired output format.\u003c/p\u003e\n"]]],[],null,[]]