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.9 kB · 223 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224<?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;
/** * AddStatusReportUpdateRequest is the request to add a new update to a status report. * * Generated from protobuf message <code>openstatus.status_report.v1.AddStatusReportUpdateRequest</code> */class AddStatusReportUpdateRequest extends \Google\Protobuf\Internal\Message{ /** * ID of the status report to update (required). * * Generated from protobuf field <code>string status_report_id = 1 [json_name = "statusReportId", (.buf.validate.field) = {</code> */ protected $status_report_id = ''; /** * New status for the report (required). * * Generated from protobuf field <code>.openstatus.status_report.v1.StatusReportStatus status = 2 [json_name = "status", (.buf.validate.field) = {</code> */ protected $status = 0; /** * Message describing what changed (required). * * Generated from protobuf field <code>string message = 3 [json_name = "message", (.buf.validate.field) = {</code> */ protected $message = ''; /** * Optional date for the update (RFC 3339 format). Defaults to current time if not provided. * * Generated from protobuf field <code>optional string date = 4 [json_name = "date", (.buf.validate.field) = {</code> */ protected $date = null; /** * Whether to notify subscribers about this update (optional, defaults to false). * * Generated from protobuf field <code>optional bool notify = 5 [json_name = "notify"];</code> */ 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 <code>string status_report_id = 1 [json_name = "statusReportId", (.buf.validate.field) = {</code> * @return string */ public function getStatusReportId() { return $this->status_report_id; }
/** * ID of the status report to update (required). * * Generated from protobuf field <code>string status_report_id = 1 [json_name = "statusReportId", (.buf.validate.field) = {</code> * @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 <code>.openstatus.status_report.v1.StatusReportStatus status = 2 [json_name = "status", (.buf.validate.field) = {</code> * @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 <code>.openstatus.status_report.v1.StatusReportStatus status = 2 [json_name = "status", (.buf.validate.field) = {</code> * @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 <code>string message = 3 [json_name = "message", (.buf.validate.field) = {</code> * @return string */ public function getMessage() { return $this->message; }
/** * Message describing what changed (required). * * Generated from protobuf field <code>string message = 3 [json_name = "message", (.buf.validate.field) = {</code> * @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 <code>optional string date = 4 [json_name = "date", (.buf.validate.field) = {</code> * @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 <code>optional string date = 4 [json_name = "date", (.buf.validate.field) = {</code> * @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 <code>optional bool notify = 5 [json_name = "notify"];</code> * @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 <code>optional bool notify = 5 [json_name = "notify"];</code> * @param bool $var * @return $this */ public function setNotify(bool $var) { $this->notify = $var;
return $this; }
}