Recommender V1 Client - Class RecommendationReference (1.8.2)

Reference documentation and code samples for the Recommender V1 Client class RecommendationReference.

Reference to an associated recommendation.

Generated from protobuf message google.cloud.recommender.v1.Insight.RecommendationReference

Namespace

Google \ Cloud \ Recommender \ V1 \ Insight

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ recommendation string

Recommendation resource name, e.g. projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]

getRecommendation

Recommendation resource name, e.g.

projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]

Returns
TypeDescription
string

setRecommendation

Recommendation resource name, e.g.

projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/recommendations/[RECOMMENDATION_ID]

Parameter
NameDescription
var string
Returns
TypeDescription
$this