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

namespace Google\Cloud\Config\V1;

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

/**
 * Operation metadata for `ProvisionDeploymentGroup` and
 * `DeprovisionDeploymentGroup` long-running operations.
 *
 * Generated from protobuf message <code>google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata</code>
 */
class ProvisionDeploymentGroupOperationMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The current step of the deployment group operation.
     *
     * Generated from protobuf field <code>.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $step = 0;
    /**
     * Output only. Progress information for each deployment unit within the
     * operation.
     *
     * Generated from protobuf field <code>repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $deployment_unit_progresses;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $step
     *           Output only. The current step of the deployment group operation.
     *     @type \Google\Cloud\Config\V1\DeploymentUnitProgress[] $deployment_unit_progresses
     *           Output only. Progress information for each deployment unit within the
     *           operation.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Config\V1\Config::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The current step of the deployment group operation.
     *
     * Generated from protobuf field <code>.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getStep()
    {
        return $this->step;
    }

    /**
     * Output only. The current step of the deployment group operation.
     *
     * Generated from protobuf field <code>.google.cloud.config.v1.ProvisionDeploymentGroupOperationMetadata.ProvisionDeploymentGroupStep step = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setStep($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Config\V1\ProvisionDeploymentGroupOperationMetadata\ProvisionDeploymentGroupStep::class);
        $this->step = $var;

        return $this;
    }

    /**
     * Output only. Progress information for each deployment unit within the
     * operation.
     *
     * Generated from protobuf field <code>repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return RepeatedField<\Google\Cloud\Config\V1\DeploymentUnitProgress>
     */
    public function getDeploymentUnitProgresses()
    {
        return $this->deployment_unit_progresses;
    }

    /**
     * Output only. Progress information for each deployment unit within the
     * operation.
     *
     * Generated from protobuf field <code>repeated .google.cloud.config.v1.DeploymentUnitProgress deployment_unit_progresses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\Config\V1\DeploymentUnitProgress[] $var
     * @return $this
     */
    public function setDeploymentUnitProgresses($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Config\V1\DeploymentUnitProgress::class);
        $this->deployment_unit_progresses = $arr;

        return $this;
    }

}

