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.
3.0 kB · 111 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/notification/v1/service.proto
namespace Openstatus\Notification\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * SendTestNotificationResponse is the response after sending a test notification. * * Generated from protobuf message <code>openstatus.notification.v1.SendTestNotificationResponse</code> */class SendTestNotificationResponse extends \Google\Protobuf\Internal\Message{ /** * Whether the test was successful. * * Generated from protobuf field <code>bool success = 1 [json_name = "success"];</code> */ protected $success = false; /** * Optional error message if the test failed. * * Generated from protobuf field <code>optional string error_message = 2 [json_name = "errorMessage"];</code> */ protected $error_message = null;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type bool $success * Whether the test was successful. * @type string $error_message * Optional error message if the test failed. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Notification\V1\Service::initOnce(); parent::__construct($data); }
/** * Whether the test was successful. * * Generated from protobuf field <code>bool success = 1 [json_name = "success"];</code> * @return bool */ public function getSuccess() { return $this->success; }
/** * Whether the test was successful. * * Generated from protobuf field <code>bool success = 1 [json_name = "success"];</code> * @param bool $var * @return $this */ public function setSuccess(bool $var) { $this->success = $var;
return $this; }
/** * Optional error message if the test failed. * * Generated from protobuf field <code>optional string error_message = 2 [json_name = "errorMessage"];</code> * @return string */ public function getErrorMessage() { return isset($this->error_message) ? $this->error_message : ''; }
public function hasErrorMessage() { return isset($this->error_message); }
public function clearErrorMessage() { unset($this->error_message); }
/** * Optional error message if the test failed. * * Generated from protobuf field <code>optional string error_message = 2 [json_name = "errorMessage"];</code> * @param string $var * @return $this */ public function setErrorMessage(string $var) { GPBUtil::checkString($var, true); $this->error_message = $var;
return $this; }
}