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

namespace Google\Cloud\Memcache\V1beta2;

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

/**
 * Metadata for the given [google.cloud.location.Location][google.cloud.location.Location].
 *
 * Generated from protobuf message <code>google.cloud.memcache.v1beta2.LocationMetadata</code>
 */
class LocationMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The set of available zones in the location. The map is keyed
     * by the lowercase ID of each zone, as defined by GCE. These keys can be
     * specified in the `zones` field when creating a Memcached instance.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $available_zones;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array|\Google\Protobuf\Internal\MapField $available_zones
     *           Output only. The set of available zones in the location. The map is keyed
     *           by the lowercase ID of each zone, as defined by GCE. These keys can be
     *           specified in the `zones` field when creating a Memcached instance.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Memcache\V1Beta2\CloudMemcache::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The set of available zones in the location. The map is keyed
     * by the lowercase ID of each zone, as defined by GCE. These keys can be
     * specified in the `zones` field when creating a Memcached instance.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getAvailableZones()
    {
        return $this->available_zones;
    }

    /**
     * Output only. The set of available zones in the location. The map is keyed
     * by the lowercase ID of each zone, as defined by GCE. These keys can be
     * specified in the `zones` field when creating a Memcached instance.
     *
     * Generated from protobuf field <code>map<string, .google.cloud.memcache.v1beta2.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setAvailableZones($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Memcache\V1beta2\ZoneMetadata::class);
        $this->available_zones = $arr;

        return $this;
    }

}

