openstatus.monitor.v1.ListMonitorHTTPResponseLogsRequest
*/
class ListMonitorHTTPResponseLogsRequest extends \Google\Protobuf\Internal\Message
{
/**
* Monitor ID to list response logs for (required).
*
* Generated from protobuf field string id = 1 [json_name = "id", (.buf.validate.field) = {
*/
protected $id = '';
/**
* Start of the response log window as Unix milliseconds within the 14-day retention window.
*
* Generated from protobuf field optional int64 from_timestamp = 2 [json_name = "fromTimestamp"];
*/
protected $from_timestamp = null;
/**
* End of the response log window as Unix milliseconds within the 14-day retention window.
*
* Generated from protobuf field optional int64 to_timestamp = 3 [json_name = "toTimestamp"];
*/
protected $to_timestamp = null;
/**
* Maximum number of logs to return (1-100, defaults to 25).
*
* Generated from protobuf field optional int32 limit = 4 [json_name = "limit", (.buf.validate.field) = {
*/
protected $limit = null;
/**
* Number of logs to skip for pagination (defaults to 0).
*
* Generated from protobuf field optional int32 offset = 5 [json_name = "offset", (.buf.validate.field) = {
*/
protected $offset = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* Monitor ID to list response logs for (required).
* @type int|string $from_timestamp
* Start of the response log window as Unix milliseconds within the 14-day retention window.
* @type int|string $to_timestamp
* End of the response log window as Unix milliseconds within the 14-day retention window.
* @type int $limit
* Maximum number of logs to return (1-100, defaults to 25).
* @type int $offset
* Number of logs to skip for pagination (defaults to 0).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Openstatus\Monitor\V1\Service::initOnce();
parent::__construct($data);
}
/**
* Monitor ID to list response logs for (required).
*
* Generated from protobuf field string id = 1 [json_name = "id", (.buf.validate.field) = {
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Monitor ID to list response logs for (required).
*
* Generated from protobuf field string id = 1 [json_name = "id", (.buf.validate.field) = {
* @param string $var
* @return $this
*/
public function setId(string $var)
{
GPBUtil::checkString($var, true);
$this->id = $var;
return $this;
}
/**
* Start of the response log window as Unix milliseconds within the 14-day retention window.
*
* Generated from protobuf field optional int64 from_timestamp = 2 [json_name = "fromTimestamp"];
* @return int|string
*/
public function getFromTimestamp()
{
return isset($this->from_timestamp) ? $this->from_timestamp : GPBUtil::compatibleInt64(0, '0');
}
public function hasFromTimestamp()
{
return isset($this->from_timestamp);
}
public function clearFromTimestamp()
{
unset($this->from_timestamp);
}
/**
* Start of the response log window as Unix milliseconds within the 14-day retention window.
*
* Generated from protobuf field optional int64 from_timestamp = 2 [json_name = "fromTimestamp"];
* @param int|string $var
* @return $this
*/
public function setFromTimestamp(int|string $var)
{
GPBUtil::checkInt64($var);
$this->from_timestamp = $var;
return $this;
}
/**
* End of the response log window as Unix milliseconds within the 14-day retention window.
*
* Generated from protobuf field optional int64 to_timestamp = 3 [json_name = "toTimestamp"];
* @return int|string
*/
public function getToTimestamp()
{
return isset($this->to_timestamp) ? $this->to_timestamp : GPBUtil::compatibleInt64(0, '0');
}
public function hasToTimestamp()
{
return isset($this->to_timestamp);
}
public function clearToTimestamp()
{
unset($this->to_timestamp);
}
/**
* End of the response log window as Unix milliseconds within the 14-day retention window.
*
* Generated from protobuf field optional int64 to_timestamp = 3 [json_name = "toTimestamp"];
* @param int|string $var
* @return $this
*/
public function setToTimestamp(int|string $var)
{
GPBUtil::checkInt64($var);
$this->to_timestamp = $var;
return $this;
}
/**
* Maximum number of logs to return (1-100, defaults to 25).
*
* Generated from protobuf field optional int32 limit = 4 [json_name = "limit", (.buf.validate.field) = {
* @return int
*/
public function getLimit()
{
return isset($this->limit) ? $this->limit : 0;
}
public function hasLimit()
{
return isset($this->limit);
}
public function clearLimit()
{
unset($this->limit);
}
/**
* Maximum number of logs to return (1-100, defaults to 25).
*
* Generated from protobuf field optional int32 limit = 4 [json_name = "limit", (.buf.validate.field) = {
* @param int $var
* @return $this
*/
public function setLimit(int $var)
{
GPBUtil::checkInt32($var);
$this->limit = $var;
return $this;
}
/**
* Number of logs to skip for pagination (defaults to 0).
*
* Generated from protobuf field optional int32 offset = 5 [json_name = "offset", (.buf.validate.field) = {
* @return int
*/
public function getOffset()
{
return isset($this->offset) ? $this->offset : 0;
}
public function hasOffset()
{
return isset($this->offset);
}
public function clearOffset()
{
unset($this->offset);
}
/**
* Number of logs to skip for pagination (defaults to 0).
*
* Generated from protobuf field optional int32 offset = 5 [json_name = "offset", (.buf.validate.field) = {
* @param int $var
* @return $this
*/
public function setOffset(int $var)
{
GPBUtil::checkInt32($var);
$this->offset = $var;
return $this;
}
}