Class GrpcFirestoreStub
java.lang.Object
com.google.cloud.firestore.v1.stub.FirestoreStub
com.google.cloud.firestore.v1.stub.GrpcFirestoreStub
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
gRPC stub implementation for the Firestore service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcFirestoreStub(FirestoreStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) Constructs an instance of GrpcFirestoreStub, using the given settings.protectedGrpcFirestoreStub(FirestoreStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcFirestoreStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) com.google.api.gax.rpc.ServerStreamingCallable<BatchGetDocumentsRequest,BatchGetDocumentsResponse> com.google.api.gax.rpc.UnaryCallable<BatchWriteRequest,BatchWriteResponse> com.google.api.gax.rpc.UnaryCallable<BeginTransactionRequest,BeginTransactionResponse> final voidclose()com.google.api.gax.rpc.UnaryCallable<CommitRequest,CommitResponse> static final GrpcFirestoreStubcreate(com.google.api.gax.rpc.ClientContext clientContext) static final GrpcFirestoreStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) static final GrpcFirestoreStubcreate(FirestoreStubSettings settings) com.google.api.gax.rpc.UnaryCallable<CreateDocumentRequest,Document> com.google.api.gax.rpc.UnaryCallable<DeleteDocumentRequest,com.google.protobuf.Empty> com.google.api.gax.rpc.UnaryCallable<GetDocumentRequest,Document> com.google.longrunning.stub.GrpcOperationsStubbooleanbooleancom.google.api.gax.rpc.UnaryCallable<ListCollectionIdsRequest,ListCollectionIdsResponse> com.google.api.gax.rpc.UnaryCallable<ListCollectionIdsRequest,FirestoreClient.ListCollectionIdsPagedResponse> com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,ListDocumentsResponse> com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,FirestoreClient.ListDocumentsPagedResponse> com.google.api.gax.rpc.BidiStreamingCallable<ListenRequest,ListenResponse> com.google.api.gax.rpc.UnaryCallable<PartitionQueryRequest,PartitionQueryResponse> com.google.api.gax.rpc.UnaryCallable<PartitionQueryRequest,FirestoreClient.PartitionQueryPagedResponse> com.google.api.gax.rpc.UnaryCallable<RollbackRequest,com.google.protobuf.Empty> com.google.api.gax.rpc.ServerStreamingCallable<RunAggregationQueryRequest,RunAggregationQueryResponse> com.google.api.gax.rpc.ServerStreamingCallable<RunQueryRequest,RunQueryResponse> voidshutdown()voidcom.google.api.gax.rpc.UnaryCallable<UpdateDocumentRequest,Document> com.google.api.gax.rpc.BidiStreamingCallable<WriteRequest,WriteResponse>
-
Constructor Details
-
GrpcFirestoreStub
protected GrpcFirestoreStub(FirestoreStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException 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.- Throws:
IOException
-
GrpcFirestoreStub
protected GrpcFirestoreStub(FirestoreStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException 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.- Throws:
IOException
-
-
Method Details
-
create
- Throws:
IOException
-
create
public static final GrpcFirestoreStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcFirestoreStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub() -
getDocumentCallable
- Overrides:
getDocumentCallablein classFirestoreStub
-
listDocumentsCallable
public com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,ListDocumentsResponse> listDocumentsCallable()- Overrides:
listDocumentsCallablein classFirestoreStub
-
listDocumentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListDocumentsRequest,FirestoreClient.ListDocumentsPagedResponse> listDocumentsPagedCallable()- Overrides:
listDocumentsPagedCallablein classFirestoreStub
-
updateDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateDocumentRequest,Document> updateDocumentCallable()- Overrides:
updateDocumentCallablein classFirestoreStub
-
deleteDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteDocumentRequest,com.google.protobuf.Empty> deleteDocumentCallable()- Overrides:
deleteDocumentCallablein classFirestoreStub
-
batchGetDocumentsCallable
public com.google.api.gax.rpc.ServerStreamingCallable<BatchGetDocumentsRequest,BatchGetDocumentsResponse> batchGetDocumentsCallable()- Overrides:
batchGetDocumentsCallablein classFirestoreStub
-
beginTransactionCallable
public com.google.api.gax.rpc.UnaryCallable<BeginTransactionRequest,BeginTransactionResponse> beginTransactionCallable()- Overrides:
beginTransactionCallablein classFirestoreStub
-
commitCallable
- Overrides:
commitCallablein classFirestoreStub
-
rollbackCallable
public com.google.api.gax.rpc.UnaryCallable<RollbackRequest,com.google.protobuf.Empty> rollbackCallable()- Overrides:
rollbackCallablein classFirestoreStub
-
runQueryCallable
public com.google.api.gax.rpc.ServerStreamingCallable<RunQueryRequest,RunQueryResponse> runQueryCallable()- Overrides:
runQueryCallablein classFirestoreStub
-
runAggregationQueryCallable
public com.google.api.gax.rpc.ServerStreamingCallable<RunAggregationQueryRequest,RunAggregationQueryResponse> runAggregationQueryCallable()- Overrides:
runAggregationQueryCallablein classFirestoreStub
-
partitionQueryCallable
public com.google.api.gax.rpc.UnaryCallable<PartitionQueryRequest,PartitionQueryResponse> partitionQueryCallable()- Overrides:
partitionQueryCallablein classFirestoreStub
-
partitionQueryPagedCallable
public com.google.api.gax.rpc.UnaryCallable<PartitionQueryRequest,FirestoreClient.PartitionQueryPagedResponse> partitionQueryPagedCallable()- Overrides:
partitionQueryPagedCallablein classFirestoreStub
-
writeCallable
- Overrides:
writeCallablein classFirestoreStub
-
listenCallable
- Overrides:
listenCallablein classFirestoreStub
-
listCollectionIdsCallable
public com.google.api.gax.rpc.UnaryCallable<ListCollectionIdsRequest,ListCollectionIdsResponse> listCollectionIdsCallable()- Overrides:
listCollectionIdsCallablein classFirestoreStub
-
listCollectionIdsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListCollectionIdsRequest,FirestoreClient.ListCollectionIdsPagedResponse> listCollectionIdsPagedCallable()- Overrides:
listCollectionIdsPagedCallablein classFirestoreStub
-
batchWriteCallable
public com.google.api.gax.rpc.UnaryCallable<BatchWriteRequest,BatchWriteResponse> batchWriteCallable()- Overrides:
batchWriteCallablein classFirestoreStub
-
createDocumentCallable
public com.google.api.gax.rpc.UnaryCallable<CreateDocumentRequest,Document> createDocumentCallable()- Overrides:
createDocumentCallablein classFirestoreStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classFirestoreStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-