<?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 string features.
 *
 * Generated from protobuf message <code>google.cloud.recommendationengine.v1beta1.FeatureMap.StringList</code>
 */
class StringList extends \Google\Protobuf\Internal\Message
{
    /**
     * String feature value with a length limit of 128 bytes.
     *
     * Generated from protobuf field <code>repeated string value = 1;</code>
     */
    private $value;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $value
     *           String feature value with a length limit of 128 bytes.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Recommendationengine\V1Beta1\Common::initOnce();
        parent::__construct($data);
    }

    /**
     * String feature value with a length limit of 128 bytes.
     *
     * Generated from protobuf field <code>repeated string value = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * String feature value with a length limit of 128 bytes.
     *
     * Generated from protobuf field <code>repeated string value = 1;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setValue($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->value = $arr;

        return $this;
    }

}


