openstatus.status_page.v1.ListStatusPagesResponse
*/
class ListStatusPagesResponse extends \Google\Protobuf\Internal\Message
{
/**
* List of status pages (metadata only).
*
* Generated from protobuf field repeated .openstatus.status_page.v1.StatusPageSummary status_pages = 1 [json_name = "statusPages"];
*/
private $status_pages;
/**
* Total number of status pages.
*
* 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\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 repeated .openstatus.status_page.v1.StatusPageSummary status_pages = 1 [json_name = "statusPages"];
* @return RepeatedField<\Openstatus\Status_page\V1\StatusPageSummary>
*/
public function getStatusPages()
{
return $this->status_pages;
}
/**
* List of status pages (metadata only).
*
* Generated from protobuf field repeated .openstatus.status_page.v1.StatusPageSummary status_pages = 1 [json_name = "statusPages"];
* @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 int32 total_size = 2 [json_name = "totalSize"];
* @return int
*/
public function getTotalSize()
{
return $this->total_size;
}
/**
* Total number of status pages.
*
* 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;
}
}