Package com.google.api.gax.httpjson
Interface HttpJsonStubCallableFactory<OperationT,OperationsStub extends BackgroundResource>
-
- All Known Implementing Classes:
HttpJsonOperationsCallableFactory
public interface HttpJsonStubCallableFactory<OperationT,OperationsStub extends BackgroundResource>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <RequestT,ResponseT>
UnaryCallable<RequestT,ResponseT>createBatchingCallable(HttpJsonCallSettings<RequestT,ResponseT> httpJsonCallSettings, BatchingCallSettings<RequestT,ResponseT> batchingCallSettings, ClientContext clientContext)Create a callable object that represents a batching API method.<RequestT,ResponseT,MetadataT>
OperationCallable<RequestT,ResponseT,MetadataT>createOperationCallable(HttpJsonCallSettings<RequestT,OperationT> httpJsonCallSettings, 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(HttpJsonCallSettings<RequestT,ResponseT> httpJsonCallSettings, PagedCallSettings<RequestT,ResponseT,PagedListResponseT> pagedCallSettings, ClientContext clientContext)Create a paged callable object that represents a paged API method.default <RequestT,ResponseT>
ServerStreamingCallable<RequestT,ResponseT>createServerStreamingCallable(HttpJsonCallSettings<RequestT,ResponseT> httpJsonCallSettings, ServerStreamingCallSettings<RequestT,ResponseT> callSettings, ClientContext clientContext)Create a server-streaming callable with.<RequestT,ResponseT>
UnaryCallable<RequestT,ResponseT>createUnaryCallable(HttpJsonCallSettings<RequestT,ResponseT> httpJsonCallSettings, UnaryCallSettings<RequestT,ResponseT> callSettings, ClientContext clientContext)Create a callable object with http/json-specific functionality.
-
-
-
Method Detail
-
createUnaryCallable
<RequestT,ResponseT> UnaryCallable<RequestT,ResponseT> createUnaryCallable(HttpJsonCallSettings<RequestT,ResponseT> httpJsonCallSettings, UnaryCallSettings<RequestT,ResponseT> callSettings, ClientContext clientContext)
Create a callable object with http/json-specific functionality. Designed for use by generated code.- Parameters:
httpJsonCallSettings- the http/json call settingscallSettings-UnaryCallSettingsto configure the method-level settings withclientContext-ClientContextto use to connect to the service- Returns:
UnaryCallablecallable object
-
createPagedCallable
<RequestT,ResponseT,PagedListResponseT> UnaryCallable<RequestT,PagedListResponseT> createPagedCallable(HttpJsonCallSettings<RequestT,ResponseT> httpJsonCallSettings, 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:
httpJsonCallSettings- the http/json call settingspagedCallSettings-PagedCallSettingsto configure the paged settings withclientContext-ClientContextto use to connect to the service- Returns:
UnaryCallablecallable object
-
createBatchingCallable
<RequestT,ResponseT> UnaryCallable<RequestT,ResponseT> createBatchingCallable(HttpJsonCallSettings<RequestT,ResponseT> httpJsonCallSettings, BatchingCallSettings<RequestT,ResponseT> batchingCallSettings, ClientContext clientContext)
Create a callable object that represents a batching API method. Designed for use by generated code.- Parameters:
httpJsonCallSettings- the http/json call settingsbatchingCallSettings-BatchingCallSettingsto configure the batching related settings withclientContext-ClientContextto use to connect to the service- Returns:
UnaryCallablecallable object
-
createOperationCallable
<RequestT,ResponseT,MetadataT> OperationCallable<RequestT,ResponseT,MetadataT> createOperationCallable(HttpJsonCallSettings<RequestT,OperationT> httpJsonCallSettings, 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:
httpJsonCallSettings- the http/json call settingsoperationCallSettings-OperationCallSettingsto configure the method-level settings withclientContext-ClientContextto use to connect to the serviceoperationsStub- opertation stub to use to poll for updates on the Operation- Returns:
OperationCallablecallable object
-
createServerStreamingCallable
default <RequestT,ResponseT> ServerStreamingCallable<RequestT,ResponseT> createServerStreamingCallable(HttpJsonCallSettings<RequestT,ResponseT> httpJsonCallSettings, ServerStreamingCallSettings<RequestT,ResponseT> callSettings, ClientContext clientContext)
Create a server-streaming callable with. Designed for use by generated code.- Parameters:
httpJsonCallSettings- the gRPC call settingscallSettings-StreamingCallSettingsto configure the method-level settings with.clientContext-ClientContextto use to connect to the service.
-
-