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

/**
 * 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 array<\Google\Cloud\ConfigDelivery\V1beta\ClusterInfo>|\Google\Protobuf\Internal\RepeatedField $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 \Google\Protobuf\Internal\RepeatedField
     */
    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 array<\Google\Cloud\ConfigDelivery\V1beta\ClusterInfo>|\Google\Protobuf\Internal\RepeatedField $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;
    }

}

