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

namespace Mynaparrot\PlugnmeetProto;

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

/**
 * Generated from protobuf message <code>plugnmeet.SpeechToTextTranslationReq</code>
 */
class SpeechToTextTranslationReq extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string room_id = 1;</code>
     */
    protected $room_id = '';
    /**
     * Generated from protobuf field <code>bool is_enabled = 3;</code>
     */
    protected $is_enabled = false;
    /**
     * Generated from protobuf field <code>repeated string allowed_speech_langs = 4;</code>
     */
    private $allowed_speech_langs;
    /**
     * Generated from protobuf field <code>repeated string allowed_speech_users = 5;</code>
     */
    private $allowed_speech_users;
    /**
     * Generated from protobuf field <code>bool is_enabled_translation = 6;</code>
     */
    protected $is_enabled_translation = false;
    /**
     * Generated from protobuf field <code>repeated string allowed_trans_langs = 7;</code>
     */
    private $allowed_trans_langs;
    /**
     * Generated from protobuf field <code>optional string default_subtitle_lang = 8;</code>
     */
    protected $default_subtitle_lang = null;

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

    /**
     * Generated from protobuf field <code>string room_id = 1;</code>
     * @return string
     */
    public function getRoomId()
    {
        return $this->room_id;
    }

    /**
     * Generated from protobuf field <code>string room_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setRoomId($var)
    {
        GPBUtil::checkString($var, True);
        $this->room_id = $var;

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>bool is_enabled = 3;</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_speech_langs = 4;</code>
     * @return RepeatedField<string>
     */
    public function getAllowedSpeechLangs()
    {
        return $this->allowed_speech_langs;
    }

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

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

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

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

        return $this;
    }

}

