Class Recommender.RecommenderBase (2.7.0)

[BindServiceMethod(typeof(Recommender), "BindService")]
public abstract class RecommenderBase

Base class for server-side implementations of Recommender

Inheritance

Object > Recommender.RecommenderBase

Namespace

Google.Cloud.Recommender.V1

Assembly

Google.Cloud.Recommender.V1.dll

Methods

GetInsight(GetInsightRequest, ServerCallContext)

public virtual Task<Insight> GetInsight(GetInsightRequest request, ServerCallContext context)

Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.

Parameters
NameDescription
requestGetInsightRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Insight>

The response to send back to the client (wrapped by a task).

GetRecommendation(GetRecommendationRequest, ServerCallContext)

public virtual Task<Recommendation> GetRecommendation(GetRecommendationRequest request, ServerCallContext context)

Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.

Parameters
NameDescription
requestGetRecommendationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Recommendation>

The response to send back to the client (wrapped by a task).

ListInsights(ListInsightsRequest, ServerCallContext)

public virtual Task<ListInsightsResponse> ListInsights(ListInsightsRequest request, ServerCallContext context)

Lists insights for a Cloud project. Requires the recommender.*.list IAM permission for the specified insight type.

Parameters
NameDescription
requestListInsightsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListInsightsResponse>

The response to send back to the client (wrapped by a task).

ListRecommendations(ListRecommendationsRequest, ServerCallContext)

public virtual Task<ListRecommendationsResponse> ListRecommendations(ListRecommendationsRequest request, ServerCallContext context)

Lists recommendations for a Cloud project. Requires the recommender.*.list IAM permission for the specified recommender.

Parameters
NameDescription
requestListRecommendationsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListRecommendationsResponse>

The response to send back to the client (wrapped by a task).

MarkInsightAccepted(MarkInsightAcceptedRequest, ServerCallContext)

public virtual Task<Insight> MarkInsightAccepted(MarkInsightAcceptedRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestMarkInsightAcceptedRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Insight>

The response to send back to the client (wrapped by a task).

MarkRecommendationClaimed(MarkRecommendationClaimedRequest, ServerCallContext)

public virtual Task<Recommendation> MarkRecommendationClaimed(MarkRecommendationClaimedRequest request, ServerCallContext context)

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, SUCCEEDED, FAILED, or ACTIVE state.

Requires the recommender.*.update IAM permission for the specified recommender.

Parameters
NameDescription
requestMarkRecommendationClaimedRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Recommendation>

The response to send back to the client (wrapped by a task).

MarkRecommendationFailed(MarkRecommendationFailedRequest, ServerCallContext)

public virtual Task<Recommendation> MarkRecommendationFailed(MarkRecommendationFailedRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestMarkRecommendationFailedRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Recommendation>

The response to send back to the client (wrapped by a task).

MarkRecommendationSucceeded(MarkRecommendationSucceededRequest, ServerCallContext)

public virtual Task<Recommendation> MarkRecommendationSucceeded(MarkRecommendationSucceededRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestMarkRecommendationSucceededRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Recommendation>

The response to send back to the client (wrapped by a task).