opentelemetry.proto.metrics.v1.Sum */ class Sum extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.NumberDataPoint data_points = 1; */ private $data_points; /** * aggregation_temporality describes if the aggregator reports delta changes * since last report time, or cumulative changes since a fixed start time. * * Generated from protobuf field .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2; */ protected $aggregation_temporality = 0; /** * If "true" means that the sum is monotonic. * * Generated from protobuf field bool is_monotonic = 3; */ protected $is_monotonic = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Opentelemetry\Proto\Metrics\V1\NumberDataPoint[]|\Google\Protobuf\Internal\RepeatedField $data_points * @type int $aggregation_temporality * aggregation_temporality describes if the aggregator reports delta changes * since last report time, or cumulative changes since a fixed start time. * @type bool $is_monotonic * If "true" means that the sum is monotonic. * } */ public function __construct($data = NULL) { \GPBMetadata\Opentelemetry\Proto\Metrics\V1\Metrics::initOnce(); parent::__construct($data); } /** * Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.NumberDataPoint data_points = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getDataPoints() { return $this->data_points; } /** * Generated from protobuf field repeated .opentelemetry.proto.metrics.v1.NumberDataPoint data_points = 1; * @param \Opentelemetry\Proto\Metrics\V1\NumberDataPoint[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDataPoints($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Opentelemetry\Proto\Metrics\V1\NumberDataPoint::class); $this->data_points = $arr; return $this; } /** * aggregation_temporality describes if the aggregator reports delta changes * since last report time, or cumulative changes since a fixed start time. * * Generated from protobuf field .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2; * @return int */ public function getAggregationTemporality() { return $this->aggregation_temporality; } /** * aggregation_temporality describes if the aggregator reports delta changes * since last report time, or cumulative changes since a fixed start time. * * Generated from protobuf field .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2; * @param int $var * @return $this */ public function setAggregationTemporality($var) { GPBUtil::checkEnum($var, \Opentelemetry\Proto\Metrics\V1\AggregationTemporality::class); $this->aggregation_temporality = $var; return $this; } /** * If "true" means that the sum is monotonic. * * Generated from protobuf field bool is_monotonic = 3; * @return bool */ public function getIsMonotonic() { return $this->is_monotonic; } /** * If "true" means that the sum is monotonic. * * Generated from protobuf field bool is_monotonic = 3; * @param bool $var * @return $this */ public function setIsMonotonic($var) { GPBUtil::checkBool($var); $this->is_monotonic = $var; return $this; } }