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.
11 kB · 408 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/status_page/v1/page_component.proto
namespace Openstatus\Status_page\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * PageComponent represents a component displayed on a status page. * * Generated from protobuf message <code>openstatus.status_page.v1.PageComponent</code> */class PageComponent extends \Google\Protobuf\Internal\Message{ /** * Unique identifier for the component. * * Generated from protobuf field <code>string id = 1 [json_name = "id"];</code> */ protected $id = ''; /** * ID of the status page this component belongs to. * * Generated from protobuf field <code>string page_id = 2 [json_name = "pageId"];</code> */ protected $page_id = ''; /** * Display name of the component. * * Generated from protobuf field <code>string name = 3 [json_name = "name"];</code> */ protected $name = ''; /** * Description of the component (optional). * * Generated from protobuf field <code>string description = 4 [json_name = "description"];</code> */ protected $description = ''; /** * Type of the component (monitor or static). * * Generated from protobuf field <code>.openstatus.status_page.v1.PageComponentType type = 5 [json_name = "type"];</code> */ protected $type = 0; /** * ID of the monitor if type is MONITOR (optional). * * Generated from protobuf field <code>string monitor_id = 6 [json_name = "monitorId"];</code> */ protected $monitor_id = ''; /** * Display order of the component. * * Generated from protobuf field <code>int32 order = 7 [json_name = "order"];</code> */ protected $order = 0; /** * ID of the group this component belongs to (optional). * * Generated from protobuf field <code>string group_id = 8 [json_name = "groupId"];</code> */ protected $group_id = ''; /** * Order within the group if grouped. * * Generated from protobuf field <code>int32 group_order = 9 [json_name = "groupOrder"];</code> */ protected $group_order = 0; /** * Timestamp when the component was created (RFC 3339 format). * * Generated from protobuf field <code>string created_at = 10 [json_name = "createdAt"];</code> */ protected $created_at = ''; /** * Timestamp when the component was last updated (RFC 3339 format). * * Generated from protobuf field <code>string updated_at = 11 [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 component. * @type string $page_id * ID of the status page this component belongs to. * @type string $name * Display name of the component. * @type string $description * Description of the component (optional). * @type int $type * Type of the component (monitor or static). * @type string $monitor_id * ID of the monitor if type is MONITOR (optional). * @type int $order * Display order of the component. * @type string $group_id * ID of the group this component belongs to (optional). * @type int $group_order * Order within the group if grouped. * @type string $created_at * Timestamp when the component was created (RFC 3339 format). * @type string $updated_at * Timestamp when the component was last updated (RFC 3339 format). * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\PageComponent::initOnce(); parent::__construct($data); }
/** * Unique identifier for the component. * * Generated from protobuf field <code>string id = 1 [json_name = "id"];</code> * @return string */ public function getId() { return $this->id; }
/** * Unique identifier for the component. * * 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; }
/** * ID of the status page this component belongs to. * * Generated from protobuf field <code>string page_id = 2 [json_name = "pageId"];</code> * @return string */ public function getPageId() { return $this->page_id; }
/** * ID of the status page this component belongs to. * * Generated from protobuf field <code>string page_id = 2 [json_name = "pageId"];</code> * @param string $var * @return $this */ public function setPageId(string $var) { GPBUtil::checkString($var, true); $this->page_id = $var;
return $this; }
/** * Display name of the component. * * Generated from protobuf field <code>string name = 3 [json_name = "name"];</code> * @return string */ public function getName() { return $this->name; }
/** * Display name of the component. * * Generated from protobuf field <code>string name = 3 [json_name = "name"];</code> * @param string $var * @return $this */ public function setName(string $var) { GPBUtil::checkString($var, true); $this->name = $var;
return $this; }
/** * Description of the component (optional). * * Generated from protobuf field <code>string description = 4 [json_name = "description"];</code> * @return string */ public function getDescription() { return $this->description; }
/** * Description of the component (optional). * * Generated from protobuf field <code>string description = 4 [json_name = "description"];</code> * @param string $var * @return $this */ public function setDescription(string $var) { GPBUtil::checkString($var, true); $this->description = $var;
return $this; }
/** * Type of the component (monitor or static). * * Generated from protobuf field <code>.openstatus.status_page.v1.PageComponentType type = 5 [json_name = "type"];</code> * @return int one of the values in {@see \Openstatus\Status_page\V1\PageComponentType} */ public function getType() { return $this->type; }
/** * Type of the component (monitor or static). * * Generated from protobuf field <code>.openstatus.status_page.v1.PageComponentType type = 5 [json_name = "type"];</code> * @param int $var one of the values in {@see \Openstatus\Status_page\V1\PageComponentType} * @return $this */ public function setType(int $var) { GPBUtil::checkEnum($var, \Openstatus\Status_page\V1\PageComponentType::class); $this->type = $var;
return $this; }
/** * ID of the monitor if type is MONITOR (optional). * * Generated from protobuf field <code>string monitor_id = 6 [json_name = "monitorId"];</code> * @return string */ public function getMonitorId() { return $this->monitor_id; }
/** * ID of the monitor if type is MONITOR (optional). * * Generated from protobuf field <code>string monitor_id = 6 [json_name = "monitorId"];</code> * @param string $var * @return $this */ public function setMonitorId(string $var) { GPBUtil::checkString($var, true); $this->monitor_id = $var;
return $this; }
/** * Display order of the component. * * Generated from protobuf field <code>int32 order = 7 [json_name = "order"];</code> * @return int */ public function getOrder() { return $this->order; }
/** * Display order of the component. * * Generated from protobuf field <code>int32 order = 7 [json_name = "order"];</code> * @param int $var * @return $this */ public function setOrder(int $var) { GPBUtil::checkInt32($var); $this->order = $var;
return $this; }
/** * ID of the group this component belongs to (optional). * * Generated from protobuf field <code>string group_id = 8 [json_name = "groupId"];</code> * @return string */ public function getGroupId() { return $this->group_id; }
/** * ID of the group this component belongs to (optional). * * Generated from protobuf field <code>string group_id = 8 [json_name = "groupId"];</code> * @param string $var * @return $this */ public function setGroupId(string $var) { GPBUtil::checkString($var, true); $this->group_id = $var;
return $this; }
/** * Order within the group if grouped. * * Generated from protobuf field <code>int32 group_order = 9 [json_name = "groupOrder"];</code> * @return int */ public function getGroupOrder() { return $this->group_order; }
/** * Order within the group if grouped. * * Generated from protobuf field <code>int32 group_order = 9 [json_name = "groupOrder"];</code> * @param int $var * @return $this */ public function setGroupOrder(int $var) { GPBUtil::checkInt32($var); $this->group_order = $var;
return $this; }
/** * Timestamp when the component was created (RFC 3339 format). * * Generated from protobuf field <code>string created_at = 10 [json_name = "createdAt"];</code> * @return string */ public function getCreatedAt() { return $this->created_at; }
/** * Timestamp when the component was created (RFC 3339 format). * * Generated from protobuf field <code>string created_at = 10 [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 component was last updated (RFC 3339 format). * * Generated from protobuf field <code>string updated_at = 11 [json_name = "updatedAt"];</code> * @return string */ public function getUpdatedAt() { return $this->updated_at; }
/** * Timestamp when the component was last updated (RFC 3339 format). * * Generated from protobuf field <code>string updated_at = 11 [json_name = "updatedAt"];</code> * @param string $var * @return $this */ public function setUpdatedAt(string $var) { GPBUtil::checkString($var, true); $this->updated_at = $var;
return $this; }
}