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.
7.1 kB · 240 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241<?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;
/** * UpdateNotificationRequest is the request to update a notification channel. * * Generated from protobuf message <code>openstatus.notification.v1.UpdateNotificationRequest</code> */class UpdateNotificationRequest extends \Google\Protobuf\Internal\Message{ /** * Notification ID to update (required). * * Generated from protobuf field <code>string id = 1 [json_name = "id", (.buf.validate.field) = {</code> */ protected $id = ''; /** * Updated display name. * * Generated from protobuf field <code>optional string name = 2 [json_name = "name"];</code> */ protected $name = null; /** * Updated provider-specific configuration. * * Generated from protobuf field <code>optional .openstatus.notification.v1.NotificationData data = 3 [json_name = "data"];</code> */ protected $data = null; /** * Updated monitor IDs to associate. * * Generated from protobuf field <code>repeated string monitor_ids = 4 [json_name = "monitorIds"];</code> */ private $monitor_ids; /** * Set to true to update monitor associations. * When true, monitor_ids replaces the existing list (empty clears all). * When false or unset, monitor_ids is ignored and existing associations are preserved. * * Generated from protobuf field <code>optional bool update_monitor_ids = 5 [json_name = "updateMonitorIds"];</code> */ protected $update_monitor_ids = null;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * Notification ID to update (required). * @type string $name * Updated display name. * @type \Openstatus\Notification\V1\NotificationData $data * Updated provider-specific configuration. * @type string[] $monitor_ids * Updated monitor IDs to associate. * @type bool $update_monitor_ids * Set to true to update monitor associations. * When true, monitor_ids replaces the existing list (empty clears all). * When false or unset, monitor_ids is ignored and existing associations are preserved. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Notification\V1\Service::initOnce(); parent::__construct($data); }
/** * Notification ID to update (required). * * Generated from protobuf field <code>string id = 1 [json_name = "id", (.buf.validate.field) = {</code> * @return string */ public function getId() { return $this->id; }
/** * Notification ID to update (required). * * Generated from protobuf field <code>string id = 1 [json_name = "id", (.buf.validate.field) = {</code> * @param string $var * @return $this */ public function setId(string $var) { GPBUtil::checkString($var, true); $this->id = $var;
return $this; }
/** * Updated display name. * * Generated from protobuf field <code>optional string name = 2 [json_name = "name"];</code> * @return string */ public function getName() { return isset($this->name) ? $this->name : ''; }
public function hasName() { return isset($this->name); }
public function clearName() { unset($this->name); }
/** * Updated display name. * * Generated from protobuf field <code>optional string name = 2 [json_name = "name"];</code> * @param string $var * @return $this */ public function setName(string $var) { GPBUtil::checkString($var, true); $this->name = $var;
return $this; }
/** * Updated provider-specific configuration. * * Generated from protobuf field <code>optional .openstatus.notification.v1.NotificationData data = 3 [json_name = "data"];</code> * @return \Openstatus\Notification\V1\NotificationData|null */ public function getData() { return $this->data; }
public function hasData() { return isset($this->data); }
public function clearData() { unset($this->data); }
/** * Updated provider-specific configuration. * * Generated from protobuf field <code>optional .openstatus.notification.v1.NotificationData data = 3 [json_name = "data"];</code> * @param \Openstatus\Notification\V1\NotificationData $var * @return $this */ public function setData(\Openstatus\Notification\V1\NotificationData|null $var) { $this->data = $var;
return $this; }
/** * Updated monitor IDs to associate. * * Generated from protobuf field <code>repeated string monitor_ids = 4 [json_name = "monitorIds"];</code> * @return RepeatedField<string> */ public function getMonitorIds() { return $this->monitor_ids; }
/** * Updated monitor IDs to associate. * * Generated from protobuf field <code>repeated string monitor_ids = 4 [json_name = "monitorIds"];</code> * @param string[] $var * @return $this */ public function setMonitorIds(array|RepeatedField $var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->monitor_ids = $arr;
return $this; }
/** * Set to true to update monitor associations. * When true, monitor_ids replaces the existing list (empty clears all). * When false or unset, monitor_ids is ignored and existing associations are preserved. * * Generated from protobuf field <code>optional bool update_monitor_ids = 5 [json_name = "updateMonitorIds"];</code> * @return bool */ public function getUpdateMonitorIds() { return isset($this->update_monitor_ids) ? $this->update_monitor_ids : false; }
public function hasUpdateMonitorIds() { return isset($this->update_monitor_ids); }
public function clearUpdateMonitorIds() { unset($this->update_monitor_ids); }
/** * Set to true to update monitor associations. * When true, monitor_ids replaces the existing list (empty clears all). * When false or unset, monitor_ids is ignored and existing associations are preserved. * * Generated from protobuf field <code>optional bool update_monitor_ids = 5 [json_name = "updateMonitorIds"];</code> * @param bool $var * @return $this */ public function setUpdateMonitorIds(bool $var) { $this->update_monitor_ids = $var;
return $this; }
}