<?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.ChatFeatures</code>
 */
class ChatFeatures extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional bool allow_chat = 1 [deprecated = true];</code>
     * @deprecated
     */
    protected $allow_chat = null;
    /**
     * Generated from protobuf field <code>optional bool allow_file_upload = 2 [deprecated = true];</code>
     * @deprecated
     */
    protected $allow_file_upload = null;
    /**
     * Generated from protobuf field <code>bool is_allow = 5;</code>
     */
    protected $is_allow = false;
    /**
     * Generated from protobuf field <code>bool is_allow_file_upload = 6;</code>
     */
    protected $is_allow_file_upload = false;
    /**
     * Generated from protobuf field <code>repeated string allowed_file_types = 3;</code>
     */
    private $allowed_file_types;
    /**
     * Generated from protobuf field <code>optional uint64 max_file_size = 4;</code>
     */
    protected $max_file_size = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $allow_chat
     *     @type bool $allow_file_upload
     *     @type bool $is_allow
     *     @type bool $is_allow_file_upload
     *     @type string[] $allowed_file_types
     *     @type int|string $max_file_size
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetCreateRoom::initOnce();
        parent::__construct($data);
    }

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

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

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>bool is_allow = 5;</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 is_allow_file_upload = 6;</code>
     * @return bool
     */
    public function getIsAllowFileUpload()
    {
        return $this->is_allow_file_upload;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated string allowed_file_types = 3;</code>
     * @return RepeatedField<string>
     */
    public function getAllowedFileTypes()
    {
        return $this->allowed_file_types;
    }

    /**
     * Generated from protobuf field <code>repeated string allowed_file_types = 3;</code>
     * @param string[] $var
     * @return $this
     */
    public function setAllowedFileTypes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->allowed_file_types = $arr;

        return $this;
    }

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

    public function hasMaxFileSize()
    {
        return isset($this->max_file_size);
    }

    public function clearMaxFileSize()
    {
        unset($this->max_file_size);
    }

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

        return $this;
    }

}

