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.3 kB · 197 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/status_report/v1/service.proto
namespace Openstatus\Status_report\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * UpdateStatusReportRequest is the request to update a status report's metadata. * * Generated from protobuf message <code>openstatus.status_report.v1.UpdateStatusReportRequest</code> */class UpdateStatusReportRequest extends \Google\Protobuf\Internal\Message{ /** * ID of the status report to update (required). * * Generated from protobuf field <code>string id = 1 [json_name = "id", (.buf.validate.field) = {</code> */ protected $id = ''; /** * New title for the report (optional). * * Generated from protobuf field <code>optional string title = 2 [json_name = "title"];</code> */ protected $title = null; /** * New list of page component IDs (optional, replaces existing list). * * Generated from protobuf field <code>repeated string page_component_ids = 3 [json_name = "pageComponentIds"];</code> */ 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 <code>optional bool update_page_component_ids = 4 [json_name = "updatePageComponentIds"];</code> */ 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 <code>string id = 1 [json_name = "id", (.buf.validate.field) = {</code> * @return string */ public function getId() { return $this->id; }
/** * ID of the status report to update (required). * * Generated from protobuf field <code>string id = 1 [json_name = "id", (.buf.validate.field) = {</code> * @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 <code>optional string title = 2 [json_name = "title"];</code> * @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 <code>optional string title = 2 [json_name = "title"];</code> * @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 <code>repeated string page_component_ids = 3 [json_name = "pageComponentIds"];</code> * @return RepeatedField<string> */ public function getPageComponentIds() { return $this->page_component_ids; }
/** * New list of page component IDs (optional, replaces existing list). * * Generated from protobuf field <code>repeated string page_component_ids = 3 [json_name = "pageComponentIds"];</code> * @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 <code>optional bool update_page_component_ids = 4 [json_name = "updatePageComponentIds"];</code> * @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 <code>optional bool update_page_component_ids = 4 [json_name = "updatePageComponentIds"];</code> * @param bool $var * @return $this */ public function setUpdatePageComponentIds(bool $var) { $this->update_page_component_ids = $var;
return $this; }
}