Class GrpcFirestoreStub (3.4.0)

public class GrpcFirestoreStub extends FirestoreStub

gRPC stub implementation for the Firestore service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > FirestoreStub > GrpcFirestoreStub

Static Methods

create(ClientContext clientContext)

public static final GrpcFirestoreStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcFirestoreStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcFirestoreStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcFirestoreStub
Exceptions
TypeDescription
IOException

create(FirestoreStubSettings settings)

public static final GrpcFirestoreStub create(FirestoreStubSettings settings)
Parameter
NameDescription
settingsFirestoreStubSettings
Returns
TypeDescription
GrpcFirestoreStub
Exceptions
TypeDescription
IOException

Constructors

GrpcFirestoreStub(FirestoreStubSettings settings, ClientContext clientContext)

protected GrpcFirestoreStub(FirestoreStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcFirestoreStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsFirestoreStubSettings
clientContextClientContext

GrpcFirestoreStub(FirestoreStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcFirestoreStub(FirestoreStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcFirestoreStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsFirestoreStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

batchGetDocumentsCallable()

public ServerStreamingCallable<BatchGetDocumentsRequest,BatchGetDocumentsResponse> batchGetDocumentsCallable()
Returns
TypeDescription
ServerStreamingCallable<BatchGetDocumentsRequest,BatchGetDocumentsResponse>
Overrides

batchWriteCallable()

public UnaryCallable<BatchWriteRequest,BatchWriteResponse> batchWriteCallable()
Returns
TypeDescription
UnaryCallable<BatchWriteRequest,BatchWriteResponse>
Overrides

beginTransactionCallable()

public UnaryCallable<BeginTransactionRequest,BeginTransactionResponse> beginTransactionCallable()
Returns
TypeDescription
UnaryCallable<BeginTransactionRequest,BeginTransactionResponse>
Overrides

close()

public final void close()
Overrides

commitCallable()

public UnaryCallable<CommitRequest,CommitResponse> commitCallable()
Returns
TypeDescription
UnaryCallable<CommitRequest,CommitResponse>
Overrides

createDocumentCallable()

public UnaryCallable<CreateDocumentRequest,Document> createDocumentCallable()
Returns
TypeDescription
UnaryCallable<CreateDocumentRequest,Document>
Overrides

deleteDocumentCallable()

public UnaryCallable<DeleteDocumentRequest,Empty> deleteDocumentCallable()
Returns
TypeDescription
UnaryCallable<DeleteDocumentRequest,Empty>
Overrides

getDocumentCallable()

public UnaryCallable<GetDocumentRequest,Document> getDocumentCallable()
Returns
TypeDescription
UnaryCallable<GetDocumentRequest,Document>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCollectionIdsCallable()

public UnaryCallable<ListCollectionIdsRequest,ListCollectionIdsResponse> listCollectionIdsCallable()
Returns
TypeDescription
UnaryCallable<ListCollectionIdsRequest,ListCollectionIdsResponse>
Overrides

listCollectionIdsPagedCallable()

public UnaryCallable<ListCollectionIdsRequest,FirestoreClient.ListCollectionIdsPagedResponse> listCollectionIdsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListCollectionIdsRequest,ListCollectionIdsPagedResponse>
Overrides

listDocumentsCallable()

public UnaryCallable<ListDocumentsRequest,ListDocumentsResponse> listDocumentsCallable()
Returns
TypeDescription
UnaryCallable<ListDocumentsRequest,ListDocumentsResponse>
Overrides

listDocumentsPagedCallable()

public UnaryCallable<ListDocumentsRequest,FirestoreClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListDocumentsRequest,ListDocumentsPagedResponse>
Overrides

listenCallable()

public BidiStreamingCallable<ListenRequest,ListenResponse> listenCallable()
Returns
TypeDescription
BidiStreamingCallable<ListenRequest,ListenResponse>
Overrides

partitionQueryCallable()

public UnaryCallable<PartitionQueryRequest,PartitionQueryResponse> partitionQueryCallable()
Returns
TypeDescription
UnaryCallable<PartitionQueryRequest,PartitionQueryResponse>
Overrides

partitionQueryPagedCallable()

public UnaryCallable<PartitionQueryRequest,FirestoreClient.PartitionQueryPagedResponse> partitionQueryPagedCallable()
Returns
TypeDescription
UnaryCallable<PartitionQueryRequest,PartitionQueryPagedResponse>
Overrides

rollbackCallable()

public UnaryCallable<RollbackRequest,Empty> rollbackCallable()
Returns
TypeDescription
UnaryCallable<RollbackRequest,Empty>
Overrides

runQueryCallable()

public ServerStreamingCallable<RunQueryRequest,RunQueryResponse> runQueryCallable()
Returns
TypeDescription
ServerStreamingCallable<RunQueryRequest,RunQueryResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateDocumentCallable()

public UnaryCallable<UpdateDocumentRequest,Document> updateDocumentCallable()
Returns
TypeDescription
UnaryCallable<UpdateDocumentRequest,Document>
Overrides

writeCallable()

public BidiStreamingCallable<WriteRequest,WriteResponse> writeCallable()
Returns
TypeDescription
BidiStreamingCallable<WriteRequest,WriteResponse>
Overrides