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

namespace Google\Cloud\Recommender\V1;

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

/**
 * Contains what resources are changing and how they are changing.
 *
 * Generated from protobuf message <code>google.cloud.recommender.v1.RecommendationContent</code>
 */
class RecommendationContent extends \Google\Protobuf\Internal\Message
{
    /**
     * Operations to one or more Google Cloud resources grouped in such a way
     * that, all operations within one group are expected to be performed
     * atomically and in an order.
     *
     * Generated from protobuf field <code>repeated .google.cloud.recommender.v1.OperationGroup operation_groups = 2;</code>
     */
    private $operation_groups;
    /**
     * Condensed overview information about the recommendation.
     *
     * Generated from protobuf field <code>.google.protobuf.Struct overview = 3;</code>
     */
    private $overview = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Recommender\V1\OperationGroup>|\Google\Protobuf\Internal\RepeatedField $operation_groups
     *           Operations to one or more Google Cloud resources grouped in such a way
     *           that, all operations within one group are expected to be performed
     *           atomically and in an order.
     *     @type \Google\Protobuf\Struct $overview
     *           Condensed overview information about the recommendation.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Recommender\V1\Recommendation::initOnce();
        parent::__construct($data);
    }

    /**
     * Operations to one or more Google Cloud resources grouped in such a way
     * that, all operations within one group are expected to be performed
     * atomically and in an order.
     *
     * Generated from protobuf field <code>repeated .google.cloud.recommender.v1.OperationGroup operation_groups = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getOperationGroups()
    {
        return $this->operation_groups;
    }

    /**
     * Operations to one or more Google Cloud resources grouped in such a way
     * that, all operations within one group are expected to be performed
     * atomically and in an order.
     *
     * Generated from protobuf field <code>repeated .google.cloud.recommender.v1.OperationGroup operation_groups = 2;</code>
     * @param array<\Google\Cloud\Recommender\V1\OperationGroup>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setOperationGroups($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Recommender\V1\OperationGroup::class);
        $this->operation_groups = $arr;

        return $this;
    }

    /**
     * Condensed overview information about the recommendation.
     *
     * Generated from protobuf field <code>.google.protobuf.Struct overview = 3;</code>
     * @return \Google\Protobuf\Struct|null
     */
    public function getOverview()
    {
        return $this->overview;
    }

    public function hasOverview()
    {
        return isset($this->overview);
    }

    public function clearOverview()
    {
        unset($this->overview);
    }

    /**
     * Condensed overview information about the recommendation.
     *
     * Generated from protobuf field <code>.google.protobuf.Struct overview = 3;</code>
     * @param \Google\Protobuf\Struct $var
     * @return $this
     */
    public function setOverview($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class);
        $this->overview = $var;

        return $this;
    }

}

