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

namespace Google\Cloud\Compute\V1;

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

/**
 * A response containing the recommended way of creating the specified resources
 * in the future. It contains (will contain) multiple recommendations that can
 * be analyzed by the customer and the best one can be picked.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.CalendarModeAdviceResponse</code>
 */
class CalendarModeAdviceResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Recommendations where, how and when to create the requested resources
     * in order to maximize their obtainability and minimize cost.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.CalendarModeRecommendation recommendations = 324515802;</code>
     */
    private $recommendations;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Compute\V1\CalendarModeRecommendation[] $recommendations
     *           Recommendations where, how and when to create the requested resources
     *           in order to maximize their obtainability and minimize cost.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Recommendations where, how and when to create the requested resources
     * in order to maximize their obtainability and minimize cost.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.CalendarModeRecommendation recommendations = 324515802;</code>
     * @return RepeatedField<\Google\Cloud\Compute\V1\CalendarModeRecommendation>
     */
    public function getRecommendations()
    {
        return $this->recommendations;
    }

    /**
     * Recommendations where, how and when to create the requested resources
     * in order to maximize their obtainability and minimize cost.
     *
     * Generated from protobuf field <code>repeated .google.cloud.compute.v1.CalendarModeRecommendation recommendations = 324515802;</code>
     * @param \Google\Cloud\Compute\V1\CalendarModeRecommendation[] $var
     * @return $this
     */
    public function setRecommendations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Compute\V1\CalendarModeRecommendation::class);
        $this->recommendations = $arr;

        return $this;
    }

}

