public static interface FirestoreGrpc.AsyncService
The Cloud Firestore service. Cloud Firestore is a fast, fully managed, serverless, cloud-native NoSQL document database that simplifies storing, syncing, and querying data for your mobile, web, and IoT apps at global scale. Its client libraries provide live synchronization and offline support, while its security features and integrations with Firebase and Google Cloud Platform accelerate building truly serverless apps.
Modifier and Type | Method and Description |
---|---|
default void |
batchGetDocuments(BatchGetDocumentsRequest request,
io.grpc.stub.StreamObserver<BatchGetDocumentsResponse> responseObserver)
Gets multiple documents.
|
default void |
batchWrite(BatchWriteRequest request,
io.grpc.stub.StreamObserver<BatchWriteResponse> responseObserver)
Applies a batch of write operations.
|
default void |
beginTransaction(BeginTransactionRequest request,
io.grpc.stub.StreamObserver<BeginTransactionResponse> responseObserver)
Starts a new transaction.
|
default void |
commit(CommitRequest request,
io.grpc.stub.StreamObserver<CommitResponse> responseObserver)
Commits a transaction, while optionally updating documents.
|
default void |
createDocument(CreateDocumentRequest request,
io.grpc.stub.StreamObserver<Document> responseObserver)
Creates a new document.
|
default void |
deleteDocument(DeleteDocumentRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes a document.
|
default void |
getDocument(GetDocumentRequest request,
io.grpc.stub.StreamObserver<Document> responseObserver)
Gets a single document.
|
default void |
listCollectionIds(ListCollectionIdsRequest request,
io.grpc.stub.StreamObserver<ListCollectionIdsResponse> responseObserver)
Lists all the collection IDs underneath a document.
|
default void |
listDocuments(ListDocumentsRequest request,
io.grpc.stub.StreamObserver<ListDocumentsResponse> responseObserver)
Lists documents.
|
default io.grpc.stub.StreamObserver<ListenRequest> |
listen(io.grpc.stub.StreamObserver<ListenResponse> responseObserver)
Listens to changes.
|
default void |
partitionQuery(PartitionQueryRequest request,
io.grpc.stub.StreamObserver<PartitionQueryResponse> responseObserver)
Partitions a query by returning partition cursors that can be used to run
the query in parallel.
|
default void |
rollback(RollbackRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Rolls back a transaction.
|
default void |
runAggregationQuery(RunAggregationQueryRequest request,
io.grpc.stub.StreamObserver<RunAggregationQueryResponse> responseObserver)
Runs an aggregation query.
|
default void |
runQuery(RunQueryRequest request,
io.grpc.stub.StreamObserver<RunQueryResponse> responseObserver)
Runs a query.
|
default void |
updateDocument(UpdateDocumentRequest request,
io.grpc.stub.StreamObserver<Document> responseObserver)
Updates or inserts a document.
|
default io.grpc.stub.StreamObserver<WriteRequest> |
write(io.grpc.stub.StreamObserver<WriteResponse> responseObserver)
Streams batches of document updates and deletes, in order.
|
default void getDocument(GetDocumentRequest request, io.grpc.stub.StreamObserver<Document> responseObserver)
Gets a single document.
default void listDocuments(ListDocumentsRequest request, io.grpc.stub.StreamObserver<ListDocumentsResponse> responseObserver)
Lists documents.
default void updateDocument(UpdateDocumentRequest request, io.grpc.stub.StreamObserver<Document> responseObserver)
Updates or inserts a document.
default void deleteDocument(DeleteDocumentRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes a document.
default void batchGetDocuments(BatchGetDocumentsRequest request, io.grpc.stub.StreamObserver<BatchGetDocumentsResponse> responseObserver)
Gets multiple documents. Documents returned by this method are not guaranteed to be returned in the same order that they were requested.
default void beginTransaction(BeginTransactionRequest request, io.grpc.stub.StreamObserver<BeginTransactionResponse> responseObserver)
Starts a new transaction.
default void commit(CommitRequest request, io.grpc.stub.StreamObserver<CommitResponse> responseObserver)
Commits a transaction, while optionally updating documents.
default void rollback(RollbackRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Rolls back a transaction.
default void runQuery(RunQueryRequest request, io.grpc.stub.StreamObserver<RunQueryResponse> responseObserver)
Runs a query.
default void runAggregationQuery(RunAggregationQueryRequest request, io.grpc.stub.StreamObserver<RunAggregationQueryResponse> responseObserver)
Runs an aggregation query. Rather than producing [Document][google.firestore.v1.Document] results like [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery], this API allows running an aggregation to produce a series of [AggregationResult][google.firestore.v1.AggregationResult] server-side. High-Level Example: ``` -- Return the number of documents in table given a filter. SELECT COUNT(*) FROM ( SELECT * FROM k where a = true ); ```
default void partitionQuery(PartitionQueryRequest request, io.grpc.stub.StreamObserver<PartitionQueryResponse> responseObserver)
Partitions a query by returning partition cursors that can be used to run the query in parallel. The returned partition cursors are split points that can be used by RunQuery as starting/end points for the query results.
default io.grpc.stub.StreamObserver<WriteRequest> write(io.grpc.stub.StreamObserver<WriteResponse> responseObserver)
Streams batches of document updates and deletes, in order. This method is only available via gRPC or WebChannel (not REST).
default io.grpc.stub.StreamObserver<ListenRequest> listen(io.grpc.stub.StreamObserver<ListenResponse> responseObserver)
Listens to changes. This method is only available via gRPC or WebChannel (not REST).
default void listCollectionIds(ListCollectionIdsRequest request, io.grpc.stub.StreamObserver<ListCollectionIdsResponse> responseObserver)
Lists all the collection IDs underneath a document.
default void batchWrite(BatchWriteRequest request, io.grpc.stub.StreamObserver<BatchWriteResponse> responseObserver)
Applies a batch of write operations. The BatchWrite method does not apply the write operations atomically and can apply them out of order. Method does not allow more than one write per document. Each write succeeds or fails independently. See the [BatchWriteResponse][google.firestore.v1.BatchWriteResponse] for the success status of each write. If you require an atomically applied set of writes, use [Commit][google.firestore.v1.Firestore.Commit] instead.
default void createDocument(CreateDocumentRequest request, io.grpc.stub.StreamObserver<Document> responseObserver)
Creates a new document.
Copyright © 2023 Google LLC. All rights reserved.