Class RecommenderGrpc.RecommenderStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<RecommenderGrpc.RecommenderStub>
-
- com.google.cloud.recommender.v1beta1.RecommenderGrpc.RecommenderStub
-
- Enclosing class:
- RecommenderGrpc
public static final class RecommenderGrpc.RecommenderStub extends io.grpc.stub.AbstractAsyncStub<RecommenderGrpc.RecommenderStub>
A stub to allow clients to do asynchronous rpc calls to service Recommender.Provides insights and recommendations for cloud customers for various categories like performance optimization, cost savings, reliability, feature discovery, etc. Insights and recommendations are generated automatically based on analysis of user resources, configuration and monitoring metrics.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RecommenderGrpc.RecommenderStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
void
getInsight(GetInsightRequest request, io.grpc.stub.StreamObserver<Insight> responseObserver)
Gets the requested insight.void
getInsightTypeConfig(GetInsightTypeConfigRequest request, io.grpc.stub.StreamObserver<InsightTypeConfig> responseObserver)
Gets the requested InsightTypeConfig.void
getRecommendation(GetRecommendationRequest request, io.grpc.stub.StreamObserver<Recommendation> responseObserver)
Gets the requested recommendation.void
getRecommenderConfig(GetRecommenderConfigRequest request, io.grpc.stub.StreamObserver<RecommenderConfig> responseObserver)
Gets the requested Recommender Config.void
listInsights(ListInsightsRequest request, io.grpc.stub.StreamObserver<ListInsightsResponse> responseObserver)
Lists insights for the specified Cloud Resource.void
listInsightTypes(ListInsightTypesRequest request, io.grpc.stub.StreamObserver<ListInsightTypesResponse> responseObserver)
Lists available InsightTypes.void
listRecommendations(ListRecommendationsRequest request, io.grpc.stub.StreamObserver<ListRecommendationsResponse> responseObserver)
Lists recommendations for the specified Cloud Resource.void
listRecommenders(ListRecommendersRequest request, io.grpc.stub.StreamObserver<ListRecommendersResponse> responseObserver)
Lists all available Recommenders.void
markInsightAccepted(MarkInsightAcceptedRequest request, io.grpc.stub.StreamObserver<Insight> responseObserver)
Marks the Insight State as Accepted.void
markRecommendationClaimed(MarkRecommendationClaimedRequest request, io.grpc.stub.StreamObserver<Recommendation> responseObserver)
Marks the Recommendation State as Claimed.void
markRecommendationFailed(MarkRecommendationFailedRequest request, io.grpc.stub.StreamObserver<Recommendation> responseObserver)
Marks the Recommendation State as Failed.void
markRecommendationSucceeded(MarkRecommendationSucceededRequest request, io.grpc.stub.StreamObserver<Recommendation> responseObserver)
Marks the Recommendation State as Succeeded.void
updateInsightTypeConfig(UpdateInsightTypeConfigRequest request, io.grpc.stub.StreamObserver<InsightTypeConfig> responseObserver)
Updates an InsightTypeConfig change.void
updateRecommenderConfig(UpdateRecommenderConfigRequest request, io.grpc.stub.StreamObserver<RecommenderConfig> responseObserver)
Updates a Recommender Config.
-
-
-
Method Detail
-
build
protected RecommenderGrpc.RecommenderStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<RecommenderGrpc.RecommenderStub>
-
listInsights
public void listInsights(ListInsightsRequest request, io.grpc.stub.StreamObserver<ListInsightsResponse> responseObserver)
Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.
-
getInsight
public void getInsight(GetInsightRequest request, io.grpc.stub.StreamObserver<Insight> responseObserver)
Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.
-
markInsightAccepted
public void markInsightAccepted(MarkInsightAcceptedRequest request, io.grpc.stub.StreamObserver<Insight> responseObserver)
Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.
-
listRecommendations
public void listRecommendations(ListRecommendationsRequest request, io.grpc.stub.StreamObserver<ListRecommendationsResponse> responseObserver)
Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.
-
getRecommendation
public void getRecommendation(GetRecommendationRequest request, io.grpc.stub.StreamObserver<Recommendation> responseObserver)
Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.
-
markRecommendationClaimed
public void markRecommendationClaimed(MarkRecommendationClaimedRequest request, io.grpc.stub.StreamObserver<Recommendation> responseObserver)
Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.
-
markRecommendationSucceeded
public void markRecommendationSucceeded(MarkRecommendationSucceededRequest request, io.grpc.stub.StreamObserver<Recommendation> responseObserver)
Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
-
markRecommendationFailed
public void markRecommendationFailed(MarkRecommendationFailedRequest request, io.grpc.stub.StreamObserver<Recommendation> responseObserver)
Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
-
getRecommenderConfig
public void getRecommenderConfig(GetRecommenderConfigRequest request, io.grpc.stub.StreamObserver<RecommenderConfig> responseObserver)
Gets the requested Recommender Config. There is only one instance of the config for each Recommender.
-
updateRecommenderConfig
public void updateRecommenderConfig(UpdateRecommenderConfigRequest request, io.grpc.stub.StreamObserver<RecommenderConfig> responseObserver)
Updates a Recommender Config. This will create a new revision of the config.
-
getInsightTypeConfig
public void getInsightTypeConfig(GetInsightTypeConfigRequest request, io.grpc.stub.StreamObserver<InsightTypeConfig> responseObserver)
Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType.
-
updateInsightTypeConfig
public void updateInsightTypeConfig(UpdateInsightTypeConfigRequest request, io.grpc.stub.StreamObserver<InsightTypeConfig> responseObserver)
Updates an InsightTypeConfig change. This will create a new revision of the config.
-
listRecommenders
public void listRecommenders(ListRecommendersRequest request, io.grpc.stub.StreamObserver<ListRecommendersResponse> responseObserver)
Lists all available Recommenders. No IAM permissions are required.
-
listInsightTypes
public void listInsightTypes(ListInsightTypesRequest request, io.grpc.stub.StreamObserver<ListInsightTypesResponse> responseObserver)
Lists available InsightTypes. No IAM permissions are required.
-
-