<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/bigtable/v2/response_params.proto

namespace Google\Cloud\Bigtable\V2;

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

/**
 * Response metadata proto
 * This is an experimental feature that will be used to get zone_id and
 * cluster_id from response trailers to tag the metrics. This should not be
 * used by customers directly
 *
 * Generated from protobuf message <code>google.bigtable.v2.ResponseParams</code>
 */
class ResponseParams extends \Google\Protobuf\Internal\Message
{
    /**
     * The cloud bigtable zone associated with the cluster.
     *
     * Generated from protobuf field <code>optional string zone_id = 1;</code>
     */
    private $zone_id = null;
    /**
     * Identifier for a cluster that represents set of
     * bigtable resources.
     *
     * Generated from protobuf field <code>optional string cluster_id = 2;</code>
     */
    private $cluster_id = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $zone_id
     *           The cloud bigtable zone associated with the cluster.
     *     @type string $cluster_id
     *           Identifier for a cluster that represents set of
     *           bigtable resources.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\V2\ResponseParams::initOnce();
        parent::__construct($data);
    }

    /**
     * The cloud bigtable zone associated with the cluster.
     *
     * Generated from protobuf field <code>optional string zone_id = 1;</code>
     * @return string
     */
    public function getZoneId()
    {
        return isset($this->zone_id) ? $this->zone_id : '';
    }

    public function hasZoneId()
    {
        return isset($this->zone_id);
    }

    public function clearZoneId()
    {
        unset($this->zone_id);
    }

    /**
     * The cloud bigtable zone associated with the cluster.
     *
     * Generated from protobuf field <code>optional string zone_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setZoneId($var)
    {
        GPBUtil::checkString($var, True);
        $this->zone_id = $var;

        return $this;
    }

    /**
     * Identifier for a cluster that represents set of
     * bigtable resources.
     *
     * Generated from protobuf field <code>optional string cluster_id = 2;</code>
     * @return string
     */
    public function getClusterId()
    {
        return isset($this->cluster_id) ? $this->cluster_id : '';
    }

    public function hasClusterId()
    {
        return isset($this->cluster_id);
    }

    public function clearClusterId()
    {
        unset($this->cluster_id);
    }

    /**
     * Identifier for a cluster that represents set of
     * bigtable resources.
     *
     * Generated from protobuf field <code>optional string cluster_id = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setClusterId($var)
    {
        GPBUtil::checkString($var, True);
        $this->cluster_id = $var;

        return $this;
    }

}

