mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 13:59:46 +00:00
172 lines
4.2 KiB
PHP
Vendored
172 lines
4.2 KiB
PHP
Vendored
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: api/internal.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.GetDevicesSummaryResponse</code>
|
|
*/
|
|
class GetDevicesSummaryResponse extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Active count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 active_count = 1;</code>
|
|
*/
|
|
protected $active_count = 0;
|
|
/**
|
|
* Inactive count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 inactive_count = 2;</code>
|
|
*/
|
|
protected $inactive_count = 0;
|
|
/**
|
|
* per data-rate count.
|
|
* Devices that have never been seen are excluded.
|
|
*
|
|
* Generated from protobuf field <code>map<uint32, uint32> dr_count = 3;</code>
|
|
*/
|
|
private $dr_count;
|
|
/**
|
|
* Never seen count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 never_seen_count = 4;</code>
|
|
*/
|
|
protected $never_seen_count = 0;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type int $active_count
|
|
* Active count.
|
|
* @type int $inactive_count
|
|
* Inactive count.
|
|
* @type array|\Google\Protobuf\Internal\MapField $dr_count
|
|
* per data-rate count.
|
|
* Devices that have never been seen are excluded.
|
|
* @type int $never_seen_count
|
|
* Never seen count.
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Chirpstack\Api\Internal::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Active count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 active_count = 1;</code>
|
|
* @return int
|
|
*/
|
|
public function getActiveCount()
|
|
{
|
|
return $this->active_count;
|
|
}
|
|
|
|
/**
|
|
* Active count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 active_count = 1;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setActiveCount($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->active_count = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Inactive count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 inactive_count = 2;</code>
|
|
* @return int
|
|
*/
|
|
public function getInactiveCount()
|
|
{
|
|
return $this->inactive_count;
|
|
}
|
|
|
|
/**
|
|
* Inactive count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 inactive_count = 2;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setInactiveCount($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->inactive_count = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* per data-rate count.
|
|
* Devices that have never been seen are excluded.
|
|
*
|
|
* Generated from protobuf field <code>map<uint32, uint32> dr_count = 3;</code>
|
|
* @return \Google\Protobuf\Internal\MapField
|
|
*/
|
|
public function getDrCount()
|
|
{
|
|
return $this->dr_count;
|
|
}
|
|
|
|
/**
|
|
* per data-rate count.
|
|
* Devices that have never been seen are excluded.
|
|
*
|
|
* Generated from protobuf field <code>map<uint32, uint32> dr_count = 3;</code>
|
|
* @param array|\Google\Protobuf\Internal\MapField $var
|
|
* @return $this
|
|
*/
|
|
public function setDrCount($var)
|
|
{
|
|
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::UINT32, \Google\Protobuf\Internal\GPBType::UINT32);
|
|
$this->dr_count = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Never seen count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 never_seen_count = 4;</code>
|
|
* @return int
|
|
*/
|
|
public function getNeverSeenCount()
|
|
{
|
|
return $this->never_seen_count;
|
|
}
|
|
|
|
/**
|
|
* Never seen count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 never_seen_count = 4;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setNeverSeenCount($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->never_seen_count = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|