Class 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.

    • 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
    • Constructor Detail

      • HttpJsonOperationsCallableFactory

        public HttpJsonOperationsCallableFactory()
    • 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: HttpJsonStubCallableFactory
        Create a callable object with http/json-specific functionality. Designed for use by generated code.
        Specified by:
        createUnaryCallable in interface HttpJsonStubCallableFactory<com.google.longrunning.Operation,​com.google.api.gax.core.BackgroundResource>
        Parameters:
        httpJsonCallSettings - the http/json call settings
        callSettings - UnaryCallSettings to configure the method-level settings with
        clientContext - ClientContext to use to connect to the service
        Returns:
        UnaryCallable callable 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: HttpJsonStubCallableFactory
        Create a paged callable object that represents a paged API method. Designed for use by generated code.
        Specified by:
        createPagedCallable in interface HttpJsonStubCallableFactory<com.google.longrunning.Operation,​com.google.api.gax.core.BackgroundResource>
        Parameters:
        httpJsonCallSettings - the http/json call settings
        callSettings - PagedCallSettings to configure the paged settings with
        clientContext - ClientContext to use to connect to the service
        Returns:
        UnaryCallable callable 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: HttpJsonStubCallableFactory
        Create a callable object that represents a batching API method. Designed for use by generated code.
        Specified by:
        createBatchingCallable in interface HttpJsonStubCallableFactory<com.google.longrunning.Operation,​com.google.api.gax.core.BackgroundResource>
        Parameters:
        httpJsonCallSettings - the http/json call settings
        callSettings - BatchingCallSettings to configure the batching related settings with
        clientContext - ClientContext to use to connect to the service
        Returns:
        UnaryCallable callable 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: HttpJsonStubCallableFactory
        Creates a callable object that represents a long-running operation. Designed for use by generated code.
        Specified by:
        createOperationCallable in interface HttpJsonStubCallableFactory<com.google.longrunning.Operation,​com.google.api.gax.core.BackgroundResource>
        Parameters:
        httpJsonCallSettings - the http/json call settings
        callSettings - OperationCallSettings to configure the method-level settings with
        clientContext - ClientContext to use to connect to the service
        operationsStub - opertation stub to use to poll for updates on the Operation
        Returns:
        OperationCallable callable object