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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.BreakoutRoomRes</code>
 */
class BreakoutRoomRes extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>bool status = 1;</code>
     */
    protected $status = false;
    /**
     * Generated from protobuf field <code>string msg = 2;</code>
     */
    protected $msg = '';
    /**
     * join token
     *
     * Generated from protobuf field <code>optional string token = 3;</code>
     */
    protected $token = null;
    /**
     * for my breakout room
     *
     * Generated from protobuf field <code>optional .plugnmeet.BreakoutRoom room = 4;</code>
     */
    protected $room = null;
    /**
     * rooms list
     *
     * Generated from protobuf field <code>repeated .plugnmeet.BreakoutRoom rooms = 5;</code>
     */
    private $rooms;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $status
     *     @type string $msg
     *     @type string $token
     *           join token
     *     @type \Mynaparrot\PlugnmeetProto\BreakoutRoom $room
     *           for my breakout room
     *     @type \Mynaparrot\PlugnmeetProto\BreakoutRoom[] $rooms
     *           rooms list
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetBreakoutRoom::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * join token
     *
     * Generated from protobuf field <code>optional string token = 3;</code>
     * @return string
     */
    public function getToken()
    {
        return isset($this->token) ? $this->token : '';
    }

    public function hasToken()
    {
        return isset($this->token);
    }

    public function clearToken()
    {
        unset($this->token);
    }

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

        return $this;
    }

    /**
     * for my breakout room
     *
     * Generated from protobuf field <code>optional .plugnmeet.BreakoutRoom room = 4;</code>
     * @return \Mynaparrot\PlugnmeetProto\BreakoutRoom|null
     */
    public function getRoom()
    {
        return $this->room;
    }

    public function hasRoom()
    {
        return isset($this->room);
    }

    public function clearRoom()
    {
        unset($this->room);
    }

    /**
     * for my breakout room
     *
     * Generated from protobuf field <code>optional .plugnmeet.BreakoutRoom room = 4;</code>
     * @param \Mynaparrot\PlugnmeetProto\BreakoutRoom $var
     * @return $this
     */
    public function setRoom($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\BreakoutRoom::class);
        $this->room = $var;

        return $this;
    }

    /**
     * rooms list
     *
     * Generated from protobuf field <code>repeated .plugnmeet.BreakoutRoom rooms = 5;</code>
     * @return RepeatedField<\Mynaparrot\PlugnmeetProto\BreakoutRoom>
     */
    public function getRooms()
    {
        return $this->rooms;
    }

    /**
     * rooms list
     *
     * Generated from protobuf field <code>repeated .plugnmeet.BreakoutRoom rooms = 5;</code>
     * @param \Mynaparrot\PlugnmeetProto\BreakoutRoom[] $var
     * @return $this
     */
    public function setRooms($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Mynaparrot\PlugnmeetProto\BreakoutRoom::class);
        $this->rooms = $arr;

        return $this;
    }

}

