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

namespace Google\Cloud\DataCatalog\V1;

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

/**
 * The configuration related to the migration to Dataplex applied to an
 * organization or project.
 * It is the response message for
 * [SetConfig][google.cloud.datacatalog.v1.DataCatalog.SetConfig] and
 * [RetrieveEffectiveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveEffectiveConfig].
 *
 * Generated from protobuf message <code>google.cloud.datacatalog.v1.MigrationConfig</code>
 */
class MigrationConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Opt-in status for the migration of Tag Templates to Dataplex.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1;</code>
     */
    protected $tag_template_migration = 0;
    /**
     * Opt-in status for the UI switch to Dataplex.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2;</code>
     */
    protected $catalog_ui_experience = 0;
    /**
     * The time when the Tag Template migration was enabled.
     * If the Tag Template migration is not enabled, this field is not set.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp template_migration_enabled_time = 3;</code>
     */
    protected $template_migration_enabled_time = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $tag_template_migration
     *           Opt-in status for the migration of Tag Templates to Dataplex.
     *     @type int $catalog_ui_experience
     *           Opt-in status for the UI switch to Dataplex.
     *     @type \Google\Protobuf\Timestamp $template_migration_enabled_time
     *           The time when the Tag Template migration was enabled.
     *           If the Tag Template migration is not enabled, this field is not set.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce();
        parent::__construct($data);
    }

    /**
     * Opt-in status for the migration of Tag Templates to Dataplex.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1;</code>
     * @return int
     */
    public function getTagTemplateMigration()
    {
        return $this->tag_template_migration;
    }

    /**
     * Opt-in status for the migration of Tag Templates to Dataplex.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setTagTemplateMigration($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\TagTemplateMigration::class);
        $this->tag_template_migration = $var;

        return $this;
    }

    /**
     * Opt-in status for the UI switch to Dataplex.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2;</code>
     * @return int
     */
    public function getCatalogUiExperience()
    {
        return $this->catalog_ui_experience;
    }

    /**
     * Opt-in status for the UI switch to Dataplex.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setCatalogUiExperience($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\DataCatalog\V1\CatalogUIExperience::class);
        $this->catalog_ui_experience = $var;

        return $this;
    }

    /**
     * The time when the Tag Template migration was enabled.
     * If the Tag Template migration is not enabled, this field is not set.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp template_migration_enabled_time = 3;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getTemplateMigrationEnabledTime()
    {
        return $this->template_migration_enabled_time;
    }

    public function hasTemplateMigrationEnabledTime()
    {
        return isset($this->template_migration_enabled_time);
    }

    public function clearTemplateMigrationEnabledTime()
    {
        unset($this->template_migration_enabled_time);
    }

    /**
     * The time when the Tag Template migration was enabled.
     * If the Tag Template migration is not enabled, this field is not set.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp template_migration_enabled_time = 3;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setTemplateMigrationEnabledTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->template_migration_enabled_time = $var;

        return $this;
    }

}

