common.MetricDataset */ class MetricDataset extends \Google\Protobuf\Internal\Message { /** * Label. * * Generated from protobuf field string label = 1; */ protected $label = ''; /** * Data. * Each value index corresponds with the same timestamp index of the Metric. * * Generated from protobuf field repeated float data = 2; */ private $data; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $label * Label. * @type array|\Google\Protobuf\Internal\RepeatedField $data * Data. * Each value index corresponds with the same timestamp index of the Metric. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Common\Common::initOnce(); parent::__construct($data); } /** * Label. * * Generated from protobuf field string label = 1; * @return string */ public function getLabel() { return $this->label; } /** * Label. * * Generated from protobuf field string label = 1; * @param string $var * @return $this */ public function setLabel($var) { GPBUtil::checkString($var, True); $this->label = $var; return $this; } /** * Data. * Each value index corresponds with the same timestamp index of the Metric. * * Generated from protobuf field repeated float data = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getData() { return $this->data; } /** * Data. * Each value index corresponds with the same timestamp index of the Metric. * * Generated from protobuf field repeated float data = 2; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setData($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::FLOAT); $this->data = $arr; return $this; } }