mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 05:49:51 +00:00
134 lines
3.0 KiB
PHP
Vendored
134 lines
3.0 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.GetGatewaysSummaryResponse</code>
|
|
*/
|
|
class GetGatewaysSummaryResponse extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Online count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 online_count = 1;</code>
|
|
*/
|
|
protected $online_count = 0;
|
|
/**
|
|
* Offline count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 offline_count = 2;</code>
|
|
*/
|
|
protected $offline_count = 0;
|
|
/**
|
|
* Never seen count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 never_seen_count = 3;</code>
|
|
*/
|
|
protected $never_seen_count = 0;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type int $online_count
|
|
* Online count.
|
|
* @type int $offline_count
|
|
* Offline count.
|
|
* @type int $never_seen_count
|
|
* Never seen count.
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Chirpstack\Api\Internal::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Online count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 online_count = 1;</code>
|
|
* @return int
|
|
*/
|
|
public function getOnlineCount()
|
|
{
|
|
return $this->online_count;
|
|
}
|
|
|
|
/**
|
|
* Online count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 online_count = 1;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setOnlineCount($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->online_count = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Offline count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 offline_count = 2;</code>
|
|
* @return int
|
|
*/
|
|
public function getOfflineCount()
|
|
{
|
|
return $this->offline_count;
|
|
}
|
|
|
|
/**
|
|
* Offline count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 offline_count = 2;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setOfflineCount($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->offline_count = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Never seen count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 never_seen_count = 3;</code>
|
|
* @return int
|
|
*/
|
|
public function getNeverSeenCount()
|
|
{
|
|
return $this->never_seen_count;
|
|
}
|
|
|
|
/**
|
|
* Never seen count.
|
|
*
|
|
* Generated from protobuf field <code>uint32 never_seen_count = 3;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setNeverSeenCount($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->never_seen_count = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|