Skip to content
Permalink
Browse files
fix: remove extends ApiMessage from HttpJsonStubCallableFactory d…
…efinition (#1426)

This is needed to match DIREGAPIC architecture, which does not rely on ApiMessage but on the proto stubs instead.
  • Loading branch information
vam-google committed Jul 13, 2021
1 parent fca3b39 commit 87636a5812874a77e9004aab07607121efa43736
Showing with 5 additions and 5 deletions.
  1. +5 −5 gax-httpjson/src/main/java/com/google/api/gax/httpjson/HttpJsonStubCallableFactory.java
@@ -41,7 +41,7 @@

@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public interface HttpJsonStubCallableFactory<
OperationT extends ApiMessage, OperationsStub extends BackgroundResource> {
OperationT, OperationsStub extends BackgroundResource> {

/**
* Create a callable object with http/json-specific functionality. Designed for use by generated
@@ -52,7 +52,7 @@
* @param clientContext {@link ClientContext} to use to connect to the service.
* @return {@link UnaryCallable} callable object.
*/
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCallable(
<RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCallable(
HttpJsonCallSettings<RequestT, ResponseT> httpJsonCallSettings,
UnaryCallSettings<RequestT, ResponseT> callSettings,
ClientContext clientContext);
@@ -66,7 +66,7 @@ public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createUnaryCalla
* @param clientContext {@link ClientContext} to use to connect to the service.
* @return {@link UnaryCallable} callable object.
*/
public <RequestT, ResponseT, PagedListResponseT>
<RequestT, ResponseT, PagedListResponseT>
UnaryCallable<RequestT, PagedListResponseT> createPagedCallable(
HttpJsonCallSettings<RequestT, ResponseT> httpJsonCallSettings,
PagedCallSettings<RequestT, ResponseT, PagedListResponseT> pagedCallSettings,
@@ -82,12 +82,12 @@ UnaryCallable<RequestT, PagedListResponseT> createPagedCallable(
* @param clientContext {@link ClientContext} to use to connect to the service.
* @return {@link UnaryCallable} callable object.
*/
public <RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCallable(
<RequestT, ResponseT> UnaryCallable<RequestT, ResponseT> createBatchingCallable(
HttpJsonCallSettings<RequestT, ResponseT> httpJsonCallSettings,
BatchingCallSettings<RequestT, ResponseT> batchingCallSettings,
ClientContext clientContext);

public <RequestT, ResponseT, MetadataT>
<RequestT, ResponseT, MetadataT>
OperationCallable<RequestT, ResponseT, MetadataT> createOperationCallable(
HttpJsonCallSettings<RequestT, OperationT> httpJsonCallSettings,
OperationCallSettings<RequestT, ResponseT, MetadataT> operationCallSettings,

0 comments on commit 87636a5

Please sign in to comment.