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.
6.5 kB · 237 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/status_page/v1/page_component.proto
namespace Openstatus\Status_page\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * PageComponentGroup represents a group of components on a status page. * * Generated from protobuf message <code>openstatus.status_page.v1.PageComponentGroup</code> */class PageComponentGroup extends \Google\Protobuf\Internal\Message{ /** * Unique identifier for the group. * * Generated from protobuf field <code>string id = 1 [json_name = "id"];</code> */ protected $id = ''; /** * ID of the status page this group belongs to. * * Generated from protobuf field <code>string page_id = 2 [json_name = "pageId"];</code> */ protected $page_id = ''; /** * Display name of the group. * * Generated from protobuf field <code>string name = 3 [json_name = "name"];</code> */ protected $name = ''; /** * Timestamp when the group was created (RFC 3339 format). * * Generated from protobuf field <code>string created_at = 4 [json_name = "createdAt"];</code> */ protected $created_at = ''; /** * Timestamp when the group was last updated (RFC 3339 format). * * Generated from protobuf field <code>string updated_at = 5 [json_name = "updatedAt"];</code> */ protected $updated_at = ''; /** * Whether the group should be expanded by default on the status page. * * Generated from protobuf field <code>bool default_open = 6 [json_name = "defaultOpen"];</code> */ protected $default_open = false;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * Unique identifier for the group. * @type string $page_id * ID of the status page this group belongs to. * @type string $name * Display name of the group. * @type string $created_at * Timestamp when the group was created (RFC 3339 format). * @type string $updated_at * Timestamp when the group was last updated (RFC 3339 format). * @type bool $default_open * Whether the group should be expanded by default on the status page. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\PageComponent::initOnce(); parent::__construct($data); }
/** * Unique identifier for the group. * * Generated from protobuf field <code>string id = 1 [json_name = "id"];</code> * @return string */ public function getId() { return $this->id; }
/** * Unique identifier for the group. * * Generated from protobuf field <code>string id = 1 [json_name = "id"];</code> * @param string $var * @return $this */ public function setId(string $var) { GPBUtil::checkString($var, true); $this->id = $var;
return $this; }
/** * ID of the status page this group belongs to. * * Generated from protobuf field <code>string page_id = 2 [json_name = "pageId"];</code> * @return string */ public function getPageId() { return $this->page_id; }
/** * ID of the status page this group belongs to. * * Generated from protobuf field <code>string page_id = 2 [json_name = "pageId"];</code> * @param string $var * @return $this */ public function setPageId(string $var) { GPBUtil::checkString($var, true); $this->page_id = $var;
return $this; }
/** * Display name of the group. * * Generated from protobuf field <code>string name = 3 [json_name = "name"];</code> * @return string */ public function getName() { return $this->name; }
/** * Display name of the group. * * Generated from protobuf field <code>string name = 3 [json_name = "name"];</code> * @param string $var * @return $this */ public function setName(string $var) { GPBUtil::checkString($var, true); $this->name = $var;
return $this; }
/** * Timestamp when the group was created (RFC 3339 format). * * Generated from protobuf field <code>string created_at = 4 [json_name = "createdAt"];</code> * @return string */ public function getCreatedAt() { return $this->created_at; }
/** * Timestamp when the group was created (RFC 3339 format). * * Generated from protobuf field <code>string created_at = 4 [json_name = "createdAt"];</code> * @param string $var * @return $this */ public function setCreatedAt(string $var) { GPBUtil::checkString($var, true); $this->created_at = $var;
return $this; }
/** * Timestamp when the group was last updated (RFC 3339 format). * * Generated from protobuf field <code>string updated_at = 5 [json_name = "updatedAt"];</code> * @return string */ public function getUpdatedAt() { return $this->updated_at; }
/** * Timestamp when the group was last updated (RFC 3339 format). * * Generated from protobuf field <code>string updated_at = 5 [json_name = "updatedAt"];</code> * @param string $var * @return $this */ public function setUpdatedAt(string $var) { GPBUtil::checkString($var, true); $this->updated_at = $var;
return $this; }
/** * Whether the group should be expanded by default on the status page. * * Generated from protobuf field <code>bool default_open = 6 [json_name = "defaultOpen"];</code> * @return bool */ public function getDefaultOpen() { return $this->default_open; }
/** * Whether the group should be expanded by default on the status page. * * Generated from protobuf field <code>bool default_open = 6 [json_name = "defaultOpen"];</code> * @param bool $var * @return $this */ public function setDefaultOpen(bool $var) { $this->default_open = $var;
return $this; }
}