Class HttpJsonRecommenderStub
- java.lang.Object
-
- com.google.cloud.recommender.v1.stub.RecommenderStub
-
- com.google.cloud.recommender.v1.stub.HttpJsonRecommenderStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonRecommenderStub extends RecommenderStub
REST stub implementation for the Recommender service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonRecommenderStub(RecommenderStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonRecommenderStub, using the given settings.protected
HttpJsonRecommenderStub(RecommenderStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonRecommenderStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonRecommenderStub
protected HttpJsonRecommenderStub(RecommenderStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonRecommenderStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
HttpJsonRecommenderStub
protected HttpJsonRecommenderStub(RecommenderStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonRecommenderStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonRecommenderStub create(RecommenderStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonRecommenderStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonRecommenderStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
listInsightsCallable
public com.google.api.gax.rpc.UnaryCallable<ListInsightsRequest,ListInsightsResponse> listInsightsCallable()
- Overrides:
listInsightsCallable
in classRecommenderStub
-
listInsightsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListInsightsRequest,RecommenderClient.ListInsightsPagedResponse> listInsightsPagedCallable()
- Overrides:
listInsightsPagedCallable
in classRecommenderStub
-
getInsightCallable
public com.google.api.gax.rpc.UnaryCallable<GetInsightRequest,Insight> getInsightCallable()
- Overrides:
getInsightCallable
in classRecommenderStub
-
markInsightAcceptedCallable
public com.google.api.gax.rpc.UnaryCallable<MarkInsightAcceptedRequest,Insight> markInsightAcceptedCallable()
- Overrides:
markInsightAcceptedCallable
in classRecommenderStub
-
listRecommendationsCallable
public com.google.api.gax.rpc.UnaryCallable<ListRecommendationsRequest,ListRecommendationsResponse> listRecommendationsCallable()
- Overrides:
listRecommendationsCallable
in classRecommenderStub
-
listRecommendationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListRecommendationsRequest,RecommenderClient.ListRecommendationsPagedResponse> listRecommendationsPagedCallable()
- Overrides:
listRecommendationsPagedCallable
in classRecommenderStub
-
getRecommendationCallable
public com.google.api.gax.rpc.UnaryCallable<GetRecommendationRequest,Recommendation> getRecommendationCallable()
- Overrides:
getRecommendationCallable
in classRecommenderStub
-
markRecommendationDismissedCallable
public com.google.api.gax.rpc.UnaryCallable<MarkRecommendationDismissedRequest,Recommendation> markRecommendationDismissedCallable()
- Overrides:
markRecommendationDismissedCallable
in classRecommenderStub
-
markRecommendationClaimedCallable
public com.google.api.gax.rpc.UnaryCallable<MarkRecommendationClaimedRequest,Recommendation> markRecommendationClaimedCallable()
- Overrides:
markRecommendationClaimedCallable
in classRecommenderStub
-
markRecommendationSucceededCallable
public com.google.api.gax.rpc.UnaryCallable<MarkRecommendationSucceededRequest,Recommendation> markRecommendationSucceededCallable()
- Overrides:
markRecommendationSucceededCallable
in classRecommenderStub
-
markRecommendationFailedCallable
public com.google.api.gax.rpc.UnaryCallable<MarkRecommendationFailedRequest,Recommendation> markRecommendationFailedCallable()
- Overrides:
markRecommendationFailedCallable
in classRecommenderStub
-
getRecommenderConfigCallable
public com.google.api.gax.rpc.UnaryCallable<GetRecommenderConfigRequest,RecommenderConfig> getRecommenderConfigCallable()
- Overrides:
getRecommenderConfigCallable
in classRecommenderStub
-
updateRecommenderConfigCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateRecommenderConfigRequest,RecommenderConfig> updateRecommenderConfigCallable()
- Overrides:
updateRecommenderConfigCallable
in classRecommenderStub
-
getInsightTypeConfigCallable
public com.google.api.gax.rpc.UnaryCallable<GetInsightTypeConfigRequest,InsightTypeConfig> getInsightTypeConfigCallable()
- Overrides:
getInsightTypeConfigCallable
in classRecommenderStub
-
updateInsightTypeConfigCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateInsightTypeConfigRequest,InsightTypeConfig> updateInsightTypeConfigCallable()
- Overrides:
updateInsightTypeConfigCallable
in classRecommenderStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classRecommenderStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-