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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Describes a successfully migrated resource.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.MigrateResourceResponse</code>
 */
class MigrateResourceResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Before migration, the identifier in ml.googleapis.com,
     * automl.googleapis.com or datalabeling.googleapis.com.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.MigratableResource migratable_resource = 3;</code>
     */
    private $migratable_resource = null;
    protected $migrated_resource;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $dataset
     *           Migrated Dataset's resource name.
     *     @type string $model
     *           Migrated Model's resource name.
     *     @type \Google\Cloud\AIPlatform\V1\MigratableResource $migratable_resource
     *           Before migration, the identifier in ml.googleapis.com,
     *           automl.googleapis.com or datalabeling.googleapis.com.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\MigrationService::initOnce();
        parent::__construct($data);
    }

    /**
     * Migrated Dataset's resource name.
     *
     * Generated from protobuf field <code>string dataset = 1 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getDataset()
    {
        return $this->readOneof(1);
    }

    public function hasDataset()
    {
        return $this->hasOneof(1);
    }

    /**
     * Migrated Dataset's resource name.
     *
     * Generated from protobuf field <code>string dataset = 1 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setDataset($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Migrated Model's resource name.
     *
     * Generated from protobuf field <code>string model = 2 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getModel()
    {
        return $this->readOneof(2);
    }

    public function hasModel()
    {
        return $this->hasOneof(2);
    }

    /**
     * Migrated Model's resource name.
     *
     * Generated from protobuf field <code>string model = 2 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setModel($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Before migration, the identifier in ml.googleapis.com,
     * automl.googleapis.com or datalabeling.googleapis.com.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.MigratableResource migratable_resource = 3;</code>
     * @return \Google\Cloud\AIPlatform\V1\MigratableResource|null
     */
    public function getMigratableResource()
    {
        return $this->migratable_resource;
    }

    public function hasMigratableResource()
    {
        return isset($this->migratable_resource);
    }

    public function clearMigratableResource()
    {
        unset($this->migratable_resource);
    }

    /**
     * Before migration, the identifier in ml.googleapis.com,
     * automl.googleapis.com or datalabeling.googleapis.com.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.MigratableResource migratable_resource = 3;</code>
     * @param \Google\Cloud\AIPlatform\V1\MigratableResource $var
     * @return $this
     */
    public function setMigratableResource($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\MigratableResource::class);
        $this->migratable_resource = $var;

        return $this;
    }

    /**
     * @return string
     */
    public function getMigratedResource()
    {
        return $this->whichOneof("migrated_resource");
    }

}

