public static final class FirestoreGrpc.FirestoreFutureStub extends io.grpc.stub.AbstractStub<FirestoreGrpc.FirestoreFutureStub>
The Cloud Firestore service. This service exposes several types of comparable timestamps: * `create_time` - The time at which a document was created. Changes only when a document is deleted, then re-created. Increases in a strict monotonic fashion. * `update_time` - The time at which a document was last updated. Changes every time a document is modified. Does not change when a write results in no modifications. Increases in a strict monotonic fashion. * `read_time` - The time at which a particular state was observed. Used to denote a consistent snapshot of the database or the time at which a Document was observed to not exist. * `commit_time` - The time at which the writes in a transaction were committed. Any read with an equal or greater `read_time` is guaranteed to see the effects of the transaction.
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<BeginTransactionResponse> |
beginTransaction(BeginTransactionRequest request)
Starts a new transaction.
|
protected FirestoreGrpc.FirestoreFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<CommitResponse> |
commit(CommitRequest request)
Commits a transaction, while optionally updating documents.
|
com.google.common.util.concurrent.ListenableFuture<Document> |
createDocument(CreateDocumentRequest request)
Creates a new document.
|
com.google.common.util.concurrent.ListenableFuture<Empty> |
deleteDocument(DeleteDocumentRequest request)
Deletes a document.
|
com.google.common.util.concurrent.ListenableFuture<Document> |
getDocument(GetDocumentRequest request)
Gets a single document.
|
com.google.common.util.concurrent.ListenableFuture<ListCollectionIdsResponse> |
listCollectionIds(ListCollectionIdsRequest request)
Lists all the collection IDs underneath a document.
|
com.google.common.util.concurrent.ListenableFuture<ListDocumentsResponse> |
listDocuments(ListDocumentsRequest request)
Lists documents.
|
com.google.common.util.concurrent.ListenableFuture<Empty> |
rollback(RollbackRequest request)
Rolls back a transaction.
|
com.google.common.util.concurrent.ListenableFuture<Document> |
updateDocument(UpdateDocumentRequest request)
Updates or inserts a document.
|
protected FirestoreGrpc.FirestoreFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<FirestoreGrpc.FirestoreFutureStub>
public com.google.common.util.concurrent.ListenableFuture<Document> getDocument(GetDocumentRequest request)
Gets a single document.
public com.google.common.util.concurrent.ListenableFuture<ListDocumentsResponse> listDocuments(ListDocumentsRequest request)
Lists documents.
public com.google.common.util.concurrent.ListenableFuture<Document> createDocument(CreateDocumentRequest request)
Creates a new document.
public com.google.common.util.concurrent.ListenableFuture<Document> updateDocument(UpdateDocumentRequest request)
Updates or inserts a document.
public com.google.common.util.concurrent.ListenableFuture<Empty> deleteDocument(DeleteDocumentRequest request)
Deletes a document.
public com.google.common.util.concurrent.ListenableFuture<BeginTransactionResponse> beginTransaction(BeginTransactionRequest request)
Starts a new transaction.
public com.google.common.util.concurrent.ListenableFuture<CommitResponse> commit(CommitRequest request)
Commits a transaction, while optionally updating documents.
public com.google.common.util.concurrent.ListenableFuture<Empty> rollback(RollbackRequest request)
Rolls back a transaction.
public com.google.common.util.concurrent.ListenableFuture<ListCollectionIdsResponse> listCollectionIds(ListCollectionIdsRequest request)
Lists all the collection IDs underneath a document.