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.
3.5 kB · 102 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103<?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;
/** * GetOverallStatusResponse is the response containing the overall status and individual component statuses. * * Generated from protobuf message <code>openstatus.status_page.v1.GetOverallStatusResponse</code> */class GetOverallStatusResponse extends \Google\Protobuf\Internal\Message{ /** * Aggregated status across all components. * * Generated from protobuf field <code>.openstatus.status_page.v1.OverallStatus overall_status = 1 [json_name = "overallStatus"];</code> */ protected $overall_status = 0; /** * Status of individual components. * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.ComponentStatus component_statuses = 2 [json_name = "componentStatuses"];</code> */ private $component_statuses;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $overall_status * Aggregated status across all components. * @type \Openstatus\Status_page\V1\ComponentStatus[] $component_statuses * Status of individual components. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce(); parent::__construct($data); }
/** * Aggregated status across all components. * * Generated from protobuf field <code>.openstatus.status_page.v1.OverallStatus overall_status = 1 [json_name = "overallStatus"];</code> * @return int one of the values in {@see \Openstatus\Status_page\V1\OverallStatus} */ public function getOverallStatus() { return $this->overall_status; }
/** * Aggregated status across all components. * * Generated from protobuf field <code>.openstatus.status_page.v1.OverallStatus overall_status = 1 [json_name = "overallStatus"];</code> * @param int $var one of the values in {@see \Openstatus\Status_page\V1\OverallStatus} * @return $this */ public function setOverallStatus(int $var) { GPBUtil::checkEnum($var, \Openstatus\Status_page\V1\OverallStatus::class); $this->overall_status = $var;
return $this; }
/** * Status of individual components. * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.ComponentStatus component_statuses = 2 [json_name = "componentStatuses"];</code> * @return RepeatedField<\Openstatus\Status_page\V1\ComponentStatus> */ public function getComponentStatuses() { return $this->component_statuses; }
/** * Status of individual components. * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.ComponentStatus component_statuses = 2 [json_name = "componentStatuses"];</code> * @param \Openstatus\Status_page\V1\ComponentStatus[] $var * @return $this */ public function setComponentStatuses(array|RepeatedField $var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Openstatus\Status_page\V1\ComponentStatus::class); $this->component_statuses = $arr;
return $this; }
}