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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Request message for
 * [FeatureRegistryService.UpdateFeatureGroup][google.cloud.aiplatform.v1.FeatureRegistryService.UpdateFeatureGroup].
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.UpdateFeatureGroupRequest</code>
 */
class UpdateFeatureGroupRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The FeatureGroup's `name` field is used to identify the
     * FeatureGroup to be updated. Format:
     * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.FeatureGroup feature_group = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $feature_group = null;
    /**
     * Field mask is used to specify the fields to be overwritten in the
     * FeatureGroup resource by the update.
     * The fields specified in the update_mask are relative to the resource, not
     * the full request. A field will be overwritten if it is in the mask. If the
     * user does not provide a mask then only the non-empty fields present in the
     * request will be overwritten. Set the update_mask to `*` to override all
     * fields.
     * Updatable fields:
     *   * `labels`
     *   * `description`
     *   * `big_query`
     *   * `big_query.entity_id_columns`
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     */
    protected $update_mask = null;

    /**
     * @param \Google\Cloud\AIPlatform\V1\FeatureGroup $featureGroup Required. The FeatureGroup's `name` field is used to identify the
     *                                                               FeatureGroup to be updated. Format:
     *                                                               `projects/{project}/locations/{location}/featureGroups/{feature_group}`
     * @param \Google\Protobuf\FieldMask               $updateMask   Field mask is used to specify the fields to be overwritten in the
     *                                                               FeatureGroup resource by the update.
     *                                                               The fields specified in the update_mask are relative to the resource, not
     *                                                               the full request. A field will be overwritten if it is in the mask. If the
     *                                                               user does not provide a mask then only the non-empty fields present in the
     *                                                               request will be overwritten. Set the update_mask to `*` to override all
     *                                                               fields.
     *
     *                                                               Updatable fields:
     *
     *                                                               * `labels`
     *                                                               * `description`
     *                                                               * `big_query`
     *                                                               * `big_query.entity_id_columns`
     *
     * @return \Google\Cloud\AIPlatform\V1\UpdateFeatureGroupRequest
     *
     * @experimental
     */
    public static function build(\Google\Cloud\AIPlatform\V1\FeatureGroup $featureGroup, \Google\Protobuf\FieldMask $updateMask): self
    {
        return (new self())
            ->setFeatureGroup($featureGroup)
            ->setUpdateMask($updateMask);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AIPlatform\V1\FeatureGroup $feature_group
     *           Required. The FeatureGroup's `name` field is used to identify the
     *           FeatureGroup to be updated. Format:
     *           `projects/{project}/locations/{location}/featureGroups/{feature_group}`
     *     @type \Google\Protobuf\FieldMask $update_mask
     *           Field mask is used to specify the fields to be overwritten in the
     *           FeatureGroup resource by the update.
     *           The fields specified in the update_mask are relative to the resource, not
     *           the full request. A field will be overwritten if it is in the mask. If the
     *           user does not provide a mask then only the non-empty fields present in the
     *           request will be overwritten. Set the update_mask to `*` to override all
     *           fields.
     *           Updatable fields:
     *             * `labels`
     *             * `description`
     *             * `big_query`
     *             * `big_query.entity_id_columns`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureRegistryService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The FeatureGroup's `name` field is used to identify the
     * FeatureGroup to be updated. Format:
     * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.FeatureGroup feature_group = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\AIPlatform\V1\FeatureGroup|null
     */
    public function getFeatureGroup()
    {
        return $this->feature_group;
    }

    public function hasFeatureGroup()
    {
        return isset($this->feature_group);
    }

    public function clearFeatureGroup()
    {
        unset($this->feature_group);
    }

    /**
     * Required. The FeatureGroup's `name` field is used to identify the
     * FeatureGroup to be updated. Format:
     * `projects/{project}/locations/{location}/featureGroups/{feature_group}`
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.FeatureGroup feature_group = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\AIPlatform\V1\FeatureGroup $var
     * @return $this
     */
    public function setFeatureGroup($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureGroup::class);
        $this->feature_group = $var;

        return $this;
    }

    /**
     * Field mask is used to specify the fields to be overwritten in the
     * FeatureGroup resource by the update.
     * The fields specified in the update_mask are relative to the resource, not
     * the full request. A field will be overwritten if it is in the mask. If the
     * user does not provide a mask then only the non-empty fields present in the
     * request will be overwritten. Set the update_mask to `*` to override all
     * fields.
     * Updatable fields:
     *   * `labels`
     *   * `description`
     *   * `big_query`
     *   * `big_query.entity_id_columns`
     *
     * 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);
    }

    /**
     * Field mask is used to specify the fields to be overwritten in the
     * FeatureGroup resource by the update.
     * The fields specified in the update_mask are relative to the resource, not
     * the full request. A field will be overwritten if it is in the mask. If the
     * user does not provide a mask then only the non-empty fields present in the
     * request will be overwritten. Set the update_mask to `*` to override all
     * fields.
     * Updatable fields:
     *   * `labels`
     *   * `description`
     *   * `big_query`
     *   * `big_query.entity_id_columns`
     *
     * 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;
    }

}

