<?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>bool is_allow = 1;</code>
     */
    protected $is_allow = false;
    /**
     * Generated from protobuf field <code>bool is_allow_file_upload = 2;</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 $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>bool is_allow = 1;</code>
     * @return bool
     */
    public function getIsAllow()
    {
        return $this->is_allow;
    }

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

    /**
     * Generated from protobuf field <code>bool is_allow_file_upload = 2;</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;
    }

}

