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.7 kB · 135 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136<?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;
/** * CheckNotificationLimitResponse is the response containing limit information. * * Generated from protobuf message <code>openstatus.notification.v1.CheckNotificationLimitResponse</code> */class CheckNotificationLimitResponse extends \Google\Protobuf\Internal\Message{ /** * Whether the workspace has reached its notification limit. * * Generated from protobuf field <code>bool limit_reached = 1 [json_name = "limitReached"];</code> */ protected $limit_reached = false; /** * Current number of notification channels. * * Generated from protobuf field <code>int32 current_count = 2 [json_name = "currentCount"];</code> */ protected $current_count = 0; /** * Maximum allowed notification channels. * * Generated from protobuf field <code>int32 max_count = 3 [json_name = "maxCount"];</code> */ protected $max_count = 0;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type bool $limit_reached * Whether the workspace has reached its notification limit. * @type int $current_count * Current number of notification channels. * @type int $max_count * Maximum allowed notification channels. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Notification\V1\Service::initOnce(); parent::__construct($data); }
/** * Whether the workspace has reached its notification limit. * * Generated from protobuf field <code>bool limit_reached = 1 [json_name = "limitReached"];</code> * @return bool */ public function getLimitReached() { return $this->limit_reached; }
/** * Whether the workspace has reached its notification limit. * * Generated from protobuf field <code>bool limit_reached = 1 [json_name = "limitReached"];</code> * @param bool $var * @return $this */ public function setLimitReached(bool $var) { $this->limit_reached = $var;
return $this; }
/** * Current number of notification channels. * * Generated from protobuf field <code>int32 current_count = 2 [json_name = "currentCount"];</code> * @return int */ public function getCurrentCount() { return $this->current_count; }
/** * Current number of notification channels. * * Generated from protobuf field <code>int32 current_count = 2 [json_name = "currentCount"];</code> * @param int $var * @return $this */ public function setCurrentCount(int $var) { GPBUtil::checkInt32($var); $this->current_count = $var;
return $this; }
/** * Maximum allowed notification channels. * * Generated from protobuf field <code>int32 max_count = 3 [json_name = "maxCount"];</code> * @return int */ public function getMaxCount() { return $this->max_count; }
/** * Maximum allowed notification channels. * * Generated from protobuf field <code>int32 max_count = 3 [json_name = "maxCount"];</code> * @param int $var * @return $this */ public function setMaxCount(int $var) { GPBUtil::checkInt32($var); $this->max_count = $var;
return $this; }
}