Class GrpcRecommenderStub
java.lang.Object
com.google.cloud.recommender.v1.stub.RecommenderStub
com.google.cloud.recommender.v1.stub.GrpcRecommenderStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the Recommender service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcRecommenderStub(RecommenderStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcRecommenderStub, using the given settings.protectedGrpcRecommenderStub(RecommenderStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcRecommenderStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcRecommenderStubcreate(ClientContext clientContext) static final GrpcRecommenderStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcRecommenderStubcreate(RecommenderStubSettings settings) booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcRecommenderStub
protected GrpcRecommenderStub(RecommenderStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcRecommenderStub, 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
-
GrpcRecommenderStub
protected GrpcRecommenderStub(RecommenderStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcRecommenderStub, 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
- Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcRecommenderStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
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
-
markRecommendationDismissedCallable
public UnaryCallable<MarkRecommendationDismissedRequest,Recommendation> markRecommendationDismissedCallable()- Overrides:
markRecommendationDismissedCallablein 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
-
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
-