<?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.CreateFeatureOnlineStore][google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.CreateFeatureOnlineStore].
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.CreateFeatureOnlineStoreRequest</code>
 */
class CreateFeatureOnlineStoreRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The resource name of the Location to create FeatureOnlineStores.
     * Format:
     * `projects/{project}/locations/{location}`
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $parent = '';
    /**
     * Required. The FeatureOnlineStore to create.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.FeatureOnlineStore feature_online_store = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $feature_online_store = null;
    /**
     * Required. The ID to use for this FeatureOnlineStore, which will become the
     * final component of the FeatureOnlineStore's resource name.
     * This value may be up to 60 characters, and valid characters are
     * `[a-z0-9_]`. The first character cannot be a number.
     * The value must be unique within the project and location.
     *
     * Generated from protobuf field <code>string feature_online_store_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $feature_online_store_id = '';

    /**
     * @param string                                         $parent               Required. The resource name of the Location to create FeatureOnlineStores.
     *                                                                             Format:
     *                                                                             `projects/{project}/locations/{location}`
     *                                                                             Please see {@see FeatureOnlineStoreAdminServiceClient::locationName()} for help formatting this field.
     * @param \Google\Cloud\AIPlatform\V1\FeatureOnlineStore $featureOnlineStore   Required. The FeatureOnlineStore to create.
     * @param string                                         $featureOnlineStoreId Required. The ID to use for this FeatureOnlineStore, which will become the
     *                                                                             final component of the FeatureOnlineStore's resource name.
     *
     *                                                                             This value may be up to 60 characters, and valid characters are
     *                                                                             `[a-z0-9_]`. The first character cannot be a number.
     *
     *                                                                             The value must be unique within the project and location.
     *
     * @return \Google\Cloud\AIPlatform\V1\CreateFeatureOnlineStoreRequest
     *
     * @experimental
     */
    public static function build(string $parent, \Google\Cloud\AIPlatform\V1\FeatureOnlineStore $featureOnlineStore, string $featureOnlineStoreId): self
    {
        return (new self())
            ->setParent($parent)
            ->setFeatureOnlineStore($featureOnlineStore)
            ->setFeatureOnlineStoreId($featureOnlineStoreId);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           Required. The resource name of the Location to create FeatureOnlineStores.
     *           Format:
     *           `projects/{project}/locations/{location}`
     *     @type \Google\Cloud\AIPlatform\V1\FeatureOnlineStore $feature_online_store
     *           Required. The FeatureOnlineStore to create.
     *     @type string $feature_online_store_id
     *           Required. The ID to use for this FeatureOnlineStore, which will become the
     *           final component of the FeatureOnlineStore's resource name.
     *           This value may be up to 60 characters, and valid characters are
     *           `[a-z0-9_]`. The first character cannot be a number.
     *           The value must be unique within the project and location.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreAdminService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The resource name of the Location to create FeatureOnlineStores.
     * Format:
     * `projects/{project}/locations/{location}`
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * Required. The resource name of the Location to create FeatureOnlineStores.
     * Format:
     * `projects/{project}/locations/{location}`
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

    /**
     * Required. The FeatureOnlineStore to create.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.FeatureOnlineStore feature_online_store = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\AIPlatform\V1\FeatureOnlineStore|null
     */
    public function getFeatureOnlineStore()
    {
        return $this->feature_online_store;
    }

    public function hasFeatureOnlineStore()
    {
        return isset($this->feature_online_store);
    }

    public function clearFeatureOnlineStore()
    {
        unset($this->feature_online_store);
    }

    /**
     * Required. The FeatureOnlineStore to create.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.FeatureOnlineStore feature_online_store = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\AIPlatform\V1\FeatureOnlineStore $var
     * @return $this
     */
    public function setFeatureOnlineStore($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\FeatureOnlineStore::class);
        $this->feature_online_store = $var;

        return $this;
    }

    /**
     * Required. The ID to use for this FeatureOnlineStore, which will become the
     * final component of the FeatureOnlineStore's resource name.
     * This value may be up to 60 characters, and valid characters are
     * `[a-z0-9_]`. The first character cannot be a number.
     * The value must be unique within the project and location.
     *
     * Generated from protobuf field <code>string feature_online_store_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getFeatureOnlineStoreId()
    {
        return $this->feature_online_store_id;
    }

    /**
     * Required. The ID to use for this FeatureOnlineStore, which will become the
     * final component of the FeatureOnlineStore's resource name.
     * This value may be up to 60 characters, and valid characters are
     * `[a-z0-9_]`. The first character cannot be a number.
     * The value must be unique within the project and location.
     *
     * Generated from protobuf field <code>string feature_online_store_id = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setFeatureOnlineStoreId($var)
    {
        GPBUtil::checkString($var, True);
        $this->feature_online_store_id = $var;

        return $this;
    }

}

