openstatus.maintenance.v1.Maintenance
*/
class Maintenance extends \Google\Protobuf\Internal\Message
{
/**
* Unique identifier for the maintenance.
*
* Generated from protobuf field string id = 1 [json_name = "id"];
*/
protected $id = '';
/**
* Title of the maintenance.
*
* Generated from protobuf field string title = 2 [json_name = "title"];
*/
protected $title = '';
/**
* Message describing the maintenance.
*
* Generated from protobuf field string message = 3 [json_name = "message"];
*/
protected $message = '';
/**
* Start time of the maintenance window (RFC 3339 format).
*
* Generated from protobuf field string from = 4 [json_name = "from"];
*/
protected $from = '';
/**
* End time of the maintenance window (RFC 3339 format).
*
* Generated from protobuf field string to = 5 [json_name = "to"];
*/
protected $to = '';
/**
* ID of the page this maintenance is associated with.
*
* Generated from protobuf field string page_id = 6 [json_name = "pageId"];
*/
protected $page_id = '';
/**
* IDs of affected page components.
*
* Generated from protobuf field repeated string page_component_ids = 7 [json_name = "pageComponentIds"];
*/
private $page_component_ids;
/**
* Timestamp when the maintenance was created (RFC 3339 format).
*
* Generated from protobuf field string created_at = 8 [json_name = "createdAt"];
*/
protected $created_at = '';
/**
* Timestamp when the maintenance was last updated (RFC 3339 format).
*
* Generated from protobuf field string updated_at = 9 [json_name = "updatedAt"];
*/
protected $updated_at = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* Unique identifier for the maintenance.
* @type string $title
* Title of the maintenance.
* @type string $message
* Message describing the maintenance.
* @type string $from
* Start time of the maintenance window (RFC 3339 format).
* @type string $to
* End time of the maintenance window (RFC 3339 format).
* @type string $page_id
* ID of the page this maintenance is associated with.
* @type string[] $page_component_ids
* IDs of affected page components.
* @type string $created_at
* Timestamp when the maintenance was created (RFC 3339 format).
* @type string $updated_at
* Timestamp when the maintenance was last updated (RFC 3339 format).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Openstatus\Maintenance\V1\Maintenance::initOnce();
parent::__construct($data);
}
/**
* Unique identifier for the maintenance.
*
* Generated from protobuf field string id = 1 [json_name = "id"];
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Unique identifier for the maintenance.
*
* 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 maintenance.
*
* Generated from protobuf field string title = 2 [json_name = "title"];
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Title of the maintenance.
*
* 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;
}
/**
* Message describing the maintenance.
*
* Generated from protobuf field string message = 3 [json_name = "message"];
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Message describing the maintenance.
*
* Generated from protobuf field string message = 3 [json_name = "message"];
* @param string $var
* @return $this
*/
public function setMessage(string $var)
{
GPBUtil::checkString($var, true);
$this->message = $var;
return $this;
}
/**
* Start time of the maintenance window (RFC 3339 format).
*
* Generated from protobuf field string from = 4 [json_name = "from"];
* @return string
*/
public function getFrom()
{
return $this->from;
}
/**
* Start time of the maintenance window (RFC 3339 format).
*
* Generated from protobuf field string from = 4 [json_name = "from"];
* @param string $var
* @return $this
*/
public function setFrom(string $var)
{
GPBUtil::checkString($var, true);
$this->from = $var;
return $this;
}
/**
* End time of the maintenance window (RFC 3339 format).
*
* Generated from protobuf field string to = 5 [json_name = "to"];
* @return string
*/
public function getTo()
{
return $this->to;
}
/**
* End time of the maintenance window (RFC 3339 format).
*
* Generated from protobuf field string to = 5 [json_name = "to"];
* @param string $var
* @return $this
*/
public function setTo(string $var)
{
GPBUtil::checkString($var, true);
$this->to = $var;
return $this;
}
/**
* ID of the page this maintenance is associated with.
*
* Generated from protobuf field string page_id = 6 [json_name = "pageId"];
* @return string
*/
public function getPageId()
{
return $this->page_id;
}
/**
* ID of the page this maintenance is associated with.
*
* Generated from protobuf field string page_id = 6 [json_name = "pageId"];
* @param string $var
* @return $this
*/
public function setPageId(string $var)
{
GPBUtil::checkString($var, true);
$this->page_id = $var;
return $this;
}
/**
* IDs of affected page components.
*
* Generated from protobuf field repeated string page_component_ids = 7 [json_name = "pageComponentIds"];
* @return RepeatedField
*/
public function getPageComponentIds()
{
return $this->page_component_ids;
}
/**
* IDs of affected page components.
*
* Generated from protobuf field repeated string page_component_ids = 7 [json_name = "pageComponentIds"];
* @param string[] $var
* @return $this
*/
public function setPageComponentIds(array|RepeatedField $var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->page_component_ids = $arr;
return $this;
}
/**
* Timestamp when the maintenance was created (RFC 3339 format).
*
* Generated from protobuf field string created_at = 8 [json_name = "createdAt"];
* @return string
*/
public function getCreatedAt()
{
return $this->created_at;
}
/**
* Timestamp when the maintenance was created (RFC 3339 format).
*
* Generated from protobuf field string created_at = 8 [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 maintenance was last updated (RFC 3339 format).
*
* Generated from protobuf field string updated_at = 9 [json_name = "updatedAt"];
* @return string
*/
public function getUpdatedAt()
{
return $this->updated_at;
}
/**
* Timestamp when the maintenance was last updated (RFC 3339 format).
*
* Generated from protobuf field string updated_at = 9 [json_name = "updatedAt"];
* @param string $var
* @return $this
*/
public function setUpdatedAt(string $var)
{
GPBUtil::checkString($var, true);
$this->updated_at = $var;
return $this;
}
}