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.1 kB · 102 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103<?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;
/** * ListSubscribersResponse is the response containing status page subscribers. * * Generated from protobuf message <code>openstatus.status_page.v1.ListSubscribersResponse</code> */class ListSubscribersResponse extends \Google\Protobuf\Internal\Message{ /** * List of subscribers. * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.PageSubscriber subscribers = 1 [json_name = "subscribers"];</code> */ private $subscribers; /** * Total number of subscribers matching the filter. * * Generated from protobuf field <code>int32 total_size = 2 [json_name = "totalSize"];</code> */ protected $total_size = 0;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Openstatus\Status_page\V1\PageSubscriber[] $subscribers * List of subscribers. * @type int $total_size * Total number of subscribers matching the filter. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce(); parent::__construct($data); }
/** * List of subscribers. * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.PageSubscriber subscribers = 1 [json_name = "subscribers"];</code> * @return RepeatedField<\Openstatus\Status_page\V1\PageSubscriber> */ public function getSubscribers() { return $this->subscribers; }
/** * List of subscribers. * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.PageSubscriber subscribers = 1 [json_name = "subscribers"];</code> * @param \Openstatus\Status_page\V1\PageSubscriber[] $var * @return $this */ public function setSubscribers(array|RepeatedField $var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Openstatus\Status_page\V1\PageSubscriber::class); $this->subscribers = $arr;
return $this; }
/** * Total number of subscribers matching the filter. * * Generated from protobuf field <code>int32 total_size = 2 [json_name = "totalSize"];</code> * @return int */ public function getTotalSize() { return $this->total_size; }
/** * Total number of subscribers matching the filter. * * Generated from protobuf field <code>int32 total_size = 2 [json_name = "totalSize"];</code> * @param int $var * @return $this */ public function setTotalSize(int $var) { GPBUtil::checkInt32($var); $this->total_size = $var;
return $this; }
}