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.
13 kB · 459 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460<?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;
/** * NotificationData is a union of provider-specific configuration. * * Generated from protobuf message <code>openstatus.notification.v1.NotificationData</code> */class NotificationData extends \Google\Protobuf\Internal\Message{ protected $data;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Openstatus\Notification\V1\DiscordData $discord * Discord configuration. * @type \Openstatus\Notification\V1\EmailData $email * Email configuration. * @type \Openstatus\Notification\V1\GoogleChatData $google_chat * Google Chat configuration. * @type \Openstatus\Notification\V1\GrafanaOncallData $grafana_oncall * Grafana OnCall configuration. * @type \Openstatus\Notification\V1\NtfyData $ntfy * Ntfy configuration. * @type \Openstatus\Notification\V1\PagerDutyData $pagerduty * PagerDuty configuration. * @type \Openstatus\Notification\V1\OpsgenieData $opsgenie * Opsgenie configuration. * @type \Openstatus\Notification\V1\SlackData $slack * Slack configuration. * @type \Openstatus\Notification\V1\SmsData $sms * SMS configuration. * @type \Openstatus\Notification\V1\TelegramData $telegram * Telegram configuration. * @type \Openstatus\Notification\V1\WebhookData $webhook * Webhook configuration. * @type \Openstatus\Notification\V1\WhatsappData $whatsapp * WhatsApp configuration. * @type \Openstatus\Notification\V1\MsTeamsData $ms_teams * Microsoft Teams configuration. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Notification\V1\Providers::initOnce(); parent::__construct($data); }
/** * Discord configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.DiscordData discord = 1 [json_name = "discord"];</code> * @return \Openstatus\Notification\V1\DiscordData|null */ public function getDiscord() { return $this->readOneof(1); }
public function hasDiscord() { return $this->hasOneof(1); }
/** * Discord configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.DiscordData discord = 1 [json_name = "discord"];</code> * @param \Openstatus\Notification\V1\DiscordData $var * @return $this */ public function setDiscord(\Openstatus\Notification\V1\DiscordData|null $var) { $this->writeOneof(1, $var);
return $this; }
/** * Email configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.EmailData email = 2 [json_name = "email"];</code> * @return \Openstatus\Notification\V1\EmailData|null */ public function getEmail() { return $this->readOneof(2); }
public function hasEmail() { return $this->hasOneof(2); }
/** * Email configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.EmailData email = 2 [json_name = "email"];</code> * @param \Openstatus\Notification\V1\EmailData $var * @return $this */ public function setEmail(\Openstatus\Notification\V1\EmailData|null $var) { $this->writeOneof(2, $var);
return $this; }
/** * Google Chat configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.GoogleChatData google_chat = 3 [json_name = "googleChat"];</code> * @return \Openstatus\Notification\V1\GoogleChatData|null */ public function getGoogleChat() { return $this->readOneof(3); }
public function hasGoogleChat() { return $this->hasOneof(3); }
/** * Google Chat configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.GoogleChatData google_chat = 3 [json_name = "googleChat"];</code> * @param \Openstatus\Notification\V1\GoogleChatData $var * @return $this */ public function setGoogleChat(\Openstatus\Notification\V1\GoogleChatData|null $var) { $this->writeOneof(3, $var);
return $this; }
/** * Grafana OnCall configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.GrafanaOncallData grafana_oncall = 4 [json_name = "grafanaOncall"];</code> * @return \Openstatus\Notification\V1\GrafanaOncallData|null */ public function getGrafanaOncall() { return $this->readOneof(4); }
public function hasGrafanaOncall() { return $this->hasOneof(4); }
/** * Grafana OnCall configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.GrafanaOncallData grafana_oncall = 4 [json_name = "grafanaOncall"];</code> * @param \Openstatus\Notification\V1\GrafanaOncallData $var * @return $this */ public function setGrafanaOncall(\Openstatus\Notification\V1\GrafanaOncallData|null $var) { $this->writeOneof(4, $var);
return $this; }
/** * Ntfy configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.NtfyData ntfy = 5 [json_name = "ntfy"];</code> * @return \Openstatus\Notification\V1\NtfyData|null */ public function getNtfy() { return $this->readOneof(5); }
public function hasNtfy() { return $this->hasOneof(5); }
/** * Ntfy configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.NtfyData ntfy = 5 [json_name = "ntfy"];</code> * @param \Openstatus\Notification\V1\NtfyData $var * @return $this */ public function setNtfy(\Openstatus\Notification\V1\NtfyData|null $var) { $this->writeOneof(5, $var);
return $this; }
/** * PagerDuty configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.PagerDutyData pagerduty = 6 [json_name = "pagerduty"];</code> * @return \Openstatus\Notification\V1\PagerDutyData|null */ public function getPagerduty() { return $this->readOneof(6); }
public function hasPagerduty() { return $this->hasOneof(6); }
/** * PagerDuty configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.PagerDutyData pagerduty = 6 [json_name = "pagerduty"];</code> * @param \Openstatus\Notification\V1\PagerDutyData $var * @return $this */ public function setPagerduty(\Openstatus\Notification\V1\PagerDutyData|null $var) { $this->writeOneof(6, $var);
return $this; }
/** * Opsgenie configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.OpsgenieData opsgenie = 7 [json_name = "opsgenie"];</code> * @return \Openstatus\Notification\V1\OpsgenieData|null */ public function getOpsgenie() { return $this->readOneof(7); }
public function hasOpsgenie() { return $this->hasOneof(7); }
/** * Opsgenie configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.OpsgenieData opsgenie = 7 [json_name = "opsgenie"];</code> * @param \Openstatus\Notification\V1\OpsgenieData $var * @return $this */ public function setOpsgenie(\Openstatus\Notification\V1\OpsgenieData|null $var) { $this->writeOneof(7, $var);
return $this; }
/** * Slack configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.SlackData slack = 8 [json_name = "slack"];</code> * @return \Openstatus\Notification\V1\SlackData|null */ public function getSlack() { return $this->readOneof(8); }
public function hasSlack() { return $this->hasOneof(8); }
/** * Slack configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.SlackData slack = 8 [json_name = "slack"];</code> * @param \Openstatus\Notification\V1\SlackData $var * @return $this */ public function setSlack(\Openstatus\Notification\V1\SlackData|null $var) { $this->writeOneof(8, $var);
return $this; }
/** * SMS configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.SmsData sms = 9 [json_name = "sms"];</code> * @return \Openstatus\Notification\V1\SmsData|null */ public function getSms() { return $this->readOneof(9); }
public function hasSms() { return $this->hasOneof(9); }
/** * SMS configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.SmsData sms = 9 [json_name = "sms"];</code> * @param \Openstatus\Notification\V1\SmsData $var * @return $this */ public function setSms(\Openstatus\Notification\V1\SmsData|null $var) { $this->writeOneof(9, $var);
return $this; }
/** * Telegram configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.TelegramData telegram = 10 [json_name = "telegram"];</code> * @return \Openstatus\Notification\V1\TelegramData|null */ public function getTelegram() { return $this->readOneof(10); }
public function hasTelegram() { return $this->hasOneof(10); }
/** * Telegram configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.TelegramData telegram = 10 [json_name = "telegram"];</code> * @param \Openstatus\Notification\V1\TelegramData $var * @return $this */ public function setTelegram(\Openstatus\Notification\V1\TelegramData|null $var) { $this->writeOneof(10, $var);
return $this; }
/** * Webhook configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.WebhookData webhook = 11 [json_name = "webhook"];</code> * @return \Openstatus\Notification\V1\WebhookData|null */ public function getWebhook() { return $this->readOneof(11); }
public function hasWebhook() { return $this->hasOneof(11); }
/** * Webhook configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.WebhookData webhook = 11 [json_name = "webhook"];</code> * @param \Openstatus\Notification\V1\WebhookData $var * @return $this */ public function setWebhook(\Openstatus\Notification\V1\WebhookData|null $var) { $this->writeOneof(11, $var);
return $this; }
/** * WhatsApp configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.WhatsappData whatsapp = 12 [json_name = "whatsapp"];</code> * @return \Openstatus\Notification\V1\WhatsappData|null */ public function getWhatsapp() { return $this->readOneof(12); }
public function hasWhatsapp() { return $this->hasOneof(12); }
/** * WhatsApp configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.WhatsappData whatsapp = 12 [json_name = "whatsapp"];</code> * @param \Openstatus\Notification\V1\WhatsappData $var * @return $this */ public function setWhatsapp(\Openstatus\Notification\V1\WhatsappData|null $var) { $this->writeOneof(12, $var);
return $this; }
/** * Microsoft Teams configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.MsTeamsData ms_teams = 13 [json_name = "msTeams"];</code> * @return \Openstatus\Notification\V1\MsTeamsData|null */ public function getMsTeams() { return $this->readOneof(13); }
public function hasMsTeams() { return $this->hasOneof(13); }
/** * Microsoft Teams configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.MsTeamsData ms_teams = 13 [json_name = "msTeams"];</code> * @param \Openstatus\Notification\V1\MsTeamsData $var * @return $this */ public function setMsTeams(\Openstatus\Notification\V1\MsTeamsData|null $var) { $this->writeOneof(13, $var);
return $this; }
/** * @return string */ public function getData() { return $this->whichOneof("data"); }
}