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

namespace Google\Cloud\AIPlatform\V1\NearestNeighborQuery;

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

/**
 * The embedding vector.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.NearestNeighborQuery.Embedding</code>
 */
class Embedding extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Individual value in the embedding.
     *
     * Generated from protobuf field <code>repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $value;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<float>|\Google\Protobuf\Internal\RepeatedField $value
     *           Optional. Individual value in the embedding.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureOnlineStoreService::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Individual value in the embedding.
     *
     * Generated from protobuf field <code>repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Optional. Individual value in the embedding.
     *
     * Generated from protobuf field <code>repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<float>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setValue($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::FLOAT);
        $this->value = $arr;

        return $this;
    }

}


