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

namespace Google\Cloud\DataCatalog\Lineage\V1;

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

/**
 * Request message for
 * [UpdateRun][google.cloud.datacatalog.lineage.v1.UpdateRun].
 *
 * Generated from protobuf message <code>google.cloud.datacatalog.lineage.v1.UpdateRunRequest</code>
 */
class UpdateRunRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The lineage run to update.
     * The run's `name` field is used to identify the run to update.
     * Format:
     * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.lineage.v1.Run run = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $run = null;
    /**
     * The list of fields to update. Currently not used. The whole message is
     * updated.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     */
    protected $update_mask = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\DataCatalog\Lineage\V1\Run $run
     *           Required. The lineage run to update.
     *           The run's `name` field is used to identify the run to update.
     *           Format:
     *           `projects/{project}/locations/{location}/processes/{process}/runs/{run}`.
     *     @type \Google\Protobuf\FieldMask $update_mask
     *           The list of fields to update. Currently not used. The whole message is
     *           updated.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The lineage run to update.
     * The run's `name` field is used to identify the run to update.
     * Format:
     * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.lineage.v1.Run run = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\DataCatalog\Lineage\V1\Run|null
     */
    public function getRun()
    {
        return $this->run;
    }

    public function hasRun()
    {
        return isset($this->run);
    }

    public function clearRun()
    {
        unset($this->run);
    }

    /**
     * Required. The lineage run to update.
     * The run's `name` field is used to identify the run to update.
     * Format:
     * `projects/{project}/locations/{location}/processes/{process}/runs/{run}`.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.lineage.v1.Run run = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\DataCatalog\Lineage\V1\Run $var
     * @return $this
     */
    public function setRun($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\Lineage\V1\Run::class);
        $this->run = $var;

        return $this;
    }

    /**
     * The list of fields to update. Currently not used. The whole message is
     * updated.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</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);
    }

    /**
     * The list of fields to update. Currently not used. The whole message is
     * updated.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</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;
    }

}

