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.4 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;
/** * SendTestNotificationRequest is the request to send a test notification. * * Generated from protobuf message <code>openstatus.notification.v1.SendTestNotificationRequest</code> */class SendTestNotificationRequest extends \Google\Protobuf\Internal\Message{ /** * Provider type. * * Generated from protobuf field <code>.openstatus.notification.v1.NotificationProvider provider = 1 [json_name = "provider", (.buf.validate.field) = {</code> */ protected $provider = 0; /** * Provider-specific configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.NotificationData data = 2 [json_name = "data", (.buf.validate.field) = {</code> */ protected $data = null;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $provider * Provider type. * @type \Openstatus\Notification\V1\NotificationData $data * Provider-specific configuration. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Notification\V1\Service::initOnce(); parent::__construct($data); }
/** * Provider type. * * Generated from protobuf field <code>.openstatus.notification.v1.NotificationProvider provider = 1 [json_name = "provider", (.buf.validate.field) = {</code> * @return int one of the values in {@see \Openstatus\Notification\V1\NotificationProvider} */ public function getProvider() { return $this->provider; }
/** * Provider type. * * Generated from protobuf field <code>.openstatus.notification.v1.NotificationProvider provider = 1 [json_name = "provider", (.buf.validate.field) = {</code> * @param int $var one of the values in {@see \Openstatus\Notification\V1\NotificationProvider} * @return $this */ public function setProvider(int $var) { GPBUtil::checkEnum($var, \Openstatus\Notification\V1\NotificationProvider::class); $this->provider = $var;
return $this; }
/** * Provider-specific configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.NotificationData data = 2 [json_name = "data", (.buf.validate.field) = {</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); }
/** * Provider-specific configuration. * * Generated from protobuf field <code>.openstatus.notification.v1.NotificationData data = 2 [json_name = "data", (.buf.validate.field) = {</code> * @param \Openstatus\Notification\V1\NotificationData $var * @return $this */ public function setData(\Openstatus\Notification\V1\NotificationData|null $var) { $this->data = $var;
return $this; }
}