Interface HttpJsonStubCallableFactory (2.63.1)

public interface HttpJsonStubCallableFactory,OperationsStub>

Type Parameters

Name Description
OperationT
OperationsStub

Methods

createOperationCallable(HttpJsonCallSettings httpJsonCallSettings, OperationCallSettings operationCallSettings, ClientContext clientContext, OperationsStub operationsStub)

public abstract OperationCallable,ResponseT,MetadataT> <RequestT,ResponseT,MetadataT>createOperationCallable(HttpJsonCallSettings,OperationT> httpJsonCallSettings, OperationCallSettings,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
httpJsonCallSettings HttpJsonCallSettings<RequestT,OperationT>

the http/json call settings

operationCallSettings OperationCallSettings<RequestT,ResponseT,MetadataT>

OperationCallSettings to configure the method-level settings with

clientContext ClientContext

ClientContext to use to connect to the service

operationsStub OperationsStub

opertation stub to use to poll for updates on the Operation

Returns
Type Description
OperationCallable<RequestT,ResponseT,MetadataT>

OperationCallable callable object

createPagedCallable(HttpJsonCallSettings httpJsonCallSettings, PagedCallSettings pagedCallSettings, ClientContext clientContext)

public abstract UnaryCallable,PagedListResponseT> <RequestT,ResponseT,PagedListResponseT>createPagedCallable(HttpJsonCallSettings,ResponseT> httpJsonCallSettings, PagedCallSettings,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
httpJsonCallSettings HttpJsonCallSettings<RequestT,ResponseT>

the http/json call settings

pagedCallSettings PagedCallSettings<RequestT,ResponseT,PagedListResponseT>

PagedCallSettings to configure the paged settings with

clientContext ClientContext

ClientContext to use to connect to the service

Returns
Type Description
UnaryCallable<RequestT,PagedListResponseT>

UnaryCallable callable object

createBatchingCallable(HttpJsonCallSettings httpJsonCallSettings, BatchingCallSettings batchingCallSettings, ClientContext clientContext)

public abstract UnaryCallable,ResponseT> <RequestT,ResponseT>createBatchingCallable(HttpJsonCallSettings,ResponseT> httpJsonCallSettings, BatchingCallSettings,ResponseT> batchingCallSettings, ClientContext clientContext)

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

Parameters
Name Description
httpJsonCallSettings HttpJsonCallSettings<RequestT,ResponseT>

the http/json call settings

batchingCallSettings BatchingCallSettings<RequestT,ResponseT>

BatchingCallSettings to configure the batching related settings with

clientContext ClientContext

ClientContext to use to connect to the service

Returns
Type Description
UnaryCallable<RequestT,ResponseT>

UnaryCallable callable object

createServerStreamingCallable(HttpJsonCallSettings httpJsonCallSettings, ServerStreamingCallSettings callSettings, ClientContext clientContext)

public default ServerStreamingCallable,ResponseT> <RequestT,ResponseT>createServerStreamingCallable(HttpJsonCallSettings,ResponseT> httpJsonCallSettings, ServerStreamingCallSettings,ResponseT> callSettings, ClientContext clientContext)

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

Parameters
Name Description
httpJsonCallSettings HttpJsonCallSettings<RequestT,ResponseT>

the gRPC call settings

callSettings ServerStreamingCallSettings<RequestT,ResponseT>

StreamingCallSettings to configure the method-level settings with.

clientContext ClientContext

ClientContext to use to connect to the service.

Returns
Type Description
ServerStreamingCallable<RequestT,ResponseT>

createUnaryCallable(HttpJsonCallSettings httpJsonCallSettings, UnaryCallSettings callSettings, ClientContext clientContext)

public abstract UnaryCallable,ResponseT> <RequestT,ResponseT>createUnaryCallable(HttpJsonCallSettings,ResponseT> httpJsonCallSettings, UnaryCallSettings,ResponseT> callSettings, ClientContext clientContext)

Create a callable object with http/json-specific functionality. Designed for use by generated code.

Parameters
Name Description
httpJsonCallSettings HttpJsonCallSettings<RequestT,ResponseT>

the http/json call settings

callSettings UnaryCallSettings<RequestT,ResponseT>

UnaryCallSettings to configure the method-level settings with

clientContext ClientContext

ClientContext to use to connect to the service

Returns
Type Description
UnaryCallable<RequestT,ResponseT>

UnaryCallable callable object