<?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.InsightsTranscriptionResult</code>
 */
class InsightsTranscriptionResult extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string from_user_id = 1;</code>
     */
    protected $from_user_id = '';
    /**
     * Generated from protobuf field <code>string from_user_name = 2;</code>
     */
    protected $from_user_name = '';
    /**
     * Generated from protobuf field <code>string lang = 3;</code>
     */
    protected $lang = '';
    /**
     * Generated from protobuf field <code>string text = 4;</code>
     */
    protected $text = '';
    /**
     * Generated from protobuf field <code>bool is_partial = 5;</code>
     */
    protected $is_partial = false;
    /**
     * Generated from protobuf field <code>bool allowed_transcription_storage = 6;</code>
     */
    protected $allowed_transcription_storage = false;
    /**
     * A map of target language -> translated text
     *
     * Generated from protobuf field <code>map<string, string> translations = 7;</code>
     */
    private $translations;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $from_user_id
     *     @type string $from_user_name
     *     @type string $lang
     *     @type string $text
     *     @type bool $is_partial
     *     @type bool $allowed_transcription_storage
     *     @type array|\Google\Protobuf\Internal\MapField $translations
     *           A map of target language -> translated text
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetInsights::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string from_user_name = 2;</code>
     * @return string
     */
    public function getFromUserName()
    {
        return $this->from_user_name;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string lang = 3;</code>
     * @return string
     */
    public function getLang()
    {
        return $this->lang;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string text = 4;</code>
     * @return string
     */
    public function getText()
    {
        return $this->text;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool is_partial = 5;</code>
     * @return bool
     */
    public function getIsPartial()
    {
        return $this->is_partial;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool allowed_transcription_storage = 6;</code>
     * @return bool
     */
    public function getAllowedTranscriptionStorage()
    {
        return $this->allowed_transcription_storage;
    }

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

        return $this;
    }

    /**
     * A map of target language -> translated text
     *
     * Generated from protobuf field <code>map<string, string> translations = 7;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getTranslations()
    {
        return $this->translations;
    }

    /**
     * A map of target language -> translated text
     *
     * Generated from protobuf field <code>map<string, string> translations = 7;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setTranslations($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->translations = $arr;

        return $this;
    }

}

