Class GrpcOperationsCallableFactory (2.58.0)

public class GrpcOperationsCallableFactory implements GrpcStubCallableFactory

gRPC callable factory implementation for Google Long Running Operations API.

This class is for advanced usage.

Inheritance

java.lang.Object > GrpcOperationsCallableFactory

Constructors

GrpcOperationsCallableFactory()

public GrpcOperationsCallableFactory()

Methods

<RequestT,ResponseT,MetadataT>createOperationCallable(GrpcCallSettings<RequestT,Operation> grpcCallSettings, OperationCallSettings<RequestT,ResponseT,MetadataT> operationCallSettings, ClientContext clientContext, OperationsStub operationsStub)

public OperationCallable<RequestT,ResponseT,MetadataT> <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. Designed for use by generated code.

Parameters
Name Description
grpcCallSettings GrpcCallSettings<RequestT,Operation>
operationCallSettings OperationCallSettings<RequestT,ResponseT,MetadataT>
clientContext ClientContext
operationsStub OperationsStub
Returns
Type Description
OperationCallable<RequestT,ResponseT,MetadataT>

<RequestT,ResponseT,PagedListResponseT>createPagedCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, PagedCallSettings<RequestT,ResponseT,PagedListResponseT> pagedCallSettings, ClientContext clientContext)

public UnaryCallable<RequestT,PagedListResponseT> <RequestT,ResponseT,PagedListResponseT>createPagedCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, PagedCallSettings<RequestT,ResponseT,PagedListResponseT> pagedCallSettings, ClientContext clientContext)

Create a paged callable object that represents a paged API method. Designed for use by generated code.

Parameters
Name Description
grpcCallSettings GrpcCallSettings<RequestT,ResponseT>
pagedCallSettings PagedCallSettings<RequestT,ResponseT,PagedListResponseT>
clientContext ClientContext
Returns
Type Description
UnaryCallable<RequestT,PagedListResponseT>

<RequestT,ResponseT>createBatchingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, BatchingCallSettings<RequestT,ResponseT> batchingCallSettings, ClientContext clientContext)

public UnaryCallable<RequestT,ResponseT> <RequestT,ResponseT>createBatchingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, BatchingCallSettings<RequestT,ResponseT> batchingCallSettings, ClientContext clientContext)

Create a callable object that represents a batching API method. Designed for use by generated code.

Parameters
Name Description
grpcCallSettings GrpcCallSettings<RequestT,ResponseT>
batchingCallSettings BatchingCallSettings<RequestT,ResponseT>
clientContext ClientContext
Returns
Type Description
UnaryCallable<RequestT,ResponseT>

<RequestT,ResponseT>createBidiStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, StreamingCallSettings<RequestT,ResponseT> streamingCallSettings, ClientContext clientContext)

public BidiStreamingCallable<RequestT,ResponseT> <RequestT,ResponseT>createBidiStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, StreamingCallSettings<RequestT,ResponseT> streamingCallSettings, ClientContext clientContext)

Create a bidirectional streaming callable object with grpc-specific functionality. Designed for use by generated code.

Parameters
Name Description
grpcCallSettings GrpcCallSettings<RequestT,ResponseT>
streamingCallSettings StreamingCallSettings<RequestT,ResponseT>
clientContext ClientContext
Returns
Type Description
BidiStreamingCallable<RequestT,ResponseT>

<RequestT,ResponseT>createClientStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, StreamingCallSettings<RequestT,ResponseT> streamingCallSettings, ClientContext clientContext)

public ClientStreamingCallable<RequestT,ResponseT> <RequestT,ResponseT>createClientStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, StreamingCallSettings<RequestT,ResponseT> streamingCallSettings, ClientContext clientContext)

Create a client-streaming callable object with grpc-specific functionality. Designed for use by generated code.

Parameters
Name Description
grpcCallSettings GrpcCallSettings<RequestT,ResponseT>
streamingCallSettings StreamingCallSettings<RequestT,ResponseT>
clientContext ClientContext
Returns
Type Description
ClientStreamingCallable<RequestT,ResponseT>

<RequestT,ResponseT>createServerStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, ServerStreamingCallSettings<RequestT,ResponseT> streamingCallSettings, ClientContext clientContext)

public ServerStreamingCallable<RequestT,ResponseT> <RequestT,ResponseT>createServerStreamingCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, ServerStreamingCallSettings<RequestT,ResponseT> streamingCallSettings, ClientContext clientContext)

Create a server-streaming callable with grpc-specific functionality. Designed for use by generated code.

Parameters
Name Description
grpcCallSettings GrpcCallSettings<RequestT,ResponseT>
streamingCallSettings ServerStreamingCallSettings<RequestT,ResponseT>
clientContext ClientContext
Returns
Type Description
ServerStreamingCallable<RequestT,ResponseT>

<RequestT,ResponseT>createUnaryCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, UnaryCallSettings<RequestT,ResponseT> callSettings, ClientContext clientContext)

public UnaryCallable<RequestT,ResponseT> <RequestT,ResponseT>createUnaryCallable(GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, UnaryCallSettings<RequestT,ResponseT> callSettings, ClientContext clientContext)

Create a callable object with grpc-specific functionality. Designed for use by generated code.

Parameters
Name Description
grpcCallSettings GrpcCallSettings<RequestT,ResponseT>
callSettings UnaryCallSettings<RequestT,ResponseT>
clientContext ClientContext
Returns
Type Description
UnaryCallable<RequestT,ResponseT>