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

namespace Google\Cloud\AIPlatform\V1\EmbedContentResponse;

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

/**
 * A list of floats representing an embedding.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.EmbedContentResponse.Embedding</code>
 */
class Embedding extends \Google\Protobuf\Internal\Message
{
    /**
     * Embedding vector values.
     *
     * Generated from protobuf field <code>repeated float values = 1;</code>
     */
    private $values;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float[] $values
     *           Embedding vector values.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\PredictionService::initOnce();
        parent::__construct($data);
    }

    /**
     * Embedding vector values.
     *
     * Generated from protobuf field <code>repeated float values = 1;</code>
     * @return RepeatedField<float>
     */
    public function getValues()
    {
        return $this->values;
    }

    /**
     * Embedding vector values.
     *
     * Generated from protobuf field <code>repeated float values = 1;</code>
     * @param float[] $var
     * @return $this
     */
    public function setValues($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::FLOAT);
        $this->values = $arr;

        return $this;
    }

}

