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

namespace Google\Cloud\ConfigDelivery\V1;

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.v1.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.v1.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\V1\ClusterInfo[] $clusters
     *           Unordered list. resource bundle's deployment status for all targeted
     *           clusters.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Configdelivery\V1\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.v1.ClusterInfo clusters = 1 [(.google.api.field_behavior) = UNORDERED_LIST];</code>
     * @return RepeatedField<\Google\Cloud\ConfigDelivery\V1\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.v1.ClusterInfo clusters = 1 [(.google.api.field_behavior) = UNORDERED_LIST];</code>
     * @param \Google\Cloud\ConfigDelivery\V1\ClusterInfo[] $var
     * @return $this
     */
    public function setClusters($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ConfigDelivery\V1\ClusterInfo::class);
        $this->clusters = $arr;

        return $this;
    }

}

