openstatus.maintenance.v1.ListMaintenancesRequest */ class ListMaintenancesRequest extends \Google\Protobuf\Internal\Message { /** * Maximum number of maintenances 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 maintenances to skip for pagination (defaults to 0). * * Generated from protobuf field optional int32 offset = 2 [json_name = "offset", (.buf.validate.field) = { */ protected $offset = null; /** * Filter by page ID (optional). * * Generated from protobuf field optional string page_id = 3 [json_name = "pageId"]; */ protected $page_id = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $limit * Maximum number of maintenances to return (1-100, defaults to 50). * @type int $offset * Number of maintenances to skip for pagination (defaults to 0). * @type string $page_id * Filter by page ID (optional). * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Maintenance\V1\Service::initOnce(); parent::__construct($data); } /** * Maximum number of maintenances 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 maintenances 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 maintenances 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 maintenances 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; } /** * Filter by page ID (optional). * * Generated from protobuf field optional string page_id = 3 [json_name = "pageId"]; * @return string */ public function getPageId() { return isset($this->page_id) ? $this->page_id : ''; } public function hasPageId() { return isset($this->page_id); } public function clearPageId() { unset($this->page_id); } /** * Filter by page ID (optional). * * Generated from protobuf field optional string page_id = 3 [json_name = "pageId"]; * @param string $var * @return $this */ public function setPageId(string $var) { GPBUtil::checkString($var, true); $this->page_id = $var; return $this; } }