public sealed class ImportEntitiesRequest : IMessage<ImportEntitiesRequest>, IEquatable<ImportEntitiesRequest>, IDeepCloneable<ImportEntitiesRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Datastore v1 API class ImportEntitiesRequest.
The request for
[google.datastore.admin.v1.DatastoreAdmin.ImportEntities][google.datastore.admin.v1.DatastoreAdmin.ImportEntities].
Optionally specify which kinds/namespaces are to be imported. If provided,
the list must be a subset of the EntityFilter used in creating the export,
otherwise a FAILED_PRECONDITION error will be returned. If no filter is
specified then all entities from the export are imported.
Required. The full resource URL of the external storage location.
Currently, only Google Cloud Storage is supported. So input_url should be
of the form:
gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE, where
BUCKET_NAME is the name of the Cloud Storage bucket, NAMESPACE_PATH is
an optional Cloud Storage namespace path (this is not a Cloud Datastore
namespace), and OVERALL_EXPORT_METADATA_FILE is the metadata file written
by the ExportEntities operation. For more information about Cloud Storage
namespace paths, see
Object name
considerations.
For more information, see
[google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url].
[[["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-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eImportEntitiesRequest\u003c/code\u003e class is used to define requests for importing entities into Cloud Datastore and is part of the Google Cloud Datastore Admin V1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis 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, providing functionality for message handling, equality checks, deep cloning, and buffer manipulation.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides properties such as \u003ccode\u003eInputUrl\u003c/code\u003e, which is required and specifies the Google Cloud Storage location of the data to import, and \u003ccode\u003eProjectId\u003c/code\u003e, which is the ID of the project to import into.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEntityFilter\u003c/code\u003e property allows you to specify which kinds and namespaces to import, and the \u003ccode\u003eLabels\u003c/code\u003e property enables the attachment of client-assigned labels.\u003c/p\u003e\n"],["\u003cp\u003eMultiple versions of the \u003ccode\u003eImportEntitiesRequest\u003c/code\u003e class are available, with the latest being version 2.4.0, and this page also contains versions spanning from 1.1.0 to the latest version.\u003c/p\u003e\n"]]],[],null,["# Cloud Datastore v1 API - Class ImportEntitiesRequest (2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/latest/Google.Cloud.Datastore.Admin.V1.ImportEntitiesRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/2.3.0/Google.Cloud.Datastore.Admin.V1.ImportEntitiesRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/2.2.0/Google.Cloud.Datastore.Admin.V1.ImportEntitiesRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/2.1.0/Google.Cloud.Datastore.Admin.V1.ImportEntitiesRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/2.0.0/Google.Cloud.Datastore.Admin.V1.ImportEntitiesRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/1.4.0/Google.Cloud.Datastore.Admin.V1.ImportEntitiesRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/1.3.0/Google.Cloud.Datastore.Admin.V1.ImportEntitiesRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/1.2.0/Google.Cloud.Datastore.Admin.V1.ImportEntitiesRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/1.1.0/Google.Cloud.Datastore.Admin.V1.ImportEntitiesRequest) \n\n public sealed class ImportEntitiesRequest : IMessage\u003cImportEntitiesRequest\u003e, IEquatable\u003cImportEntitiesRequest\u003e, IDeepCloneable\u003cImportEntitiesRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Datastore v1 API class ImportEntitiesRequest.\n\nThe request for\n\\[google.datastore.admin.v1.DatastoreAdmin.ImportEntities\\]\\[google.datastore.admin.v1.DatastoreAdmin.ImportEntities\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ImportEntitiesRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ImportEntitiesRequest](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/latest/Google.Cloud.Datastore.Admin.V1.ImportEntitiesRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ImportEntitiesRequest](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/latest/Google.Cloud.Datastore.Admin.V1.ImportEntitiesRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ImportEntitiesRequest](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/latest/Google.Cloud.Datastore.Admin.V1.ImportEntitiesRequest), [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.Admin.V1](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/latest/Google.Cloud.Datastore.Admin.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Datastore.Admin.V1.dll\n\nConstructors\n------------\n\n### ImportEntitiesRequest()\n\n public ImportEntitiesRequest()\n\n### ImportEntitiesRequest(ImportEntitiesRequest)\n\n public ImportEntitiesRequest(ImportEntitiesRequest other)\n\nProperties\n----------\n\n### EntityFilter\n\n public EntityFilter EntityFilter { get; set; }\n\nOptionally specify which kinds/namespaces are to be imported. If provided,\nthe list must be a subset of the EntityFilter used in creating the export,\notherwise a FAILED_PRECONDITION error will be returned. If no filter is\nspecified then all entities from the export are imported.\n\n### InputUrl\n\n public string InputUrl { get; set; }\n\nRequired. The full resource URL of the external storage location.\nCurrently, only Google Cloud Storage is supported. So input_url should be\nof the form:\n`gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where\n`BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is\nan optional Cloud Storage namespace path (this is not a Cloud Datastore\nnamespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written\nby the ExportEntities operation. For more information about Cloud Storage\nnamespace paths, see\n[Object name\nconsiderations](https://cloud.google.com/storage/docs/naming#object-considerations).\n\nFor more information, see\n\\[google.datastore.admin.v1.ExportEntitiesResponse.output_url\\]\\[google.datastore.admin.v1.ExportEntitiesResponse.output_url\\].\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nClient-assigned labels.\n\n### ProjectId\n\n public string ProjectId { get; set; }\n\nRequired. Project ID against which to make the request."]]