<?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.CreateBreakoutRoomsReq</code>
 */
class CreateBreakoutRoomsReq extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string room_id = 1;</code>
     */
    protected $room_id = '';
    /**
     * Generated from protobuf field <code>string requested_user_id = 2;</code>
     */
    protected $requested_user_id = '';
    /**
     * Generated from protobuf field <code>uint64 duration = 3;</code>
     */
    protected $duration = 0;
    /**
     * Generated from protobuf field <code>optional string welcome_msg = 4;</code>
     */
    protected $welcome_msg = null;
    /**
     * 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 string $room_id
     *     @type string $requested_user_id
     *     @type int|string $duration
     *     @type string $welcome_msg
     *     @type \Mynaparrot\PlugnmeetProto\BreakoutRoom[] $rooms
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetBreakoutRoom::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>string room_id = 1;</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 requested_user_id = 2;</code>
     * @return string
     */
    public function getRequestedUserId()
    {
        return $this->requested_user_id;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

    public function hasWelcomeMsg()
    {
        return isset($this->welcome_msg);
    }

    public function clearWelcomeMsg()
    {
        unset($this->welcome_msg);
    }

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

        return $this;
    }

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

    /**
     * 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;
    }

}

