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

namespace Google\Cloud\Bigtable\V2;

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

/**
 * Information about the connected backends from a session client's
 * perspective. This information may be used to make choices about session
 * re-establishment en-masse for sessions with the same backend identifiers.
 * Internal usage only.
 *
 * Generated from protobuf message <code>google.bigtable.v2.BackendIdentifier</code>
 */
class BackendIdentifier extends \Google\Protobuf\Internal\Message
{
    /**
     * An opaque identifier for the Google Frontend which serviced this request.
     * Only set when not using DirectAccess.
     *
     * Generated from protobuf field <code>int64 google_frontend_id = 1;</code>
     */
    protected $google_frontend_id = 0;
    /**
     * An opaque identifier for the application frontend which serviced this
     * request.
     *
     * Generated from protobuf field <code>int64 application_frontend_id = 2;</code>
     */
    protected $application_frontend_id = 0;
    /**
     * The zone of the application frontend that served this request.
     *
     * Generated from protobuf field <code>string application_frontend_zone = 3;</code>
     */
    protected $application_frontend_zone = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $google_frontend_id
     *           An opaque identifier for the Google Frontend which serviced this request.
     *           Only set when not using DirectAccess.
     *     @type int|string $application_frontend_id
     *           An opaque identifier for the application frontend which serviced this
     *           request.
     *     @type string $application_frontend_zone
     *           The zone of the application frontend that served this request.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Bigtable\V2\Session::initOnce();
        parent::__construct($data);
    }

    /**
     * An opaque identifier for the Google Frontend which serviced this request.
     * Only set when not using DirectAccess.
     *
     * Generated from protobuf field <code>int64 google_frontend_id = 1;</code>
     * @return int|string
     */
    public function getGoogleFrontendId()
    {
        return $this->google_frontend_id;
    }

    /**
     * An opaque identifier for the Google Frontend which serviced this request.
     * Only set when not using DirectAccess.
     *
     * Generated from protobuf field <code>int64 google_frontend_id = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setGoogleFrontendId($var)
    {
        GPBUtil::checkInt64($var);
        $this->google_frontend_id = $var;

        return $this;
    }

    /**
     * An opaque identifier for the application frontend which serviced this
     * request.
     *
     * Generated from protobuf field <code>int64 application_frontend_id = 2;</code>
     * @return int|string
     */
    public function getApplicationFrontendId()
    {
        return $this->application_frontend_id;
    }

    /**
     * An opaque identifier for the application frontend which serviced this
     * request.
     *
     * Generated from protobuf field <code>int64 application_frontend_id = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setApplicationFrontendId($var)
    {
        GPBUtil::checkInt64($var);
        $this->application_frontend_id = $var;

        return $this;
    }

    /**
     * The zone of the application frontend that served this request.
     *
     * Generated from protobuf field <code>string application_frontend_zone = 3;</code>
     * @return string
     */
    public function getApplicationFrontendZone()
    {
        return $this->application_frontend_zone;
    }

    /**
     * The zone of the application frontend that served this request.
     *
     * Generated from protobuf field <code>string application_frontend_zone = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setApplicationFrontendZone($var)
    {
        GPBUtil::checkString($var, True);
        $this->application_frontend_zone = $var;

        return $this;
    }

}

