<?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;

/**
 * deprecated use insights_features
 *
 * Generated from protobuf message <code>plugnmeet.SpeechToTextTranslationFeatures</code>
 */
class SpeechToTextTranslationFeatures 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_enabled = 3 [(.buf.validate.field) = {</code>
     */
    protected $is_enabled = false;
    /**
     * Generated from protobuf field <code>bool is_enabled_translation = 4 [(.buf.validate.field) = {</code>
     */
    protected $is_enabled_translation = false;
    /**
     * Generated from protobuf field <code>int32 max_num_tran_langs_allow_selecting = 11;</code>
     */
    protected $max_num_tran_langs_allow_selecting = 0;
    /**
     * Generated from protobuf field <code>repeated string allowed_speech_langs = 7 [(.buf.validate.field) = {</code>
     */
    private $allowed_speech_langs;
    /**
     * Generated from protobuf field <code>repeated string allowed_speech_users = 8 [(.buf.validate.field) = {</code>
     */
    private $allowed_speech_users;
    /**
     * Generated from protobuf field <code>repeated string allowed_trans_langs = 9 [(.buf.validate.field) = {</code>
     */
    private $allowed_trans_langs;
    /**
     * next ID: 12
     *
     * Generated from protobuf field <code>optional string default_subtitle_lang = 10 [(.buf.validate.field) = {</code>
     */
    protected $default_subtitle_lang = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $is_allow
     *     @type bool $is_allow_translation
     *     @type bool $is_enabled
     *     @type bool $is_enabled_translation
     *     @type int $max_num_tran_langs_allow_selecting
     *     @type string[] $allowed_speech_langs
     *     @type string[] $allowed_speech_users
     *     @type string[] $allowed_trans_langs
     *     @type string $default_subtitle_lang
     *           next ID: 12
     * }
     */
    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_enabled = 3 [(.buf.validate.field) = {</code>
     * @return bool
     */
    public function getIsEnabled()
    {
        return $this->is_enabled;
    }

    /**
     * Generated from protobuf field <code>bool is_enabled = 3 [(.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_enabled_translation = 4 [(.buf.validate.field) = {</code>
     * @return bool
     */
    public function getIsEnabledTranslation()
    {
        return $this->is_enabled_translation;
    }

    /**
     * Generated from protobuf field <code>bool is_enabled_translation = 4 [(.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_num_tran_langs_allow_selecting = 11;</code>
     * @return int
     */
    public function getMaxNumTranLangsAllowSelecting()
    {
        return $this->max_num_tran_langs_allow_selecting;
    }

    /**
     * Generated from protobuf field <code>int32 max_num_tran_langs_allow_selecting = 11;</code>
     * @param int $var
     * @return $this
     */
    public function setMaxNumTranLangsAllowSelecting($var)
    {
        GPBUtil::checkInt32($var);
        $this->max_num_tran_langs_allow_selecting = $var;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated string allowed_speech_users = 8 [(.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 = 8 [(.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>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;
    }

    /**
     * next ID: 12
     *
     * 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);
    }

    /**
     * next ID: 12
     *
     * 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;
    }

}

