Recommender V1 Client - Class InsightReference (1.10.0)

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

Reference to an associated insight.

Generated from protobuf message google.cloud.recommender.v1.Recommendation.InsightReference

Namespace

Google \ Cloud \ Recommender \ V1 \ Recommendation

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ insight string

Insight resource name, e.g. projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]

getInsight

Insight resource name, e.g.

projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]

Returns
TypeDescription
string

setInsight

Insight resource name, e.g.

projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]

Parameter
NameDescription
var string
Returns
TypeDescription
$this