public class GrpcFirestoreRpc extends Object implements FirestoreRpc
Constructor and Description |
---|
GrpcFirestoreRpc(FirestoreOptions options) |
Modifier and Type | Method and Description |
---|---|
ServerStreamingCallable<com.google.firestore.v1.BatchGetDocumentsRequest,com.google.firestore.v1.BatchGetDocumentsResponse> |
batchGetDocumentsCallable()
Gets multiple documents.
|
UnaryCallable<com.google.firestore.v1.BeginTransactionRequest,com.google.firestore.v1.BeginTransactionResponse> |
beginTransactionCallable()
Starts a new transaction.
|
void |
close() |
UnaryCallable<com.google.firestore.v1.CommitRequest,com.google.firestore.v1.CommitResponse> |
commitCallable()
Commits a transaction, while optionally updating documents.
|
ScheduledExecutorService |
getExecutor()
Returns the executor used by the GAPIC client.
|
UnaryCallable<com.google.firestore.v1.ListCollectionIdsRequest,FirestoreClient.ListCollectionIdsPagedResponse> |
listCollectionIdsPagedCallable()
Returns a list of collections IDs.
|
UnaryCallable<com.google.firestore.v1.ListDocumentsRequest,FirestoreClient.ListDocumentsPagedResponse> |
listDocumentsPagedCallable()
Returns a list of documents.
|
BidiStreamingCallable<com.google.firestore.v1.ListenRequest,com.google.firestore.v1.ListenResponse> |
listenCallable()
Returns a bi-directional watch stream.
|
UnaryCallable<com.google.firestore.v1.RollbackRequest,Empty> |
rollbackCallable()
Rolls back a transaction.
|
ServerStreamingCallable<com.google.firestore.v1.RunQueryRequest,com.google.firestore.v1.RunQueryResponse> |
runQueryCallable()
Runs a query.
|
public GrpcFirestoreRpc(FirestoreOptions options) throws IOException
IOException
public void close() throws Exception
close
in interface AutoCloseable
Exception
public ScheduledExecutorService getExecutor()
FirestoreRpc
getExecutor
in interface FirestoreRpc
public UnaryCallable<com.google.firestore.v1.CommitRequest,com.google.firestore.v1.CommitResponse> commitCallable()
FirestoreRpc
commitCallable
in interface FirestoreRpc
public ServerStreamingCallable<com.google.firestore.v1.BatchGetDocumentsRequest,com.google.firestore.v1.BatchGetDocumentsResponse> batchGetDocumentsCallable()
FirestoreRpc
batchGetDocumentsCallable
in interface FirestoreRpc
public ServerStreamingCallable<com.google.firestore.v1.RunQueryRequest,com.google.firestore.v1.RunQueryResponse> runQueryCallable()
FirestoreRpc
runQueryCallable
in interface FirestoreRpc
public UnaryCallable<com.google.firestore.v1.BeginTransactionRequest,com.google.firestore.v1.BeginTransactionResponse> beginTransactionCallable()
FirestoreRpc
beginTransactionCallable
in interface FirestoreRpc
public UnaryCallable<com.google.firestore.v1.RollbackRequest,Empty> rollbackCallable()
FirestoreRpc
rollbackCallable
in interface FirestoreRpc
public UnaryCallable<com.google.firestore.v1.ListCollectionIdsRequest,FirestoreClient.ListCollectionIdsPagedResponse> listCollectionIdsPagedCallable()
FirestoreRpc
listCollectionIdsPagedCallable
in interface FirestoreRpc
public UnaryCallable<com.google.firestore.v1.ListDocumentsRequest,FirestoreClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()
FirestoreRpc
listDocumentsPagedCallable
in interface FirestoreRpc
public BidiStreamingCallable<com.google.firestore.v1.ListenRequest,com.google.firestore.v1.ListenResponse> listenCallable()
FirestoreRpc
listenCallable
in interface FirestoreRpc
Copyright © 2019 Google LLC. All rights reserved.