api.GetDevicesSummaryResponse */ class GetDevicesSummaryResponse extends \Google\Protobuf\Internal\Message { /** * Active count. * * Generated from protobuf field uint32 active_count = 1; */ protected $active_count = 0; /** * Inactive count. * * Generated from protobuf field uint32 inactive_count = 2; */ protected $inactive_count = 0; /** * per data-rate count. * Devices that have never been seen are excluded. * * Generated from protobuf field map dr_count = 3; */ private $dr_count; /** * Never seen count. * * Generated from protobuf field uint32 never_seen_count = 4; */ 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 uint32 active_count = 1; * @return int */ public function getActiveCount() { return $this->active_count; } /** * Active count. * * Generated from protobuf field uint32 active_count = 1; * @param int $var * @return $this */ public function setActiveCount($var) { GPBUtil::checkUint32($var); $this->active_count = $var; return $this; } /** * Inactive count. * * Generated from protobuf field uint32 inactive_count = 2; * @return int */ public function getInactiveCount() { return $this->inactive_count; } /** * Inactive count. * * Generated from protobuf field uint32 inactive_count = 2; * @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 map dr_count = 3; * @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 map dr_count = 3; * @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 uint32 never_seen_count = 4; * @return int */ public function getNeverSeenCount() { return $this->never_seen_count; } /** * Never seen count. * * Generated from protobuf field uint32 never_seen_count = 4; * @param int $var * @return $this */ public function setNeverSeenCount($var) { GPBUtil::checkUint32($var); $this->never_seen_count = $var; return $this; } }