public virtual Task<Operation> CreateIndex(CreateIndexRequest request, ServerCallContext context)
Creates the specified index.
A newly created index's initial state is CREATING. On completion of the
returned [google.longrunning.Operation][google.longrunning.Operation], the
state will be READY. If the index already exists, the call will return an
ALREADY_EXISTS status.
During index creation, the process could result in an error, in which
case the index will move to the ERROR state. The process can be recovered
by fixing the data that caused the error, removing the index with
[delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then
re-creating the index with [create]
[google.datastore.admin.v1.DatastoreAdmin.CreateIndex].
public virtual Task<Operation> DeleteIndex(DeleteIndexRequest request, ServerCallContext context)
Deletes an existing index.
An index can only be deleted if it is in a READY or ERROR state. On
successful execution of the request, the index will be in a DELETING
[state][google.datastore.admin.v1.Index.State]. And on completion of the
returned [google.longrunning.Operation][google.longrunning.Operation], the
index will be removed.
During index deletion, the process could result in an error, in which
case the index will move to the ERROR state. The process can be recovered
by fixing the data that caused the error, followed by calling
[delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again.
public virtual Task<Operation> ExportEntities(ExportEntitiesRequest request, ServerCallContext context)
Exports a copy of all or a subset of entities from Google Cloud Datastore
to another storage system, such as Google Cloud Storage. Recent updates to
entities may not be reflected in the export. The export occurs in the
background and its progress can be monitored and managed via the
Operation resource that is created. The output of an export may only be
used once the associated operation is done. If an export operation is
cancelled before completion it may leave partial data behind in Google
Cloud Storage.
public virtual Task<Operation> ImportEntities(ImportEntitiesRequest request, ServerCallContext context)
Imports entities into Google Cloud Datastore. Existing entities with the
same key are overwritten. The import occurs in the background and its
progress can be monitored and managed via the Operation resource that is
created. If an ImportEntities operation is cancelled, it is possible
that a subset of the data has already been imported to Cloud Datastore.
public virtual Task<ListIndexesResponse> ListIndexes(ListIndexesRequest request, ServerCallContext context)
Lists the indexes that match the specified filters. Datastore uses an
eventually consistent query to fetch the list of indexes and may
occasionally return stale results.
[[["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 latest version of the \u003ccode\u003eDatastoreAdmin.DatastoreAdminBase\u003c/code\u003e class is 2.4.0, with several older versions also available, including 2.3.0, 2.2.0, 2.1.0, 2.0.0, 1.4.0, 1.3.0, 1.2.0, and 1.1.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDatastoreAdmin.DatastoreAdminBase\u003c/code\u003e is the base class for server-side implementations of DatastoreAdmin, inheriting from \u003ccode\u003eobject\u003c/code\u003e and residing within the \u003ccode\u003eGoogle.Cloud.Datastore.Admin.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides methods to manage indexes, such as \u003ccode\u003eCreateIndex\u003c/code\u003e for creating indexes, \u003ccode\u003eDeleteIndex\u003c/code\u003e for deleting indexes, \u003ccode\u003eGetIndex\u003c/code\u003e for retrieving an index, and \u003ccode\u003eListIndexes\u003c/code\u003e for listing indexes.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDatastoreAdmin.DatastoreAdminBase\u003c/code\u003e also includes functionality for exporting and importing entities using the \u003ccode\u003eExportEntities\u003c/code\u003e and \u003ccode\u003eImportEntities\u003c/code\u003e methods respectively, allowing for data transfer between Google Cloud Datastore and other storage systems.\u003c/p\u003e\n"],["\u003cp\u003eAll methods within \u003ccode\u003eDatastoreAdmin.DatastoreAdminBase\u003c/code\u003e, such as \u003ccode\u003eCreateIndex\u003c/code\u003e, \u003ccode\u003eDeleteIndex\u003c/code\u003e, \u003ccode\u003eExportEntities\u003c/code\u003e, \u003ccode\u003eGetIndex\u003c/code\u003e, \u003ccode\u003eImportEntities\u003c/code\u003e, and \u003ccode\u003eListIndexes\u003c/code\u003e return a Task, signifying they are asynchronous operations and make use of request and context parameters for handling client interactions.\u003c/p\u003e\n"]]],[],null,["# Cloud Datastore v1 API - Class DatastoreAdmin.DatastoreAdminBase (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.DatastoreAdmin.DatastoreAdminBase)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/2.3.0/Google.Cloud.Datastore.Admin.V1.DatastoreAdmin.DatastoreAdminBase)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/2.2.0/Google.Cloud.Datastore.Admin.V1.DatastoreAdmin.DatastoreAdminBase)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/2.1.0/Google.Cloud.Datastore.Admin.V1.DatastoreAdmin.DatastoreAdminBase)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/2.0.0/Google.Cloud.Datastore.Admin.V1.DatastoreAdmin.DatastoreAdminBase)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/1.4.0/Google.Cloud.Datastore.Admin.V1.DatastoreAdmin.DatastoreAdminBase)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/1.3.0/Google.Cloud.Datastore.Admin.V1.DatastoreAdmin.DatastoreAdminBase)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/1.2.0/Google.Cloud.Datastore.Admin.V1.DatastoreAdmin.DatastoreAdminBase)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/1.1.0/Google.Cloud.Datastore.Admin.V1.DatastoreAdmin.DatastoreAdminBase) \n\n [BindServiceMethod(typeof(DatastoreAdmin), \"BindService\")]\n public abstract class DatastoreAdmin.DatastoreAdminBase\n\nReference documentation and code samples for the Cloud Datastore v1 API class DatastoreAdmin.DatastoreAdminBase.\n\nBase class for server-side implementations of DatastoreAdmin \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DatastoreAdmin.DatastoreAdminBase \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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \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\nMethods\n-------\n\n### CreateIndex(CreateIndexRequest, ServerCallContext)\n\n public virtual Task\u003cOperation\u003e CreateIndex(CreateIndexRequest request, ServerCallContext context)\n\nCreates the specified index.\nA newly created index's initial state is `CREATING`. On completion of the\nreturned \\[google.longrunning.Operation\\]\\[google.longrunning.Operation\\], the\nstate will be `READY`. If the index already exists, the call will return an\n`ALREADY_EXISTS` status.\n\nDuring index creation, the process could result in an error, in which\ncase the index will move to the `ERROR` state. The process can be recovered\nby fixing the data that caused the error, removing the index with\n\\[delete\\]\\[google.datastore.admin.v1.DatastoreAdmin.DeleteIndex\\], then\nre-creating the index with \\[create\\]\n\\[google.datastore.admin.v1.DatastoreAdmin.CreateIndex\\].\n\nIndexes with a single property cannot be created.\n\n### DeleteIndex(DeleteIndexRequest, ServerCallContext)\n\n public virtual Task\u003cOperation\u003e DeleteIndex(DeleteIndexRequest request, ServerCallContext context)\n\nDeletes an existing index.\nAn index can only be deleted if it is in a `READY` or `ERROR` state. On\nsuccessful execution of the request, the index will be in a `DELETING`\n\\[state\\]\\[google.datastore.admin.v1.Index.State\\]. And on completion of the\nreturned \\[google.longrunning.Operation\\]\\[google.longrunning.Operation\\], the\nindex will be removed.\n\nDuring index deletion, the process could result in an error, in which\ncase the index will move to the `ERROR` state. The process can be recovered\nby fixing the data that caused the error, followed by calling\n\\[delete\\]\\[google.datastore.admin.v1.DatastoreAdmin.DeleteIndex\\] again.\n\n### ExportEntities(ExportEntitiesRequest, ServerCallContext)\n\n public virtual Task\u003cOperation\u003e ExportEntities(ExportEntitiesRequest request, ServerCallContext context)\n\nExports a copy of all or a subset of entities from Google Cloud Datastore\nto another storage system, such as Google Cloud Storage. Recent updates to\nentities may not be reflected in the export. The export occurs in the\nbackground and its progress can be monitored and managed via the\nOperation resource that is created. The output of an export may only be\nused once the associated operation is done. If an export operation is\ncancelled before completion it may leave partial data behind in Google\nCloud Storage.\n\n### GetIndex(GetIndexRequest, ServerCallContext)\n\n public virtual Task\u003cIndex\u003e GetIndex(GetIndexRequest request, ServerCallContext context)\n\nGets an index.\n\n### ImportEntities(ImportEntitiesRequest, ServerCallContext)\n\n public virtual Task\u003cOperation\u003e ImportEntities(ImportEntitiesRequest request, ServerCallContext context)\n\nImports entities into Google Cloud Datastore. Existing entities with the\nsame key are overwritten. The import occurs in the background and its\nprogress can be monitored and managed via the Operation resource that is\ncreated. If an ImportEntities operation is cancelled, it is possible\nthat a subset of the data has already been imported to Cloud Datastore.\n\n### ListIndexes(ListIndexesRequest, ServerCallContext)\n\n public virtual Task\u003cListIndexesResponse\u003e ListIndexes(ListIndexesRequest request, ServerCallContext context)\n\nLists the indexes that match the specified filters. Datastore uses an\neventually consistent query to fetch the list of indexes and may\noccasionally return stale results."]]