<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: livekit_models.proto

namespace Livekit;

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

/**
 * details about the server
 *
 * Generated from protobuf message <code>livekit.ServerInfo</code>
 */
class ServerInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.livekit.ServerInfo.Edition edition = 1;</code>
     */
    protected $edition = 0;
    /**
     * Generated from protobuf field <code>string version = 2;</code>
     */
    protected $version = '';
    /**
     * Generated from protobuf field <code>int32 protocol = 3;</code>
     */
    protected $protocol = 0;
    /**
     * Generated from protobuf field <code>string region = 4;</code>
     */
    protected $region = '';
    /**
     * Generated from protobuf field <code>string node_id = 5;</code>
     */
    protected $node_id = '';
    /**
     * additional debugging information. sent only if server is in development mode
     *
     * Generated from protobuf field <code>string debug_info = 6;</code>
     */
    protected $debug_info = '';
    /**
     * Generated from protobuf field <code>int32 agent_protocol = 7;</code>
     */
    protected $agent_protocol = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $edition
     *     @type string $version
     *     @type int $protocol
     *     @type string $region
     *     @type string $node_id
     *     @type string $debug_info
     *           additional debugging information. sent only if server is in development mode
     *     @type int $agent_protocol
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitModels::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.livekit.ServerInfo.Edition edition = 1;</code>
     * @return int
     */
    public function getEdition()
    {
        return $this->edition;
    }

    /**
     * Generated from protobuf field <code>.livekit.ServerInfo.Edition edition = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setEdition($var)
    {
        GPBUtil::checkEnum($var, \Livekit\ServerInfo\Edition::class);
        $this->edition = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string version = 2;</code>
     * @return string
     */
    public function getVersion()
    {
        return $this->version;
    }

    /**
     * Generated from protobuf field <code>string version = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->version = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 protocol = 3;</code>
     * @return int
     */
    public function getProtocol()
    {
        return $this->protocol;
    }

    /**
     * Generated from protobuf field <code>int32 protocol = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setProtocol($var)
    {
        GPBUtil::checkInt32($var);
        $this->protocol = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string region = 4;</code>
     * @return string
     */
    public function getRegion()
    {
        return $this->region;
    }

    /**
     * Generated from protobuf field <code>string region = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setRegion($var)
    {
        GPBUtil::checkString($var, True);
        $this->region = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string node_id = 5;</code>
     * @return string
     */
    public function getNodeId()
    {
        return $this->node_id;
    }

    /**
     * Generated from protobuf field <code>string node_id = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setNodeId($var)
    {
        GPBUtil::checkString($var, True);
        $this->node_id = $var;

        return $this;
    }

    /**
     * additional debugging information. sent only if server is in development mode
     *
     * Generated from protobuf field <code>string debug_info = 6;</code>
     * @return string
     */
    public function getDebugInfo()
    {
        return $this->debug_info;
    }

    /**
     * additional debugging information. sent only if server is in development mode
     *
     * Generated from protobuf field <code>string debug_info = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setDebugInfo($var)
    {
        GPBUtil::checkString($var, True);
        $this->debug_info = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 agent_protocol = 7;</code>
     * @return int
     */
    public function getAgentProtocol()
    {
        return $this->agent_protocol;
    }

    /**
     * Generated from protobuf field <code>int32 agent_protocol = 7;</code>
     * @param int $var
     * @return $this
     */
    public function setAgentProtocol($var)
    {
        GPBUtil::checkInt32($var);
        $this->agent_protocol = $var;

        return $this;
    }

}

