Package com.google.longrunning.stub
Class GrpcOperationsCallableFactory
- java.lang.Object
-
- com.google.longrunning.stub.GrpcOperationsCallableFactory
-
- All Implemented Interfaces:
GrpcStubCallableFactory
public class GrpcOperationsCallableFactory extends Object implements GrpcStubCallableFactory
gRPC callable factory implementation for Google Long Running Operations API.This class is for advanced usage.
-
-
Constructor Summary
Constructors Constructor Description GrpcOperationsCallableFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <RequestT,ResponseT>
com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT>createBatchingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.BatchingCallSettings<RequestT,ResponseT> batchingCallSettings, com.google.api.gax.rpc.ClientContext clientContext)Create a callable object that represents a batching API method.<RequestT,ResponseT>
com.google.api.gax.rpc.BidiStreamingCallable<RequestT,ResponseT>createBidiStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.StreamingCallSettings<RequestT,ResponseT> streamingCallSettings, com.google.api.gax.rpc.ClientContext clientContext)Create a bidirectional streaming callable object with grpc-specific functionality.<RequestT,ResponseT>
com.google.api.gax.rpc.ClientStreamingCallable<RequestT,ResponseT>createClientStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.StreamingCallSettings<RequestT,ResponseT> streamingCallSettings, com.google.api.gax.rpc.ClientContext clientContext)Create a client-streaming callable object with grpc-specific functionality.<RequestT,ResponseT,MetadataT>
com.google.api.gax.rpc.OperationCallable<RequestT,ResponseT,MetadataT>createOperationCallable(GrpcCallSettings<RequestT,com.google.longrunning.Operation> grpcCallSettings, com.google.api.gax.rpc.OperationCallSettings<RequestT,ResponseT,MetadataT> operationCallSettings, com.google.api.gax.rpc.ClientContext clientContext, OperationsStub operationsStub)Creates a callable object that represents a long-running operation.<RequestT,ResponseT,PagedListResponseT>
com.google.api.gax.rpc.UnaryCallable<RequestT,PagedListResponseT>createPagedCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.PagedCallSettings<RequestT,ResponseT,PagedListResponseT> pagedCallSettings, com.google.api.gax.rpc.ClientContext clientContext)Create a paged callable object that represents a paged API method.<RequestT,ResponseT>
com.google.api.gax.rpc.ServerStreamingCallable<RequestT,ResponseT>createServerStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.ServerStreamingCallSettings<RequestT,ResponseT> streamingCallSettings, com.google.api.gax.rpc.ClientContext clientContext)Create a server-streaming callable with grpc-specific functionality.<RequestT,ResponseT>
com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT>createUnaryCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.UnaryCallSettings<RequestT,ResponseT> callSettings, com.google.api.gax.rpc.ClientContext clientContext)Create a callable object with grpc-specific functionality.
-
-
-
Method Detail
-
createUnaryCallable
public <RequestT,ResponseT> com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT> createUnaryCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.UnaryCallSettings<RequestT,ResponseT> callSettings, com.google.api.gax.rpc.ClientContext clientContext)
Description copied from interface:GrpcStubCallableFactoryCreate a callable object with grpc-specific functionality. Designed for use by generated code.- Specified by:
createUnaryCallablein interfaceGrpcStubCallableFactory- Parameters:
grpcCallSettings- the gRPC call settings
-
createPagedCallable
public <RequestT,ResponseT,PagedListResponseT> com.google.api.gax.rpc.UnaryCallable<RequestT,PagedListResponseT> createPagedCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.PagedCallSettings<RequestT,ResponseT,PagedListResponseT> pagedCallSettings, com.google.api.gax.rpc.ClientContext clientContext)
Description copied from interface:GrpcStubCallableFactoryCreate a paged callable object that represents a paged API method. Designed for use by generated code.- Specified by:
createPagedCallablein interfaceGrpcStubCallableFactory- Parameters:
grpcCallSettings- the gRPC call settingspagedCallSettings-PagedCallSettingsto configure the paged settings with.clientContext-ClientContextto use to connect to the service.- Returns:
UnaryCallablecallable object.
-
createBatchingCallable
public <RequestT,ResponseT> com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT> createBatchingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.BatchingCallSettings<RequestT,ResponseT> batchingCallSettings, com.google.api.gax.rpc.ClientContext clientContext)
Description copied from interface:GrpcStubCallableFactoryCreate a callable object that represents a batching API method. Designed for use by generated code.- Specified by:
createBatchingCallablein interfaceGrpcStubCallableFactory- Parameters:
grpcCallSettings- the gRPC call settingsbatchingCallSettings-BatchingCallSettingsto configure the batching related settings with.clientContext-ClientContextto use to connect to the service.- Returns:
UnaryCallablecallable object.
-
createOperationCallable
public <RequestT,ResponseT,MetadataT> com.google.api.gax.rpc.OperationCallable<RequestT,ResponseT,MetadataT> createOperationCallable(GrpcCallSettings<RequestT,com.google.longrunning.Operation> grpcCallSettings, com.google.api.gax.rpc.OperationCallSettings<RequestT,ResponseT,MetadataT> operationCallSettings, com.google.api.gax.rpc.ClientContext clientContext, OperationsStub operationsStub)
Description copied from interface:GrpcStubCallableFactoryCreates a callable object that represents a long-running operation. Designed for use by generated code.- Specified by:
createOperationCallablein interfaceGrpcStubCallableFactory- Parameters:
grpcCallSettings- the gRPC call settingsoperationCallSettings-OperationCallSettingsto configure the method-level settings with.clientContext-ClientContextto use to connect to the service.operationsStub-OperationsStubto use to poll for updates on the Operation.- Returns:
OperationCallablecallable object.
-
createBidiStreamingCallable
public <RequestT,ResponseT> com.google.api.gax.rpc.BidiStreamingCallable<RequestT,ResponseT> createBidiStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.StreamingCallSettings<RequestT,ResponseT> streamingCallSettings, com.google.api.gax.rpc.ClientContext clientContext)
Description copied from interface:GrpcStubCallableFactoryCreate a bidirectional streaming callable object with grpc-specific functionality. Designed for use by generated code.- Specified by:
createBidiStreamingCallablein interfaceGrpcStubCallableFactory- Parameters:
grpcCallSettings- the gRPC call settingsstreamingCallSettings-StreamingCallSettingsto configure the method-level settings with.clientContext-ClientContextto use to connect to the service.- Returns:
BidiStreamingCallablecallable object.
-
createServerStreamingCallable
public <RequestT,ResponseT> com.google.api.gax.rpc.ServerStreamingCallable<RequestT,ResponseT> createServerStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.ServerStreamingCallSettings<RequestT,ResponseT> streamingCallSettings, com.google.api.gax.rpc.ClientContext clientContext)
Description copied from interface:GrpcStubCallableFactoryCreate a server-streaming callable with grpc-specific functionality. Designed for use by generated code.- Specified by:
createServerStreamingCallablein interfaceGrpcStubCallableFactory- Parameters:
grpcCallSettings- the gRPC call settingsstreamingCallSettings-StreamingCallSettingsto configure the method-level settings with.clientContext-ClientContextto use to connect to the service.
-
createClientStreamingCallable
public <RequestT,ResponseT> com.google.api.gax.rpc.ClientStreamingCallable<RequestT,ResponseT> createClientStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.StreamingCallSettings<RequestT,ResponseT> streamingCallSettings, com.google.api.gax.rpc.ClientContext clientContext)
Description copied from interface:GrpcStubCallableFactoryCreate a client-streaming callable object with grpc-specific functionality. Designed for use by generated code.- Specified by:
createClientStreamingCallablein interfaceGrpcStubCallableFactory- Parameters:
grpcCallSettings- the gRPC call settingsstreamingCallSettings-StreamingCallSettingsto configure the method-level settings with.clientContext-ClientContextto use to connect to the service.- Returns:
ClientStreamingCallablecallable object.
-
-