Class HttpJsonCallableFactory


  • public class HttpJsonCallableFactory
    extends Object
    Class with utility methods to create http/json-based direct callables.
    • Method Detail

      • createBaseUnaryCallable

        public static <RequestT,​ResponseT> UnaryCallable<RequestT,​ResponseT> createBaseUnaryCallable​(HttpJsonCallSettings<RequestT,​ResponseT> httpJsonCallSettings,
                                                                                                                 UnaryCallSettings<?,​?> callSettings,
                                                                                                                 ClientContext clientContext)
        Create a Unary callable object with minimal http/json-specific functionality. Designed for use by generated code.
        Parameters:
        httpJsonCallSettings - the gRPC call settings
        callSettings - the unary call settings
        clientContext - ClientContext to use to connect to the service.
      • createUnaryCallable

        public static <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 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 static <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 settings
        pagedCallSettings - PagedCallSettings to configure the paged settings with.
        clientContext - ClientContext to use to connect to the service.
        Returns:
        UnaryCallable callable object.
      • createBatchingCallable

        public static <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 settings
        batchingCallSettings - BatchingCallSettings to configure the batching related settings with.
        clientContext - ClientContext to use to connect to the service.
        Returns:
        UnaryCallable callable object.