public static final class FirestoreAdminGrpc.FirestoreAdminStub extends io.grpc.stub.AbstractStub<FirestoreAdminGrpc.FirestoreAdminStub>
The Cloud Firestore Admin API. This API provides several administrative services for Cloud Firestore. # Concepts Project, Database, Namespace, Collection, and Document are used as defined in the Google Cloud Firestore API. Operation: An Operation represents work being performed in the background. # Services ## Index 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. ## Metadata Provides metadata and statistical information about data in Cloud Firestore. The data provided as part of this API may be stale. ## Operation 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 not yet done may be cancelled. The request to cancel is asynchronous and the Operation may continue to run for some time after the request to cancel is made. An Operation that is done may be deleted so that it is no longer listed as part of the Operation collection. Operations are created by service `FirestoreAdmin`, but are accessed via service `google.longrunning.Operations`.
| Modifier and Type | Method and Description |
|---|---|
protected FirestoreAdminGrpc.FirestoreAdminStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
void |
createIndex(com.google.firestore.admin.v1beta1.CreateIndexRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates the specified index.
|
void |
deleteIndex(com.google.firestore.admin.v1beta1.DeleteIndexRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an index.
|
void |
getIndex(com.google.firestore.admin.v1beta1.GetIndexRequest request,
io.grpc.stub.StreamObserver<com.google.firestore.admin.v1beta1.Index> responseObserver)
Gets an index.
|
void |
listIndexes(com.google.firestore.admin.v1beta1.ListIndexesRequest request,
io.grpc.stub.StreamObserver<com.google.firestore.admin.v1beta1.ListIndexesResponse> responseObserver)
Lists the indexes that match the specified filters.
|
protected FirestoreAdminGrpc.FirestoreAdminStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<FirestoreAdminGrpc.FirestoreAdminStub>public void createIndex(com.google.firestore.admin.v1beta1.CreateIndexRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
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 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.firestore.admin.v1beta1.FirestoreAdmin.DeleteIndex], then re-creating the index with [create][google.firestore.admin.v1beta1.FirestoreAdmin.CreateIndex]. Indexes with a single field cannot be created.
public void listIndexes(com.google.firestore.admin.v1beta1.ListIndexesRequest request,
io.grpc.stub.StreamObserver<com.google.firestore.admin.v1beta1.ListIndexesResponse> responseObserver)
Lists the indexes that match the specified filters.
public void getIndex(com.google.firestore.admin.v1beta1.GetIndexRequest request,
io.grpc.stub.StreamObserver<com.google.firestore.admin.v1beta1.Index> responseObserver)
Gets an index.
public void deleteIndex(com.google.firestore.admin.v1beta1.DeleteIndexRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an index.