openstatus.status_report.v1.UpdateStatusReportRequest
*/
class UpdateStatusReportRequest extends \Google\Protobuf\Internal\Message
{
/**
* ID of the status report to update (required).
*
* Generated from protobuf field string id = 1 [json_name = "id", (.buf.validate.field) = {
*/
protected $id = '';
/**
* New title for the report (optional).
*
* Generated from protobuf field optional string title = 2 [json_name = "title"];
*/
protected $title = null;
/**
* New list of page component IDs (optional, replaces existing list).
*
* Generated from protobuf field repeated string page_component_ids = 3 [json_name = "pageComponentIds"];
*/
private $page_component_ids;
/**
* Set to true to update page component associations.
* When true, page_component_ids replaces the existing list (empty clears all).
* When false or unset, page_component_ids is ignored and existing associations are preserved.
*
* Generated from protobuf field optional bool update_page_component_ids = 4 [json_name = "updatePageComponentIds"];
*/
protected $update_page_component_ids = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* ID of the status report to update (required).
* @type string $title
* New title for the report (optional).
* @type string[] $page_component_ids
* New list of page component IDs (optional, replaces existing list).
* @type bool $update_page_component_ids
* Set to true to update page component associations.
* When true, page_component_ids replaces the existing list (empty clears all).
* When false or unset, page_component_ids is ignored and existing associations are preserved.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Openstatus\StatusReport\V1\Service::initOnce();
parent::__construct($data);
}
/**
* ID of the status report to update (required).
*
* Generated from protobuf field string id = 1 [json_name = "id", (.buf.validate.field) = {
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* ID of the status report to update (required).
*
* Generated from protobuf field string id = 1 [json_name = "id", (.buf.validate.field) = {
* @param string $var
* @return $this
*/
public function setId(string $var)
{
GPBUtil::checkString($var, true);
$this->id = $var;
return $this;
}
/**
* New title for the report (optional).
*
* Generated from protobuf field optional string title = 2 [json_name = "title"];
* @return string
*/
public function getTitle()
{
return isset($this->title) ? $this->title : '';
}
public function hasTitle()
{
return isset($this->title);
}
public function clearTitle()
{
unset($this->title);
}
/**
* New title for the report (optional).
*
* Generated from protobuf field optional 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;
}
/**
* New list of page component IDs (optional, replaces existing list).
*
* Generated from protobuf field repeated string page_component_ids = 3 [json_name = "pageComponentIds"];
* @return RepeatedField
*/
public function getPageComponentIds()
{
return $this->page_component_ids;
}
/**
* New list of page component IDs (optional, replaces existing list).
*
* Generated from protobuf field repeated string page_component_ids = 3 [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;
}
/**
* Set to true to update page component associations.
* When true, page_component_ids replaces the existing list (empty clears all).
* When false or unset, page_component_ids is ignored and existing associations are preserved.
*
* Generated from protobuf field optional bool update_page_component_ids = 4 [json_name = "updatePageComponentIds"];
* @return bool
*/
public function getUpdatePageComponentIds()
{
return isset($this->update_page_component_ids) ? $this->update_page_component_ids : false;
}
public function hasUpdatePageComponentIds()
{
return isset($this->update_page_component_ids);
}
public function clearUpdatePageComponentIds()
{
unset($this->update_page_component_ids);
}
/**
* Set to true to update page component associations.
* When true, page_component_ids replaces the existing list (empty clears all).
* When false or unset, page_component_ids is ignored and existing associations are preserved.
*
* Generated from protobuf field optional bool update_page_component_ids = 4 [json_name = "updatePageComponentIds"];
* @param bool $var
* @return $this
*/
public function setUpdatePageComponentIds(bool $var)
{
$this->update_page_component_ids = $var;
return $this;
}
}