api.ListDeviceProfilesResponse
*/
class ListDeviceProfilesResponse extends \Google\Protobuf\Internal\Message
{
/**
* Total number of device-profiles.
*
* Generated from protobuf field uint32 total_count = 1;
*/
protected $total_count = 0;
/**
* Result-set.
*
* Generated from protobuf field repeated .api.DeviceProfileListItem result = 2;
*/
private $result;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $total_count
* Total number of device-profiles.
* @type array<\Chirpstack\Api\DeviceProfileListItem>|\Google\Protobuf\Internal\RepeatedField $result
* Result-set.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce();
parent::__construct($data);
}
/**
* Total number of device-profiles.
*
* Generated from protobuf field uint32 total_count = 1;
* @return int
*/
public function getTotalCount()
{
return $this->total_count;
}
/**
* Total number of device-profiles.
*
* Generated from protobuf field uint32 total_count = 1;
* @param int $var
* @return $this
*/
public function setTotalCount($var)
{
GPBUtil::checkUint32($var);
$this->total_count = $var;
return $this;
}
/**
* Result-set.
*
* Generated from protobuf field repeated .api.DeviceProfileListItem result = 2;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getResult()
{
return $this->result;
}
/**
* Result-set.
*
* Generated from protobuf field repeated .api.DeviceProfileListItem result = 2;
* @param array<\Chirpstack\Api\DeviceProfileListItem>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setResult($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\DeviceProfileListItem::class);
$this->result = $arr;
return $this;
}
}