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.8 kB · 146 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/notification/v1/providers.proto
namespace Openstatus\Notification\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * NtfyData contains configuration for Ntfy notifications. * * Generated from protobuf message <code>openstatus.notification.v1.NtfyData</code> */class NtfyData extends \Google\Protobuf\Internal\Message{ /** * Ntfy topic to publish to. * * Generated from protobuf field <code>string topic = 1 [json_name = "topic", (.gnostic.openapi.v3.property) = {</code> */ protected $topic = ''; /** * Ntfy server URL (defaults to https://ntfy.sh). * * Generated from protobuf field <code>string server_url = 2 [json_name = "serverUrl"];</code> */ protected $server_url = ''; /** * Optional authentication token. * * Generated from protobuf field <code>optional string token = 3 [json_name = "token"];</code> */ 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 <code>string topic = 1 [json_name = "topic", (.gnostic.openapi.v3.property) = {</code> * @return string */ public function getTopic() { return $this->topic; }
/** * Ntfy topic to publish to. * * Generated from protobuf field <code>string topic = 1 [json_name = "topic", (.gnostic.openapi.v3.property) = {</code> * @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 <code>string server_url = 2 [json_name = "serverUrl"];</code> * @return string */ public function getServerUrl() { return $this->server_url; }
/** * Ntfy server URL (defaults to https://ntfy.sh). * * Generated from protobuf field <code>string server_url = 2 [json_name = "serverUrl"];</code> * @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 <code>optional string token = 3 [json_name = "token"];</code> * @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 <code>optional string token = 3 [json_name = "token"];</code> * @param string $var * @return $this */ public function setToken(string $var) { GPBUtil::checkString($var, true); $this->token = $var;
return $this; }
}