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;
/** * ListStatusPagesResponse is the response containing status page summaries. * * Generated from protobuf message <code>openstatus.status_page.v1.ListStatusPagesResponse</code> */class ListStatusPagesResponse extends \Google\Protobuf\Internal\Message{ /** * List of status pages (metadata only). * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.StatusPageSummary status_pages = 1 [json_name = "statusPages"];</code> */ private $status_pages; /** * Total number of status pages. * * 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\StatusPageSummary[] $status_pages * List of status pages (metadata only). * @type int $total_size * Total number of status pages. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\Service::initOnce(); parent::__construct($data); }
/** * List of status pages (metadata only). * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.StatusPageSummary status_pages = 1 [json_name = "statusPages"];</code> * @return RepeatedField<\Openstatus\Status_page\V1\StatusPageSummary> */ public function getStatusPages() { return $this->status_pages; }
/** * List of status pages (metadata only). * * Generated from protobuf field <code>repeated .openstatus.status_page.v1.StatusPageSummary status_pages = 1 [json_name = "statusPages"];</code> * @param \Openstatus\Status_page\V1\StatusPageSummary[] $var * @return $this */ public function setStatusPages(array|RepeatedField $var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Openstatus\Status_page\V1\StatusPageSummary::class); $this->status_pages = $arr;
return $this; }
/** * Total number of status pages. * * 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 status pages. * * 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; }
}