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.
12 kB · 384 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385<?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;
/** * UpdateMaintenanceRequest is the request to update a maintenance window. * * Generated from protobuf message <code>openstatus.maintenance.v1.UpdateMaintenanceRequest</code> */class UpdateMaintenanceRequest extends \Google\Protobuf\Internal\Message{ /** * ID of the maintenance to update (required). * * Generated from protobuf field <code>string id = 1 [json_name = "id", (.buf.validate.field) = {</code> */ protected $id = ''; /** * New title for the maintenance (optional). * * Generated from protobuf field <code>optional string title = 2 [json_name = "title", (.buf.validate.field) = {</code> */ protected $title = null; /** * New message for the maintenance (optional). * * Generated from protobuf field <code>optional string message = 3 [json_name = "message"];</code> */ protected $message = null; /** * New start time (RFC 3339 format, optional). * * Generated from protobuf field <code>optional string from = 4 [json_name = "from", (.buf.validate.field) = {</code> */ protected $from = null; /** * New end time (RFC 3339 format, optional). * * Generated from protobuf field <code>optional string to = 5 [json_name = "to", (.buf.validate.field) = {</code> */ protected $to = null; /** * Deprecated: page_id is now derived from page_component_ids. * * Generated from protobuf field <code>optional string page_id = 6 [json_name = "pageId", deprecated = true];</code> * @deprecated */ protected $page_id = null; /** * New list of page component IDs (optional, replaces existing list). * * Generated from protobuf field <code>repeated string page_component_ids = 7 [json_name = "pageComponentIds"];</code> */ private $page_component_ids; /** * Set to true to update page component associations. * When true, page_component_ids replaces the existing list (empty clears all). * When false or unset, page_component_ids is ignored and existing associations are preserved. * * Generated from protobuf field <code>optional bool update_page_component_ids = 8 [json_name = "updatePageComponentIds"];</code> */ protected $update_page_component_ids = null;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * ID of the maintenance to update (required). * @type string $title * New title for the maintenance (optional). * @type string $message * New message for the maintenance (optional). * @type string $from * New start time (RFC 3339 format, optional). * @type string $to * New end time (RFC 3339 format, optional). * @type string $page_id * Deprecated: page_id is now derived from page_component_ids. * @type string[] $page_component_ids * New list of page component IDs (optional, replaces existing list). * @type bool $update_page_component_ids * Set to true to update page component associations. * When true, page_component_ids replaces the existing list (empty clears all). * When false or unset, page_component_ids is ignored and existing associations are preserved. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Maintenance\V1\Service::initOnce(); parent::__construct($data); }
/** * ID of the maintenance to update (required). * * Generated from protobuf field <code>string id = 1 [json_name = "id", (.buf.validate.field) = {</code> * @return string */ public function getId() { return $this->id; }
/** * ID of the maintenance to update (required). * * Generated from protobuf field <code>string id = 1 [json_name = "id", (.buf.validate.field) = {</code> * @param string $var * @return $this */ public function setId(string $var) { GPBUtil::checkString($var, true); $this->id = $var;
return $this; }
/** * New title for the maintenance (optional). * * Generated from protobuf field <code>optional string title = 2 [json_name = "title", (.buf.validate.field) = {</code> * @return string */ public function getTitle() { return isset($this->title) ? $this->title : ''; }
public function hasTitle() { return isset($this->title); }
public function clearTitle() { unset($this->title); }
/** * New title for the maintenance (optional). * * Generated from protobuf field <code>optional string title = 2 [json_name = "title", (.buf.validate.field) = {</code> * @param string $var * @return $this */ public function setTitle(string $var) { GPBUtil::checkString($var, true); $this->title = $var;
return $this; }
/** * New message for the maintenance (optional). * * Generated from protobuf field <code>optional string message = 3 [json_name = "message"];</code> * @return string */ public function getMessage() { return isset($this->message) ? $this->message : ''; }
public function hasMessage() { return isset($this->message); }
public function clearMessage() { unset($this->message); }
/** * New message for the maintenance (optional). * * Generated from protobuf field <code>optional string message = 3 [json_name = "message"];</code> * @param string $var * @return $this */ public function setMessage(string $var) { GPBUtil::checkString($var, true); $this->message = $var;
return $this; }
/** * New start time (RFC 3339 format, optional). * * Generated from protobuf field <code>optional string from = 4 [json_name = "from", (.buf.validate.field) = {</code> * @return string */ public function getFrom() { return isset($this->from) ? $this->from : ''; }
public function hasFrom() { return isset($this->from); }
public function clearFrom() { unset($this->from); }
/** * New start time (RFC 3339 format, optional). * * Generated from protobuf field <code>optional string from = 4 [json_name = "from", (.buf.validate.field) = {</code> * @param string $var * @return $this */ public function setFrom(string $var) { GPBUtil::checkString($var, true); $this->from = $var;
return $this; }
/** * New end time (RFC 3339 format, optional). * * Generated from protobuf field <code>optional string to = 5 [json_name = "to", (.buf.validate.field) = {</code> * @return string */ public function getTo() { return isset($this->to) ? $this->to : ''; }
public function hasTo() { return isset($this->to); }
public function clearTo() { unset($this->to); }
/** * New end time (RFC 3339 format, optional). * * Generated from protobuf field <code>optional string to = 5 [json_name = "to", (.buf.validate.field) = {</code> * @param string $var * @return $this */ public function setTo(string $var) { GPBUtil::checkString($var, true); $this->to = $var;
return $this; }
/** * Deprecated: page_id is now derived from page_component_ids. * * Generated from protobuf field <code>optional string page_id = 6 [json_name = "pageId", deprecated = true];</code> * @return string * @deprecated */ public function getPageId() { if (isset($this->page_id)) { @trigger_error('page_id is deprecated.', E_USER_DEPRECATED); } return isset($this->page_id) ? $this->page_id : ''; }
public function hasPageId() { if (isset($this->page_id)) { @trigger_error('page_id is deprecated.', E_USER_DEPRECATED); } return isset($this->page_id); }
public function clearPageId() { @trigger_error('page_id is deprecated.', E_USER_DEPRECATED); unset($this->page_id); }
/** * Deprecated: page_id is now derived from page_component_ids. * * Generated from protobuf field <code>optional string page_id = 6 [json_name = "pageId", deprecated = true];</code> * @param string $var * @return $this * @deprecated */ public function setPageId(string $var) { @trigger_error('page_id is deprecated.', E_USER_DEPRECATED); GPBUtil::checkString($var, true); $this->page_id = $var;
return $this; }
/** * New list of page component IDs (optional, replaces existing list). * * Generated from protobuf field <code>repeated string page_component_ids = 7 [json_name = "pageComponentIds"];</code> * @return RepeatedField<string> */ public function getPageComponentIds() { return $this->page_component_ids; }
/** * New list of page component IDs (optional, replaces existing list). * * Generated from protobuf field <code>repeated string page_component_ids = 7 [json_name = "pageComponentIds"];</code> * @param string[] $var * @return $this */ public function setPageComponentIds(array|RepeatedField $var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->page_component_ids = $arr;
return $this; }
/** * Set to true to update page component associations. * When true, page_component_ids replaces the existing list (empty clears all). * When false or unset, page_component_ids is ignored and existing associations are preserved. * * Generated from protobuf field <code>optional bool update_page_component_ids = 8 [json_name = "updatePageComponentIds"];</code> * @return bool */ public function getUpdatePageComponentIds() { return isset($this->update_page_component_ids) ? $this->update_page_component_ids : false; }
public function hasUpdatePageComponentIds() { return isset($this->update_page_component_ids); }
public function clearUpdatePageComponentIds() { unset($this->update_page_component_ids); }
/** * Set to true to update page component associations. * When true, page_component_ids replaces the existing list (empty clears all). * When false or unset, page_component_ids is ignored and existing associations are preserved. * * Generated from protobuf field <code>optional bool update_page_component_ids = 8 [json_name = "updatePageComponentIds"];</code> * @param bool $var * @return $this */ public function setUpdatePageComponentIds(bool $var) { $this->update_page_component_ids = $var;
return $this; }
}