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.1 kB · 102 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103<?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;
/** * ListNotificationsResponse is the response containing notification channels. * * Generated from protobuf message <code>openstatus.notification.v1.ListNotificationsResponse</code> */class ListNotificationsResponse extends \Google\Protobuf\Internal\Message{ /** * Notification channel summaries. * * Generated from protobuf field <code>repeated .openstatus.notification.v1.NotificationSummary notifications = 1 [json_name = "notifications"];</code> */ private $notifications; /** * Total number of notification channels. * * Generated from protobuf field <code>int32 total_size = 2 [json_name = "totalSize"];</code> */ protected $total_size = 0;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Openstatus\Notification\V1\NotificationSummary[] $notifications * Notification channel summaries. * @type int $total_size * Total number of notification channels. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Notification\V1\Service::initOnce(); parent::__construct($data); }
/** * Notification channel summaries. * * Generated from protobuf field <code>repeated .openstatus.notification.v1.NotificationSummary notifications = 1 [json_name = "notifications"];</code> * @return RepeatedField<\Openstatus\Notification\V1\NotificationSummary> */ public function getNotifications() { return $this->notifications; }
/** * Notification channel summaries. * * Generated from protobuf field <code>repeated .openstatus.notification.v1.NotificationSummary notifications = 1 [json_name = "notifications"];</code> * @param \Openstatus\Notification\V1\NotificationSummary[] $var * @return $this */ public function setNotifications(array|RepeatedField $var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Openstatus\Notification\V1\NotificationSummary::class); $this->notifications = $arr;
return $this; }
/** * Total number of notification channels. * * Generated from protobuf field <code>int32 total_size = 2 [json_name = "totalSize"];</code> * @return int */ public function getTotalSize() { return $this->total_size; }
/** * Total number of notification channels. * * Generated from protobuf field <code>int32 total_size = 2 [json_name = "totalSize"];</code> * @param int $var * @return $this */ public function setTotalSize(int $var) { GPBUtil::checkInt32($var); $this->total_size = $var;
return $this; }
}