Class RecommenderConnection (2.20.0)

This interface defines virtual methods for each of the user-facing overload sets in RecommenderClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type RecommenderClient.

To create a concrete instance, see MakeRecommenderConnection().

For mocking, see recommender_v1_mocks::MockRecommenderConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ListInsights(google::cloud::recommender::v1::ListInsightsRequest)

Parameter
Name Description
request google::cloud::recommender::v1::ListInsightsRequest
Returns
Type Description
StreamRange< google::cloud::recommender::v1::Insight >

virtual GetInsight(google::cloud::recommender::v1::GetInsightRequest const &)

Parameter
Name Description
request google::cloud::recommender::v1::GetInsightRequest const &
Returns
Type Description
StatusOr< google::cloud::recommender::v1::Insight >

virtual MarkInsightAccepted(google::cloud::recommender::v1::MarkInsightAcceptedRequest const &)

Parameter
Name Description
request google::cloud::recommender::v1::MarkInsightAcceptedRequest const &
Returns
Type Description
StatusOr< google::cloud::recommender::v1::Insight >

virtual ListRecommendations(google::cloud::recommender::v1::ListRecommendationsRequest)

Parameter
Name Description
request google::cloud::recommender::v1::ListRecommendationsRequest
Returns
Type Description
StreamRange< google::cloud::recommender::v1::Recommendation >

virtual GetRecommendation(google::cloud::recommender::v1::GetRecommendationRequest const &)

Parameter
Name Description
request google::cloud::recommender::v1::GetRecommendationRequest const &
Returns
Type Description
StatusOr< google::cloud::recommender::v1::Recommendation >

virtual MarkRecommendationDismissed(google::cloud::recommender::v1::MarkRecommendationDismissedRequest const &)

Parameter
Name Description
request google::cloud::recommender::v1::MarkRecommendationDismissedRequest const &
Returns
Type Description
StatusOr< google::cloud::recommender::v1::Recommendation >

virtual MarkRecommendationClaimed(google::cloud::recommender::v1::MarkRecommendationClaimedRequest const &)

Parameter
Name Description
request google::cloud::recommender::v1::MarkRecommendationClaimedRequest const &
Returns
Type Description
StatusOr< google::cloud::recommender::v1::Recommendation >

virtual MarkRecommendationSucceeded(google::cloud::recommender::v1::MarkRecommendationSucceededRequest const &)

Parameter
Name Description
request google::cloud::recommender::v1::MarkRecommendationSucceededRequest const &
Returns
Type Description
StatusOr< google::cloud::recommender::v1::Recommendation >

virtual MarkRecommendationFailed(google::cloud::recommender::v1::MarkRecommendationFailedRequest const &)

Parameter
Name Description
request google::cloud::recommender::v1::MarkRecommendationFailedRequest const &
Returns
Type Description
StatusOr< google::cloud::recommender::v1::Recommendation >

virtual GetRecommenderConfig(google::cloud::recommender::v1::GetRecommenderConfigRequest const &)

Parameter
Name Description
request google::cloud::recommender::v1::GetRecommenderConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::recommender::v1::RecommenderConfig >

virtual UpdateRecommenderConfig(google::cloud::recommender::v1::UpdateRecommenderConfigRequest const &)

Parameter
Name Description
request google::cloud::recommender::v1::UpdateRecommenderConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::recommender::v1::RecommenderConfig >

virtual GetInsightTypeConfig(google::cloud::recommender::v1::GetInsightTypeConfigRequest const &)

Parameter
Name Description
request google::cloud::recommender::v1::GetInsightTypeConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::recommender::v1::InsightTypeConfig >

virtual UpdateInsightTypeConfig(google::cloud::recommender::v1::UpdateInsightTypeConfigRequest const &)

Parameter
Name Description
request google::cloud::recommender::v1::UpdateInsightTypeConfigRequest const &
Returns
Type Description
StatusOr< google::cloud::recommender::v1::InsightTypeConfig >