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.
5.8 kB · 199 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/status_page/v1/service.proto
namespace Openstatus\Status_page\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * ListSubscribersRequest is the request to list subscribers of a status page. * * Generated from protobuf message <code>openstatus.status_page.v1.ListSubscribersRequest</code> */class ListSubscribersRequest extends \Google\Protobuf\Internal\Message{ /** * ID of the status page to list subscribers for (required). * * Generated from protobuf field <code>string page_id = 1 [json_name = "pageId", (.buf.validate.field) = {</code> */ protected $page_id = ''; /** * Maximum number of subscribers to return (1-100, defaults to 50). * * Generated from protobuf field <code>optional int32 limit = 2 [json_name = "limit", (.buf.validate.field) = {</code> */ protected $limit = null; /** * Number of subscribers to skip for pagination (defaults to 0). * * Generated from protobuf field <code>optional int32 offset = 3 [json_name = "offset", (.buf.validate.field) = {</code> */ protected $offset = null; /** * Whether to include unsubscribed users (defaults to false). * * Generated from protobuf field <code>optional bool include_unsubscribed = 4 [json_name = "includeUnsubscribed"];</code> */ protected $include_unsubscribed = null;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $page_id * ID of the status page to list subscribers for (required). * @type int $limit * Maximum number of subscribers to return (1-100, defaults to 50). * @type int $offset * Number of subscribers to skip for pagination (defaults to 0). * @type bool $include_unsubscribed * Whether to include unsubscribed users (defaults to false). * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce(); parent::__construct($data); }
/** * ID of the status page to list subscribers for (required). * * Generated from protobuf field <code>string page_id = 1 [json_name = "pageId", (.buf.validate.field) = {</code> * @return string */ public function getPageId() { return $this->page_id; }
/** * ID of the status page to list subscribers for (required). * * Generated from protobuf field <code>string page_id = 1 [json_name = "pageId", (.buf.validate.field) = {</code> * @param string $var * @return $this */ public function setPageId(string $var) { GPBUtil::checkString($var, true); $this->page_id = $var;
return $this; }
/** * Maximum number of subscribers to return (1-100, defaults to 50). * * Generated from protobuf field <code>optional int32 limit = 2 [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 subscribers to return (1-100, defaults to 50). * * Generated from protobuf field <code>optional int32 limit = 2 [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 subscribers to skip for pagination (defaults to 0). * * Generated from protobuf field <code>optional int32 offset = 3 [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 subscribers to skip for pagination (defaults to 0). * * Generated from protobuf field <code>optional int32 offset = 3 [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; }
/** * Whether to include unsubscribed users (defaults to false). * * Generated from protobuf field <code>optional bool include_unsubscribed = 4 [json_name = "includeUnsubscribed"];</code> * @return bool */ public function getIncludeUnsubscribed() { return isset($this->include_unsubscribed) ? $this->include_unsubscribed : false; }
public function hasIncludeUnsubscribed() { return isset($this->include_unsubscribed); }
public function clearIncludeUnsubscribed() { unset($this->include_unsubscribed); }
/** * Whether to include unsubscribed users (defaults to false). * * Generated from protobuf field <code>optional bool include_unsubscribed = 4 [json_name = "includeUnsubscribed"];</code> * @param bool $var * @return $this */ public function setIncludeUnsubscribed(bool $var) { $this->include_unsubscribed = $var;
return $this; }
}