openstatus.status_page.v1.ListStatusPagesRequest
*/
class ListStatusPagesRequest extends \Google\Protobuf\Internal\Message
{
/**
* Maximum number of pages to return (1-100, defaults to 50).
*
* Generated from protobuf field optional int32 limit = 1 [json_name = "limit", (.buf.validate.field) = {
*/
protected $limit = null;
/**
* Number of pages to skip for pagination (defaults to 0).
*
* Generated from protobuf field optional int32 offset = 2 [json_name = "offset", (.buf.validate.field) = {
*/
protected $offset = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $limit
* Maximum number of pages to return (1-100, defaults to 50).
* @type int $offset
* Number of pages to skip for pagination (defaults to 0).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce();
parent::__construct($data);
}
/**
* Maximum number of pages to return (1-100, defaults to 50).
*
* Generated from protobuf field optional int32 limit = 1 [json_name = "limit", (.buf.validate.field) = {
* @return int
*/
public function getLimit()
{
return isset($this->limit) ? $this->limit : 0;
}
public function hasLimit()
{
return isset($this->limit);
}
public function clearLimit()
{
unset($this->limit);
}
/**
* Maximum number of pages to return (1-100, defaults to 50).
*
* Generated from protobuf field optional int32 limit = 1 [json_name = "limit", (.buf.validate.field) = {
* @param int $var
* @return $this
*/
public function setLimit(int $var)
{
GPBUtil::checkInt32($var);
$this->limit = $var;
return $this;
}
/**
* Number of pages to skip for pagination (defaults to 0).
*
* Generated from protobuf field optional int32 offset = 2 [json_name = "offset", (.buf.validate.field) = {
* @return int
*/
public function getOffset()
{
return isset($this->offset) ? $this->offset : 0;
}
public function hasOffset()
{
return isset($this->offset);
}
public function clearOffset()
{
unset($this->offset);
}
/**
* Number of pages to skip for pagination (defaults to 0).
*
* Generated from protobuf field optional int32 offset = 2 [json_name = "offset", (.buf.validate.field) = {
* @param int $var
* @return $this
*/
public function setOffset(int $var)
{
GPBUtil::checkInt32($var);
$this->offset = $var;
return $this;
}
}