<?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.InsightsTextTranslationResult</code>
 */
class InsightsTextTranslationResult extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string source_text = 1;</code>
     */
    protected $source_text = '';
    /**
     * Generated from protobuf field <code>string source_lang = 2;</code>
     */
    protected $source_lang = '';
    /**
     * map of lang_code -> translated_text
     *
     * Generated from protobuf field <code>map<string, string> translations = 3;</code>
     */
    private $translations;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $source_text
     *     @type string $source_lang
     *     @type array|\Google\Protobuf\Internal\MapField $translations
     *           map of lang_code -> translated_text
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetInsights::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * map of lang_code -> translated_text
     *
     * Generated from protobuf field <code>map<string, string> translations = 3;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getTranslations()
    {
        return $this->translations;
    }

    /**
     * map of lang_code -> translated_text
     *
     * Generated from protobuf field <code>map<string, string> translations = 3;</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;
    }

}

