openstatus.status_report.v1.AddStatusReportUpdateRequest */ class AddStatusReportUpdateRequest extends \Google\Protobuf\Internal\Message { /** * ID of the status report to update (required). * * Generated from protobuf field string status_report_id = 1 [json_name = "statusReportId", (.buf.validate.field) = { */ protected $status_report_id = ''; /** * New status for the report (required). * * Generated from protobuf field .openstatus.status_report.v1.StatusReportStatus status = 2 [json_name = "status", (.buf.validate.field) = { */ protected $status = 0; /** * Message describing what changed (required). * * Generated from protobuf field string message = 3 [json_name = "message", (.buf.validate.field) = { */ protected $message = ''; /** * Optional date for the update (RFC 3339 format). Defaults to current time if not provided. * * Generated from protobuf field optional string date = 4 [json_name = "date", (.buf.validate.field) = { */ protected $date = null; /** * Whether to notify subscribers about this update (optional, defaults to false). * * Generated from protobuf field optional bool notify = 5 [json_name = "notify"]; */ protected $notify = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $status_report_id * ID of the status report to update (required). * @type int $status * New status for the report (required). * @type string $message * Message describing what changed (required). * @type string $date * Optional date for the update (RFC 3339 format). Defaults to current time if not provided. * @type bool $notify * Whether to notify subscribers about this update (optional, defaults to false). * } */ 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 status_report_id = 1 [json_name = "statusReportId", (.buf.validate.field) = { * @return string */ public function getStatusReportId() { return $this->status_report_id; } /** * ID of the status report to update (required). * * Generated from protobuf field string status_report_id = 1 [json_name = "statusReportId", (.buf.validate.field) = { * @param string $var * @return $this */ public function setStatusReportId(string $var) { GPBUtil::checkString($var, true); $this->status_report_id = $var; return $this; } /** * New status for the report (required). * * Generated from protobuf field .openstatus.status_report.v1.StatusReportStatus status = 2 [json_name = "status", (.buf.validate.field) = { * @return int one of the values in {@see \Openstatus\Status_report\V1\StatusReportStatus} */ public function getStatus() { return $this->status; } /** * New status for the report (required). * * Generated from protobuf field .openstatus.status_report.v1.StatusReportStatus status = 2 [json_name = "status", (.buf.validate.field) = { * @param int $var one of the values in {@see \Openstatus\Status_report\V1\StatusReportStatus} * @return $this */ public function setStatus(int $var) { GPBUtil::checkEnum($var, \Openstatus\Status_report\V1\StatusReportStatus::class); $this->status = $var; return $this; } /** * Message describing what changed (required). * * Generated from protobuf field string message = 3 [json_name = "message", (.buf.validate.field) = { * @return string */ public function getMessage() { return $this->message; } /** * Message describing what changed (required). * * Generated from protobuf field string message = 3 [json_name = "message", (.buf.validate.field) = { * @param string $var * @return $this */ public function setMessage(string $var) { GPBUtil::checkString($var, true); $this->message = $var; return $this; } /** * Optional date for the update (RFC 3339 format). Defaults to current time if not provided. * * Generated from protobuf field optional string date = 4 [json_name = "date", (.buf.validate.field) = { * @return string */ public function getDate() { return isset($this->date) ? $this->date : ''; } public function hasDate() { return isset($this->date); } public function clearDate() { unset($this->date); } /** * Optional date for the update (RFC 3339 format). Defaults to current time if not provided. * * Generated from protobuf field optional string date = 4 [json_name = "date", (.buf.validate.field) = { * @param string $var * @return $this */ public function setDate(string $var) { GPBUtil::checkString($var, true); $this->date = $var; return $this; } /** * Whether to notify subscribers about this update (optional, defaults to false). * * Generated from protobuf field optional bool notify = 5 [json_name = "notify"]; * @return bool */ public function getNotify() { return isset($this->notify) ? $this->notify : false; } public function hasNotify() { return isset($this->notify); } public function clearNotify() { unset($this->notify); } /** * Whether to notify subscribers about this update (optional, defaults to false). * * Generated from protobuf field optional bool notify = 5 [json_name = "notify"]; * @param bool $var * @return $this */ public function setNotify(bool $var) { $this->notify = $var; return $this; } }