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