<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/translate/v3/adaptive_mt.proto

namespace Google\Cloud\Translate\V3;

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

/**
 * An AdaptiveMt translation.
 *
 * Generated from protobuf message <code>google.cloud.translation.v3.AdaptiveMtTranslation</code>
 */
class AdaptiveMtTranslation extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The translated text.
     *
     * Generated from protobuf field <code>string translated_text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $translated_text = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $translated_text
     *           Output only. The translated text.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Translate\V3\AdaptiveMt::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The translated text.
     *
     * Generated from protobuf field <code>string translated_text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getTranslatedText()
    {
        return $this->translated_text;
    }

    /**
     * Output only. The translated text.
     *
     * Generated from protobuf field <code>string translated_text = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setTranslatedText($var)
    {
        GPBUtil::checkString($var, True);
        $this->translated_text = $var;

        return $this;
    }

}

