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.
9.4 kB · 340 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/maintenance/v1/maintenance.proto
namespace Openstatus\Maintenance\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * Maintenance represents a maintenance window with full details. * * Generated from protobuf message <code>openstatus.maintenance.v1.Maintenance</code> */class Maintenance extends \Google\Protobuf\Internal\Message{ /** * Unique identifier for the maintenance. * * Generated from protobuf field <code>string id = 1 [json_name = "id"];</code> */ protected $id = ''; /** * Title of the maintenance. * * Generated from protobuf field <code>string title = 2 [json_name = "title"];</code> */ protected $title = ''; /** * Message describing the maintenance. * * Generated from protobuf field <code>string message = 3 [json_name = "message"];</code> */ protected $message = ''; /** * Start time of the maintenance window (RFC 3339 format). * * Generated from protobuf field <code>string from = 4 [json_name = "from"];</code> */ protected $from = ''; /** * End time of the maintenance window (RFC 3339 format). * * Generated from protobuf field <code>string to = 5 [json_name = "to"];</code> */ protected $to = ''; /** * ID of the page this maintenance is associated with. * * Generated from protobuf field <code>string page_id = 6 [json_name = "pageId"];</code> */ protected $page_id = ''; /** * IDs of affected page components. * * Generated from protobuf field <code>repeated string page_component_ids = 7 [json_name = "pageComponentIds"];</code> */ private $page_component_ids; /** * Timestamp when the maintenance was created (RFC 3339 format). * * Generated from protobuf field <code>string created_at = 8 [json_name = "createdAt"];</code> */ protected $created_at = ''; /** * Timestamp when the maintenance was last updated (RFC 3339 format). * * Generated from protobuf field <code>string updated_at = 9 [json_name = "updatedAt"];</code> */ protected $updated_at = '';
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * Unique identifier for the maintenance. * @type string $title * Title of the maintenance. * @type string $message * Message describing the maintenance. * @type string $from * Start time of the maintenance window (RFC 3339 format). * @type string $to * End time of the maintenance window (RFC 3339 format). * @type string $page_id * ID of the page this maintenance is associated with. * @type string[] $page_component_ids * IDs of affected page components. * @type string $created_at * Timestamp when the maintenance was created (RFC 3339 format). * @type string $updated_at * Timestamp when the maintenance was last updated (RFC 3339 format). * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Maintenance\V1\Maintenance::initOnce(); parent::__construct($data); }
/** * Unique identifier for the maintenance. * * Generated from protobuf field <code>string id = 1 [json_name = "id"];</code> * @return string */ public function getId() { return $this->id; }
/** * Unique identifier for the maintenance. * * Generated from protobuf field <code>string id = 1 [json_name = "id"];</code> * @param string $var * @return $this */ public function setId(string $var) { GPBUtil::checkString($var, true); $this->id = $var;
return $this; }
/** * Title of the maintenance. * * Generated from protobuf field <code>string title = 2 [json_name = "title"];</code> * @return string */ public function getTitle() { return $this->title; }
/** * Title of the maintenance. * * Generated from protobuf field <code>string title = 2 [json_name = "title"];</code> * @param string $var * @return $this */ public function setTitle(string $var) { GPBUtil::checkString($var, true); $this->title = $var;
return $this; }
/** * Message describing the maintenance. * * Generated from protobuf field <code>string message = 3 [json_name = "message"];</code> * @return string */ public function getMessage() { return $this->message; }
/** * Message describing the maintenance. * * Generated from protobuf field <code>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; }
/** * Start time of the maintenance window (RFC 3339 format). * * Generated from protobuf field <code>string from = 4 [json_name = "from"];</code> * @return string */ public function getFrom() { return $this->from; }
/** * Start time of the maintenance window (RFC 3339 format). * * Generated from protobuf field <code>string from = 4 [json_name = "from"];</code> * @param string $var * @return $this */ public function setFrom(string $var) { GPBUtil::checkString($var, true); $this->from = $var;
return $this; }
/** * End time of the maintenance window (RFC 3339 format). * * Generated from protobuf field <code>string to = 5 [json_name = "to"];</code> * @return string */ public function getTo() { return $this->to; }
/** * End time of the maintenance window (RFC 3339 format). * * Generated from protobuf field <code>string to = 5 [json_name = "to"];</code> * @param string $var * @return $this */ public function setTo(string $var) { GPBUtil::checkString($var, true); $this->to = $var;
return $this; }
/** * ID of the page this maintenance is associated with. * * Generated from protobuf field <code>string page_id = 6 [json_name = "pageId"];</code> * @return string */ public function getPageId() { return $this->page_id; }
/** * ID of the page this maintenance is associated with. * * Generated from protobuf field <code>string page_id = 6 [json_name = "pageId"];</code> * @param string $var * @return $this */ public function setPageId(string $var) { GPBUtil::checkString($var, true); $this->page_id = $var;
return $this; }
/** * IDs of affected page components. * * 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; }
/** * IDs of affected page components. * * 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; }
/** * Timestamp when the maintenance was created (RFC 3339 format). * * Generated from protobuf field <code>string created_at = 8 [json_name = "createdAt"];</code> * @return string */ public function getCreatedAt() { return $this->created_at; }
/** * Timestamp when the maintenance was created (RFC 3339 format). * * Generated from protobuf field <code>string created_at = 8 [json_name = "createdAt"];</code> * @param string $var * @return $this */ public function setCreatedAt(string $var) { GPBUtil::checkString($var, true); $this->created_at = $var;
return $this; }
/** * Timestamp when the maintenance was last updated (RFC 3339 format). * * Generated from protobuf field <code>string updated_at = 9 [json_name = "updatedAt"];</code> * @return string */ public function getUpdatedAt() { return $this->updated_at; }
/** * Timestamp when the maintenance was last updated (RFC 3339 format). * * Generated from protobuf field <code>string updated_at = 9 [json_name = "updatedAt"];</code> * @param string $var * @return $this */ public function setUpdatedAt(string $var) { GPBUtil::checkString($var, true); $this->updated_at = $var;
return $this; }
}