openstatus.status_page.v1.PageComponentGroup
*/
class PageComponentGroup extends \Google\Protobuf\Internal\Message
{
/**
* Unique identifier for the group.
*
* Generated from protobuf field string id = 1 [json_name = "id"];
*/
protected $id = '';
/**
* ID of the status page this group belongs to.
*
* Generated from protobuf field string page_id = 2 [json_name = "pageId"];
*/
protected $page_id = '';
/**
* Display name of the group.
*
* Generated from protobuf field string name = 3 [json_name = "name"];
*/
protected $name = '';
/**
* Timestamp when the group was created (RFC 3339 format).
*
* Generated from protobuf field string created_at = 4 [json_name = "createdAt"];
*/
protected $created_at = '';
/**
* Timestamp when the group was last updated (RFC 3339 format).
*
* Generated from protobuf field string updated_at = 5 [json_name = "updatedAt"];
*/
protected $updated_at = '';
/**
* Whether the group should be expanded by default on the status page.
*
* Generated from protobuf field bool default_open = 6 [json_name = "defaultOpen"];
*/
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 string id = 1 [json_name = "id"];
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Unique identifier for the group.
*
* Generated from protobuf field string id = 1 [json_name = "id"];
* @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 string page_id = 2 [json_name = "pageId"];
* @return string
*/
public function getPageId()
{
return $this->page_id;
}
/**
* ID of the status page this group belongs to.
*
* Generated from protobuf field string page_id = 2 [json_name = "pageId"];
* @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 string name = 3 [json_name = "name"];
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Display name of the group.
*
* Generated from protobuf field string name = 3 [json_name = "name"];
* @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 string created_at = 4 [json_name = "createdAt"];
* @return string
*/
public function getCreatedAt()
{
return $this->created_at;
}
/**
* Timestamp when the group was created (RFC 3339 format).
*
* Generated from protobuf field string created_at = 4 [json_name = "createdAt"];
* @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 string updated_at = 5 [json_name = "updatedAt"];
* @return string
*/
public function getUpdatedAt()
{
return $this->updated_at;
}
/**
* Timestamp when the group was last updated (RFC 3339 format).
*
* Generated from protobuf field string updated_at = 5 [json_name = "updatedAt"];
* @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 bool default_open = 6 [json_name = "defaultOpen"];
* @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 bool default_open = 6 [json_name = "defaultOpen"];
* @param bool $var
* @return $this
*/
public function setDefaultOpen(bool $var)
{
$this->default_open = $var;
return $this;
}
}