openstatus.monitor.v1.RegionStatus */ class RegionStatus extends \Google\Protobuf\Internal\Message { /** * The region identifier. * * Generated from protobuf field .openstatus.monitor.v1.Region region = 1 [json_name = "region"]; */ protected $region = 0; /** * The status of the monitor in this region. * * Generated from protobuf field .openstatus.monitor.v1.MonitorStatus status = 2 [json_name = "status"]; */ 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 .openstatus.monitor.v1.Region region = 1 [json_name = "region"]; * @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 .openstatus.monitor.v1.Region region = 1 [json_name = "region"]; * @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 .openstatus.monitor.v1.MonitorStatus status = 2 [json_name = "status"]; * @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 .openstatus.monitor.v1.MonitorStatus status = 2 [json_name = "status"]; * @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; } }