<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/recommendationengine/v1beta1/common.proto

namespace Google\Cloud\RecommendationEngine\V1beta1\FeatureMap;

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

/**
 * A list of float features.
 *
 * Generated from protobuf message <code>google.cloud.recommendationengine.v1beta1.FeatureMap.FloatList</code>
 */
class FloatList extends \Google\Protobuf\Internal\Message
{
    /**
     * Float feature value.
     *
     * Generated from protobuf field <code>repeated float value = 1;</code>
     */
    private $value;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float[]|\Google\Protobuf\Internal\RepeatedField $value
     *           Float feature value.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Recommendationengine\V1Beta1\Common::initOnce();
        parent::__construct($data);
    }

    /**
     * Float feature value.
     *
     * Generated from protobuf field <code>repeated float value = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Float feature value.
     *
     * Generated from protobuf field <code>repeated float value = 1;</code>
     * @param 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;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FloatList::class, \Google\Cloud\RecommendationEngine\V1beta1\FeatureMap_FloatList::class);

