Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/sdk-php. php sdk for openstatus www.openstatus.dev
Something went wrong. Try again.
4.5 kB · 166 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/maintenance/v1/service.proto
namespace Openstatus\Maintenance\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * ListMaintenancesRequest is the request to list maintenance windows. * * Generated from protobuf message <code>openstatus.maintenance.v1.ListMaintenancesRequest</code> */class ListMaintenancesRequest extends \Google\Protobuf\Internal\Message{ /** * Maximum number of maintenances to return (1-100, defaults to 50). * * Generated from protobuf field <code>optional int32 limit = 1 [json_name = "limit", (.buf.validate.field) = {</code> */ protected $limit = null; /** * Number of maintenances to skip for pagination (defaults to 0). * * Generated from protobuf field <code>optional int32 offset = 2 [json_name = "offset", (.buf.validate.field) = {</code> */ protected $offset = null; /** * Filter by page ID (optional). * * Generated from protobuf field <code>optional string page_id = 3 [json_name = "pageId"];</code> */ 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 <code>optional int32 limit = 1 [json_name = "limit", (.buf.validate.field) = {</code> * @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 <code>optional int32 limit = 1 [json_name = "limit", (.buf.validate.field) = {</code> * @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 <code>optional int32 offset = 2 [json_name = "offset", (.buf.validate.field) = {</code> * @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 <code>optional int32 offset = 2 [json_name = "offset", (.buf.validate.field) = {</code> * @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 <code>optional string page_id = 3 [json_name = "pageId"];</code> * @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 <code>optional string page_id = 3 [json_name = "pageId"];</code> * @param string $var * @return $this */ public function setPageId(string $var) { GPBUtil::checkString($var, true); $this->page_id = $var;
return $this; }
}