Class GrpcFirestoreRpc
java.lang.Object
com.google.cloud.firestore.spi.v1.GrpcFirestoreRpc
- All Implemented Interfaces:
FirestoreRpc,com.google.cloud.ServiceRpc,AutoCloseable
GRPC client implementation of the Firestore RPC methods. Exposes FirestoreOptions on top of the
GRPC-based Firestore GAPIC client.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.gax.rpc.ServerStreamingCallable<BatchGetDocumentsRequest,BatchGetDocumentsResponse> Gets multiple documents.com.google.api.gax.rpc.UnaryCallable<BatchWriteRequest,BatchWriteResponse> com.google.api.gax.rpc.UnaryCallable<BeginTransactionRequest,BeginTransactionResponse> Starts a new transaction.voidclose()com.google.api.gax.rpc.UnaryCallable<CommitRequest,CommitResponse> Commits a transaction, while optionally updating documents.Returns the executor used by the GAPIC client.com.google.api.gax.rpc.UnaryCallable<ListCollectionIdsRequest,FirestoreClient.ListCollectionIdsPagedResponse> Returns a list of collections IDs.com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,FirestoreClient.ListDocumentsPagedResponse> Returns a list of documents.com.google.api.gax.rpc.BidiStreamingCallable<ListenRequest,ListenResponse> Returns a bi-directional watch stream.com.google.api.gax.rpc.UnaryCallable<PartitionQueryRequest,FirestoreClient.PartitionQueryPagedResponse> com.google.api.gax.rpc.UnaryCallable<RollbackRequest,com.google.protobuf.Empty> Rolls back a transaction.com.google.api.gax.rpc.ServerStreamingCallable<RunAggregationQueryRequest,RunAggregationQueryResponse> Runs an aggregation query.com.google.api.gax.rpc.ServerStreamingCallable<RunQueryRequest,RunQueryResponse> Runs a query.voidshutdown()void
-
Constructor Details
-
GrpcFirestoreRpc
- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceFirestoreRpc
-
shutdownNow
public void shutdownNow()- Specified by:
shutdownNowin interfaceFirestoreRpc
-
getExecutor
Description copied from interface:FirestoreRpcReturns the executor used by the GAPIC client.- Specified by:
getExecutorin interfaceFirestoreRpc
-
commitCallable
Description copied from interface:FirestoreRpcCommits a transaction, while optionally updating documents.- Specified by:
commitCallablein interfaceFirestoreRpc
-
batchWriteCallable
public com.google.api.gax.rpc.UnaryCallable<BatchWriteRequest,BatchWriteResponse> batchWriteCallable()- Specified by:
batchWriteCallablein interfaceFirestoreRpc
-
batchGetDocumentsCallable
public com.google.api.gax.rpc.ServerStreamingCallable<BatchGetDocumentsRequest,BatchGetDocumentsResponse> batchGetDocumentsCallable()Description copied from interface:FirestoreRpcGets multiple documents.- Specified by:
batchGetDocumentsCallablein interfaceFirestoreRpc
-
runQueryCallable
public com.google.api.gax.rpc.ServerStreamingCallable<RunQueryRequest,RunQueryResponse> runQueryCallable()Description copied from interface:FirestoreRpcRuns a query.- Specified by:
runQueryCallablein interfaceFirestoreRpc
-
runAggregationQueryCallable
public com.google.api.gax.rpc.ServerStreamingCallable<RunAggregationQueryRequest,RunAggregationQueryResponse> runAggregationQueryCallable()Description copied from interface:FirestoreRpcRuns an aggregation query.- Specified by:
runAggregationQueryCallablein interfaceFirestoreRpc
-
beginTransactionCallable
public com.google.api.gax.rpc.UnaryCallable<BeginTransactionRequest,BeginTransactionResponse> beginTransactionCallable()Description copied from interface:FirestoreRpcStarts a new transaction.- Specified by:
beginTransactionCallablein interfaceFirestoreRpc
-
rollbackCallable
public com.google.api.gax.rpc.UnaryCallable<RollbackRequest,com.google.protobuf.Empty> rollbackCallable()Description copied from interface:FirestoreRpcRolls back a transaction.- Specified by:
rollbackCallablein interfaceFirestoreRpc
-
listCollectionIdsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListCollectionIdsRequest,FirestoreClient.ListCollectionIdsPagedResponse> listCollectionIdsPagedCallable()Description copied from interface:FirestoreRpcReturns a list of collections IDs.- Specified by:
listCollectionIdsPagedCallablein interfaceFirestoreRpc
-
partitionQueryPagedCallable
public com.google.api.gax.rpc.UnaryCallable<PartitionQueryRequest,FirestoreClient.PartitionQueryPagedResponse> partitionQueryPagedCallable()- Specified by:
partitionQueryPagedCallablein interfaceFirestoreRpc
-
listDocumentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,FirestoreClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()Description copied from interface:FirestoreRpcReturns a list of documents.- Specified by:
listDocumentsPagedCallablein interfaceFirestoreRpc
-
listenCallable
Description copied from interface:FirestoreRpcReturns a bi-directional watch stream.- Specified by:
listenCallablein interfaceFirestoreRpc
-