public sealed class CreateKeyHandleRequest : IMessage<CreateKeyHandleRequest>, IEquatable<CreateKeyHandleRequest>, IDeepCloneable<CreateKeyHandleRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Key Management Service v1 API class CreateKeyHandleRequest.
Request message for
[Autokey.CreateKeyHandle][google.cloud.kms.v1.Autokey.CreateKeyHandle].
Optional. Id of the [KeyHandle][google.cloud.kms.v1.KeyHandle]. Must be
unique to the resource project and location. If not provided by the caller,
a new UUID is used.
Required. Name of the resource project and location to create the
[KeyHandle][google.cloud.kms.v1.KeyHandle] in, e.g.
projects/{PROJECT_ID}/locations/{LOCATION}.
[[["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 latest version available for the \u003ccode\u003eCreateKeyHandleRequest\u003c/code\u003e class in the Google Cloud Key Management Service v1 API is 3.16.0, with various prior versions also available for reference.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateKeyHandleRequest\u003c/code\u003e class is a request message used within the Google Cloud KMS v1 API for the creation of a KeyHandle.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCreateKeyHandleRequest\u003c/code\u003e 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, indicating its role within the Google Protocol Buffers ecosystem.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eKeyHandle\u003c/code\u003e, \u003ccode\u003eKeyHandleId\u003c/code\u003e, \u003ccode\u003eParent\u003c/code\u003e, and \u003ccode\u003eParentAsLocationName\u003c/code\u003e to manage and specify the creation of a KeyHandle, including the location and specific identifier.\u003c/p\u003e\n"],["\u003cp\u003eThis class has inherited members from the base \u003ccode\u003eobject\u003c/code\u003e class, including \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e, and is found within the \u003ccode\u003eGoogle.Cloud.Kms.V1\u003c/code\u003e namespace, and the \u003ccode\u003eGoogle.Cloud.Kms.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Key Management Service v1 API - Class CreateKeyHandleRequest (3.18.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.18.0 (latest)](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.17.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.17.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.16.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.16.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.15.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.15.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.14.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.13.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.12.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.11.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.10.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.9.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.8.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.7.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.6.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.5.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.4.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.3.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.2.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.1.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/3.0.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.9.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.8.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.7.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.6.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.5.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.4.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.3.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Kms.V1/2.2.0/Google.Cloud.Kms.V1.CreateKeyHandleRequest) \n\n public sealed class CreateKeyHandleRequest : IMessage\u003cCreateKeyHandleRequest\u003e, IEquatable\u003cCreateKeyHandleRequest\u003e, IDeepCloneable\u003cCreateKeyHandleRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Key Management Service v1 API class CreateKeyHandleRequest.\n\nRequest message for\n\\[Autokey.CreateKeyHandle\\]\\[google.cloud.kms.v1.Autokey.CreateKeyHandle\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateKeyHandleRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateKeyHandleRequest](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.CreateKeyHandleRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateKeyHandleRequest](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.CreateKeyHandleRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateKeyHandleRequest](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.CreateKeyHandleRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Kms.V1](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Kms.V1.dll\n\nConstructors\n------------\n\n### CreateKeyHandleRequest()\n\n public CreateKeyHandleRequest()\n\n### CreateKeyHandleRequest(CreateKeyHandleRequest)\n\n public CreateKeyHandleRequest(CreateKeyHandleRequest other)\n\nProperties\n----------\n\n### KeyHandle\n\n public KeyHandle KeyHandle { get; set; }\n\nRequired. \\[KeyHandle\\]\\[google.cloud.kms.v1.KeyHandle\\] to create.\n\n### KeyHandleId\n\n public string KeyHandleId { get; set; }\n\nOptional. Id of the \\[KeyHandle\\]\\[google.cloud.kms.v1.KeyHandle\\]. Must be\nunique to the resource project and location. If not provided by the caller,\na new UUID is used.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. Name of the resource project and location to create the\n\\[KeyHandle\\]\\[google.cloud.kms.v1.KeyHandle\\] in, e.g.\n`projects/{PROJECT_ID}/locations/{LOCATION}`.\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Kms.V1/latest/Google.Cloud.Kms.V1.CreateKeyHandleRequest#Google_Cloud_Kms_V1_CreateKeyHandleRequest_Parent) resource name property."]]