openstatus.notification.v1.CheckNotificationLimitResponse */ class CheckNotificationLimitResponse extends \Google\Protobuf\Internal\Message { /** * Whether the workspace has reached its notification limit. * * Generated from protobuf field bool limit_reached = 1 [json_name = "limitReached"]; */ protected $limit_reached = false; /** * Current number of notification channels. * * Generated from protobuf field int32 current_count = 2 [json_name = "currentCount"]; */ protected $current_count = 0; /** * Maximum allowed notification channels. * * Generated from protobuf field int32 max_count = 3 [json_name = "maxCount"]; */ 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 bool limit_reached = 1 [json_name = "limitReached"]; * @return bool */ public function getLimitReached() { return $this->limit_reached; } /** * Whether the workspace has reached its notification limit. * * Generated from protobuf field bool limit_reached = 1 [json_name = "limitReached"]; * @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 int32 current_count = 2 [json_name = "currentCount"]; * @return int */ public function getCurrentCount() { return $this->current_count; } /** * Current number of notification channels. * * Generated from protobuf field int32 current_count = 2 [json_name = "currentCount"]; * @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 int32 max_count = 3 [json_name = "maxCount"]; * @return int */ public function getMaxCount() { return $this->max_count; } /** * Maximum allowed notification channels. * * Generated from protobuf field int32 max_count = 3 [json_name = "maxCount"]; * @param int $var * @return $this */ public function setMaxCount(int $var) { GPBUtil::checkInt32($var); $this->max_count = $var; return $this; } }