<?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.InsightsChatTranslationFeatures</code>
 */
class InsightsChatTranslationFeatures 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>repeated string allowed_trans_langs = 3 [(.buf.validate.field) = {</code>
     */
    private $allowed_trans_langs;
    /**
     * Generated from protobuf field <code>int32 max_selected_trans_langs = 4 [(.buf.validate.field) = {</code>
     */
    protected $max_selected_trans_langs = 0;
    /**
     * Generated from protobuf field <code>optional string default_lang = 5 [(.buf.validate.field) = {</code>
     */
    protected $default_lang = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $is_allow
     *     @type bool $is_enabled
     *           all internal usage fields
     *     @type string[] $allowed_trans_langs
     *     @type int $max_selected_trans_langs
     *     @type string $default_lang
     * }
     */
    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>repeated string allowed_trans_langs = 3 [(.buf.validate.field) = {</code>
     * @return RepeatedField<string>
     */
    public function getAllowedTransLangs()
    {
        return $this->allowed_trans_langs;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 max_selected_trans_langs = 4 [(.buf.validate.field) = {</code>
     * @return int
     */
    public function getMaxSelectedTransLangs()
    {
        return $this->max_selected_trans_langs;
    }

    /**
     * Generated from protobuf field <code>int32 max_selected_trans_langs = 4 [(.buf.validate.field) = {</code>
     * @param int $var
     * @return $this
     */
    public function setMaxSelectedTransLangs($var)
    {
        GPBUtil::checkInt32($var);
        $this->max_selected_trans_langs = $var;

        return $this;
    }

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

    public function hasDefaultLang()
    {
        return isset($this->default_lang);
    }

    public function clearDefaultLang()
    {
        unset($this->default_lang);
    }

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

        return $this;
    }

}

