api.GetDeviceLinkMetricsRequest */ class GetDeviceLinkMetricsRequest extends \Google\Protobuf\Internal\Message { /** * DevEUI (EUI64). * * Generated from protobuf field string dev_eui = 1; */ protected $dev_eui = ''; /** * Interval start timestamp. * * Generated from protobuf field .google.protobuf.Timestamp start = 2; */ protected $start = null; /** * Interval end timestamp. * * Generated from protobuf field .google.protobuf.Timestamp end = 3; */ protected $end = null; /** * Aggregation. * * Generated from protobuf field .common.Aggregation aggregation = 4; */ protected $aggregation = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $dev_eui * DevEUI (EUI64). * @type \Google\Protobuf\Timestamp $start * Interval start timestamp. * @type \Google\Protobuf\Timestamp $end * Interval end timestamp. * @type int $aggregation * Aggregation. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Api\Device::initOnce(); parent::__construct($data); } /** * DevEUI (EUI64). * * Generated from protobuf field string dev_eui = 1; * @return string */ public function getDevEui() { return $this->dev_eui; } /** * DevEUI (EUI64). * * Generated from protobuf field string dev_eui = 1; * @param string $var * @return $this */ public function setDevEui($var) { GPBUtil::checkString($var, True); $this->dev_eui = $var; return $this; } /** * Interval start timestamp. * * Generated from protobuf field .google.protobuf.Timestamp start = 2; * @return \Google\Protobuf\Timestamp|null */ public function getStart() { return $this->start; } public function hasStart() { return isset($this->start); } public function clearStart() { unset($this->start); } /** * Interval start timestamp. * * Generated from protobuf field .google.protobuf.Timestamp start = 2; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setStart($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->start = $var; return $this; } /** * Interval end timestamp. * * Generated from protobuf field .google.protobuf.Timestamp end = 3; * @return \Google\Protobuf\Timestamp|null */ public function getEnd() { return $this->end; } public function hasEnd() { return isset($this->end); } public function clearEnd() { unset($this->end); } /** * Interval end timestamp. * * Generated from protobuf field .google.protobuf.Timestamp end = 3; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setEnd($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->end = $var; return $this; } /** * Aggregation. * * Generated from protobuf field .common.Aggregation aggregation = 4; * @return int */ public function getAggregation() { return $this->aggregation; } /** * Aggregation. * * Generated from protobuf field .common.Aggregation aggregation = 4; * @param int $var * @return $this */ public function setAggregation($var) { GPBUtil::checkEnum($var, \Chirpstack\Common\Aggregation::class); $this->aggregation = $var; return $this; } }