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

namespace Google\Cloud\CloudDms\V1;

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

/**
 * Request message for 'VerifyMigrationJob' request.
 *
 * Generated from protobuf message <code>google.cloud.clouddms.v1.VerifyMigrationJobRequest</code>
 */
class VerifyMigrationJobRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Name of the migration job resource to verify.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.resource_reference) = {</code>
     */
    protected $name = '';
    /**
     * Optional. Field mask is used to specify the changed fields to be verified.
     * It will not update the migration job.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $update_mask = null;
    /**
     * Optional. The changed migration job parameters to verify.
     * It will not update the migration job.
     *
     * Generated from protobuf field <code>.google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $migration_job = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Name of the migration job resource to verify.
     *     @type \Google\Protobuf\FieldMask $update_mask
     *           Optional. Field mask is used to specify the changed fields to be verified.
     *           It will not update the migration job.
     *     @type \Google\Cloud\CloudDms\V1\MigrationJob $migration_job
     *           Optional. The changed migration job parameters to verify.
     *           It will not update the migration job.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Clouddms\V1\Clouddms::initOnce();
        parent::__construct($data);
    }

    /**
     * Name of the migration job resource to verify.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Name of the migration job resource to verify.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Optional. Field mask is used to specify the changed fields to be verified.
     * It will not update the migration job.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\FieldMask|null
     */
    public function getUpdateMask()
    {
        return $this->update_mask;
    }

    public function hasUpdateMask()
    {
        return isset($this->update_mask);
    }

    public function clearUpdateMask()
    {
        unset($this->update_mask);
    }

    /**
     * Optional. Field mask is used to specify the changed fields to be verified.
     * It will not update the migration job.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Protobuf\FieldMask $var
     * @return $this
     */
    public function setUpdateMask($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
        $this->update_mask = $var;

        return $this;
    }

    /**
     * Optional. The changed migration job parameters to verify.
     * It will not update the migration job.
     *
     * Generated from protobuf field <code>.google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Cloud\CloudDms\V1\MigrationJob|null
     */
    public function getMigrationJob()
    {
        return $this->migration_job;
    }

    public function hasMigrationJob()
    {
        return isset($this->migration_job);
    }

    public function clearMigrationJob()
    {
        unset($this->migration_job);
    }

    /**
     * Optional. The changed migration job parameters to verify.
     * It will not update the migration job.
     *
     * Generated from protobuf field <code>.google.cloud.clouddms.v1.MigrationJob migration_job = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\CloudDms\V1\MigrationJob $var
     * @return $this
     */
    public function setMigrationJob($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\CloudDms\V1\MigrationJob::class);
        $this->migration_job = $var;

        return $this;
    }

}

