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

/**
 * Resources used by the Dataflow Service to run the job.
 *
 * Generated from protobuf message <code>google.dataflow.v1beta3.ServiceResources</code>
 */
class ServiceResources extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. List of Cloud Zones being used by the Dataflow Service for
     * this job. Example: us-central1-c
     *
     * Generated from protobuf field <code>repeated string zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $zones;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $zones
     *           Output only. List of Cloud Zones being used by the Dataflow Service for
     *           this job. Example: us-central1-c
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. List of Cloud Zones being used by the Dataflow Service for
     * this job. Example: us-central1-c
     *
     * Generated from protobuf field <code>repeated string zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return RepeatedField<string>
     */
    public function getZones()
    {
        return $this->zones;
    }

    /**
     * Output only. List of Cloud Zones being used by the Dataflow Service for
     * this job. Example: us-central1-c
     *
     * Generated from protobuf field <code>repeated string zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string[] $var
     * @return $this
     */
    public function setZones($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->zones = $arr;

        return $this;
    }

}

