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<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<RollbackRequest,Empty> |
rollbackCallable()
Rolls back a transaction.
|
com.google.api.gax.rpc.ServerStreamingCallable<RunQueryRequest,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 com.google.api.gax.rpc.UnaryCallable<CommitRequest,CommitResponse> commitCallable()
FirestoreRpc
commitCallable
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.UnaryCallable<BeginTransactionRequest,BeginTransactionResponse> beginTransactionCallable()
FirestoreRpc
beginTransactionCallable
in interface FirestoreRpc
public com.google.api.gax.rpc.UnaryCallable<RollbackRequest,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<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 © 2019 Google LLC. All rights reserved.