@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.v1beta1.BatchGetDocumentsRequest,com.google.firestore.v1beta1.BatchGetDocumentsResponse> |
batchGetDocumentsCallable() |
UnaryCallable<com.google.firestore.v1beta1.BeginTransactionRequest,com.google.firestore.v1beta1.BeginTransactionResponse> |
beginTransactionCallable() |
void |
close() |
UnaryCallable<com.google.firestore.v1beta1.CommitRequest,com.google.firestore.v1beta1.CommitResponse> |
commitCallable() |
static GrpcFirestoreStub |
create(ClientContext clientContext) |
static GrpcFirestoreStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcFirestoreStub |
create(FirestoreStubSettings settings) |
UnaryCallable<com.google.firestore.v1beta1.CreateDocumentRequest,com.google.firestore.v1beta1.Document> |
createDocumentCallable() |
UnaryCallable<com.google.firestore.v1beta1.DeleteDocumentRequest,Empty> |
deleteDocumentCallable() |
UnaryCallable<com.google.firestore.v1beta1.GetDocumentRequest,com.google.firestore.v1beta1.Document> |
getDocumentCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.firestore.v1beta1.ListCollectionIdsRequest,com.google.firestore.v1beta1.ListCollectionIdsResponse> |
listCollectionIdsCallable() |
UnaryCallable<com.google.firestore.v1beta1.ListCollectionIdsRequest,FirestoreClient.ListCollectionIdsPagedResponse> |
listCollectionIdsPagedCallable() |
UnaryCallable<com.google.firestore.v1beta1.ListDocumentsRequest,com.google.firestore.v1beta1.ListDocumentsResponse> |
listDocumentsCallable() |
UnaryCallable<com.google.firestore.v1beta1.ListDocumentsRequest,FirestoreClient.ListDocumentsPagedResponse> |
listDocumentsPagedCallable() |
BidiStreamingCallable<com.google.firestore.v1beta1.ListenRequest,com.google.firestore.v1beta1.ListenResponse> |
listenCallable() |
UnaryCallable<com.google.firestore.v1beta1.RollbackRequest,Empty> |
rollbackCallable() |
ServerStreamingCallable<com.google.firestore.v1beta1.RunQueryRequest,com.google.firestore.v1beta1.RunQueryResponse> |
runQueryCallable() |
void |
shutdown() |
void |
shutdownNow() |
UnaryCallable<com.google.firestore.v1beta1.UpdateDocumentRequest,com.google.firestore.v1beta1.Document> |
updateDocumentCallable() |
BidiStreamingCallable<com.google.firestore.v1beta1.WriteRequest,com.google.firestore.v1beta1.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.v1beta1.GetDocumentRequest,com.google.firestore.v1beta1.Document> getDocumentCallable()
getDocumentCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1beta1.ListDocumentsRequest,FirestoreClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()
listDocumentsPagedCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1beta1.ListDocumentsRequest,com.google.firestore.v1beta1.ListDocumentsResponse> listDocumentsCallable()
listDocumentsCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1beta1.CreateDocumentRequest,com.google.firestore.v1beta1.Document> createDocumentCallable()
createDocumentCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1beta1.UpdateDocumentRequest,com.google.firestore.v1beta1.Document> updateDocumentCallable()
updateDocumentCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1beta1.DeleteDocumentRequest,Empty> deleteDocumentCallable()
deleteDocumentCallable
in class FirestoreStub
public ServerStreamingCallable<com.google.firestore.v1beta1.BatchGetDocumentsRequest,com.google.firestore.v1beta1.BatchGetDocumentsResponse> batchGetDocumentsCallable()
batchGetDocumentsCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1beta1.BeginTransactionRequest,com.google.firestore.v1beta1.BeginTransactionResponse> beginTransactionCallable()
beginTransactionCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1beta1.CommitRequest,com.google.firestore.v1beta1.CommitResponse> commitCallable()
commitCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1beta1.RollbackRequest,Empty> rollbackCallable()
rollbackCallable
in class FirestoreStub
public ServerStreamingCallable<com.google.firestore.v1beta1.RunQueryRequest,com.google.firestore.v1beta1.RunQueryResponse> runQueryCallable()
runQueryCallable
in class FirestoreStub
public BidiStreamingCallable<com.google.firestore.v1beta1.WriteRequest,com.google.firestore.v1beta1.WriteResponse> writeCallable()
writeCallable
in class FirestoreStub
public BidiStreamingCallable<com.google.firestore.v1beta1.ListenRequest,com.google.firestore.v1beta1.ListenResponse> listenCallable()
listenCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1beta1.ListCollectionIdsRequest,FirestoreClient.ListCollectionIdsPagedResponse> listCollectionIdsPagedCallable()
listCollectionIdsPagedCallable
in class FirestoreStub
public UnaryCallable<com.google.firestore.v1beta1.ListCollectionIdsRequest,com.google.firestore.v1beta1.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.