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

namespace Google\Cloud\Dataplex\V1;

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

/**
 * Update DataTaxonomy request.
 *
 * @deprecated
 * Generated from protobuf message <code>google.cloud.dataplex.v1.UpdateDataTaxonomyRequest</code>
 */
class UpdateDataTaxonomyRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Mask of fields to update.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $update_mask = null;
    /**
     * Required. Only fields specified in `update_mask` are updated.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataTaxonomy data_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $data_taxonomy = null;
    /**
     * Optional. Only validate the request, but do not perform mutations.
     * The default is false.
     *
     * Generated from protobuf field <code>bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $validate_only = false;

    /**
     * @param \Google\Cloud\Dataplex\V1\DataTaxonomy $dataTaxonomy Required. Only fields specified in `update_mask` are updated.
     * @param \Google\Protobuf\FieldMask             $updateMask   Required. Mask of fields to update.
     *
     * @return \Google\Cloud\Dataplex\V1\UpdateDataTaxonomyRequest
     *
     * @experimental
     */
    public static function build(\Google\Cloud\Dataplex\V1\DataTaxonomy $dataTaxonomy, \Google\Protobuf\FieldMask $updateMask): self
    {
        return (new self())
            ->setDataTaxonomy($dataTaxonomy)
            ->setUpdateMask($updateMask);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Protobuf\FieldMask $update_mask
     *           Required. Mask of fields to update.
     *     @type \Google\Cloud\Dataplex\V1\DataTaxonomy $data_taxonomy
     *           Required. Only fields specified in `update_mask` are updated.
     *     @type bool $validate_only
     *           Optional. Only validate the request, but do not perform mutations.
     *           The default is false.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\DataTaxonomy::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Mask of fields to update.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];</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);
    }

    /**
     * Required. Mask of fields to update.
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];</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;
    }

    /**
     * Required. Only fields specified in `update_mask` are updated.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataTaxonomy data_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\Dataplex\V1\DataTaxonomy|null
     */
    public function getDataTaxonomy()
    {
        return $this->data_taxonomy;
    }

    public function hasDataTaxonomy()
    {
        return isset($this->data_taxonomy);
    }

    public function clearDataTaxonomy()
    {
        unset($this->data_taxonomy);
    }

    /**
     * Required. Only fields specified in `update_mask` are updated.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataTaxonomy data_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\Dataplex\V1\DataTaxonomy $var
     * @return $this
     */
    public function setDataTaxonomy($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataTaxonomy::class);
        $this->data_taxonomy = $var;

        return $this;
    }

    /**
     * Optional. Only validate the request, but do not perform mutations.
     * The default is false.
     *
     * Generated from protobuf field <code>bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getValidateOnly()
    {
        return $this->validate_only;
    }

    /**
     * Optional. Only validate the request, but do not perform mutations.
     * The default is false.
     *
     * Generated from protobuf field <code>bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setValidateOnly($var)
    {
        GPBUtil::checkBool($var);
        $this->validate_only = $var;

        return $this;
    }

}

