<?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.InsightsAITextChatFeatures</code>
 */
class InsightsAITextChatFeatures extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>bool is_allow = 1;</code>
     */
    protected $is_allow = false;
    /**
     * all internal usage fields
     *
     * Generated from protobuf field <code>bool is_enabled = 2 [(.buf.validate.field) = {</code>
     */
    protected $is_enabled = false;
    /**
     * Generated from protobuf field <code>bool is_allowed_everyone = 3 [(.buf.validate.field) = {</code>
     */
    protected $is_allowed_everyone = false;
    /**
     * Generated from protobuf field <code>repeated string allowed_user_ids = 4 [(.buf.validate.field) = {</code>
     */
    private $allowed_user_ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $is_allow
     *     @type bool $is_enabled
     *           all internal usage fields
     *     @type bool $is_allowed_everyone
     *     @type string[] $allowed_user_ids
     * }
     */
    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;
    }

    /**
     * all internal usage fields
     *
     * Generated from protobuf field <code>bool is_enabled = 2 [(.buf.validate.field) = {</code>
     * @return bool
     */
    public function getIsEnabled()
    {
        return $this->is_enabled;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

}

