<?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.InsightsTranscriptionFeatures</code>
 */
class InsightsTranscriptionFeatures 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_translation = 2;</code>
     */
    protected $is_allow_translation = false;
    /**
     * Generated from protobuf field <code>bool is_allow_speech_synthesis = 3;</code>
     */
    protected $is_allow_speech_synthesis = false;
    /**
     * all internal usage fields
     *
     * Generated from protobuf field <code>bool is_enabled = 4 [(.buf.validate.field) = {</code>
     */
    protected $is_enabled = false;
    /**
     * Generated from protobuf field <code>repeated string allowed_spoken_langs = 5 [(.buf.validate.field) = {</code>
     */
    private $allowed_spoken_langs;
    /**
     * Generated from protobuf field <code>repeated string allowed_speech_users = 6 [(.buf.validate.field) = {</code>
     */
    private $allowed_speech_users;
    /**
     * Generated from protobuf field <code>bool is_enabled_translation = 7 [(.buf.validate.field) = {</code>
     */
    protected $is_enabled_translation = false;
    /**
     * Generated from protobuf field <code>int32 max_selected_trans_langs = 8 [(.buf.validate.field) = {</code>
     */
    protected $max_selected_trans_langs = 0;
    /**
     * Generated from protobuf field <code>repeated string allowed_trans_langs = 9 [(.buf.validate.field) = {</code>
     */
    private $allowed_trans_langs;
    /**
     * Generated from protobuf field <code>optional string default_subtitle_lang = 10 [(.buf.validate.field) = {</code>
     */
    protected $default_subtitle_lang = null;
    /**
     * Generated from protobuf field <code>bool is_enabled_speech_synthesis = 11 [(.buf.validate.field) = {</code>
     */
    protected $is_enabled_speech_synthesis = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $is_allow
     *     @type bool $is_allow_translation
     *     @type bool $is_allow_speech_synthesis
     *     @type bool $is_enabled
     *           all internal usage fields
     *     @type string[] $allowed_spoken_langs
     *     @type string[] $allowed_speech_users
     *     @type bool $is_enabled_translation
     *     @type int $max_selected_trans_langs
     *     @type string[] $allowed_trans_langs
     *     @type string $default_subtitle_lang
     *     @type bool $is_enabled_speech_synthesis
     * }
     */
    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_translation = 2;</code>
     * @return bool
     */
    public function getIsAllowTranslation()
    {
        return $this->is_allow_translation;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_allow_speech_synthesis = 3;</code>
     * @return bool
     */
    public function getIsAllowSpeechSynthesis()
    {
        return $this->is_allow_speech_synthesis;
    }

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

        return $this;
    }

    /**
     * all internal usage fields
     *
     * Generated from protobuf field <code>bool is_enabled = 4 [(.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 = 4 [(.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_spoken_langs = 5 [(.buf.validate.field) = {</code>
     * @return RepeatedField<string>
     */
    public function getAllowedSpokenLangs()
    {
        return $this->allowed_spoken_langs;
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 max_selected_trans_langs = 8 [(.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 = 8 [(.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>repeated string allowed_trans_langs = 9 [(.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 = 9 [(.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>optional string default_subtitle_lang = 10 [(.buf.validate.field) = {</code>
     * @return string
     */
    public function getDefaultSubtitleLang()
    {
        return isset($this->default_subtitle_lang) ? $this->default_subtitle_lang : '';
    }

    public function hasDefaultSubtitleLang()
    {
        return isset($this->default_subtitle_lang);
    }

    public function clearDefaultSubtitleLang()
    {
        unset($this->default_subtitle_lang);
    }

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

        return $this;
    }

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

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

        return $this;
    }

}

