openstatus.status_page.v1.ListSubscribersResponse */ class ListSubscribersResponse extends \Google\Protobuf\Internal\Message { /** * List of subscribers. * * Generated from protobuf field repeated .openstatus.status_page.v1.PageSubscriber subscribers = 1 [json_name = "subscribers"]; */ private $subscribers; /** * Total number of subscribers matching the filter. * * Generated from protobuf field int32 total_size = 2 [json_name = "totalSize"]; */ 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 repeated .openstatus.status_page.v1.PageSubscriber subscribers = 1 [json_name = "subscribers"]; * @return RepeatedField<\Openstatus\Status_page\V1\PageSubscriber> */ public function getSubscribers() { return $this->subscribers; } /** * List of subscribers. * * Generated from protobuf field repeated .openstatus.status_page.v1.PageSubscriber subscribers = 1 [json_name = "subscribers"]; * @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 int32 total_size = 2 [json_name = "totalSize"]; * @return int */ public function getTotalSize() { return $this->total_size; } /** * Total number of subscribers matching the filter. * * Generated from protobuf field int32 total_size = 2 [json_name = "totalSize"]; * @param int $var * @return $this */ public function setTotalSize(int $var) { GPBUtil::checkInt32($var); $this->total_size = $var; return $this; } }