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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.NotifyEventRoom</code>
 */
class NotifyEventRoom extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string sid = 1;</code>
     */
    protected $sid = null;
    /**
     * Generated from protobuf field <code>optional string room_id = 2;</code>
     */
    protected $room_id = null;
    /**
     * Generated from protobuf field <code>optional uint32 empty_timeout = 3;</code>
     */
    protected $empty_timeout = null;
    /**
     * Generated from protobuf field <code>optional uint32 max_participants = 4;</code>
     */
    protected $max_participants = null;
    /**
     * Generated from protobuf field <code>optional uint64 creation_time = 5;</code>
     */
    protected $creation_time = null;
    /**
     * Generated from protobuf field <code>repeated .livekit.Codec enabled_codecs = 6;</code>
     */
    private $enabled_codecs;
    /**
     * Generated from protobuf field <code>optional string metadata = 7;</code>
     */
    protected $metadata = null;
    /**
     * Generated from protobuf field <code>optional uint32 num_participants = 8;</code>
     */
    protected $num_participants = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $sid
     *     @type string $room_id
     *     @type int $empty_timeout
     *     @type int $max_participants
     *     @type int|string $creation_time
     *     @type \Livekit\Codec[] $enabled_codecs
     *     @type string $metadata
     *     @type int $num_participants
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetCommon::initOnce();
        parent::__construct($data);
    }

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

    public function hasSid()
    {
        return isset($this->sid);
    }

    public function clearSid()
    {
        unset($this->sid);
    }

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

        return $this;
    }

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

    public function hasRoomId()
    {
        return isset($this->room_id);
    }

    public function clearRoomId()
    {
        unset($this->room_id);
    }

    /**
     * Generated from protobuf field <code>optional string room_id = 2;</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>optional uint32 empty_timeout = 3;</code>
     * @return int
     */
    public function getEmptyTimeout()
    {
        return isset($this->empty_timeout) ? $this->empty_timeout : 0;
    }

    public function hasEmptyTimeout()
    {
        return isset($this->empty_timeout);
    }

    public function clearEmptyTimeout()
    {
        unset($this->empty_timeout);
    }

    /**
     * Generated from protobuf field <code>optional uint32 empty_timeout = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setEmptyTimeout($var)
    {
        GPBUtil::checkUint32($var);
        $this->empty_timeout = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 max_participants = 4;</code>
     * @return int
     */
    public function getMaxParticipants()
    {
        return isset($this->max_participants) ? $this->max_participants : 0;
    }

    public function hasMaxParticipants()
    {
        return isset($this->max_participants);
    }

    public function clearMaxParticipants()
    {
        unset($this->max_participants);
    }

    /**
     * Generated from protobuf field <code>optional uint32 max_participants = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setMaxParticipants($var)
    {
        GPBUtil::checkUint32($var);
        $this->max_participants = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 creation_time = 5;</code>
     * @return int|string
     */
    public function getCreationTime()
    {
        return isset($this->creation_time) ? $this->creation_time : 0;
    }

    public function hasCreationTime()
    {
        return isset($this->creation_time);
    }

    public function clearCreationTime()
    {
        unset($this->creation_time);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .livekit.Codec enabled_codecs = 6;</code>
     * @return RepeatedField<\Livekit\Codec>
     */
    public function getEnabledCodecs()
    {
        return $this->enabled_codecs;
    }

    /**
     * Generated from protobuf field <code>repeated .livekit.Codec enabled_codecs = 6;</code>
     * @param \Livekit\Codec[] $var
     * @return $this
     */
    public function setEnabledCodecs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Livekit\Codec::class);
        $this->enabled_codecs = $arr;

        return $this;
    }

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

    public function hasMetadata()
    {
        return isset($this->metadata);
    }

    public function clearMetadata()
    {
        unset($this->metadata);
    }

    /**
     * Generated from protobuf field <code>optional 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>optional uint32 num_participants = 8;</code>
     * @return int
     */
    public function getNumParticipants()
    {
        return isset($this->num_participants) ? $this->num_participants : 0;
    }

    public function hasNumParticipants()
    {
        return isset($this->num_participants);
    }

    public function clearNumParticipants()
    {
        unset($this->num_participants);
    }

    /**
     * Generated from protobuf field <code>optional uint32 num_participants = 8;</code>
     * @param int $var
     * @return $this
     */
    public function setNumParticipants($var)
    {
        GPBUtil::checkUint32($var);
        $this->num_participants = $var;

        return $this;
    }

}

