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.
7.3 kB · 213 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/status_page/v1/service.proto
namespace Openstatus\Status_page\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * GetStatusPageContentResponse is the response containing the full status page content. * * Generated from protobuf message <code>openstatus.status_page.v1.GetStatusPageContentResponse</code> */class GetStatusPageContentResponse extends \Google\Protobuf\Internal\Message{ /** * The status page details. * * Generated from protobuf field <code>.openstatus.status_page.v1.StatusPage status_page = 1 [json_name = "statusPage"];</code> */ protected $status_page = null; /** * Components on the status page. * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.PageComponent components = 2 [json_name = "components"];</code> */ private $components; /** * Component groups on the status page. * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.PageComponentGroup groups = 3 [json_name = "groups"];</code> */ private $groups; /** * Active and recent status reports. * * Generated from protobuf field <code>repeated .openstatus.status_report.v1.StatusReport status_reports = 4 [json_name = "statusReports"];</code> */ private $status_reports; /** * Scheduled maintenances. * * Generated from protobuf field <code>repeated .openstatus.maintenance.v1.MaintenanceSummary maintenances = 5 [json_name = "maintenances"];</code> */ private $maintenances;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Openstatus\Status_page\V1\StatusPage $status_page * The status page details. * @type \Openstatus\Status_page\V1\PageComponent[] $components * Components on the status page. * @type \Openstatus\Status_page\V1\PageComponentGroup[] $groups * Component groups on the status page. * @type \Openstatus\Status_report\V1\StatusReport[] $status_reports * Active and recent status reports. * @type \Openstatus\Maintenance\V1\MaintenanceSummary[] $maintenances * Scheduled maintenances. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce(); parent::__construct($data); }
/** * The status page details. * * Generated from protobuf field <code>.openstatus.status_page.v1.StatusPage status_page = 1 [json_name = "statusPage"];</code> * @return \Openstatus\Status_page\V1\StatusPage|null */ public function getStatusPage() { return $this->status_page; }
public function hasStatusPage() { return isset($this->status_page); }
public function clearStatusPage() { unset($this->status_page); }
/** * The status page details. * * Generated from protobuf field <code>.openstatus.status_page.v1.StatusPage status_page = 1 [json_name = "statusPage"];</code> * @param \Openstatus\Status_page\V1\StatusPage $var * @return $this */ public function setStatusPage(\Openstatus\Status_page\V1\StatusPage|null $var) { $this->status_page = $var;
return $this; }
/** * Components on the status page. * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.PageComponent components = 2 [json_name = "components"];</code> * @return RepeatedField<\Openstatus\Status_page\V1\PageComponent> */ public function getComponents() { return $this->components; }
/** * Components on the status page. * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.PageComponent components = 2 [json_name = "components"];</code> * @param \Openstatus\Status_page\V1\PageComponent[] $var * @return $this */ public function setComponents(array|RepeatedField $var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Openstatus\Status_page\V1\PageComponent::class); $this->components = $arr;
return $this; }
/** * Component groups on the status page. * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.PageComponentGroup groups = 3 [json_name = "groups"];</code> * @return RepeatedField<\Openstatus\Status_page\V1\PageComponentGroup> */ public function getGroups() { return $this->groups; }
/** * Component groups on the status page. * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.PageComponentGroup groups = 3 [json_name = "groups"];</code> * @param \Openstatus\Status_page\V1\PageComponentGroup[] $var * @return $this */ public function setGroups(array|RepeatedField $var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Openstatus\Status_page\V1\PageComponentGroup::class); $this->groups = $arr;
return $this; }
/** * Active and recent status reports. * * Generated from protobuf field <code>repeated .openstatus.status_report.v1.StatusReport status_reports = 4 [json_name = "statusReports"];</code> * @return RepeatedField<\Openstatus\Status_report\V1\StatusReport> */ public function getStatusReports() { return $this->status_reports; }
/** * Active and recent status reports. * * Generated from protobuf field <code>repeated .openstatus.status_report.v1.StatusReport status_reports = 4 [json_name = "statusReports"];</code> * @param \Openstatus\Status_report\V1\StatusReport[] $var * @return $this */ public function setStatusReports(array|RepeatedField $var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Openstatus\Status_report\V1\StatusReport::class); $this->status_reports = $arr;
return $this; }
/** * Scheduled maintenances. * * Generated from protobuf field <code>repeated .openstatus.maintenance.v1.MaintenanceSummary maintenances = 5 [json_name = "maintenances"];</code> * @return RepeatedField<\Openstatus\Maintenance\V1\MaintenanceSummary> */ public function getMaintenances() { return $this->maintenances; }
/** * Scheduled maintenances. * * Generated from protobuf field <code>repeated .openstatus.maintenance.v1.MaintenanceSummary maintenances = 5 [json_name = "maintenances"];</code> * @param \Openstatus\Maintenance\V1\MaintenanceSummary[] $var * @return $this */ public function setMaintenances(array|RepeatedField $var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Openstatus\Maintenance\V1\MaintenanceSummary::class); $this->maintenances = $arr;
return $this; }
}