<?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.NatsKvUserInfo</code>
 */
class NatsKvUserInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string user_id = 1;</code>
     */
    protected $user_id = '';
    /**
     * Generated from protobuf field <code>string user_sid = 2;</code>
     */
    protected $user_sid = '';
    /**
     * Generated from protobuf field <code>string name = 3;</code>
     */
    protected $name = '';
    /**
     * Generated from protobuf field <code>string room_id = 4;</code>
     */
    protected $room_id = '';
    /**
     * Generated from protobuf field <code>bool is_admin = 5;</code>
     */
    protected $is_admin = false;
    /**
     * Generated from protobuf field <code>bool is_presenter = 6;</code>
     */
    protected $is_presenter = false;
    /**
     * Generated from protobuf field <code>string metadata = 7;</code>
     */
    protected $metadata = '';
    /**
     * Generated from protobuf field <code>uint64 joined_at = 8;</code>
     */
    protected $joined_at = 0;
    /**
     * Generated from protobuf field <code>uint64 reconnected_at = 9;</code>
     */
    protected $reconnected_at = 0;
    /**
     * Generated from protobuf field <code>uint64 disconnected_at = 10;</code>
     */
    protected $disconnected_at = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $user_id
     *     @type string $user_sid
     *     @type string $name
     *     @type string $room_id
     *     @type bool $is_admin
     *     @type bool $is_presenter
     *     @type string $metadata
     *     @type int|string $joined_at
     *     @type int|string $reconnected_at
     *     @type int|string $disconnected_at
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetNatsMsg::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string user_id = 1;</code>
     * @return string
     */
    public function getUserId()
    {
        return $this->user_id;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>string room_id = 4;</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>bool is_admin = 5;</code>
     * @return bool
     */
    public function getIsAdmin()
    {
        return $this->is_admin;
    }

    /**
     * Generated from protobuf field <code>bool is_admin = 5;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsAdmin($var)
    {
        GPBUtil::checkBool($var);
        $this->is_admin = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_presenter = 6;</code>
     * @return bool
     */
    public function getIsPresenter()
    {
        return $this->is_presenter;
    }

    /**
     * Generated from protobuf field <code>bool is_presenter = 6;</code>
     * @param bool $var
     * @return $this
     */
    public function setIsPresenter($var)
    {
        GPBUtil::checkBool($var);
        $this->is_presenter = $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 joined_at = 8;</code>
     * @return int|string
     */
    public function getJoinedAt()
    {
        return $this->joined_at;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

}

