<?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.InsightsTranscriptionConfigReq</code>
 */
class InsightsTranscriptionConfigReq 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_spoken_langs = 2;</code>
     */
    private $allowed_spoken_langs;
    /**
     * Generated from protobuf field <code>repeated string allowed_speech_users = 3;</code>
     */
    private $allowed_speech_users;
    /**
     * Generated from protobuf field <code>bool is_enabled_translation = 4;</code>
     */
    protected $is_enabled_translation = 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_subtitle_lang = 6;</code>
     */
    protected $default_subtitle_lang = null;
    /**
     * Generated from protobuf field <code>bool is_enabled_speech_synthesis = 7;</code>
     */
    protected $is_enabled_speech_synthesis = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $is_enabled
     *     @type string[] $allowed_spoken_langs
     *     @type string[] $allowed_speech_users
     *     @type bool $is_enabled_translation
     *     @type string[] $allowed_trans_langs
     *     @type string $default_subtitle_lang
     *     @type bool $is_enabled_speech_synthesis
     * }
     */
    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_spoken_langs = 2;</code>
     * @return RepeatedField<string>
     */
    public function getAllowedSpokenLangs()
    {
        return $this->allowed_spoken_langs;
    }

    /**
     * Generated from protobuf field <code>repeated string allowed_spoken_langs = 2;</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 = 3;</code>
     * @return RepeatedField<string>
     */
    public function getAllowedSpeechUsers()
    {
        return $this->allowed_speech_users;
    }

    /**
     * Generated from protobuf field <code>repeated string allowed_speech_users = 3;</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 = 4;</code>
     * @return bool
     */
    public function getIsEnabledTranslation()
    {
        return $this->is_enabled_translation;
    }

    /**
     * Generated from protobuf field <code>bool is_enabled_translation = 4;</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>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_subtitle_lang = 6;</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 = 6;</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 = 7;</code>
     * @return bool
     */
    public function getIsEnabledSpeechSynthesis()
    {
        return $this->is_enabled_speech_synthesis;
    }

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

        return $this;
    }

}

