Monitoring/src/V3/UptimeCheckConfig.php
public function setTcpCheck($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Monitoring\V3\UptimeCheckConfig_TcpCheck::class);
        $this->writeOneof(6, $var);

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

        return $this;
    }
public function setTcpCheck ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Monitoring \ V3 \ UptimeCheckConfig_TcpCheck :: class ) ; $ this -> writeOneof ( 6 , $ var ) ; return $ this ; }
Contains information needed to make a TCP check.

Generated from protobuf field <code>.google.monitoring.v3.UptimeCheckConfig.TcpCheck tcp_check = 6;</code>
@param \Google\Cloud\Monitoring\V3\UptimeCheckConfig\TcpCheck $var
@return $this
Contains information needed to make a TCP check .