<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/dataflow/v1beta3/jobs.proto

namespace Google\Cloud\Dataflow\V1beta3;

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

/**
 * Additional information about how a Cloud Dataflow job will be executed that
 * isn't contained in the submitted job.
 *
 * Generated from protobuf message <code>google.dataflow.v1beta3.JobExecutionInfo</code>
 */
class JobExecutionInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * A mapping from each stage to the information about that stage.
     *
     * Generated from protobuf field <code>map<string, .google.dataflow.v1beta3.JobExecutionStageInfo> stages = 1;</code>
     */
    private $stages;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $stages
     *           A mapping from each stage to the information about that stage.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce();
        parent::__construct($data);
    }

    /**
     * A mapping from each stage to the information about that stage.
     *
     * Generated from protobuf field <code>map<string, .google.dataflow.v1beta3.JobExecutionStageInfo> stages = 1;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getStages()
    {
        return $this->stages;
    }

    /**
     * A mapping from each stage to the information about that stage.
     *
     * Generated from protobuf field <code>map<string, .google.dataflow.v1beta3.JobExecutionStageInfo> stages = 1;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setStages($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\JobExecutionStageInfo::class);
        $this->stages = $arr;

        return $this;
    }

}

