<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/automl/v1beta1/translation.proto

namespace Google\Cloud\AutoMl\V1beta1;

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

/**
 * Dataset metadata that is specific to translation.
 *
 * Generated from protobuf message <code>google.cloud.automl.v1beta1.TranslationDatasetMetadata</code>
 */
class TranslationDatasetMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The BCP-47 language code of the source language.
     *
     * Generated from protobuf field <code>string source_language_code = 1;</code>
     */
    private $source_language_code = '';
    /**
     * Required. The BCP-47 language code of the target language.
     *
     * Generated from protobuf field <code>string target_language_code = 2;</code>
     */
    private $target_language_code = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $source_language_code
     *           Required. The BCP-47 language code of the source language.
     *     @type string $target_language_code
     *           Required. The BCP-47 language code of the target language.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Automl\V1Beta1\Translation::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The BCP-47 language code of the source language.
     *
     * Generated from protobuf field <code>string source_language_code = 1;</code>
     * @return string
     */
    public function getSourceLanguageCode()
    {
        return $this->source_language_code;
    }

    /**
     * Required. The BCP-47 language code of the source language.
     *
     * Generated from protobuf field <code>string source_language_code = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setSourceLanguageCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->source_language_code = $var;

        return $this;
    }

    /**
     * Required. The BCP-47 language code of the target language.
     *
     * Generated from protobuf field <code>string target_language_code = 2;</code>
     * @return string
     */
    public function getTargetLanguageCode()
    {
        return $this->target_language_code;
    }

    /**
     * Required. The BCP-47 language code of the target language.
     *
     * Generated from protobuf field <code>string target_language_code = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setTargetLanguageCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->target_language_code = $var;

        return $this;
    }

}

