<?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.WhiteboardFeatures</code>
 */
class WhiteboardFeatures extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bool allowed_whiteboard = 1 [deprecated = true];</code>
     * @deprecated
     */
    protected $allowed_whiteboard = null;
    /**
     * Generated from protobuf field <code>bool is_allow = 9;</code>
     */
    protected $is_allow = false;
    /**
     * Generated from protobuf field <code>bool visible = 2 [(.buf.validate.field) = {</code>
     */
    protected $visible = false;
    /**
     * Generated from protobuf field <code>optional string preload_file = 3 [(.buf.validate.field) = {</code>
     */
    protected $preload_file = null;
    /**
     * Generated from protobuf field <code>string whiteboard_file_id = 4 [(.buf.validate.field) = {</code>
     */
    protected $whiteboard_file_id = '';
    /**
     * Generated from protobuf field <code>string file_name = 5 [(.buf.validate.field) = {</code>
     */
    protected $file_name = '';
    /**
     * Generated from protobuf field <code>string file_path = 6 [(.buf.validate.field) = {</code>
     */
    protected $file_path = '';
    /**
     * Generated from protobuf field <code>uint32 total_pages = 7;</code>
     */
    protected $total_pages = 0;
    /**
     * Generated from protobuf field <code>optional uint64 max_allowed_file_size = 8 [(.buf.validate.field) = {</code>
     */
    protected $max_allowed_file_size = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $allowed_whiteboard
     *     @type bool $is_allow
     *     @type bool $visible
     *     @type string $preload_file
     *     @type string $whiteboard_file_id
     *     @type string $file_name
     *     @type string $file_path
     *     @type int $total_pages
     *     @type int|string $max_allowed_file_size
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetCreateRoom::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional bool allowed_whiteboard = 1 [deprecated = true];</code>
     * @return bool
     * @deprecated
     */
    public function getAllowedWhiteboard()
    {
        if (isset($this->allowed_whiteboard)) {
            @trigger_error('allowed_whiteboard is deprecated.', E_USER_DEPRECATED);
        }
        return isset($this->allowed_whiteboard) ? $this->allowed_whiteboard : false;
    }

    public function hasAllowedWhiteboard()
    {
        if (isset($this->allowed_whiteboard)) {
            @trigger_error('allowed_whiteboard is deprecated.', E_USER_DEPRECATED);
        }
        return isset($this->allowed_whiteboard);
    }

    public function clearAllowedWhiteboard()
    {
        @trigger_error('allowed_whiteboard is deprecated.', E_USER_DEPRECATED);
        unset($this->allowed_whiteboard);
    }

    /**
     * Generated from protobuf field <code>optional bool allowed_whiteboard = 1 [deprecated = true];</code>
     * @param bool $var
     * @return $this
     * @deprecated
     */
    public function setAllowedWhiteboard($var)
    {
        @trigger_error('allowed_whiteboard is deprecated.', E_USER_DEPRECATED);
        GPBUtil::checkBool($var);
        $this->allowed_whiteboard = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_allow = 9;</code>
     * @return bool
     */
    public function getIsAllow()
    {
        return $this->is_allow;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

    public function hasPreloadFile()
    {
        return isset($this->preload_file);
    }

    public function clearPreloadFile()
    {
        unset($this->preload_file);
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 total_pages = 7;</code>
     * @return int
     */
    public function getTotalPages()
    {
        return $this->total_pages;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 max_allowed_file_size = 8 [(.buf.validate.field) = {</code>
     * @return int|string
     */
    public function getMaxAllowedFileSize()
    {
        return isset($this->max_allowed_file_size) ? $this->max_allowed_file_size : 0;
    }

    public function hasMaxAllowedFileSize()
    {
        return isset($this->max_allowed_file_size);
    }

    public function clearMaxAllowedFileSize()
    {
        unset($this->max_allowed_file_size);
    }

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

        return $this;
    }

}

