<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/aiplatform/v1/feature_online_store_admin_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
 * [FeatureOnlineStoreAdminService.UpdateFeatureView][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.UpdateFeatureView].
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.UpdateFeatureViewRequest</code>
 */
class UpdateFeatureViewRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The FeatureView's `name` field is used to identify the
     * FeatureView to be updated. Format:
     * `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.FeatureView feature_view = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $feature_view = null;
    /**
     * Field mask is used to specify the fields to be overwritten in the
     * FeatureView 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`
     *   * `service_agent_type`
     *   * `big_query_source`
     *   * `big_query_source.uri`
     *   * `big_query_source.entity_id_columns`
     *   * `feature_registry_source`
     *   * `feature_registry_source.feature_groups`
     *   * `sync_config`
     *   * `sync_config.cron`
     *
     * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code>
     */
    protected $update_mask = null;

    /**
     * @param \Google\Cloud\AIPlatform\V1\FeatureView $featureView Required. The FeatureView's `name` field is used to identify the
     *                                                             FeatureView to be updated. Format:
     *                                                             `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
     * @param \Google\Protobuf\FieldMask              $updateMask  Field mask is used to specify the fields to be overwritten in the
     *                                                             FeatureView 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`
     *                                                             * `service_agent_type`
     *                                                             * `big_query_source`
     *                                                             * `big_query_source.uri`
     *                                                             * `big_query_source.entity_id_columns`
     *                                                             * `feature_registry_source`
     *                                                             * `feature_registry_source.feature_groups`
     *                                                             * `sync_config`
     *                                                             * `sync_config.cron`
     *
     * @return \Google\Cloud\AIPlatform\V1\UpdateFeatureViewRequest
     *
     * @experimental
     */
    public static function build(\Google\Cloud\AIPlatform\V1\FeatureView $featureView, \Google\Protobuf\FieldMask $updateMask): self
    {
        return (new self())
            ->setFeatureView($featureView)
            ->setUpdateMask($updateMask);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AIPlatform\V1\FeatureView $feature_view
     *           Required. The FeatureView's `name` field is used to identify the
     *           FeatureView to be updated. Format:
     *           `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`
     *     @type \Google\Protobuf\FieldMask $update_mask
     *           Field mask is used to specify the fields to be overwritten in the
     *           FeatureView 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`
     *             * `service_agent_type`
     *             * `big_query_source`
     *             * `big_query_source.uri`
     *             * `big_query_source.entity_id_columns`
     *             * `feature_registry_source`
     *             * `feature_registry_source.feature_groups`
     *             * `sync_config`
     *             * `sync_config.cron`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreAdminService::initOnce();
        parent::__construct($data);
    }

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

    public function hasFeatureView()
    {
        return isset($this->feature_view);
    }

    public function clearFeatureView()
    {
        unset($this->feature_view);
    }

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

        return $this;
    }

    /**
     * Field mask is used to specify the fields to be overwritten in the
     * FeatureView 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`
     *   * `service_agent_type`
     *   * `big_query_source`
     *   * `big_query_source.uri`
     *   * `big_query_source.entity_id_columns`
     *   * `feature_registry_source`
     *   * `feature_registry_source.feature_groups`
     *   * `sync_config`
     *   * `sync_config.cron`
     *
     * 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
     * FeatureView 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`
     *   * `service_agent_type`
     *   * `big_query_source`
     *   * `big_query_source.uri`
     *   * `big_query_source.entity_id_columns`
     *   * `feature_registry_source`
     *   * `feature_registry_source.feature_groups`
     *   * `sync_config`
     *   * `sync_config.cron`
     *
     * 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;
    }

}

