Class HttpJsonOperationsCallableFactory
java.lang.Object
com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsCallableFactory
- All Implemented Interfaces:
HttpJsonStubCallableFactory<Operation,BackgroundResource>
public class HttpJsonOperationsCallableFactory
extends Object
implements HttpJsonStubCallableFactory<Operation,BackgroundResource>
REST callable factory implementation for the Operations service API.
This class is for advanced usage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<RequestT,ResponseT>
UnaryCallable<RequestT,ResponseT> createBatchingCallable(HttpJsonCallSettings<RequestT, ResponseT> httpJsonCallSettings, BatchingCallSettings<RequestT, ResponseT> callSettings, ClientContext clientContext) Create a callable object that represents a batching API method.<RequestT,ResponseT, MetadataT>
OperationCallable<RequestT,ResponseT, MetadataT> createOperationCallable(HttpJsonCallSettings<RequestT, Operation> httpJsonCallSettings, OperationCallSettings<RequestT, ResponseT, MetadataT> callSettings, ClientContext clientContext, BackgroundResource 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> callSettings, ClientContext clientContext) Create a paged callable object that represents a paged API method.<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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.api.gax.httpjson.HttpJsonStubCallableFactory
createServerStreamingCallable
-
Constructor Details
-
HttpJsonOperationsCallableFactory
public HttpJsonOperationsCallableFactory()
-
-
Method Details
-
createUnaryCallable
public <RequestT,ResponseT> UnaryCallable<RequestT,ResponseT> createUnaryCallable(HttpJsonCallSettings<RequestT, ResponseT> httpJsonCallSettings, UnaryCallSettings<RequestT, ResponseT> callSettings, ClientContext clientContext) Description copied from interface:HttpJsonStubCallableFactoryCreate a callable object with http/json-specific functionality. Designed for use by generated code.- Specified by:
createUnaryCallablein interfaceHttpJsonStubCallableFactory<Operation,BackgroundResource> - 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
public <RequestT,ResponseT, UnaryCallable<RequestT,PagedListResponseT> PagedListResponseT> createPagedCallable(HttpJsonCallSettings<RequestT, ResponseT> httpJsonCallSettings, PagedCallSettings<RequestT, ResponseT, PagedListResponseT> callSettings, ClientContext clientContext) Description copied from interface:HttpJsonStubCallableFactoryCreate a paged callable object that represents a paged API method. Designed for use by generated code.- Specified by:
createPagedCallablein interfaceHttpJsonStubCallableFactory<Operation,BackgroundResource> - Parameters:
httpJsonCallSettings- the http/json call settingscallSettings-PagedCallSettingsto configure the paged settings withclientContext-ClientContextto use to connect to the service- Returns:
UnaryCallablecallable object
-
createBatchingCallable
public <RequestT,ResponseT> UnaryCallable<RequestT,ResponseT> createBatchingCallable(HttpJsonCallSettings<RequestT, ResponseT> httpJsonCallSettings, BatchingCallSettings<RequestT, ResponseT> callSettings, ClientContext clientContext) Description copied from interface:HttpJsonStubCallableFactoryCreate a callable object that represents a batching API method. Designed for use by generated code.- Specified by:
createBatchingCallablein interfaceHttpJsonStubCallableFactory<Operation,BackgroundResource> - Parameters:
httpJsonCallSettings- the http/json call settingscallSettings-BatchingCallSettingsto configure the batching related settings withclientContext-ClientContextto use to connect to the service- Returns:
UnaryCallablecallable object
-
createOperationCallable
public <RequestT,ResponseT, OperationCallable<RequestT,MetadataT> ResponseT, createOperationCallableMetadataT> (HttpJsonCallSettings<RequestT, Operation> httpJsonCallSettings, OperationCallSettings<RequestT, ResponseT, MetadataT> callSettings, ClientContext clientContext, BackgroundResource operationsStub) Description copied from interface:HttpJsonStubCallableFactoryCreates a callable object that represents a long-running operation. Designed for use by generated code.- Specified by:
createOperationCallablein interfaceHttpJsonStubCallableFactory<Operation,BackgroundResource> - Parameters:
httpJsonCallSettings- the http/json call settingscallSettings-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
-