chirpstack/api/php/generated/Chirpstack/Api/ListUsersResponse.php
2024-06-25 12:27:28 +01:00

100 lines
2.4 KiB
PHP
Vendored

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/user.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.ListUsersResponse</code>
*/
class ListUsersResponse extends \Google\Protobuf\Internal\Message
{
/**
* Total number of users.
*
* Generated from protobuf field <code>uint32 total_count = 1;</code>
*/
protected $total_count = 0;
/**
* Result-set.
*
* Generated from protobuf field <code>repeated .api.UserListItem result = 2;</code>
*/
private $result;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $total_count
* Total number of users.
* @type array<\Chirpstack\Api\UserListItem>|\Google\Protobuf\Internal\RepeatedField $result
* Result-set.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\User::initOnce();
parent::__construct($data);
}
/**
* Total number of users.
*
* Generated from protobuf field <code>uint32 total_count = 1;</code>
* @return int
*/
public function getTotalCount()
{
return $this->total_count;
}
/**
* Total number of users.
*
* Generated from protobuf field <code>uint32 total_count = 1;</code>
* @param int $var
* @return $this
*/
public function setTotalCount($var)
{
GPBUtil::checkUint32($var);
$this->total_count = $var;
return $this;
}
/**
* Result-set.
*
* Generated from protobuf field <code>repeated .api.UserListItem result = 2;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getResult()
{
return $this->result;
}
/**
* Result-set.
*
* Generated from protobuf field <code>repeated .api.UserListItem result = 2;</code>
* @param array<\Chirpstack\Api\UserListItem>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setResult($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\UserListItem::class);
$this->result = $arr;
return $this;
}
}