mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 22:09:56 +00:00
188 lines
4.3 KiB
PHP
Vendored
188 lines
4.3 KiB
PHP
Vendored
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: api/device.proto
|
|
|
|
namespace Chirpstack\Api;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>api.GetDeviceMetricsRequest</code>
|
|
*/
|
|
class GetDeviceMetricsRequest extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* DevEUI (EUI64).
|
|
*
|
|
* Generated from protobuf field <code>string dev_eui = 1;</code>
|
|
*/
|
|
protected $dev_eui = '';
|
|
/**
|
|
* Interval start timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp start = 2;</code>
|
|
*/
|
|
protected $start = null;
|
|
/**
|
|
* Interval end timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp end = 3;</code>
|
|
*/
|
|
protected $end = null;
|
|
/**
|
|
* Aggregation.
|
|
*
|
|
* Generated from protobuf field <code>.common.Aggregation aggregation = 4;</code>
|
|
*/
|
|
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 <code>string dev_eui = 1;</code>
|
|
* @return string
|
|
*/
|
|
public function getDevEui()
|
|
{
|
|
return $this->dev_eui;
|
|
}
|
|
|
|
/**
|
|
* DevEUI (EUI64).
|
|
*
|
|
* Generated from protobuf field <code>string dev_eui = 1;</code>
|
|
* @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 <code>.google.protobuf.Timestamp start = 2;</code>
|
|
* @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 <code>.google.protobuf.Timestamp start = 2;</code>
|
|
* @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 <code>.google.protobuf.Timestamp end = 3;</code>
|
|
* @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 <code>.google.protobuf.Timestamp end = 3;</code>
|
|
* @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 <code>.common.Aggregation aggregation = 4;</code>
|
|
* @return int
|
|
*/
|
|
public function getAggregation()
|
|
{
|
|
return $this->aggregation;
|
|
}
|
|
|
|
/**
|
|
* Aggregation.
|
|
*
|
|
* Generated from protobuf field <code>.common.Aggregation aggregation = 4;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setAggregation($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Chirpstack\Common\Aggregation::class);
|
|
$this->aggregation = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|