<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: plugnmeet_insights.proto

namespace Mynaparrot\PlugnmeetProto;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Generated from protobuf message <code>plugnmeet.InsightsChatTranslationConfigReq</code>
 */
class InsightsChatTranslationConfigReq extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>bool is_enabled = 1;</code>
     */
    protected $is_enabled = false;
    /**
     * Generated from protobuf field <code>repeated string allowed_trans_langs = 5;</code>
     */
    private $allowed_trans_langs;
    /**
     * Generated from protobuf field <code>optional string default_lang = 6;</code>
     */
    protected $default_lang = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $is_enabled
     *     @type string[] $allowed_trans_langs
     *     @type string $default_lang
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetInsights::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>bool is_enabled = 1;</code>
     * @return bool
     */
    public function getIsEnabled()
    {
        return $this->is_enabled;
    }

    /**
     * Generated from protobuf field <code>bool is_enabled = 1;</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 = 5;</code>
     * @return RepeatedField<string>
     */
    public function getAllowedTransLangs()
    {
        return $this->allowed_trans_langs;
    }

    /**
     * Generated from protobuf field <code>repeated string allowed_trans_langs = 5;</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>optional string default_lang = 6;</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 = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setDefaultLang($var)
    {
        GPBUtil::checkString($var, True);
        $this->default_lang = $var;

        return $this;
    }

}

