opentelemetry.proto.common.v1.ArrayValue
*/
class ArrayValue extends \Google\Protobuf\Internal\Message
{
/**
* Array of values. The array may be empty (contain 0 elements).
*
* Generated from protobuf field repeated .opentelemetry.proto.common.v1.AnyValue values = 1;
*/
private $values;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Opentelemetry\Proto\Common\V1\AnyValue[]|\Google\Protobuf\Internal\RepeatedField $values
* Array of values. The array may be empty (contain 0 elements).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Opentelemetry\Proto\Common\V1\Common::initOnce();
parent::__construct($data);
}
/**
* Array of values. The array may be empty (contain 0 elements).
*
* Generated from protobuf field repeated .opentelemetry.proto.common.v1.AnyValue values = 1;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getValues()
{
return $this->values;
}
/**
* Array of values. The array may be empty (contain 0 elements).
*
* Generated from protobuf field repeated .opentelemetry.proto.common.v1.AnyValue values = 1;
* @param \Opentelemetry\Proto\Common\V1\AnyValue[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setValues($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Common\V1\AnyValue::class);
$this->values = $arr;
return $this;
}
}