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

namespace Google\Cloud\ConfigDelivery\V1beta;

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

/**
 * RollingStrategyInfo represents the status of execution of Rolling rollout
 * strategy.
 *
 * Generated from protobuf message <code>google.cloud.configdelivery.v1beta.RollingStrategyInfo</code>
 */
class RollingStrategyInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Unordered list. resource bundle's deployment status for all targeted
     * clusters.
     *
     * Generated from protobuf field <code>repeated .google.cloud.configdelivery.v1beta.ClusterInfo clusters = 1 [(.google.api.field_behavior) = UNORDERED_LIST];</code>
     */
    private $clusters;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\ConfigDelivery\V1beta\ClusterInfo[] $clusters
     *           Unordered list. resource bundle's deployment status for all targeted
     *           clusters.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Configdelivery\V1Beta\ConfigDelivery::initOnce();
        parent::__construct($data);
    }

    /**
     * Unordered list. resource bundle's deployment status for all targeted
     * clusters.
     *
     * Generated from protobuf field <code>repeated .google.cloud.configdelivery.v1beta.ClusterInfo clusters = 1 [(.google.api.field_behavior) = UNORDERED_LIST];</code>
     * @return RepeatedField<\Google\Cloud\ConfigDelivery\V1beta\ClusterInfo>
     */
    public function getClusters()
    {
        return $this->clusters;
    }

    /**
     * Unordered list. resource bundle's deployment status for all targeted
     * clusters.
     *
     * Generated from protobuf field <code>repeated .google.cloud.configdelivery.v1beta.ClusterInfo clusters = 1 [(.google.api.field_behavior) = UNORDERED_LIST];</code>
     * @param \Google\Cloud\ConfigDelivery\V1beta\ClusterInfo[] $var
     * @return $this
     */
    public function setClusters($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ConfigDelivery\V1beta\ClusterInfo::class);
        $this->clusters = $arr;

        return $this;
    }

}

