Package com.google.longrunning.stub
Class GrpcOperationsCallableFactory
java.lang.Object
com.google.longrunning.stub.GrpcOperationsCallableFactory
- All Implemented Interfaces:
GrpcStubCallableFactory
gRPC callable factory implementation for Google Long Running Operations API.
This class is for advanced usage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<RequestT,
ResponseT>
UnaryCallable<RequestT,ResponseT> createBatchingCallable
(GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, BatchingCallSettings<RequestT, ResponseT> batchingCallSettings, ClientContext clientContext) Create a callable object that represents a batching API method.<RequestT,
ResponseT>
BidiStreamingCallable<RequestT,ResponseT> createBidiStreamingCallable
(GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, StreamingCallSettings<RequestT, ResponseT> streamingCallSettings, ClientContext clientContext) Create a bidirectional streaming callable object with grpc-specific functionality.<RequestT,
ResponseT>
ClientStreamingCallable<RequestT,ResponseT> createClientStreamingCallable
(GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, StreamingCallSettings<RequestT, ResponseT> streamingCallSettings, ClientContext clientContext) Create a client-streaming callable object with grpc-specific functionality.<RequestT,
ResponseT, MetadataT>
OperationCallable<RequestT,ResponseT, MetadataT> createOperationCallable
(GrpcCallSettings<RequestT, Operation> grpcCallSettings, OperationCallSettings<RequestT, ResponseT, MetadataT> operationCallSettings, ClientContext clientContext, OperationsStub operationsStub) Creates a callable object that represents a long-running operation.<RequestT,
ResponseT, PagedListResponseT>
UnaryCallable<RequestT,PagedListResponseT> createPagedCallable
(GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, PagedCallSettings<RequestT, ResponseT, PagedListResponseT> pagedCallSettings, ClientContext clientContext) Create a paged callable object that represents a paged API method.<RequestT,
ResponseT>
ServerStreamingCallable<RequestT,ResponseT> createServerStreamingCallable
(GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, ServerStreamingCallSettings<RequestT, ResponseT> streamingCallSettings, ClientContext clientContext) Create a server-streaming callable with grpc-specific functionality.<RequestT,
ResponseT>
UnaryCallable<RequestT,ResponseT> createUnaryCallable
(GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, UnaryCallSettings<RequestT, ResponseT> callSettings, ClientContext clientContext) Create a callable object with grpc-specific functionality.
-
Constructor Details
-
GrpcOperationsCallableFactory
public GrpcOperationsCallableFactory()
-
-
Method Details
-
createUnaryCallable
public <RequestT,ResponseT> UnaryCallable<RequestT,ResponseT> createUnaryCallable(GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, UnaryCallSettings<RequestT, ResponseT> callSettings, ClientContext clientContext) Description copied from interface:GrpcStubCallableFactory
Create a callable object with grpc-specific functionality. Designed for use by generated code.- Specified by:
createUnaryCallable
in interfaceGrpcStubCallableFactory
- Parameters:
grpcCallSettings
- the gRPC call settings
-
createPagedCallable
public <RequestT,ResponseT, UnaryCallable<RequestT,PagedListResponseT> PagedListResponseT> createPagedCallable(GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, PagedCallSettings<RequestT, ResponseT, PagedListResponseT> pagedCallSettings, ClientContext clientContext) Description copied from interface:GrpcStubCallableFactory
Create a paged callable object that represents a paged API method. Designed for use by generated code.- Specified by:
createPagedCallable
in interfaceGrpcStubCallableFactory
- Parameters:
grpcCallSettings
- the gRPC call settingspagedCallSettings
-PagedCallSettings
to configure the paged settings with.clientContext
-ClientContext
to use to connect to the service.- Returns:
UnaryCallable
callable object.
-
createBatchingCallable
public <RequestT,ResponseT> UnaryCallable<RequestT,ResponseT> createBatchingCallable(GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, BatchingCallSettings<RequestT, ResponseT> batchingCallSettings, ClientContext clientContext) Description copied from interface:GrpcStubCallableFactory
Create a callable object that represents a batching API method. Designed for use by generated code.- Specified by:
createBatchingCallable
in interfaceGrpcStubCallableFactory
- Parameters:
grpcCallSettings
- the gRPC call settingsbatchingCallSettings
-BatchingCallSettings
to configure the batching related settings with.clientContext
-ClientContext
to use to connect to the service.- Returns:
UnaryCallable
callable object.
-
createOperationCallable
public <RequestT,ResponseT, OperationCallable<RequestT,MetadataT> ResponseT, createOperationCallableMetadataT> (GrpcCallSettings<RequestT, Operation> grpcCallSettings, OperationCallSettings<RequestT, ResponseT, MetadataT> operationCallSettings, ClientContext clientContext, OperationsStub operationsStub) Description copied from interface:GrpcStubCallableFactory
Creates a callable object that represents a long-running operation. Designed for use by generated code.- Specified by:
createOperationCallable
in interfaceGrpcStubCallableFactory
- Parameters:
grpcCallSettings
- the gRPC call settingsoperationCallSettings
-OperationCallSettings
to configure the method-level settings with.clientContext
-ClientContext
to use to connect to the service.operationsStub
-OperationsStub
to use to poll for updates on the Operation.- Returns:
OperationCallable
callable object.
-
createBidiStreamingCallable
public <RequestT,ResponseT> BidiStreamingCallable<RequestT,ResponseT> createBidiStreamingCallable(GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, StreamingCallSettings<RequestT, ResponseT> streamingCallSettings, ClientContext clientContext) Description copied from interface:GrpcStubCallableFactory
Create a bidirectional streaming callable object with grpc-specific functionality. Designed for use by generated code.- Specified by:
createBidiStreamingCallable
in interfaceGrpcStubCallableFactory
- Parameters:
grpcCallSettings
- the gRPC call settingsstreamingCallSettings
-StreamingCallSettings
to configure the method-level settings with.clientContext
-ClientContext
to use to connect to the service.- Returns:
BidiStreamingCallable
callable object.
-
createServerStreamingCallable
public <RequestT,ResponseT> ServerStreamingCallable<RequestT,ResponseT> createServerStreamingCallable(GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, ServerStreamingCallSettings<RequestT, ResponseT> streamingCallSettings, ClientContext clientContext) Description copied from interface:GrpcStubCallableFactory
Create a server-streaming callable with grpc-specific functionality. Designed for use by generated code.- Specified by:
createServerStreamingCallable
in interfaceGrpcStubCallableFactory
- Parameters:
grpcCallSettings
- the gRPC call settingsstreamingCallSettings
-StreamingCallSettings
to configure the method-level settings with.clientContext
-ClientContext
to use to connect to the service.
-
createClientStreamingCallable
public <RequestT,ResponseT> ClientStreamingCallable<RequestT,ResponseT> createClientStreamingCallable(GrpcCallSettings<RequestT, ResponseT> grpcCallSettings, StreamingCallSettings<RequestT, ResponseT> streamingCallSettings, ClientContext clientContext) Description copied from interface:GrpcStubCallableFactory
Create a client-streaming callable object with grpc-specific functionality. Designed for use by generated code.- Specified by:
createClientStreamingCallable
in interfaceGrpcStubCallableFactory
- Parameters:
grpcCallSettings
- the gRPC call settingsstreamingCallSettings
-StreamingCallSettings
to configure the method-level settings with.clientContext
-ClientContext
to use to connect to the service.- Returns:
ClientStreamingCallable
callable object.
-