<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * 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 array<\Google\Cloud\Compute\V1\CalendarModeRecommendation>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField
     */
    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 array<\Google\Cloud\Compute\V1\CalendarModeRecommendation>|\Google\Protobuf\Internal\RepeatedField $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;
    }

}

