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

namespace Google\Cloud\MigrationCenter\V1;

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

/**
 * Compute engine migration target.
 *
 * Generated from protobuf message <code>google.cloud.migrationcenter.v1.ComputeEngineMigrationTarget</code>
 */
class ComputeEngineMigrationTarget extends \Google\Protobuf\Internal\Message
{
    /**
     * Description of the suggested shape for the migration target.
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.ComputeEngineShapeDescriptor shape = 1;</code>
     */
    protected $shape = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\MigrationCenter\V1\ComputeEngineShapeDescriptor $shape
     *           Description of the suggested shape for the migration target.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Migrationcenter\V1\Migrationcenter::initOnce();
        parent::__construct($data);
    }

    /**
     * Description of the suggested shape for the migration target.
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.ComputeEngineShapeDescriptor shape = 1;</code>
     * @return \Google\Cloud\MigrationCenter\V1\ComputeEngineShapeDescriptor|null
     */
    public function getShape()
    {
        return $this->shape;
    }

    public function hasShape()
    {
        return isset($this->shape);
    }

    public function clearShape()
    {
        unset($this->shape);
    }

    /**
     * Description of the suggested shape for the migration target.
     *
     * Generated from protobuf field <code>.google.cloud.migrationcenter.v1.ComputeEngineShapeDescriptor shape = 1;</code>
     * @param \Google\Cloud\MigrationCenter\V1\ComputeEngineShapeDescriptor $var
     * @return $this
     */
    public function setShape($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\MigrationCenter\V1\ComputeEngineShapeDescriptor::class);
        $this->shape = $var;

        return $this;
    }

}

