Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/sdk-php. php sdk for openstatus www.openstatus.dev
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/monitor/v1/service.proto
namespace Openstatus\Monitor\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * HTTPResponseLogDetail contains full response log debugging data. * * Generated from protobuf message <code>openstatus.monitor.v1.HTTPResponseLogDetail</code> */class HTTPResponseLogDetail extends \Google\Protobuf\Internal\Message{ /** * Compact response log fields. * * Generated from protobuf field <code>.openstatus.monitor.v1.HTTPResponseLogListItem log = 1 [json_name = "log"];</code> */ protected $log = null; /** * Checked URL. * * Generated from protobuf field <code>string url = 2 [json_name = "url"];</code> */ protected $url = ''; /** * Whether the check errored. * * Generated from protobuf field <code>bool error = 3 [json_name = "error"];</code> */ protected $error = false; /** * Error message, when present. * * Generated from protobuf field <code>optional string message = 4 [json_name = "message"];</code> */ protected $message = null; /** * Redacted response headers. * * Generated from protobuf field <code>map<string, string> headers = 5 [json_name = "headers"];</code> */ private $headers; /** * Serialized assertions used for the check. * * Generated from protobuf field <code>optional string assertions = 6 [json_name = "assertions"];</code> */ protected $assertions = null;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Openstatus\Monitor\V1\HTTPResponseLogListItem $log * Compact response log fields. * @type string $url * Checked URL. * @type bool $error * Whether the check errored. * @type string $message * Error message, when present. * @type array|\Google\Protobuf\Internal\MapField $headers * Redacted response headers. * @type string $assertions * Serialized assertions used for the check. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Monitor\V1\Service::initOnce(); parent::__construct($data); }
/** * Compact response log fields. * * Generated from protobuf field <code>.openstatus.monitor.v1.HTTPResponseLogListItem log = 1 [json_name = "log"];</code> * @return \Openstatus\Monitor\V1\HTTPResponseLogListItem|null */ public function getLog() { return $this->log; }
public function hasLog() { return isset($this->log); }
public function clearLog() { unset($this->log); }
/** * Compact response log fields. * * Generated from protobuf field <code>.openstatus.monitor.v1.HTTPResponseLogListItem log = 1 [json_name = "log"];</code> * @param \Openstatus\Monitor\V1\HTTPResponseLogListItem $var * @return $this */ public function setLog(\Openstatus\Monitor\V1\HTTPResponseLogListItem|null $var) { $this->log = $var;
return $this; }
/** * Checked URL. * * Generated from protobuf field <code>string url = 2 [json_name = "url"];</code> * @return string */ public function getUrl() { return $this->url; }
/** * Checked URL. * * Generated from protobuf field <code>string url = 2 [json_name = "url"];</code> * @param string $var * @return $this */ public function setUrl(string $var) { GPBUtil::checkString($var, true); $this->url = $var;
return $this; }
/** * Whether the check errored. * * Generated from protobuf field <code>bool error = 3 [json_name = "error"];</code> * @return bool */ public function getError() { return $this->error; }
/** * Whether the check errored. * * Generated from protobuf field <code>bool error = 3 [json_name = "error"];</code> * @param bool $var * @return $this */ public function setError(bool $var) { $this->error = $var;
return $this; }
/** * Error message, when present. * * Generated from protobuf field <code>optional string message = 4 [json_name = "message"];</code> * @return string */ public function getMessage() { return isset($this->message) ? $this->message : ''; }
public function hasMessage() { return isset($this->message); }
public function clearMessage() { unset($this->message); }
/** * Error message, when present. * * Generated from protobuf field <code>optional string message = 4 [json_name = "message"];</code> * @param string $var * @return $this */ public function setMessage(string $var) { GPBUtil::checkString($var, true); $this->message = $var;
return $this; }
/** * Redacted response headers. * * Generated from protobuf field <code>map<string, string> headers = 5 [json_name = "headers"];</code> * @return \Google\Protobuf\Internal\MapField */ public function getHeaders() { return $this->headers; }
/** * Redacted response headers. * * Generated from protobuf field <code>map<string, string> headers = 5 [json_name = "headers"];</code> * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setHeaders(array|\Google\Protobuf\Internal\MapField $var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->headers = $arr;
return $this; }
/** * Serialized assertions used for the check. * * Generated from protobuf field <code>optional string assertions = 6 [json_name = "assertions"];</code> * @return string */ public function getAssertions() { return isset($this->assertions) ? $this->assertions : ''; }
public function hasAssertions() { return isset($this->assertions); }
public function clearAssertions() { unset($this->assertions); }
/** * Serialized assertions used for the check. * * Generated from protobuf field <code>optional string assertions = 6 [json_name = "assertions"];</code> * @param string $var * @return $this */ public function setAssertions(string $var) { GPBUtil::checkString($var, true); $this->assertions = $var;
return $this; }
}