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.
2.9 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;
/** * ComponentStatus represents the status of a single component. * * Generated from protobuf message <code>openstatus.status_page.v1.ComponentStatus</code> */class ComponentStatus extends \Google\Protobuf\Internal\Message{ /** * ID of the component. * * Generated from protobuf field <code>string component_id = 1 [json_name = "componentId"];</code> */ protected $component_id = ''; /** * Current status of the component. * * Generated from protobuf field <code>.openstatus.status_page.v1.OverallStatus status = 2 [json_name = "status"];</code> */ protected $status = 0;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $component_id * ID of the component. * @type int $status * Current status of the component. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce(); parent::__construct($data); }
/** * ID of the component. * * Generated from protobuf field <code>string component_id = 1 [json_name = "componentId"];</code> * @return string */ public function getComponentId() { return $this->component_id; }
/** * ID of the component. * * Generated from protobuf field <code>string component_id = 1 [json_name = "componentId"];</code> * @param string $var * @return $this */ public function setComponentId(string $var) { GPBUtil::checkString($var, true); $this->component_id = $var;
return $this; }
/** * Current status of the component. * * Generated from protobuf field <code>.openstatus.status_page.v1.OverallStatus status = 2 [json_name = "status"];</code> * @return int one of the values in {@see \Openstatus\Status_page\V1\OverallStatus} */ public function getStatus() { return $this->status; }
/** * Current status of the component. * * Generated from protobuf field <code>.openstatus.status_page.v1.OverallStatus status = 2 [json_name = "status"];</code> * @param int $var one of the values in {@see \Openstatus\Status_page\V1\OverallStatus} * @return $this */ public function setStatus(int $var) { GPBUtil::checkEnum($var, \Openstatus\Status_page\V1\OverallStatus::class); $this->status = $var;
return $this; }
}