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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.NatsKvRoomInfo</code>
 */
class NatsKvRoomInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint64 db_table_id = 1;</code>
     */
    protected $db_table_id = 0;
    /**
     * Generated from protobuf field <code>string room_id = 2;</code>
     */
    protected $room_id = '';
    /**
     * Generated from protobuf field <code>string room_sid = 3;</code>
     */
    protected $room_sid = '';
    /**
     * Generated from protobuf field <code>string status = 4;</code>
     */
    protected $status = '';
    /**
     * Generated from protobuf field <code>uint64 empty_timeout = 5;</code>
     */
    protected $empty_timeout = 0;
    /**
     * Generated from protobuf field <code>uint64 max_participants = 6;</code>
     */
    protected $max_participants = 0;
    /**
     * Generated from protobuf field <code>string metadata = 7;</code>
     */
    protected $metadata = '';
    /**
     * Generated from protobuf field <code>uint64 created_at = 8;</code>
     */
    protected $created_at = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $db_table_id
     *     @type string $room_id
     *     @type string $room_sid
     *     @type string $status
     *     @type int|string $empty_timeout
     *     @type int|string $max_participants
     *     @type string $metadata
     *     @type int|string $created_at
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetNatsMsg::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>uint64 db_table_id = 1;</code>
     * @return int|string
     */
    public function getDbTableId()
    {
        return $this->db_table_id;
    }

    /**
     * Generated from protobuf field <code>uint64 db_table_id = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setDbTableId($var)
    {
        GPBUtil::checkUint64($var);
        $this->db_table_id = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string room_sid = 3;</code>
     * @return string
     */
    public function getRoomSid()
    {
        return $this->room_sid;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 empty_timeout = 5;</code>
     * @return int|string
     */
    public function getEmptyTimeout()
    {
        return $this->empty_timeout;
    }

    /**
     * Generated from protobuf field <code>uint64 empty_timeout = 5;</code>
     * @param int|string $var
     * @return $this
     */
    public function setEmptyTimeout($var)
    {
        GPBUtil::checkUint64($var);
        $this->empty_timeout = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 max_participants = 6;</code>
     * @return int|string
     */
    public function getMaxParticipants()
    {
        return $this->max_participants;
    }

    /**
     * Generated from protobuf field <code>uint64 max_participants = 6;</code>
     * @param int|string $var
     * @return $this
     */
    public function setMaxParticipants($var)
    {
        GPBUtil::checkUint64($var);
        $this->max_participants = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string metadata = 7;</code>
     * @return string
     */
    public function getMetadata()
    {
        return $this->metadata;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 created_at = 8;</code>
     * @return int|string
     */
    public function getCreatedAt()
    {
        return $this->created_at;
    }

    /**
     * Generated from protobuf field <code>uint64 created_at = 8;</code>
     * @param int|string $var
     * @return $this
     */
    public function setCreatedAt($var)
    {
        GPBUtil::checkUint64($var);
        $this->created_at = $var;

        return $this;
    }

}

