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

namespace Google\Cloud\DataCatalog\V1;

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

/**
 * Request message for
 * [UpdateEntry][google.cloud.datacatalog.v1.DataCatalog.UpdateEntry].
 *
 * Generated from protobuf message <code>google.cloud.datacatalog.v1.UpdateEntryRequest</code>
 */
class UpdateEntryRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Updates for the entry. The `name` field must be set.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $entry = null;
    /**
     * Names of fields whose values to overwrite on an entry.
     * If this parameter is absent or empty, all modifiable fields
     * are overwritten. If such fields are non-required and omitted in the
     * request body, their values are emptied.
     * You can modify only the fields listed below.
     * For entries with type `DATA_STREAM`:
     * * `schema`
     * For entries with type `FILESET`:
     * * `schema`
     * * `display_name`
     * * `description`
     * * `gcs_fileset_spec`
     * * `gcs_fileset_spec.file_patterns`
     * For entries with `user_specified_type`:
     * * `schema`
     * * `display_name`
     * * `description`
     * * `user_specified_type`
     * * `user_specified_system`
     * * `linked_resource`
     * * `source_system_timestamps`
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     */
    private $update_mask = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\DataCatalog\V1\Entry $entry
     *           Required. Updates for the entry. The `name` field must be set.
     *     @type \Google\Protobuf\FieldMask $update_mask
     *           Names of fields whose values to overwrite on an entry.
     *           If this parameter is absent or empty, all modifiable fields
     *           are overwritten. If such fields are non-required and omitted in the
     *           request body, their values are emptied.
     *           You can modify only the fields listed below.
     *           For entries with type `DATA_STREAM`:
     *           * `schema`
     *           For entries with type `FILESET`:
     *           * `schema`
     *           * `display_name`
     *           * `description`
     *           * `gcs_fileset_spec`
     *           * `gcs_fileset_spec.file_patterns`
     *           For entries with `user_specified_type`:
     *           * `schema`
     *           * `display_name`
     *           * `description`
     *           * `user_specified_type`
     *           * `user_specified_system`
     *           * `linked_resource`
     *           * `source_system_timestamps`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datacatalog\V1\Datacatalog::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Updates for the entry. The `name` field must be set.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\DataCatalog\V1\Entry|null
     */
    public function getEntry()
    {
        return $this->entry;
    }

    public function hasEntry()
    {
        return isset($this->entry);
    }

    public function clearEntry()
    {
        unset($this->entry);
    }

    /**
     * Required. Updates for the entry. The `name` field must be set.
     *
     * Generated from protobuf field <code>.google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\DataCatalog\V1\Entry $var
     * @return $this
     */
    public function setEntry($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataCatalog\V1\Entry::class);
        $this->entry = $var;

        return $this;
    }

    /**
     * Names of fields whose values to overwrite on an entry.
     * If this parameter is absent or empty, all modifiable fields
     * are overwritten. If such fields are non-required and omitted in the
     * request body, their values are emptied.
     * You can modify only the fields listed below.
     * For entries with type `DATA_STREAM`:
     * * `schema`
     * For entries with type `FILESET`:
     * * `schema`
     * * `display_name`
     * * `description`
     * * `gcs_fileset_spec`
     * * `gcs_fileset_spec.file_patterns`
     * For entries with `user_specified_type`:
     * * `schema`
     * * `display_name`
     * * `description`
     * * `user_specified_type`
     * * `user_specified_system`
     * * `linked_resource`
     * * `source_system_timestamps`
     *
     * 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);
    }

    /**
     * Names of fields whose values to overwrite on an entry.
     * If this parameter is absent or empty, all modifiable fields
     * are overwritten. If such fields are non-required and omitted in the
     * request body, their values are emptied.
     * You can modify only the fields listed below.
     * For entries with type `DATA_STREAM`:
     * * `schema`
     * For entries with type `FILESET`:
     * * `schema`
     * * `display_name`
     * * `description`
     * * `gcs_fileset_spec`
     * * `gcs_fileset_spec.file_patterns`
     * For entries with `user_specified_type`:
     * * `schema`
     * * `display_name`
     * * `description`
     * * `user_specified_type`
     * * `user_specified_system`
     * * `linked_resource`
     * * `source_system_timestamps`
     *
     * 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;
    }

}

