mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 22:09:56 +00:00
86 lines
2.4 KiB
PHP
Vendored
86 lines
2.4 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.GetDeviceMetricsResponse</code>
|
|
*/
|
|
class GetDeviceMetricsResponse extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>map<string, .common.Metric> metrics = 1;</code>
|
|
*/
|
|
private $metrics;
|
|
/**
|
|
* Generated from protobuf field <code>map<string, .api.DeviceState> states = 2;</code>
|
|
*/
|
|
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 <code>map<string, .common.Metric> metrics = 1;</code>
|
|
* @return \Google\Protobuf\Internal\MapField
|
|
*/
|
|
public function getMetrics()
|
|
{
|
|
return $this->metrics;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>map<string, .common.Metric> metrics = 1;</code>
|
|
* @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 <code>map<string, .api.DeviceState> states = 2;</code>
|
|
* @return \Google\Protobuf\Internal\MapField
|
|
*/
|
|
public function getStates()
|
|
{
|
|
return $this->states;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>map<string, .api.DeviceState> states = 2;</code>
|
|
* @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;
|
|
}
|
|
|
|
}
|
|
|