<?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.InsightsTranslateTextReq</code>
 */
class InsightsTranslateTextReq extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string text = 1;</code>
     */
    protected $text = '';
    /**
     * Generated from protobuf field <code>string source_lang = 2;</code>
     */
    protected $source_lang = '';
    /**
     * Generated from protobuf field <code>repeated string target_langs = 3;</code>
     */
    private $target_langs;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $text
     *     @type string $source_lang
     *     @type string[] $target_langs
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetInsights::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>string text = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setText($var)
    {
        GPBUtil::checkString($var, True);
        $this->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;
    }

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

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

        return $this;
    }

}

