api.ListDevicesRequest */ class ListDevicesRequest extends \Google\Protobuf\Internal\Message { /** * Max number of devices to return in the result-set. * * Generated from protobuf field uint32 limit = 1; */ protected $limit = 0; /** * Offset in the result-set (for pagination). * * Generated from protobuf field uint32 offset = 2; */ protected $offset = 0; /** * If set, the given string will be used to search on name (optional). * * Generated from protobuf field string search = 3; */ protected $search = ''; /** * Application ID (UUID) to filter devices on. * * Generated from protobuf field string application_id = 4; */ protected $application_id = ''; /** * Multicst-group ID (UUID) to filter devices on. * * Generated from protobuf field string multicast_group_id = 5; */ protected $multicast_group_id = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $limit * Max number of devices 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 (optional). * @type string $application_id * Application ID (UUID) to filter devices on. * @type string $multicast_group_id * Multicst-group ID (UUID) to filter devices on. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Api\Device::initOnce(); parent::__construct($data); } /** * Max number of devices to return in the result-set. * * Generated from protobuf field uint32 limit = 1; * @return int */ public function getLimit() { return $this->limit; } /** * Max number of devices to return in the result-set. * * Generated from protobuf field uint32 limit = 1; * @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 uint32 offset = 2; * @return int */ public function getOffset() { return $this->offset; } /** * Offset in the result-set (for pagination). * * Generated from protobuf field uint32 offset = 2; * @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 (optional). * * Generated from protobuf field string search = 3; * @return string */ public function getSearch() { return $this->search; } /** * If set, the given string will be used to search on name (optional). * * Generated from protobuf field string search = 3; * @param string $var * @return $this */ public function setSearch($var) { GPBUtil::checkString($var, True); $this->search = $var; return $this; } /** * Application ID (UUID) to filter devices on. * * Generated from protobuf field string application_id = 4; * @return string */ public function getApplicationId() { return $this->application_id; } /** * Application ID (UUID) to filter devices on. * * Generated from protobuf field string application_id = 4; * @param string $var * @return $this */ public function setApplicationId($var) { GPBUtil::checkString($var, True); $this->application_id = $var; return $this; } /** * Multicst-group ID (UUID) to filter devices on. * * Generated from protobuf field string multicast_group_id = 5; * @return string */ public function getMulticastGroupId() { return $this->multicast_group_id; } /** * Multicst-group ID (UUID) to filter devices on. * * Generated from protobuf field string multicast_group_id = 5; * @param string $var * @return $this */ public function setMulticastGroupId($var) { GPBUtil::checkString($var, True); $this->multicast_group_id = $var; return $this; } }