api.GetDeviceMetricsResponse
*/
class GetDeviceMetricsResponse extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field map metrics = 1;
*/
private $metrics;
/**
* Generated from protobuf field map states = 2;
*/
private $states;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type array|\Google\Protobuf\Internal\MapField $metrics
* @type array|\Google\Protobuf\Internal\MapField $states
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field map metrics = 1;
* @return \Google\Protobuf\Internal\MapField
*/
public function getMetrics()
{
return $this->metrics;
}
/**
* Generated from protobuf field map metrics = 1;
* @param array|\Google\Protobuf\Internal\MapField $var
* @return $this
*/
public function setMetrics($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Common\Metric::class);
$this->metrics = $arr;
return $this;
}
/**
* Generated from protobuf field map states = 2;
* @return \Google\Protobuf\Internal\MapField
*/
public function getStates()
{
return $this->states;
}
/**
* Generated from protobuf field map states = 2;
* @param array|\Google\Protobuf\Internal\MapField $var
* @return $this
*/
public function setStates($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\DeviceState::class);
$this->states = $arr;
return $this;
}
}