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.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/monitor/v1/service.proto
namespace Openstatus\Monitor\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * RegionStatus represents the status of a monitor in a specific region. * * Generated from protobuf message <code>openstatus.monitor.v1.RegionStatus</code> */class RegionStatus extends \Google\Protobuf\Internal\Message{ /** * The region identifier. * * Generated from protobuf field <code>.openstatus.monitor.v1.Region region = 1 [json_name = "region"];</code> */ protected $region = 0; /** * The status of the monitor in this region. * * Generated from protobuf field <code>.openstatus.monitor.v1.MonitorStatus status = 2 [json_name = "status"];</code> */ protected $status = 0;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $region * The region identifier. * @type int $status * The status of the monitor in this region. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Monitor\V1\Service::initOnce(); parent::__construct($data); }
/** * The region identifier. * * Generated from protobuf field <code>.openstatus.monitor.v1.Region region = 1 [json_name = "region"];</code> * @return int one of the values in {@see \Openstatus\Monitor\V1\Region} */ public function getRegion() { return $this->region; }
/** * The region identifier. * * Generated from protobuf field <code>.openstatus.monitor.v1.Region region = 1 [json_name = "region"];</code> * @param int $var one of the values in {@see \Openstatus\Monitor\V1\Region} * @return $this */ public function setRegion(int $var) { GPBUtil::checkEnum($var, \Openstatus\Monitor\V1\Region::class); $this->region = $var;
return $this; }
/** * The status of the monitor in this region. * * Generated from protobuf field <code>.openstatus.monitor.v1.MonitorStatus status = 2 [json_name = "status"];</code> * @return int one of the values in {@see \Openstatus\Monitor\V1\MonitorStatus} */ public function getStatus() { return $this->status; }
/** * The status of the monitor in this region. * * Generated from protobuf field <code>.openstatus.monitor.v1.MonitorStatus status = 2 [json_name = "status"];</code> * @param int $var one of the values in {@see \Openstatus\Monitor\V1\MonitorStatus} * @return $this */ public function setStatus(int $var) { GPBUtil::checkEnum($var, \Openstatus\Monitor\V1\MonitorStatus::class); $this->status = $var;
return $this; }
}