openstatus.health.v1.CheckResponse
*/
class CheckResponse extends \Google\Protobuf\Internal\Message
{
/**
* The serving status of the service.
*
* Generated from protobuf field .openstatus.health.v1.CheckResponse.ServingStatus status = 1 [json_name = "status"];
*/
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 .openstatus.health.v1.CheckResponse.ServingStatus status = 1 [json_name = "status"];
* @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 .openstatus.health.v1.CheckResponse.ServingStatus status = 1 [json_name = "status"];
* @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;
}
}