openstatus.monitor.v1.HTTPResponseLogTiming
*/
class HTTPResponseLogTiming extends \Google\Protobuf\Internal\Message
{
/**
* DNS lookup duration.
*
* Generated from protobuf field int32 dns = 1 [json_name = "dns"];
*/
protected $dns = 0;
/**
* TCP connection duration.
*
* Generated from protobuf field int32 connect = 2 [json_name = "connect"];
*/
protected $connect = 0;
/**
* TLS handshake duration.
*
* Generated from protobuf field int32 tls = 3 [json_name = "tls"];
*/
protected $tls = 0;
/**
* Time to first byte duration.
*
* Generated from protobuf field int32 ttfb = 4 [json_name = "ttfb"];
*/
protected $ttfb = 0;
/**
* Response transfer duration.
*
* Generated from protobuf field int32 transfer = 5 [json_name = "transfer"];
*/
protected $transfer = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $dns
* DNS lookup duration.
* @type int $connect
* TCP connection duration.
* @type int $tls
* TLS handshake duration.
* @type int $ttfb
* Time to first byte duration.
* @type int $transfer
* Response transfer duration.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Openstatus\Monitor\V1\Service::initOnce();
parent::__construct($data);
}
/**
* DNS lookup duration.
*
* Generated from protobuf field int32 dns = 1 [json_name = "dns"];
* @return int
*/
public function getDns()
{
return $this->dns;
}
/**
* DNS lookup duration.
*
* Generated from protobuf field int32 dns = 1 [json_name = "dns"];
* @param int $var
* @return $this
*/
public function setDns(int $var)
{
GPBUtil::checkInt32($var);
$this->dns = $var;
return $this;
}
/**
* TCP connection duration.
*
* Generated from protobuf field int32 connect = 2 [json_name = "connect"];
* @return int
*/
public function getConnect()
{
return $this->connect;
}
/**
* TCP connection duration.
*
* Generated from protobuf field int32 connect = 2 [json_name = "connect"];
* @param int $var
* @return $this
*/
public function setConnect(int $var)
{
GPBUtil::checkInt32($var);
$this->connect = $var;
return $this;
}
/**
* TLS handshake duration.
*
* Generated from protobuf field int32 tls = 3 [json_name = "tls"];
* @return int
*/
public function getTls()
{
return $this->tls;
}
/**
* TLS handshake duration.
*
* Generated from protobuf field int32 tls = 3 [json_name = "tls"];
* @param int $var
* @return $this
*/
public function setTls(int $var)
{
GPBUtil::checkInt32($var);
$this->tls = $var;
return $this;
}
/**
* Time to first byte duration.
*
* Generated from protobuf field int32 ttfb = 4 [json_name = "ttfb"];
* @return int
*/
public function getTtfb()
{
return $this->ttfb;
}
/**
* Time to first byte duration.
*
* Generated from protobuf field int32 ttfb = 4 [json_name = "ttfb"];
* @param int $var
* @return $this
*/
public function setTtfb(int $var)
{
GPBUtil::checkInt32($var);
$this->ttfb = $var;
return $this;
}
/**
* Response transfer duration.
*
* Generated from protobuf field int32 transfer = 5 [json_name = "transfer"];
* @return int
*/
public function getTransfer()
{
return $this->transfer;
}
/**
* Response transfer duration.
*
* Generated from protobuf field int32 transfer = 5 [json_name = "transfer"];
* @param int $var
* @return $this
*/
public function setTransfer(int $var)
{
GPBUtil::checkInt32($var);
$this->transfer = $var;
return $this;
}
}