Class GrpcRecommenderStub
- java.lang.Object
-
- com.google.cloud.recommender.v1.stub.RecommenderStub
-
- com.google.cloud.recommender.v1.stub.GrpcRecommenderStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcRecommenderStub extends RecommenderStub
gRPC 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
GrpcRecommenderStub(RecommenderStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcRecommenderStub, using the given settings.protected
GrpcRecommenderStub(RecommenderStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcRecommenderStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcRecommenderStub
protected GrpcRecommenderStub(RecommenderStubSettings settings, com.google.api.gax.rpc.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, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.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 Detail
-
create
public static final GrpcRecommenderStub create(RecommenderStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcRecommenderStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcRecommenderStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
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
-
-