@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcFirestoreStub extends FirestoreStub
This class is for advanced usage and reflects the underlying API directly.
Modifier | Constructor and Description |
---|---|
protected |
GrpcFirestoreStub(FirestoreStubSettings settings,
ClientContext clientContext)
Constructs an instance of GrpcFirestoreStub, using the given settings.
|
protected |
GrpcFirestoreStub(FirestoreStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcFirestoreStub, using the given settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
ServerStreamingCallable<com.google.firestore.v1.BatchGetDocumentsRequest,com.google.firestore.v1.BatchGetDocumentsResponse> |
batchGetDocumentsCallable() |
UnaryCallable<com.google.firestore.v1.BeginTransactionRequest,com.google.firestore.v1.BeginTransactionResponse> |
beginTransactionCallable() |
void |
close() |
UnaryCallable<com.google.firestore.v1.CommitRequest,com.google.firestore.v1.CommitResponse> |
commitCallable() |
static GrpcFirestoreStub |
create(ClientContext clientContext) |
static GrpcFirestoreStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcFirestoreStub |
create(FirestoreStubSettings settings) |
UnaryCallable<com.google.firestore.v1.CreateDocumentRequest,com.google.firestore.v1.Document> |
createDocumentCallable() |
UnaryCallable<com.google.firestore.v1.DeleteDocumentRequest,Empty> |
deleteDocumentCallable() |
UnaryCallable<com.google.firestore.v1.GetDocumentRequest,com.google.firestore.v1.Document> |
getDocumentCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.firestore.v1.ListCollectionIdsRequest,com.google.firestore.v1.ListCollectionIdsResponse> |
listCollectionIdsCallable() |
UnaryCallable<com.google.firestore.v1.ListCollectionIdsRequest,FirestoreClient.ListCollectionIdsPagedResponse> |
listCollectionIdsPagedCallable() |
UnaryCallable<com.google.firestore.v1.ListDocumentsRequest,com.google.firestore.v1.ListDocumentsResponse> |
listDocumentsCallable() |
UnaryCallable<com.google.firestore.v1.ListDocumentsRequest,FirestoreClient.ListDocumentsPagedResponse> |
listDocumentsPagedCallable() |
BidiStreamingCallable<com.google.firestore.v1.ListenRequest,com.google.firestore.v1.ListenResponse> |
listenCallable() |
UnaryCallable<com.google.firestore.v1.RollbackRequest,Empty> |
rollbackCallable() |
ServerStreamingCallable<com.google.firestore.v1.RunQueryRequest,com.google.firestore.v1.RunQueryResponse> |
runQueryCallable() |
void |
shutdown() |
void |
shutdownNow() |
UnaryCallable<com.google.firestore.v1.UpdateDocumentRequest,com.google.firestore.v1.Document> |
updateDocumentCallable() |
BidiStreamingCallable<com.google.firestore.v1.WriteRequest,com.google.firestore.v1.WriteResponse> |
writeCallable() |
protected GrpcFirestoreStub(FirestoreStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected GrpcFirestoreStub(FirestoreStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcFirestoreStub create(FirestoreStubSettings settings) throws IOException
IOException
public static final GrpcFirestoreStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcFirestoreStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public UnaryCallable<com.google.firestore.v1.GetDocumentRequest,com.google.firestore.v1.Document> getDocumentCallable()
getDocumentCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1.ListDocumentsRequest,FirestoreClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()
listDocumentsPagedCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1.ListDocumentsRequest,com.google.firestore.v1.ListDocumentsResponse> listDocumentsCallable()
listDocumentsCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1.CreateDocumentRequest,com.google.firestore.v1.Document> createDocumentCallable()
createDocumentCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1.UpdateDocumentRequest,com.google.firestore.v1.Document> updateDocumentCallable()
updateDocumentCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1.DeleteDocumentRequest,Empty> deleteDocumentCallable()
deleteDocumentCallable
in class FirestoreStub
public ServerStreamingCallable<com.google.firestore.v1.BatchGetDocumentsRequest,com.google.firestore.v1.BatchGetDocumentsResponse> batchGetDocumentsCallable()
batchGetDocumentsCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1.BeginTransactionRequest,com.google.firestore.v1.BeginTransactionResponse> beginTransactionCallable()
beginTransactionCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1.CommitRequest,com.google.firestore.v1.CommitResponse> commitCallable()
commitCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1.RollbackRequest,Empty> rollbackCallable()
rollbackCallable
in class FirestoreStub
public ServerStreamingCallable<com.google.firestore.v1.RunQueryRequest,com.google.firestore.v1.RunQueryResponse> runQueryCallable()
runQueryCallable
in class FirestoreStub
public BidiStreamingCallable<com.google.firestore.v1.WriteRequest,com.google.firestore.v1.WriteResponse> writeCallable()
writeCallable
in class FirestoreStub
public BidiStreamingCallable<com.google.firestore.v1.ListenRequest,com.google.firestore.v1.ListenResponse> listenCallable()
listenCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1.ListCollectionIdsRequest,FirestoreClient.ListCollectionIdsPagedResponse> listCollectionIdsPagedCallable()
listCollectionIdsPagedCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1.ListCollectionIdsRequest,com.google.firestore.v1.ListCollectionIdsResponse> listCollectionIdsCallable()
listCollectionIdsCallable
in class FirestoreStub
public final void close()
close
in interface AutoCloseable
close
in class FirestoreStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2019 Google LLC. All rights reserved.