Class FirestoreAdminGrpc.FirestoreAdminBlockingStub (3.16.3)

public static final class FirestoreAdminGrpc.FirestoreAdminBlockingStub extends AbstractBlockingStub<FirestoreAdminGrpc.FirestoreAdminBlockingStub>

A stub to allow clients to do synchronous rpc calls to service FirestoreAdmin.

The Cloud Firestore Admin API. This API provides several administrative services for Cloud Firestore. Project, Database, Namespace, Collection, Collection Group, and Document are used as defined in the Google Cloud Firestore API. Operation: An Operation represents work being performed in the background. The index service manages Cloud Firestore indexes. Index creation is performed asynchronously. An Operation resource is created for each such asynchronous operation. The state of the operation (including any errors encountered) may be queried via the Operation resource. The Operations collection provides a record of actions performed for the specified Project (including any Operations in progress). Operations are not created directly but through calls on other collections or resources. An Operation that is done may be deleted so that it is no longer listed as part of the Operation collection. Operations are garbage collected after 30 days. By default, ListOperations will only return in progress and failed operations. To list completed operation, issue a ListOperations request with the filter done: true. Operations are created by service FirestoreAdmin, but are accessed via service google.longrunning.Operations.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > FirestoreAdminGrpc.FirestoreAdminBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

protected FirestoreAdminGrpc.FirestoreAdminBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
FirestoreAdminGrpc.FirestoreAdminBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createDatabase(CreateDatabaseRequest request)

public Operation createDatabase(CreateDatabaseRequest request)

Create a database.

Parameter
NameDescription
requestCreateDatabaseRequest
Returns
TypeDescription
Operation

createIndex(CreateIndexRequest request)

public Operation createIndex(CreateIndexRequest request)

Creates a composite index. This returns a google.longrunning.Operation which may be used to track the status of the creation. The metadata for the operation will be the type IndexOperationMetadata.

Parameter
NameDescription
requestCreateIndexRequest
Returns
TypeDescription
Operation

deleteDatabase(DeleteDatabaseRequest request)

public Operation deleteDatabase(DeleteDatabaseRequest request)

Deletes a database.

Parameter
NameDescription
requestDeleteDatabaseRequest
Returns
TypeDescription
Operation

deleteIndex(DeleteIndexRequest request)

public Empty deleteIndex(DeleteIndexRequest request)

Deletes a composite index.

Parameter
NameDescription
requestDeleteIndexRequest
Returns
TypeDescription
Empty

exportDocuments(ExportDocumentsRequest request)

public Operation exportDocuments(ExportDocumentsRequest request)

Exports a copy of all or a subset of documents from Google Cloud Firestore to another storage system, such as Google Cloud Storage. Recent updates to documents 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. For more details on export behavior and output format, refer to: https://cloud.google.com/firestore/docs/manage-data/export-import

Parameter
NameDescription
requestExportDocumentsRequest
Returns
TypeDescription
Operation

getDatabase(GetDatabaseRequest request)

public Database getDatabase(GetDatabaseRequest request)

Gets information about a database.

Parameter
NameDescription
requestGetDatabaseRequest
Returns
TypeDescription
Database

getField(GetFieldRequest request)

public Field getField(GetFieldRequest request)

Gets the metadata and configuration for a Field.

Parameter
NameDescription
requestGetFieldRequest
Returns
TypeDescription
Field

getIndex(GetIndexRequest request)

public Index getIndex(GetIndexRequest request)

Gets a composite index.

Parameter
NameDescription
requestGetIndexRequest
Returns
TypeDescription
Index

importDocuments(ImportDocumentsRequest request)

public Operation importDocuments(ImportDocumentsRequest request)

Imports documents into Google Cloud Firestore. Existing documents with the same name 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 ImportDocuments operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Firestore.

Parameter
NameDescription
requestImportDocumentsRequest
Returns
TypeDescription
Operation

listDatabases(ListDatabasesRequest request)

public ListDatabasesResponse listDatabases(ListDatabasesRequest request)

List all the databases in the project.

Parameter
NameDescription
requestListDatabasesRequest
Returns
TypeDescription
ListDatabasesResponse

listFields(ListFieldsRequest request)

public ListFieldsResponse listFields(ListFieldsRequest request)

Lists the field configuration and metadata for this database. Currently, FirestoreAdmin.ListFields only supports listing fields that have been explicitly overridden. To issue this query, call FirestoreAdmin.ListFields with the filter set to indexConfig.usesAncestorConfig:false or ttlConfig:*.

Parameter
NameDescription
requestListFieldsRequest
Returns
TypeDescription
ListFieldsResponse

listIndexes(ListIndexesRequest request)

public ListIndexesResponse listIndexes(ListIndexesRequest request)

Lists composite indexes.

Parameter
NameDescription
requestListIndexesRequest
Returns
TypeDescription
ListIndexesResponse

updateDatabase(UpdateDatabaseRequest request)

public Operation updateDatabase(UpdateDatabaseRequest request)

Updates a database.

Parameter
NameDescription
requestUpdateDatabaseRequest
Returns
TypeDescription
Operation

updateField(UpdateFieldRequest request)

public Operation updateField(UpdateFieldRequest request)

Updates a field configuration. Currently, field updates apply only to single field index configuration. However, calls to FirestoreAdmin.UpdateField should provide a field mask to avoid changing any configuration that the caller isn't aware of. The field mask should be specified as: { paths: "index_config" }. This call returns a google.longrunning.Operation which may be used to track the status of the field update. The metadata for the operation will be the type FieldOperationMetadata. To configure the default field settings for the database, use the special Field with resource name: projects/{project_id}/databases/{database_id}/collectionGroups/default/fields/*.

Parameter
NameDescription
requestUpdateFieldRequest
Returns
TypeDescription
Operation