public sealed class AllocateIdsRequest : IMessage<AllocateIdsRequest>, IEquatable<AllocateIdsRequest>, IDeepCloneable<AllocateIdsRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Datastore v1 API class AllocateIdsRequest.
The request for
[Datastore.AllocateIds][google.datastore.v1.Datastore.AllocateIds].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eAllocateIdsRequest\u003c/code\u003e class within the Google Cloud Datastore v1 API, specifically for .NET development, detailing its usage in requesting ID allocation.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eAllocateIdsRequest\u003c/code\u003e available is 4.15.0, with multiple previous versions also documented, ranging down to 3.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAllocateIdsRequest\u003c/code\u003e class 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, enhancing its functionality and usability.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eAllocateIdsRequest\u003c/code\u003e include \u003ccode\u003eDatabaseId\u003c/code\u003e, \u003ccode\u003eKeys\u003c/code\u003e (a list of keys for ID allocation), and \u003ccode\u003eProjectId\u003c/code\u003e, which are essential for configuring and executing the ID allocation request.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits members from the object class, such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Datastore v1 API - Class AllocateIdsRequest (4.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.15.0 (latest)](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [4.14.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.14.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [4.13.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.13.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [4.12.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.12.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [4.11.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.11.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [4.10.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.10.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.9.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.8.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.7.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.6.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.5.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.4.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.3.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.2.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.1.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.0.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.5.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.4.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.3.0/Google.Cloud.Datastore.V1.AllocateIdsRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.2.0/Google.Cloud.Datastore.V1.AllocateIdsRequest) \n\n public sealed class AllocateIdsRequest : IMessage\u003cAllocateIdsRequest\u003e, IEquatable\u003cAllocateIdsRequest\u003e, IDeepCloneable\u003cAllocateIdsRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Datastore v1 API class AllocateIdsRequest.\n\nThe request for\n\\[Datastore.AllocateIds\\]\\[google.datastore.v1.Datastore.AllocateIds\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AllocateIdsRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AllocateIdsRequest](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.AllocateIdsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AllocateIdsRequest](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.AllocateIdsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AllocateIdsRequest](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.AllocateIdsRequest), [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.Datastore.V1](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Datastore.V1.dll\n\nConstructors\n------------\n\n### AllocateIdsRequest()\n\n public AllocateIdsRequest()\n\n### AllocateIdsRequest(AllocateIdsRequest)\n\n public AllocateIdsRequest(AllocateIdsRequest other)\n\nProperties\n----------\n\n### DatabaseId\n\n public string DatabaseId { get; set; }\n\nThe ID of the database against which to make the request.\n\n'(default)' is not allowed; please use empty string '' to refer the default\ndatabase.\n\n### Keys\n\n public RepeatedField\u003cKey\u003e Keys { get; }\n\nRequired. A list of keys with incomplete key paths for which to allocate\nIDs. No key may be reserved/read-only.\n\n### ProjectId\n\n public string ProjectId { get; set; }\n\nRequired. The ID of the project against which to make the request."]]