openstatus.notification.v1.ListNotificationsResponse */ class ListNotificationsResponse extends \Google\Protobuf\Internal\Message { /** * Notification channel summaries. * * Generated from protobuf field repeated .openstatus.notification.v1.NotificationSummary notifications = 1 [json_name = "notifications"]; */ private $notifications; /** * Total number of notification channels. * * Generated from protobuf field int32 total_size = 2 [json_name = "totalSize"]; */ 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 repeated .openstatus.notification.v1.NotificationSummary notifications = 1 [json_name = "notifications"]; * @return RepeatedField<\Openstatus\Notification\V1\NotificationSummary> */ public function getNotifications() { return $this->notifications; } /** * Notification channel summaries. * * Generated from protobuf field repeated .openstatus.notification.v1.NotificationSummary notifications = 1 [json_name = "notifications"]; * @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 int32 total_size = 2 [json_name = "totalSize"]; * @return int */ public function getTotalSize() { return $this->total_size; } /** * Total number of notification channels. * * Generated from protobuf field int32 total_size = 2 [json_name = "totalSize"]; * @param int $var * @return $this */ public function setTotalSize(int $var) { GPBUtil::checkInt32($var); $this->total_size = $var; return $this; } }