public function setHttpCheck($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Monitoring\V3\UptimeCheckConfig_HttpCheck::class);
        $this->writeOneof(5, $var);

        return $this;
    }
public function setHttpCheck($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Monitoring\V3\UptimeCheckConfig_HttpCheck::class);
        $this->writeOneof(5, $var);

        return $this;
    }
public function setHttpCheck ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Monitoring \ V3 \ UptimeCheckConfig_HttpCheck :: class ) ; $ this -> writeOneof ( 5 , $ var ) ; return $ this ; }
Contains information needed to make an HTTP or HTTPS check.

Generated from protobuf field <code>.google.monitoring.v3.UptimeCheckConfig.HttpCheck http_check = 5;</code>
@param \Google\Cloud\Monitoring\V3\UptimeCheckConfig\HttpCheck $var
@return $this
Contains information needed to make an HTTP or HTTPS check .