<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/bigquery/migration/v2/translation_config.proto

namespace Google\Cloud\BigQuery\Migration\V2;

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

/**
 * The dialect definition for Teradata.
 *
 * Generated from protobuf message <code>google.cloud.bigquery.migration.v2.TeradataDialect</code>
 */
class TeradataDialect extends \Google\Protobuf\Internal\Message
{
    /**
     * Which Teradata sub-dialect mode the user specifies.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1;</code>
     */
    private $mode = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $mode
     *           Which Teradata sub-dialect mode the user specifies.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\TranslationConfig::initOnce();
        parent::__construct($data);
    }

    /**
     * Which Teradata sub-dialect mode the user specifies.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1;</code>
     * @return int
     */
    public function getMode()
    {
        return $this->mode;
    }

    /**
     * Which Teradata sub-dialect mode the user specifies.
     *
     * Generated from protobuf field <code>.google.cloud.bigquery.migration.v2.TeradataDialect.Mode mode = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setMode($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\BigQuery\Migration\V2\TeradataDialect\Mode::class);
        $this->mode = $var;

        return $this;
    }

}

