<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/recommender/v1/recommendation.proto

namespace Google\Cloud\Recommender\V1\Recommendation;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Reference to an associated insight.
 *
 * Generated from protobuf message <code>google.cloud.recommender.v1.Recommendation.InsightReference</code>
 */
class InsightReference extends \Google\Protobuf\Internal\Message
{
    /**
     * Insight resource name, e.g.
     * projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]
     *
     * Generated from protobuf field <code>string insight = 1;</code>
     */
    protected $insight = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $insight
     *           Insight resource name, e.g.
     *           projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Recommender\V1\Recommendation::initOnce();
        parent::__construct($data);
    }

    /**
     * Insight resource name, e.g.
     * projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]
     *
     * Generated from protobuf field <code>string insight = 1;</code>
     * @return string
     */
    public function getInsight()
    {
        return $this->insight;
    }

    /**
     * Insight resource name, e.g.
     * projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/insights/[INSIGHT_ID]
     *
     * Generated from protobuf field <code>string insight = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setInsight($var)
    {
        GPBUtil::checkString($var, True);
        $this->insight = $var;

        return $this;
    }

}


