function ListValue::setValues
Repeated field of dynamically typed values.
Generated from protobuf field <code>repeated .google.protobuf.Value values = 1;</code>
Parameters
array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ ListValue.php, line 59
Class
- ListValue
- `ListValue` is a wrapper around a repeated field of values. The JSON representation for `ListValue` is JSON array.
Namespace
Google\ProtobufCode
public function setValues($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class);
$this->values = $arr;
return $this;
}