<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * 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;

    /**
     * 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.
     * }
     */
    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;
    }

}

