Class HttpJsonRecommenderStub
java.lang.Object
com.google.cloud.recommender.v1beta1.stub.RecommenderStub
com.google.cloud.recommender.v1beta1.stub.HttpJsonRecommenderStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
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
ConstructorsModifierConstructorDescriptionprotectedHttpJsonRecommenderStub(RecommenderStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonRecommenderStub, using the given settings.protectedHttpJsonRecommenderStub(RecommenderStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonRecommenderStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonRecommenderStubcreate(ClientContext clientContext) static final HttpJsonRecommenderStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonRecommenderStubcreate(RecommenderStubSettings settings) static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()void
-
Constructor Details
-
HttpJsonRecommenderStub
protected HttpJsonRecommenderStub(RecommenderStubSettings settings, 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, ClientContext clientContext, 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 Details
-
create
public static final HttpJsonRecommenderStub create(RecommenderStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final HttpJsonRecommenderStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
listInsightsCallable
- Overrides:
listInsightsCallablein classRecommenderStub
-
listInsightsPagedCallable
public UnaryCallable<ListInsightsRequest,RecommenderClient.ListInsightsPagedResponse> listInsightsPagedCallable()- Overrides:
listInsightsPagedCallablein classRecommenderStub
-
getInsightCallable
- Overrides:
getInsightCallablein classRecommenderStub
-
markInsightAcceptedCallable
- Overrides:
markInsightAcceptedCallablein classRecommenderStub
-
listRecommendationsCallable
public UnaryCallable<ListRecommendationsRequest,ListRecommendationsResponse> listRecommendationsCallable()- Overrides:
listRecommendationsCallablein classRecommenderStub
-
listRecommendationsPagedCallable
public UnaryCallable<ListRecommendationsRequest,RecommenderClient.ListRecommendationsPagedResponse> listRecommendationsPagedCallable()- Overrides:
listRecommendationsPagedCallablein classRecommenderStub
-
getRecommendationCallable
- Overrides:
getRecommendationCallablein classRecommenderStub
-
markRecommendationClaimedCallable
public UnaryCallable<MarkRecommendationClaimedRequest,Recommendation> markRecommendationClaimedCallable()- Overrides:
markRecommendationClaimedCallablein classRecommenderStub
-
markRecommendationSucceededCallable
public UnaryCallable<MarkRecommendationSucceededRequest,Recommendation> markRecommendationSucceededCallable()- Overrides:
markRecommendationSucceededCallablein classRecommenderStub
-
markRecommendationFailedCallable
public UnaryCallable<MarkRecommendationFailedRequest,Recommendation> markRecommendationFailedCallable()- Overrides:
markRecommendationFailedCallablein classRecommenderStub
-
getRecommenderConfigCallable
- Overrides:
getRecommenderConfigCallablein classRecommenderStub
-
updateRecommenderConfigCallable
public UnaryCallable<UpdateRecommenderConfigRequest,RecommenderConfig> updateRecommenderConfigCallable()- Overrides:
updateRecommenderConfigCallablein classRecommenderStub
-
getInsightTypeConfigCallable
- Overrides:
getInsightTypeConfigCallablein classRecommenderStub
-
updateInsightTypeConfigCallable
public UnaryCallable<UpdateInsightTypeConfigRequest,InsightTypeConfig> updateInsightTypeConfigCallable()- Overrides:
updateInsightTypeConfigCallablein classRecommenderStub
-
listRecommendersCallable
- Overrides:
listRecommendersCallablein classRecommenderStub
-
listRecommendersPagedCallable
public UnaryCallable<ListRecommendersRequest,RecommenderClient.ListRecommendersPagedResponse> listRecommendersPagedCallable()- Overrides:
listRecommendersPagedCallablein classRecommenderStub
-
listInsightTypesCallable
- Overrides:
listInsightTypesCallablein classRecommenderStub
-
listInsightTypesPagedCallable
public UnaryCallable<ListInsightTypesRequest,RecommenderClient.ListInsightTypesPagedResponse> listInsightTypesPagedCallable()- Overrides:
listInsightTypesPagedCallablein classRecommenderStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classRecommenderStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-