public class GrpcFirestoreRpc extends Object implements FirestoreRpc
| Constructor and Description |
|---|
GrpcFirestoreRpc(FirestoreOptions options) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.gax.rpc.ServerStreamingCallable<com.google.firestore.v1beta1.BatchGetDocumentsRequest,com.google.firestore.v1beta1.BatchGetDocumentsResponse> |
batchGetDocumentsCallable()
Gets multiple documents.
|
com.google.api.gax.rpc.UnaryCallable<com.google.firestore.v1beta1.BeginTransactionRequest,com.google.firestore.v1beta1.BeginTransactionResponse> |
beginTransactionCallable()
Starts a new transaction.
|
void |
close() |
com.google.api.gax.rpc.UnaryCallable<com.google.firestore.v1beta1.CommitRequest,com.google.firestore.v1beta1.CommitResponse> |
commitCallable()
Commits a transaction, while optionally updating documents.
|
ScheduledExecutorService |
getExecutor()
Returns the executor used by the GAPIC client.
|
com.google.api.gax.rpc.UnaryCallable<com.google.firestore.v1beta1.ListCollectionIdsRequest,FirestoreClient.ListCollectionIdsPagedResponse> |
listCollectionIdsPagedCallable()
Returns a list of collections IDs.
|
com.google.api.gax.rpc.BidiStreamingCallable<com.google.firestore.v1beta1.ListenRequest,com.google.firestore.v1beta1.ListenResponse> |
listenCallable()
Returns a bi-directional watch stream.
|
com.google.api.gax.rpc.UnaryCallable<com.google.firestore.v1beta1.RollbackRequest,com.google.protobuf.Empty> |
rollbackCallable()
Rolls back a transaction.
|
com.google.api.gax.rpc.ServerStreamingCallable<com.google.firestore.v1beta1.RunQueryRequest,com.google.firestore.v1beta1.RunQueryResponse> |
runQueryCallable()
Runs a query.
|
public GrpcFirestoreRpc(FirestoreOptions options) throws IOException
IOExceptionpublic void close()
throws Exception
close in interface AutoCloseableExceptionpublic ScheduledExecutorService getExecutor()
FirestoreRpcgetExecutor in interface FirestoreRpcpublic com.google.api.gax.rpc.UnaryCallable<com.google.firestore.v1beta1.CommitRequest,com.google.firestore.v1beta1.CommitResponse> commitCallable()
FirestoreRpccommitCallable in interface FirestoreRpcpublic com.google.api.gax.rpc.ServerStreamingCallable<com.google.firestore.v1beta1.BatchGetDocumentsRequest,com.google.firestore.v1beta1.BatchGetDocumentsResponse> batchGetDocumentsCallable()
FirestoreRpcbatchGetDocumentsCallable in interface FirestoreRpcpublic com.google.api.gax.rpc.ServerStreamingCallable<com.google.firestore.v1beta1.RunQueryRequest,com.google.firestore.v1beta1.RunQueryResponse> runQueryCallable()
FirestoreRpcrunQueryCallable in interface FirestoreRpcpublic com.google.api.gax.rpc.UnaryCallable<com.google.firestore.v1beta1.BeginTransactionRequest,com.google.firestore.v1beta1.BeginTransactionResponse> beginTransactionCallable()
FirestoreRpcbeginTransactionCallable in interface FirestoreRpcpublic com.google.api.gax.rpc.UnaryCallable<com.google.firestore.v1beta1.RollbackRequest,com.google.protobuf.Empty> rollbackCallable()
FirestoreRpcrollbackCallable in interface FirestoreRpcpublic com.google.api.gax.rpc.UnaryCallable<com.google.firestore.v1beta1.ListCollectionIdsRequest,FirestoreClient.ListCollectionIdsPagedResponse> listCollectionIdsPagedCallable()
FirestoreRpclistCollectionIdsPagedCallable in interface FirestoreRpcpublic com.google.api.gax.rpc.BidiStreamingCallable<com.google.firestore.v1beta1.ListenRequest,com.google.firestore.v1beta1.ListenResponse> listenCallable()
FirestoreRpclistenCallable in interface FirestoreRpcCopyright © 2018 Google. All rights reserved.