openstatus.monitor.v1.HTTPResponseLogDetail */ class HTTPResponseLogDetail extends \Google\Protobuf\Internal\Message { /** * Compact response log fields. * * Generated from protobuf field .openstatus.monitor.v1.HTTPResponseLogListItem log = 1 [json_name = "log"]; */ protected $log = null; /** * Checked URL. * * Generated from protobuf field string url = 2 [json_name = "url"]; */ protected $url = ''; /** * Whether the check errored. * * Generated from protobuf field bool error = 3 [json_name = "error"]; */ protected $error = false; /** * Error message, when present. * * Generated from protobuf field optional string message = 4 [json_name = "message"]; */ protected $message = null; /** * Redacted response headers. * * Generated from protobuf field map headers = 5 [json_name = "headers"]; */ private $headers; /** * Serialized assertions used for the check. * * Generated from protobuf field optional string assertions = 6 [json_name = "assertions"]; */ 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 .openstatus.monitor.v1.HTTPResponseLogListItem log = 1 [json_name = "log"]; * @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 .openstatus.monitor.v1.HTTPResponseLogListItem log = 1 [json_name = "log"]; * @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 string url = 2 [json_name = "url"]; * @return string */ public function getUrl() { return $this->url; } /** * Checked URL. * * Generated from protobuf field string url = 2 [json_name = "url"]; * @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 bool error = 3 [json_name = "error"]; * @return bool */ public function getError() { return $this->error; } /** * Whether the check errored. * * Generated from protobuf field bool error = 3 [json_name = "error"]; * @param bool $var * @return $this */ public function setError(bool $var) { $this->error = $var; return $this; } /** * Error message, when present. * * Generated from protobuf field optional string message = 4 [json_name = "message"]; * @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 optional string message = 4 [json_name = "message"]; * @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 map headers = 5 [json_name = "headers"]; * @return \Google\Protobuf\Internal\MapField */ public function getHeaders() { return $this->headers; } /** * Redacted response headers. * * Generated from protobuf field map headers = 5 [json_name = "headers"]; * @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 optional string assertions = 6 [json_name = "assertions"]; * @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 optional string assertions = 6 [json_name = "assertions"]; * @param string $var * @return $this */ public function setAssertions(string $var) { GPBUtil::checkString($var, true); $this->assertions = $var; return $this; } }