openstatus.health.v1.CheckRequest
*/
class CheckRequest extends \Google\Protobuf\Internal\Message
{
/**
* Optional service name to check. If empty, checks overall service health.
*
* Generated from protobuf field string service = 1 [json_name = "service"];
*/
protected $service = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $service
* Optional service name to check. If empty, checks overall service health.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Openstatus\Health\V1\Health::initOnce();
parent::__construct($data);
}
/**
* Optional service name to check. If empty, checks overall service health.
*
* Generated from protobuf field string service = 1 [json_name = "service"];
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* Optional service name to check. If empty, checks overall service health.
*
* Generated from protobuf field string service = 1 [json_name = "service"];
* @param string $var
* @return $this
*/
public function setService(string $var)
{
GPBUtil::checkString($var, true);
$this->service = $var;
return $this;
}
}