<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: plugnmeet_create_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.RoomMetadata</code>
 */
class RoomMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string room_title = 1 [(.buf.validate.field) = {</code>
     */
    protected $room_title = '';
    /**
     * Generated from protobuf field <code>optional string welcome_message = 2;</code>
     */
    protected $welcome_message = null;
    /**
     * Generated from protobuf field <code>bool is_recording = 3 [(.buf.validate.field) = {</code>
     */
    protected $is_recording = false;
    /**
     * Generated from protobuf field <code>bool is_active_rtmp = 4 [(.buf.validate.field) = {</code>
     */
    protected $is_active_rtmp = false;
    /**
     * Generated from protobuf field <code>string parent_room_id = 5 [(.buf.validate.field) = {</code>
     */
    protected $parent_room_id = '';
    /**
     * Generated from protobuf field <code>bool is_breakout_room = 6 [(.buf.validate.field) = {</code>
     */
    protected $is_breakout_room = false;
    /**
     * Generated from protobuf field <code>optional string webhook_url = 7 [(.buf.validate.field) = {</code>
     */
    protected $webhook_url = null;
    /**
     * Generated from protobuf field <code>uint64 started_at = 8 [(.buf.validate.field) = {</code>
     */
    protected $started_at = 0;
    /**
     * Generated from protobuf field <code>optional string logout_url = 9 [(.buf.validate.field) = {</code>
     */
    protected $logout_url = null;
    /**
     * Generated from protobuf field <code>.plugnmeet.RoomCreateFeatures room_features = 10 [(.buf.validate.field) = {</code>
     */
    protected $room_features = null;
    /**
     * Generated from protobuf field <code>.plugnmeet.LockSettings default_lock_settings = 11;</code>
     */
    protected $default_lock_settings = null;
    /**
     * Generated from protobuf field <code>.plugnmeet.CopyrightConf copyright_conf = 12;</code>
     */
    protected $copyright_conf = null;
    /**
     * we'll use this as version control
     *
     * Generated from protobuf field <code>optional string metadata_id = 13 [(.buf.validate.field) = {</code>
     */
    protected $metadata_id = null;
    /**
     * Generated from protobuf field <code>map<string, string> extra_data = 14;</code>
     */
    private $extra_data;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $room_title
     *     @type string $welcome_message
     *     @type bool $is_recording
     *     @type bool $is_active_rtmp
     *     @type string $parent_room_id
     *     @type bool $is_breakout_room
     *     @type string $webhook_url
     *     @type int|string $started_at
     *     @type string $logout_url
     *     @type \Mynaparrot\PlugnmeetProto\RoomCreateFeatures $room_features
     *     @type \Mynaparrot\PlugnmeetProto\LockSettings $default_lock_settings
     *     @type \Mynaparrot\PlugnmeetProto\CopyrightConf $copyright_conf
     *     @type string $metadata_id
     *           we'll use this as version control
     *     @type array|\Google\Protobuf\Internal\MapField $extra_data
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetCreateRoom::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>string room_title = 1 [(.buf.validate.field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setRoomTitle($var)
    {
        GPBUtil::checkString($var, True);
        $this->room_title = $var;

        return $this;
    }

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

    public function hasWelcomeMessage()
    {
        return isset($this->welcome_message);
    }

    public function clearWelcomeMessage()
    {
        unset($this->welcome_message);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_recording = 3 [(.buf.validate.field) = {</code>
     * @return bool
     */
    public function getIsRecording()
    {
        return $this->is_recording;
    }

    /**
     * Generated from protobuf field <code>bool is_recording = 3 [(.buf.validate.field) = {</code>
     * @param bool $var
     * @return $this
     */
    public function setIsRecording($var)
    {
        GPBUtil::checkBool($var);
        $this->is_recording = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_active_rtmp = 4 [(.buf.validate.field) = {</code>
     * @return bool
     */
    public function getIsActiveRtmp()
    {
        return $this->is_active_rtmp;
    }

    /**
     * Generated from protobuf field <code>bool is_active_rtmp = 4 [(.buf.validate.field) = {</code>
     * @param bool $var
     * @return $this
     */
    public function setIsActiveRtmp($var)
    {
        GPBUtil::checkBool($var);
        $this->is_active_rtmp = $var;

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>string parent_room_id = 5 [(.buf.validate.field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setParentRoomId($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent_room_id = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_breakout_room = 6 [(.buf.validate.field) = {</code>
     * @return bool
     */
    public function getIsBreakoutRoom()
    {
        return $this->is_breakout_room;
    }

    /**
     * Generated from protobuf field <code>bool is_breakout_room = 6 [(.buf.validate.field) = {</code>
     * @param bool $var
     * @return $this
     */
    public function setIsBreakoutRoom($var)
    {
        GPBUtil::checkBool($var);
        $this->is_breakout_room = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string webhook_url = 7 [(.buf.validate.field) = {</code>
     * @return string
     */
    public function getWebhookUrl()
    {
        return isset($this->webhook_url) ? $this->webhook_url : '';
    }

    public function hasWebhookUrl()
    {
        return isset($this->webhook_url);
    }

    public function clearWebhookUrl()
    {
        unset($this->webhook_url);
    }

    /**
     * Generated from protobuf field <code>optional string webhook_url = 7 [(.buf.validate.field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setWebhookUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->webhook_url = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 started_at = 8 [(.buf.validate.field) = {</code>
     * @return int|string
     */
    public function getStartedAt()
    {
        return $this->started_at;
    }

    /**
     * Generated from protobuf field <code>uint64 started_at = 8 [(.buf.validate.field) = {</code>
     * @param int|string $var
     * @return $this
     */
    public function setStartedAt($var)
    {
        GPBUtil::checkUint64($var);
        $this->started_at = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string logout_url = 9 [(.buf.validate.field) = {</code>
     * @return string
     */
    public function getLogoutUrl()
    {
        return isset($this->logout_url) ? $this->logout_url : '';
    }

    public function hasLogoutUrl()
    {
        return isset($this->logout_url);
    }

    public function clearLogoutUrl()
    {
        unset($this->logout_url);
    }

    /**
     * Generated from protobuf field <code>optional string logout_url = 9 [(.buf.validate.field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setLogoutUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->logout_url = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.RoomCreateFeatures room_features = 10 [(.buf.validate.field) = {</code>
     * @return \Mynaparrot\PlugnmeetProto\RoomCreateFeatures|null
     */
    public function getRoomFeatures()
    {
        return $this->room_features;
    }

    public function hasRoomFeatures()
    {
        return isset($this->room_features);
    }

    public function clearRoomFeatures()
    {
        unset($this->room_features);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.LockSettings default_lock_settings = 11;</code>
     * @return \Mynaparrot\PlugnmeetProto\LockSettings|null
     */
    public function getDefaultLockSettings()
    {
        return $this->default_lock_settings;
    }

    public function hasDefaultLockSettings()
    {
        return isset($this->default_lock_settings);
    }

    public function clearDefaultLockSettings()
    {
        unset($this->default_lock_settings);
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.LockSettings default_lock_settings = 11;</code>
     * @param \Mynaparrot\PlugnmeetProto\LockSettings $var
     * @return $this
     */
    public function setDefaultLockSettings($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\LockSettings::class);
        $this->default_lock_settings = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.CopyrightConf copyright_conf = 12;</code>
     * @return \Mynaparrot\PlugnmeetProto\CopyrightConf|null
     */
    public function getCopyrightConf()
    {
        return $this->copyright_conf;
    }

    public function hasCopyrightConf()
    {
        return isset($this->copyright_conf);
    }

    public function clearCopyrightConf()
    {
        unset($this->copyright_conf);
    }

    /**
     * Generated from protobuf field <code>.plugnmeet.CopyrightConf copyright_conf = 12;</code>
     * @param \Mynaparrot\PlugnmeetProto\CopyrightConf $var
     * @return $this
     */
    public function setCopyrightConf($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\CopyrightConf::class);
        $this->copyright_conf = $var;

        return $this;
    }

    /**
     * we'll use this as version control
     *
     * Generated from protobuf field <code>optional string metadata_id = 13 [(.buf.validate.field) = {</code>
     * @return string
     */
    public function getMetadataId()
    {
        return isset($this->metadata_id) ? $this->metadata_id : '';
    }

    public function hasMetadataId()
    {
        return isset($this->metadata_id);
    }

    public function clearMetadataId()
    {
        unset($this->metadata_id);
    }

    /**
     * we'll use this as version control
     *
     * Generated from protobuf field <code>optional string metadata_id = 13 [(.buf.validate.field) = {</code>
     * @param string $var
     * @return $this
     */
    public function setMetadataId($var)
    {
        GPBUtil::checkString($var, True);
        $this->metadata_id = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>map<string, string> extra_data = 14;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getExtraData()
    {
        return $this->extra_data;
    }

    /**
     * Generated from protobuf field <code>map<string, string> extra_data = 14;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setExtraData($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->extra_data = $arr;

        return $this;
    }

}

