<?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.BreakoutRoom</code>
 */
class BreakoutRoom extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string id = 1;</code>
     */
    protected $id = '';
    /**
     * Generated from protobuf field <code>string title = 2;</code>
     */
    protected $title = '';
    /**
     * Generated from protobuf field <code>uint64 duration = 3;</code>
     */
    protected $duration = 0;
    /**
     * Generated from protobuf field <code>bool started = 4;</code>
     */
    protected $started = false;
    /**
     * Generated from protobuf field <code>uint64 created = 5;</code>
     */
    protected $created = 0;
    /**
     * Generated from protobuf field <code>repeated .plugnmeet.BreakoutRoomUser users = 6;</code>
     */
    private $users;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $id
     *     @type string $title
     *     @type int|string $duration
     *     @type bool $started
     *     @type int|string $created
     *     @type \Mynaparrot\PlugnmeetProto\BreakoutRoomUser[] $users
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetBreakoutRoom::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>string title = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->title = $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>bool started = 4;</code>
     * @return bool
     */
    public function getStarted()
    {
        return $this->started;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .plugnmeet.BreakoutRoomUser users = 6;</code>
     * @return RepeatedField<\Mynaparrot\PlugnmeetProto\BreakoutRoomUser>
     */
    public function getUsers()
    {
        return $this->users;
    }

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

        return $this;
    }

}

