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.
8.3 kB · 272 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/status_report/v1/status_report.proto
namespace Openstatus\Status_report\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * StatusReport represents an incident or maintenance report with full details. * * Generated from protobuf message <code>openstatus.status_report.v1.StatusReport</code> */class StatusReport extends \Google\Protobuf\Internal\Message{ /** * Unique identifier for the status report. * * Generated from protobuf field <code>string id = 1 [json_name = "id"];</code> */ protected $id = ''; /** * Current status of the report. * * Generated from protobuf field <code>.openstatus.status_report.v1.StatusReportStatus status = 2 [json_name = "status"];</code> */ protected $status = 0; /** * Title of the status report. * * Generated from protobuf field <code>string title = 3 [json_name = "title"];</code> */ protected $title = ''; /** * IDs of affected page components. * * Generated from protobuf field <code>repeated string page_component_ids = 4 [json_name = "pageComponentIds"];</code> */ private $page_component_ids; /** * Timeline of updates for this report (only included in GetStatusReport). * * Generated from protobuf field <code>repeated .openstatus.status_report.v1.StatusReportUpdate updates = 5 [json_name = "updates"];</code> */ private $updates; /** * Timestamp when the report was created (RFC 3339 format). * * Generated from protobuf field <code>string created_at = 6 [json_name = "createdAt"];</code> */ protected $created_at = ''; /** * Timestamp when the report was last updated (RFC 3339 format). * * Generated from protobuf field <code>string updated_at = 7 [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 status report. * @type int $status * Current status of the report. * @type string $title * Title of the status report. * @type string[] $page_component_ids * IDs of affected page components. * @type \Openstatus\Status_report\V1\StatusReportUpdate[] $updates * Timeline of updates for this report (only included in GetStatusReport). * @type string $created_at * Timestamp when the report was created (RFC 3339 format). * @type string $updated_at * Timestamp when the report was last updated (RFC 3339 format). * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusReport\V1\StatusReport::initOnce(); parent::__construct($data); }
/** * Unique identifier for the status report. * * Generated from protobuf field <code>string id = 1 [json_name = "id"];</code> * @return string */ public function getId() { return $this->id; }
/** * Unique identifier for the status report. * * 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; }
/** * Current status of the report. * * Generated from protobuf field <code>.openstatus.status_report.v1.StatusReportStatus status = 2 [json_name = "status"];</code> * @return int one of the values in {@see \Openstatus\Status_report\V1\StatusReportStatus} */ public function getStatus() { return $this->status; }
/** * Current status of the report. * * Generated from protobuf field <code>.openstatus.status_report.v1.StatusReportStatus status = 2 [json_name = "status"];</code> * @param int $var one of the values in {@see \Openstatus\Status_report\V1\StatusReportStatus} * @return $this */ public function setStatus(int $var) { GPBUtil::checkEnum($var, \Openstatus\Status_report\V1\StatusReportStatus::class); $this->status = $var;
return $this; }
/** * Title of the status report. * * Generated from protobuf field <code>string title = 3 [json_name = "title"];</code> * @return string */ public function getTitle() { return $this->title; }
/** * Title of the status report. * * Generated from protobuf field <code>string title = 3 [json_name = "title"];</code> * @param string $var * @return $this */ public function setTitle(string $var) { GPBUtil::checkString($var, true); $this->title = $var;
return $this; }
/** * IDs of affected page components. * * Generated from protobuf field <code>repeated string page_component_ids = 4 [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 = 4 [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; }
/** * Timeline of updates for this report (only included in GetStatusReport). * * Generated from protobuf field <code>repeated .openstatus.status_report.v1.StatusReportUpdate updates = 5 [json_name = "updates"];</code> * @return RepeatedField<\Openstatus\Status_report\V1\StatusReportUpdate> */ public function getUpdates() { return $this->updates; }
/** * Timeline of updates for this report (only included in GetStatusReport). * * Generated from protobuf field <code>repeated .openstatus.status_report.v1.StatusReportUpdate updates = 5 [json_name = "updates"];</code> * @param \Openstatus\Status_report\V1\StatusReportUpdate[] $var * @return $this */ public function setUpdates(array|RepeatedField $var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Openstatus\Status_report\V1\StatusReportUpdate::class); $this->updates = $arr;
return $this; }
/** * Timestamp when the report was created (RFC 3339 format). * * Generated from protobuf field <code>string created_at = 6 [json_name = "createdAt"];</code> * @return string */ public function getCreatedAt() { return $this->created_at; }
/** * Timestamp when the report was created (RFC 3339 format). * * Generated from protobuf field <code>string created_at = 6 [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 report was last updated (RFC 3339 format). * * Generated from protobuf field <code>string updated_at = 7 [json_name = "updatedAt"];</code> * @return string */ public function getUpdatedAt() { return $this->updated_at; }
/** * Timestamp when the report was last updated (RFC 3339 format). * * Generated from protobuf field <code>string updated_at = 7 [json_name = "updatedAt"];</code> * @param string $var * @return $this */ public function setUpdatedAt(string $var) { GPBUtil::checkString($var, true); $this->updated_at = $var;
return $this; }
}