Class HttpJsonOperationsCallableFactory
- java.lang.Object
-
- com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsCallableFactory
-
- All Implemented Interfaces:
HttpJsonStubCallableFactory<com.google.longrunning.Operation,com.google.api.gax.core.BackgroundResource>
@BetaApi public class HttpJsonOperationsCallableFactory extends java.lang.Object implements HttpJsonStubCallableFactory<com.google.longrunning.Operation,com.google.api.gax.core.BackgroundResource>
REST callable factory implementation for the Operations service API.This class is for advanced usage.
-
-
Constructor Summary
Constructors Constructor Description HttpJsonOperationsCallableFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <RequestT,ResponseT>
com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT>createBatchingCallable(HttpJsonCallSettings<RequestT,ResponseT> httpJsonCallSettings, com.google.api.gax.rpc.BatchingCallSettings<RequestT,ResponseT> callSettings, com.google.api.gax.rpc.ClientContext clientContext)Create a callable object that represents a batching API method.<RequestT,ResponseT,MetadataT>
com.google.api.gax.rpc.OperationCallable<RequestT,ResponseT,MetadataT>createOperationCallable(HttpJsonCallSettings<RequestT,com.google.longrunning.Operation> httpJsonCallSettings, com.google.api.gax.rpc.OperationCallSettings<RequestT,ResponseT,MetadataT> callSettings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.core.BackgroundResource operationsStub)Creates a callable object that represents a long-running operation.<RequestT,ResponseT,PagedListResponseT>
com.google.api.gax.rpc.UnaryCallable<RequestT,PagedListResponseT>createPagedCallable(HttpJsonCallSettings<RequestT,ResponseT> httpJsonCallSettings, com.google.api.gax.rpc.PagedCallSettings<RequestT,ResponseT,PagedListResponseT> callSettings, 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.UnaryCallable<RequestT,ResponseT>createUnaryCallable(HttpJsonCallSettings<RequestT,ResponseT> httpJsonCallSettings, com.google.api.gax.rpc.UnaryCallSettings<RequestT,ResponseT> callSettings, com.google.api.gax.rpc.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, wait
-
Methods inherited from interface com.google.api.gax.httpjson.HttpJsonStubCallableFactory
createServerStreamingCallable
-
-
-
-
Method Detail
-
createUnaryCallable
public <RequestT,ResponseT> com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT> createUnaryCallable(HttpJsonCallSettings<RequestT,ResponseT> httpJsonCallSettings, com.google.api.gax.rpc.UnaryCallSettings<RequestT,ResponseT> callSettings, com.google.api.gax.rpc.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<com.google.longrunning.Operation,com.google.api.gax.core.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,PagedListResponseT> com.google.api.gax.rpc.UnaryCallable<RequestT,PagedListResponseT> createPagedCallable(HttpJsonCallSettings<RequestT,ResponseT> httpJsonCallSettings, com.google.api.gax.rpc.PagedCallSettings<RequestT,ResponseT,PagedListResponseT> callSettings, com.google.api.gax.rpc.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<com.google.longrunning.Operation,com.google.api.gax.core.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> com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT> createBatchingCallable(HttpJsonCallSettings<RequestT,ResponseT> httpJsonCallSettings, com.google.api.gax.rpc.BatchingCallSettings<RequestT,ResponseT> callSettings, com.google.api.gax.rpc.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<com.google.longrunning.Operation,com.google.api.gax.core.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,MetadataT> com.google.api.gax.rpc.OperationCallable<RequestT,ResponseT,MetadataT> createOperationCallable(HttpJsonCallSettings<RequestT,com.google.longrunning.Operation> httpJsonCallSettings, com.google.api.gax.rpc.OperationCallSettings<RequestT,ResponseT,MetadataT> callSettings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.core.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<com.google.longrunning.Operation,com.google.api.gax.core.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
-
-