<?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
 * [UpdateProcess][google.cloud.datacatalog.lineage.v1.UpdateProcess].
 *
 * Generated from protobuf message <code>google.cloud.datacatalog.lineage.v1.UpdateProcessRequest</code>
 */
class UpdateProcessRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The lineage process to update.
     * The process's `name` field is used to identify the process to update.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.lineage.v1.Process process = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $process = 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;
    /**
     * If set to true and the process is not found, the request inserts it.
     *
     * Generated from protobuf field <code>bool allow_missing = 3;</code>
     */
    protected $allow_missing = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\DataCatalog\Lineage\V1\Process $process
     *           Required. The lineage process to update.
     *           The process's `name` field is used to identify the process to update.
     *     @type \Google\Protobuf\FieldMask $update_mask
     *           The list of fields to update. Currently not used. The whole message is
     *           updated.
     *     @type bool $allow_missing
     *           If set to true and the process is not found, the request inserts it.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datacatalog\Lineage\V1\Lineage::initOnce();
        parent::__construct($data);
    }

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

    public function hasProcess()
    {
        return isset($this->process);
    }

    public function clearProcess()
    {
        unset($this->process);
    }

    /**
     * Required. The lineage process to update.
     * The process's `name` field is used to identify the process to update.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.lineage.v1.Process process = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\DataCatalog\Lineage\V1\Process $var
     * @return $this
     */
    public function setProcess($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\Lineage\V1\Process::class);
        $this->process = $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;
    }

    /**
     * If set to true and the process is not found, the request inserts it.
     *
     * Generated from protobuf field <code>bool allow_missing = 3;</code>
     * @return bool
     */
    public function getAllowMissing()
    {
        return $this->allow_missing;
    }

    /**
     * If set to true and the process is not found, the request inserts it.
     *
     * Generated from protobuf field <code>bool allow_missing = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setAllowMissing($var)
    {
        GPBUtil::checkBool($var);
        $this->allow_missing = $var;

        return $this;
    }

}

