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 · 122 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123<?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;
/** * ListNotificationsRequest is the request to list notification channels. * * Generated from protobuf message <code>openstatus.notification.v1.ListNotificationsRequest</code> */class ListNotificationsRequest extends \Google\Protobuf\Internal\Message{ /** * Maximum number of notifications to return (1-100, defaults to 50). * * Generated from protobuf field <code>optional int32 limit = 1 [json_name = "limit", (.buf.validate.field) = {</code> */ protected $limit = null; /** * Number of notifications to skip for pagination (defaults to 0). * * Generated from protobuf field <code>optional int32 offset = 2 [json_name = "offset", (.buf.validate.field) = {</code> */ protected $offset = null;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $limit * Maximum number of notifications to return (1-100, defaults to 50). * @type int $offset * Number of notifications to skip for pagination (defaults to 0). * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Notification\V1\Service::initOnce(); parent::__construct($data); }
/** * Maximum number of notifications to return (1-100, defaults to 50). * * Generated from protobuf field <code>optional int32 limit = 1 [json_name = "limit", (.buf.validate.field) = {</code> * @return int */ public function getLimit() { return isset($this->limit) ? $this->limit : 0; }
public function hasLimit() { return isset($this->limit); }
public function clearLimit() { unset($this->limit); }
/** * Maximum number of notifications to return (1-100, defaults to 50). * * Generated from protobuf field <code>optional int32 limit = 1 [json_name = "limit", (.buf.validate.field) = {</code> * @param int $var * @return $this */ public function setLimit(int $var) { GPBUtil::checkInt32($var); $this->limit = $var;
return $this; }
/** * Number of notifications to skip for pagination (defaults to 0). * * Generated from protobuf field <code>optional int32 offset = 2 [json_name = "offset", (.buf.validate.field) = {</code> * @return int */ public function getOffset() { return isset($this->offset) ? $this->offset : 0; }
public function hasOffset() { return isset($this->offset); }
public function clearOffset() { unset($this->offset); }
/** * Number of notifications to skip for pagination (defaults to 0). * * Generated from protobuf field <code>optional int32 offset = 2 [json_name = "offset", (.buf.validate.field) = {</code> * @param int $var * @return $this */ public function setOffset(int $var) { GPBUtil::checkInt32($var); $this->offset = $var;
return $this; }
}