opentelemetry.proto.metrics.v1.Summary
*/
class Summary extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.SummaryDataPoint data_points = 1;
*/
private $data_points;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Opentelemetry\Proto\Metrics\V1\SummaryDataPoint[]|\Google\Protobuf\Internal\RepeatedField $data_points
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Opentelemetry\Proto\Metrics\V1\Metrics::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.SummaryDataPoint data_points = 1;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getDataPoints()
{
return $this->data_points;
}
/**
* Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.SummaryDataPoint data_points = 1;
* @param \Opentelemetry\Proto\Metrics\V1\SummaryDataPoint[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setDataPoints($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Metrics\V1\SummaryDataPoint::class);
$this->data_points = $arr;
return $this;
}
}