openstatus.status_page.v1.GetOverallStatusResponse */ class GetOverallStatusResponse extends \Google\Protobuf\Internal\Message { /** * Aggregated status across all components. * * Generated from protobuf field .openstatus.status_page.v1.OverallStatus overall_status = 1 [json_name = "overallStatus"]; */ protected $overall_status = 0; /** * Status of individual components. * * Generated from protobuf field repeated .openstatus.status_page.v1.ComponentStatus component_statuses = 2 [json_name = "componentStatuses"]; */ 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 .openstatus.status_page.v1.OverallStatus overall_status = 1 [json_name = "overallStatus"]; * @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 .openstatus.status_page.v1.OverallStatus overall_status = 1 [json_name = "overallStatus"]; * @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 repeated .openstatus.status_page.v1.ComponentStatus component_statuses = 2 [json_name = "componentStatuses"]; * @return RepeatedField<\Openstatus\Status_page\V1\ComponentStatus> */ public function getComponentStatuses() { return $this->component_statuses; } /** * Status of individual components. * * Generated from protobuf field repeated .openstatus.status_page.v1.ComponentStatus component_statuses = 2 [json_name = "componentStatuses"]; * @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; } }