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<BatchGetDocumentsRequest,BatchGetDocumentsResponse> |
batchGetDocumentsCallable()
Gets multiple documents.
|
com.google.api.gax.rpc.UnaryCallable<BatchWriteRequest,BatchWriteResponse> |
batchWriteCallable() |
com.google.api.gax.rpc.UnaryCallable<BeginTransactionRequest,BeginTransactionResponse> |
beginTransactionCallable()
Starts a new transaction.
|
void |
close() |
com.google.api.gax.rpc.UnaryCallable<CommitRequest,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<ListCollectionIdsRequest,FirestoreClient.ListCollectionIdsPagedResponse> |
listCollectionIdsPagedCallable()
Returns a list of collections IDs.
|
com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,FirestoreClient.ListDocumentsPagedResponse> |
listDocumentsPagedCallable()
Returns a list of documents.
|
com.google.api.gax.rpc.BidiStreamingCallable<ListenRequest,ListenResponse> |
listenCallable()
Returns a bi-directional watch stream.
|
com.google.api.gax.rpc.UnaryCallable<PartitionQueryRequest,FirestoreClient.PartitionQueryPagedResponse> |
partitionQueryPagedCallable() |
com.google.api.gax.rpc.UnaryCallable<RollbackRequest,com.google.protobuf.Empty> |
rollbackCallable()
Rolls back a transaction.
|
com.google.api.gax.rpc.ServerStreamingCallable<RunAggregationQueryRequest,RunAggregationQueryResponse> |
runAggregationQueryCallable()
Runs an aggregation query.
|
com.google.api.gax.rpc.ServerStreamingCallable<RunQueryRequest,RunQueryResponse> |
runQueryCallable()
Runs a query.
|
void |
shutdown() |
void |
shutdownNow() |
public GrpcFirestoreRpc(FirestoreOptions options) throws IOException
IOExceptionpublic void close()
throws Exception
close in interface AutoCloseableExceptionpublic void shutdown()
shutdown in interface FirestoreRpcpublic void shutdownNow()
shutdownNow in interface FirestoreRpcpublic ScheduledExecutorService getExecutor()
FirestoreRpcgetExecutor in interface FirestoreRpcpublic com.google.api.gax.rpc.UnaryCallable<CommitRequest,CommitResponse> commitCallable()
FirestoreRpccommitCallable in interface FirestoreRpcpublic com.google.api.gax.rpc.UnaryCallable<BatchWriteRequest,BatchWriteResponse> batchWriteCallable()
batchWriteCallable in interface FirestoreRpcpublic com.google.api.gax.rpc.ServerStreamingCallable<BatchGetDocumentsRequest,BatchGetDocumentsResponse> batchGetDocumentsCallable()
FirestoreRpcbatchGetDocumentsCallable in interface FirestoreRpcpublic com.google.api.gax.rpc.ServerStreamingCallable<RunQueryRequest,RunQueryResponse> runQueryCallable()
FirestoreRpcrunQueryCallable in interface FirestoreRpcpublic com.google.api.gax.rpc.ServerStreamingCallable<RunAggregationQueryRequest,RunAggregationQueryResponse> runAggregationQueryCallable()
FirestoreRpcrunAggregationQueryCallable in interface FirestoreRpcpublic com.google.api.gax.rpc.UnaryCallable<BeginTransactionRequest,BeginTransactionResponse> beginTransactionCallable()
FirestoreRpcbeginTransactionCallable in interface FirestoreRpcpublic com.google.api.gax.rpc.UnaryCallable<RollbackRequest,com.google.protobuf.Empty> rollbackCallable()
FirestoreRpcrollbackCallable in interface FirestoreRpcpublic com.google.api.gax.rpc.UnaryCallable<ListCollectionIdsRequest,FirestoreClient.ListCollectionIdsPagedResponse> listCollectionIdsPagedCallable()
FirestoreRpclistCollectionIdsPagedCallable in interface FirestoreRpcpublic com.google.api.gax.rpc.UnaryCallable<PartitionQueryRequest,FirestoreClient.PartitionQueryPagedResponse> partitionQueryPagedCallable()
partitionQueryPagedCallable in interface FirestoreRpcpublic com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,FirestoreClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()
FirestoreRpclistDocumentsPagedCallable in interface FirestoreRpcpublic com.google.api.gax.rpc.BidiStreamingCallable<ListenRequest,ListenResponse> listenCallable()
FirestoreRpclistenCallable in interface FirestoreRpcCopyright © 2023 Google LLC. All rights reserved.