openstatus.status_page.v1.StatusPageSummary */ class StatusPageSummary extends \Google\Protobuf\Internal\Message { /** * Unique identifier for the status page. * * Generated from protobuf field string id = 1 [json_name = "id"]; */ protected $id = ''; /** * Title of the status page. * * Generated from protobuf field string title = 2 [json_name = "title"]; */ protected $title = ''; /** * URL-friendly slug for the status page. * * Generated from protobuf field string slug = 3 [json_name = "slug"]; */ protected $slug = ''; /** * Whether the status page is published and visible. * * Generated from protobuf field bool published = 4 [json_name = "published"]; */ protected $published = false; /** * Timestamp when the page was created (RFC 3339 format). * * Generated from protobuf field string created_at = 5 [json_name = "createdAt"]; */ protected $created_at = ''; /** * Timestamp when the page was last updated (RFC 3339 format). * * Generated from protobuf field string updated_at = 6 [json_name = "updatedAt"]; */ protected $updated_at = ''; /** * Custom domain for the status page (optional). * * Generated from protobuf field string custom_domain = 7 [json_name = "customDomain", (.gnostic.openapi.v3.property) = { */ protected $custom_domain = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * Unique identifier for the status page. * @type string $title * Title of the status page. * @type string $slug * URL-friendly slug for the status page. * @type bool $published * Whether the status page is published and visible. * @type string $created_at * Timestamp when the page was created (RFC 3339 format). * @type string $updated_at * Timestamp when the page was last updated (RFC 3339 format). * @type string $custom_domain * Custom domain for the status page (optional). * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\StatusPage\V1\StatusPage::initOnce(); parent::__construct($data); } /** * Unique identifier for the status page. * * Generated from protobuf field string id = 1 [json_name = "id"]; * @return string */ public function getId() { return $this->id; } /** * Unique identifier for the status page. * * 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; } /** * Title of the status page. * * Generated from protobuf field string title = 2 [json_name = "title"]; * @return string */ public function getTitle() { return $this->title; } /** * Title of the status page. * * Generated from protobuf field string title = 2 [json_name = "title"]; * @param string $var * @return $this */ public function setTitle(string $var) { GPBUtil::checkString($var, true); $this->title = $var; return $this; } /** * URL-friendly slug for the status page. * * Generated from protobuf field string slug = 3 [json_name = "slug"]; * @return string */ public function getSlug() { return $this->slug; } /** * URL-friendly slug for the status page. * * Generated from protobuf field string slug = 3 [json_name = "slug"]; * @param string $var * @return $this */ public function setSlug(string $var) { GPBUtil::checkString($var, true); $this->slug = $var; return $this; } /** * Whether the status page is published and visible. * * Generated from protobuf field bool published = 4 [json_name = "published"]; * @return bool */ public function getPublished() { return $this->published; } /** * Whether the status page is published and visible. * * Generated from protobuf field bool published = 4 [json_name = "published"]; * @param bool $var * @return $this */ public function setPublished(bool $var) { $this->published = $var; return $this; } /** * Timestamp when the page was created (RFC 3339 format). * * Generated from protobuf field string created_at = 5 [json_name = "createdAt"]; * @return string */ public function getCreatedAt() { return $this->created_at; } /** * Timestamp when the page was created (RFC 3339 format). * * Generated from protobuf field string created_at = 5 [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 page was last updated (RFC 3339 format). * * Generated from protobuf field string updated_at = 6 [json_name = "updatedAt"]; * @return string */ public function getUpdatedAt() { return $this->updated_at; } /** * Timestamp when the page was last updated (RFC 3339 format). * * Generated from protobuf field string updated_at = 6 [json_name = "updatedAt"]; * @param string $var * @return $this */ public function setUpdatedAt(string $var) { GPBUtil::checkString($var, true); $this->updated_at = $var; return $this; } /** * Custom domain for the status page (optional). * * Generated from protobuf field string custom_domain = 7 [json_name = "customDomain", (.gnostic.openapi.v3.property) = { * @return string */ public function getCustomDomain() { return $this->custom_domain; } /** * Custom domain for the status page (optional). * * Generated from protobuf field string custom_domain = 7 [json_name = "customDomain", (.gnostic.openapi.v3.property) = { * @param string $var * @return $this */ public function setCustomDomain(string $var) { GPBUtil::checkString($var, true); $this->custom_domain = $var; return $this; } }