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

namespace Google\Cloud\AIPlatform\V1\FeatureView;

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

/**
 * Configuration for FeatureViews created in Optimized FeatureOnlineStore.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.FeatureView.OptimizedConfig</code>
 */
class OptimizedConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. A description of resources that the FeatureView uses, which to
     * large degree are decided by Vertex AI, and optionally allows only a
     * modest additional configuration. If min_replica_count is not set, the
     * default value is 2. If max_replica_count is not set, the default value
     * is 6. The max allowed replica count is 1000.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $automatic_resources = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\AIPlatform\V1\AutomaticResources $automatic_resources
     *           Optional. A description of resources that the FeatureView uses, which to
     *           large degree are decided by Vertex AI, and optionally allows only a
     *           modest additional configuration. If min_replica_count is not set, the
     *           default value is 2. If max_replica_count is not set, the default value
     *           is 6. The max allowed replica count is 1000.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureView::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. A description of resources that the FeatureView uses, which to
     * large degree are decided by Vertex AI, and optionally allows only a
     * modest additional configuration. If min_replica_count is not set, the
     * default value is 2. If max_replica_count is not set, the default value
     * is 6. The max allowed replica count is 1000.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Cloud\AIPlatform\V1\AutomaticResources|null
     */
    public function getAutomaticResources()
    {
        return $this->automatic_resources;
    }

    public function hasAutomaticResources()
    {
        return isset($this->automatic_resources);
    }

    public function clearAutomaticResources()
    {
        unset($this->automatic_resources);
    }

    /**
     * Optional. A description of resources that the FeatureView uses, which to
     * large degree are decided by Vertex AI, and optionally allows only a
     * modest additional configuration. If min_replica_count is not set, the
     * default value is 2. If max_replica_count is not set, the default value
     * is 6. The max allowed replica count is 1000.
     *
     * Generated from protobuf field <code>.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 7 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\AIPlatform\V1\AutomaticResources $var
     * @return $this
     */
    public function setAutomaticResources($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\AutomaticResources::class);
        $this->automatic_resources = $var;

        return $this;
    }

}


