openstatus.status_report.v1.StatusReport */ class StatusReport extends \Google\Protobuf\Internal\Message { /** * Unique identifier for the status report. * * Generated from protobuf field string id = 1 [json_name = "id"]; */ protected $id = ''; /** * Current status of the report. * * Generated from protobuf field .openstatus.status_report.v1.StatusReportStatus status = 2 [json_name = "status"]; */ protected $status = 0; /** * Title of the status report. * * Generated from protobuf field string title = 3 [json_name = "title"]; */ protected $title = ''; /** * IDs of affected page components. * * Generated from protobuf field repeated string page_component_ids = 4 [json_name = "pageComponentIds"]; */ private $page_component_ids; /** * Timeline of updates for this report (only included in GetStatusReport). * * Generated from protobuf field repeated .openstatus.status_report.v1.StatusReportUpdate updates = 5 [json_name = "updates"]; */ private $updates; /** * Timestamp when the report was created (RFC 3339 format). * * Generated from protobuf field string created_at = 6 [json_name = "createdAt"]; */ protected $created_at = ''; /** * Timestamp when the report was last updated (RFC 3339 format). * * Generated from protobuf field string updated_at = 7 [json_name = "updatedAt"]; */ 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 string id = 1 [json_name = "id"]; * @return string */ public function getId() { return $this->id; } /** * Unique identifier for the status report. * * Generated from protobuf field string id = 1 [json_name = "id"]; * @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 .openstatus.status_report.v1.StatusReportStatus status = 2 [json_name = "status"]; * @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 .openstatus.status_report.v1.StatusReportStatus status = 2 [json_name = "status"]; * @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 string title = 3 [json_name = "title"]; * @return string */ public function getTitle() { return $this->title; } /** * Title of the status report. * * Generated from protobuf field string title = 3 [json_name = "title"]; * @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 repeated string page_component_ids = 4 [json_name = "pageComponentIds"]; * @return RepeatedField */ public function getPageComponentIds() { return $this->page_component_ids; } /** * IDs of affected page components. * * Generated from protobuf field repeated string page_component_ids = 4 [json_name = "pageComponentIds"]; * @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 repeated .openstatus.status_report.v1.StatusReportUpdate updates = 5 [json_name = "updates"]; * @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 repeated .openstatus.status_report.v1.StatusReportUpdate updates = 5 [json_name = "updates"]; * @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 string created_at = 6 [json_name = "createdAt"]; * @return string */ public function getCreatedAt() { return $this->created_at; } /** * Timestamp when the report was created (RFC 3339 format). * * Generated from protobuf field string created_at = 6 [json_name = "createdAt"]; * @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 string updated_at = 7 [json_name = "updatedAt"]; * @return string */ public function getUpdatedAt() { return $this->updated_at; } /** * Timestamp when the report was last updated (RFC 3339 format). * * Generated from protobuf field string updated_at = 7 [json_name = "updatedAt"]; * @param string $var * @return $this */ public function setUpdatedAt(string $var) { GPBUtil::checkString($var, true); $this->updated_at = $var; return $this; } }