Class FirestoreAdminGrpc.FirestoreAdminStub

public static final class FirestoreAdminGrpc.FirestoreAdminStub extends AbstractAsyncStub<FirestoreAdminGrpc.FirestoreAdminStub>

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.AbstractAsyncStub > FirestoreAdminGrpc.FirestoreAdminStub

Methods

build(Channel channel, CallOptions callOptions)

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

createIndex(CreateIndexRequest request, StreamObserver<Operation> responseObserver)

public void createIndex(CreateIndexRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
NameDescription
requestCreateIndexRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteIndex(DeleteIndexRequest request, StreamObserver<Empty> responseObserver)

public void deleteIndex(DeleteIndexRequest request, StreamObserver<Empty> responseObserver)

Deletes a composite index.

Parameters
NameDescription
requestDeleteIndexRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

exportDocuments(ExportDocumentsRequest request, StreamObserver<Operation> responseObserver)

public void exportDocuments(ExportDocumentsRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
NameDescription
requestExportDocumentsRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

getField(GetFieldRequest request, StreamObserver<Field> responseObserver)

public void getField(GetFieldRequest request, StreamObserver<Field> responseObserver)

Gets the metadata and configuration for a Field.

Parameters
NameDescription
requestGetFieldRequest
responseObserverio.grpc.stub.StreamObserver<Field>

getIndex(GetIndexRequest request, StreamObserver<Index> responseObserver)

public void getIndex(GetIndexRequest request, StreamObserver<Index> responseObserver)

Gets a composite index.

Parameters
NameDescription
requestGetIndexRequest
responseObserverio.grpc.stub.StreamObserver<Index>

importDocuments(ImportDocumentsRequest request, StreamObserver<Operation> responseObserver)

public void importDocuments(ImportDocumentsRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
NameDescription
requestImportDocumentsRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

listFields(ListFieldsRequest request, StreamObserver<ListFieldsResponse> responseObserver)

public void listFields(ListFieldsRequest request, StreamObserver<ListFieldsResponse> responseObserver)

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.

Parameters
NameDescription
requestListFieldsRequest
responseObserverio.grpc.stub.StreamObserver<ListFieldsResponse>

listIndexes(ListIndexesRequest request, StreamObserver<ListIndexesResponse> responseObserver)

public void listIndexes(ListIndexesRequest request, StreamObserver<ListIndexesResponse> responseObserver)

Lists composite indexes.

Parameters
NameDescription
requestListIndexesRequest
responseObserverio.grpc.stub.StreamObserver<ListIndexesResponse>

updateField(UpdateFieldRequest request, StreamObserver<Operation> responseObserver)

public void updateField(UpdateFieldRequest request, StreamObserver<Operation> responseObserver)

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/*.

Parameters
NameDescription
requestUpdateFieldRequest
responseObserverio.grpc.stub.StreamObserver<Operation>