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
IOException
public void close() throws Exception
close
in interface AutoCloseable
Exception
public void shutdown()
shutdown
in interface FirestoreRpc
public void shutdownNow()
shutdownNow
in interface FirestoreRpc
public ScheduledExecutorService getExecutor()
FirestoreRpc
getExecutor
in interface FirestoreRpc
public com.google.api.gax.rpc.UnaryCallable<CommitRequest,CommitResponse> commitCallable()
FirestoreRpc
commitCallable
in interface FirestoreRpc
public com.google.api.gax.rpc.UnaryCallable<BatchWriteRequest,BatchWriteResponse> batchWriteCallable()
batchWriteCallable
in interface FirestoreRpc
public com.google.api.gax.rpc.ServerStreamingCallable<BatchGetDocumentsRequest,BatchGetDocumentsResponse> batchGetDocumentsCallable()
FirestoreRpc
batchGetDocumentsCallable
in interface FirestoreRpc
public com.google.api.gax.rpc.ServerStreamingCallable<RunQueryRequest,RunQueryResponse> runQueryCallable()
FirestoreRpc
runQueryCallable
in interface FirestoreRpc
public com.google.api.gax.rpc.ServerStreamingCallable<RunAggregationQueryRequest,RunAggregationQueryResponse> runAggregationQueryCallable()
FirestoreRpc
runAggregationQueryCallable
in interface FirestoreRpc
public com.google.api.gax.rpc.UnaryCallable<BeginTransactionRequest,BeginTransactionResponse> beginTransactionCallable()
FirestoreRpc
beginTransactionCallable
in interface FirestoreRpc
public com.google.api.gax.rpc.UnaryCallable<RollbackRequest,com.google.protobuf.Empty> rollbackCallable()
FirestoreRpc
rollbackCallable
in interface FirestoreRpc
public com.google.api.gax.rpc.UnaryCallable<ListCollectionIdsRequest,FirestoreClient.ListCollectionIdsPagedResponse> listCollectionIdsPagedCallable()
FirestoreRpc
listCollectionIdsPagedCallable
in interface FirestoreRpc
public com.google.api.gax.rpc.UnaryCallable<PartitionQueryRequest,FirestoreClient.PartitionQueryPagedResponse> partitionQueryPagedCallable()
partitionQueryPagedCallable
in interface FirestoreRpc
public com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,FirestoreClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()
FirestoreRpc
listDocumentsPagedCallable
in interface FirestoreRpc
public com.google.api.gax.rpc.BidiStreamingCallable<ListenRequest,ListenResponse> listenCallable()
FirestoreRpc
listenCallable
in interface FirestoreRpc
Copyright © 2023 Google LLC. All rights reserved.