mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 05:49:51 +00:00
168 lines
4.1 KiB
PHP
Vendored
168 lines
4.1 KiB
PHP
Vendored
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: api/device_profile.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.ListDeviceProfilesRequest</code>
|
|
*/
|
|
class ListDeviceProfilesRequest extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Max number of device-profiles to return in the result-set.
|
|
*
|
|
* Generated from protobuf field <code>uint32 limit = 1;</code>
|
|
*/
|
|
protected $limit = 0;
|
|
/**
|
|
* Offset in the result-set (for pagination).
|
|
*
|
|
* Generated from protobuf field <code>uint32 offset = 2;</code>
|
|
*/
|
|
protected $offset = 0;
|
|
/**
|
|
* If set, the given string will be used to search on name.
|
|
*
|
|
* Generated from protobuf field <code>string search = 3;</code>
|
|
*/
|
|
protected $search = '';
|
|
/**
|
|
* Tenant ID to list the device-profiles for.
|
|
*
|
|
* Generated from protobuf field <code>string tenant_id = 4;</code>
|
|
*/
|
|
protected $tenant_id = '';
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type int $limit
|
|
* Max number of device-profiles to return in the result-set.
|
|
* @type int $offset
|
|
* Offset in the result-set (for pagination).
|
|
* @type string $search
|
|
* If set, the given string will be used to search on name.
|
|
* @type string $tenant_id
|
|
* Tenant ID to list the device-profiles for.
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Max number of device-profiles to return in the result-set.
|
|
*
|
|
* Generated from protobuf field <code>uint32 limit = 1;</code>
|
|
* @return int
|
|
*/
|
|
public function getLimit()
|
|
{
|
|
return $this->limit;
|
|
}
|
|
|
|
/**
|
|
* Max number of device-profiles to return in the result-set.
|
|
*
|
|
* Generated from protobuf field <code>uint32 limit = 1;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setLimit($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->limit = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Offset in the result-set (for pagination).
|
|
*
|
|
* Generated from protobuf field <code>uint32 offset = 2;</code>
|
|
* @return int
|
|
*/
|
|
public function getOffset()
|
|
{
|
|
return $this->offset;
|
|
}
|
|
|
|
/**
|
|
* Offset in the result-set (for pagination).
|
|
*
|
|
* Generated from protobuf field <code>uint32 offset = 2;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setOffset($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->offset = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* If set, the given string will be used to search on name.
|
|
*
|
|
* Generated from protobuf field <code>string search = 3;</code>
|
|
* @return string
|
|
*/
|
|
public function getSearch()
|
|
{
|
|
return $this->search;
|
|
}
|
|
|
|
/**
|
|
* If set, the given string will be used to search on name.
|
|
*
|
|
* Generated from protobuf field <code>string search = 3;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setSearch($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->search = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Tenant ID to list the device-profiles for.
|
|
*
|
|
* Generated from protobuf field <code>string tenant_id = 4;</code>
|
|
* @return string
|
|
*/
|
|
public function getTenantId()
|
|
{
|
|
return $this->tenant_id;
|
|
}
|
|
|
|
/**
|
|
* Tenant ID to list the device-profiles for.
|
|
*
|
|
* Generated from protobuf field <code>string tenant_id = 4;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setTenantId($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->tenant_id = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|