openstatus.status_page.v1.GetStatusPageContentResponse */ class GetStatusPageContentResponse extends \Google\Protobuf\Internal\Message { /** * The status page details. * * Generated from protobuf field .openstatus.status_page.v1.StatusPage status_page = 1 [json_name = "statusPage"]; */ protected $status_page = null; /** * Components on the status page. * * Generated from protobuf field repeated .openstatus.status_page.v1.PageComponent components = 2 [json_name = "components"]; */ private $components; /** * Component groups on the status page. * * Generated from protobuf field repeated .openstatus.status_page.v1.PageComponentGroup groups = 3 [json_name = "groups"]; */ private $groups; /** * Active and recent status reports. * * Generated from protobuf field repeated .openstatus.status_report.v1.StatusReport status_reports = 4 [json_name = "statusReports"]; */ private $status_reports; /** * Scheduled maintenances. * * Generated from protobuf field repeated .openstatus.maintenance.v1.MaintenanceSummary maintenances = 5 [json_name = "maintenances"]; */ 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 .openstatus.status_page.v1.StatusPage status_page = 1 [json_name = "statusPage"]; * @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 .openstatus.status_page.v1.StatusPage status_page = 1 [json_name = "statusPage"]; * @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 repeated .openstatus.status_page.v1.PageComponent components = 2 [json_name = "components"]; * @return RepeatedField<\Openstatus\Status_page\V1\PageComponent> */ public function getComponents() { return $this->components; } /** * Components on the status page. * * Generated from protobuf field repeated .openstatus.status_page.v1.PageComponent components = 2 [json_name = "components"]; * @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 repeated .openstatus.status_page.v1.PageComponentGroup groups = 3 [json_name = "groups"]; * @return RepeatedField<\Openstatus\Status_page\V1\PageComponentGroup> */ public function getGroups() { return $this->groups; } /** * Component groups on the status page. * * Generated from protobuf field repeated .openstatus.status_page.v1.PageComponentGroup groups = 3 [json_name = "groups"]; * @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 repeated .openstatus.status_report.v1.StatusReport status_reports = 4 [json_name = "statusReports"]; * @return RepeatedField<\Openstatus\Status_report\V1\StatusReport> */ public function getStatusReports() { return $this->status_reports; } /** * Active and recent status reports. * * Generated from protobuf field repeated .openstatus.status_report.v1.StatusReport status_reports = 4 [json_name = "statusReports"]; * @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 repeated .openstatus.maintenance.v1.MaintenanceSummary maintenances = 5 [json_name = "maintenances"]; * @return RepeatedField<\Openstatus\Maintenance\V1\MaintenanceSummary> */ public function getMaintenances() { return $this->maintenances; } /** * Scheduled maintenances. * * Generated from protobuf field repeated .openstatus.maintenance.v1.MaintenanceSummary maintenances = 5 [json_name = "maintenances"]; * @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; } }