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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.RecorderBotOptions</code>
 */
class RecorderBotOptions extends \Google\Protobuf\Internal\Message
{
    /**
     * if true, chat panel will be closed automatically after a certain duration
     *
     * Generated from protobuf field <code>bool enable_auto_close_chat_panel = 1;</code>
     */
    protected $enable_auto_close_chat_panel = false;
    /**
     * duration in seconds. After this duration, the chat panel will be closed.
     *
     * Generated from protobuf field <code>optional uint32 duration_after_last_message = 2;</code>
     */
    protected $duration_after_last_message = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $enable_auto_close_chat_panel
     *           if true, chat panel will be closed automatically after a certain duration
     *     @type int $duration_after_last_message
     *           duration in seconds. After this duration, the chat panel will be closed.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetRecording::initOnce();
        parent::__construct($data);
    }

    /**
     * if true, chat panel will be closed automatically after a certain duration
     *
     * Generated from protobuf field <code>bool enable_auto_close_chat_panel = 1;</code>
     * @return bool
     */
    public function getEnableAutoCloseChatPanel()
    {
        return $this->enable_auto_close_chat_panel;
    }

    /**
     * if true, chat panel will be closed automatically after a certain duration
     *
     * Generated from protobuf field <code>bool enable_auto_close_chat_panel = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableAutoCloseChatPanel($var)
    {
        GPBUtil::checkBool($var);
        $this->enable_auto_close_chat_panel = $var;

        return $this;
    }

    /**
     * duration in seconds. After this duration, the chat panel will be closed.
     *
     * Generated from protobuf field <code>optional uint32 duration_after_last_message = 2;</code>
     * @return int
     */
    public function getDurationAfterLastMessage()
    {
        return isset($this->duration_after_last_message) ? $this->duration_after_last_message : 0;
    }

    public function hasDurationAfterLastMessage()
    {
        return isset($this->duration_after_last_message);
    }

    public function clearDurationAfterLastMessage()
    {
        unset($this->duration_after_last_message);
    }

    /**
     * duration in seconds. After this duration, the chat panel will be closed.
     *
     * Generated from protobuf field <code>optional uint32 duration_after_last_message = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setDurationAfterLastMessage($var)
    {
        GPBUtil::checkUint32($var);
        $this->duration_after_last_message = $var;

        return $this;
    }

}

