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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.GenerateTokenReq</code>
 */
class GenerateTokenReq extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string room_id = 1 [(.buf.validate.field) = {</code>
     */
    protected $room_id = '';
    /**
     * Generated from protobuf field <code>.plugnmeet.UserInfo user_info = 2 [(.buf.validate.field) = {</code>
     */
    protected $user_info = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $room_id
     *     @type \Mynaparrot\PlugnmeetProto\UserInfo $user_info
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetGenToken::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>string room_id = 1 [(.buf.validate.field) = {</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>.plugnmeet.UserInfo user_info = 2 [(.buf.validate.field) = {</code>
     * @return \Mynaparrot\PlugnmeetProto\UserInfo|null
     */
    public function getUserInfo()
    {
        return $this->user_info;
    }

    public function hasUserInfo()
    {
        return isset($this->user_info);
    }

    public function clearUserInfo()
    {
        unset($this->user_info);
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.UserInfo user_info = 2 [(.buf.validate.field) = {</code>
     * @param \Mynaparrot\PlugnmeetProto\UserInfo $var
     * @return $this
     */
    public function setUserInfo($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\UserInfo::class);
        $this->user_info = $var;

        return $this;
    }

}

