/// <summary>Snippet for ImportEntities</summary> public void ImportEntities() { // Snippet: ImportEntities(string, IDictionary<string,string>, string, EntityFilter, CallSettings) // Create client DatastoreAdminClient datastoreAdminClient = DatastoreAdminClient.Create(); // Initialize request argument(s) string projectId = ""; IDictionary <string, string> labels = new Dictionary <string, string> { { "", "" }, }; string inputUrl = ""; EntityFilter entityFilter = new EntityFilter(); // Make the request Operation <Empty, ImportEntitiesMetadata> response = datastoreAdminClient.ImportEntities(projectId, labels, inputUrl, entityFilter); // Poll until the returned long-running operation is complete Operation <Empty, ImportEntitiesMetadata> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result Empty result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <Empty, ImportEntitiesMetadata> retrievedResponse = datastoreAdminClient.PollOnceImportEntities(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result Empty retrievedResult = retrievedResponse.Result; } // End snippet }