api.GlobalSearchRequest
*/
class GlobalSearchRequest extends \Google\Protobuf\Internal\Message
{
/**
* Search query.
*
* Generated from protobuf field string search = 1;
*/
protected $search = '';
/**
* Max number of results to return.
*
* Generated from protobuf field int64 limit = 2;
*/
protected $limit = 0;
/**
* Offset offset of the result-set (for pagination).
*
* Generated from protobuf field int64 offset = 3;
*/
protected $offset = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $search
* Search query.
* @type int|string $limit
* Max number of results to return.
* @type int|string $offset
* Offset offset of the result-set (for pagination).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Internal::initOnce();
parent::__construct($data);
}
/**
* Search query.
*
* Generated from protobuf field string search = 1;
* @return string
*/
public function getSearch()
{
return $this->search;
}
/**
* Search query.
*
* Generated from protobuf field string search = 1;
* @param string $var
* @return $this
*/
public function setSearch($var)
{
GPBUtil::checkString($var, True);
$this->search = $var;
return $this;
}
/**
* Max number of results to return.
*
* Generated from protobuf field int64 limit = 2;
* @return int|string
*/
public function getLimit()
{
return $this->limit;
}
/**
* Max number of results to return.
*
* Generated from protobuf field int64 limit = 2;
* @param int|string $var
* @return $this
*/
public function setLimit($var)
{
GPBUtil::checkInt64($var);
$this->limit = $var;
return $this;
}
/**
* Offset offset of the result-set (for pagination).
*
* Generated from protobuf field int64 offset = 3;
* @return int|string
*/
public function getOffset()
{
return $this->offset;
}
/**
* Offset offset of the result-set (for pagination).
*
* Generated from protobuf field int64 offset = 3;
* @param int|string $var
* @return $this
*/
public function setOffset($var)
{
GPBUtil::checkInt64($var);
$this->offset = $var;
return $this;
}
}