openstatus.notification.v1.NtfyData */ class NtfyData extends \Google\Protobuf\Internal\Message { /** * Ntfy topic to publish to. * * Generated from protobuf field string topic = 1 [json_name = "topic", (.gnostic.openapi.v3.property) = { */ protected $topic = ''; /** * Ntfy server URL (defaults to https://ntfy.sh). * * Generated from protobuf field string server_url = 2 [json_name = "serverUrl"]; */ protected $server_url = ''; /** * Optional authentication token. * * Generated from protobuf field optional string token = 3 [json_name = "token"]; */ protected $token = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $topic * Ntfy topic to publish to. * @type string $server_url * Ntfy server URL (defaults to https://ntfy.sh). * @type string $token * Optional authentication token. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Notification\V1\Providers::initOnce(); parent::__construct($data); } /** * Ntfy topic to publish to. * * Generated from protobuf field string topic = 1 [json_name = "topic", (.gnostic.openapi.v3.property) = { * @return string */ public function getTopic() { return $this->topic; } /** * Ntfy topic to publish to. * * Generated from protobuf field string topic = 1 [json_name = "topic", (.gnostic.openapi.v3.property) = { * @param string $var * @return $this */ public function setTopic(string $var) { GPBUtil::checkString($var, true); $this->topic = $var; return $this; } /** * Ntfy server URL (defaults to https://ntfy.sh). * * Generated from protobuf field string server_url = 2 [json_name = "serverUrl"]; * @return string */ public function getServerUrl() { return $this->server_url; } /** * Ntfy server URL (defaults to https://ntfy.sh). * * Generated from protobuf field string server_url = 2 [json_name = "serverUrl"]; * @param string $var * @return $this */ public function setServerUrl(string $var) { GPBUtil::checkString($var, true); $this->server_url = $var; return $this; } /** * Optional authentication token. * * Generated from protobuf field optional string token = 3 [json_name = "token"]; * @return string */ public function getToken() { return isset($this->token) ? $this->token : ''; } public function hasToken() { return isset($this->token); } public function clearToken() { unset($this->token); } /** * Optional authentication token. * * Generated from protobuf field optional string token = 3 [json_name = "token"]; * @param string $var * @return $this */ public function setToken(string $var) { GPBUtil::checkString($var, true); $this->token = $var; return $this; } }