openstatus.status_report.v1.StatusReportUpdate
*/
class StatusReportUpdate extends \Google\Protobuf\Internal\Message
{
/**
* Unique identifier for the update.
*
* Generated from protobuf field string id = 1 [json_name = "id"];
*/
protected $id = '';
/**
* Status at the time of this update.
*
* Generated from protobuf field .openstatus.status_report.v1.StatusReportStatus status = 2 [json_name = "status"];
*/
protected $status = 0;
/**
* Timestamp when this update occurred (RFC 3339 format).
*
* Generated from protobuf field string date = 3 [json_name = "date"];
*/
protected $date = '';
/**
* Message describing the update.
*
* Generated from protobuf field string message = 4 [json_name = "message"];
*/
protected $message = '';
/**
* Timestamp when the update was created (RFC 3339 format).
*
* Generated from protobuf field string created_at = 5 [json_name = "createdAt"];
*/
protected $created_at = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* Unique identifier for the update.
* @type int $status
* Status at the time of this update.
* @type string $date
* Timestamp when this update occurred (RFC 3339 format).
* @type string $message
* Message describing the update.
* @type string $created_at
* Timestamp when the update was created (RFC 3339 format).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Openstatus\StatusReport\V1\StatusReport::initOnce();
parent::__construct($data);
}
/**
* Unique identifier for the update.
*
* Generated from protobuf field string id = 1 [json_name = "id"];
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Unique identifier for the update.
*
* 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;
}
/**
* Status at the time of this update.
*
* Generated from protobuf field .openstatus.status_report.v1.StatusReportStatus status = 2 [json_name = "status"];
* @return int one of the values in {@see \Openstatus\Status_report\V1\StatusReportStatus}
*/
public function getStatus()
{
return $this->status;
}
/**
* Status at the time of this update.
*
* Generated from protobuf field .openstatus.status_report.v1.StatusReportStatus status = 2 [json_name = "status"];
* @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;
}
/**
* Timestamp when this update occurred (RFC 3339 format).
*
* Generated from protobuf field string date = 3 [json_name = "date"];
* @return string
*/
public function getDate()
{
return $this->date;
}
/**
* Timestamp when this update occurred (RFC 3339 format).
*
* Generated from protobuf field string date = 3 [json_name = "date"];
* @param string $var
* @return $this
*/
public function setDate(string $var)
{
GPBUtil::checkString($var, true);
$this->date = $var;
return $this;
}
/**
* Message describing the update.
*
* Generated from protobuf field string message = 4 [json_name = "message"];
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Message describing the update.
*
* Generated from protobuf field string message = 4 [json_name = "message"];
* @param string $var
* @return $this
*/
public function setMessage(string $var)
{
GPBUtil::checkString($var, true);
$this->message = $var;
return $this;
}
/**
* Timestamp when the update was created (RFC 3339 format).
*
* Generated from protobuf field string created_at = 5 [json_name = "createdAt"];
* @return string
*/
public function getCreatedAt()
{
return $this->created_at;
}
/**
* Timestamp when the update was created (RFC 3339 format).
*
* Generated from protobuf field string created_at = 5 [json_name = "createdAt"];
* @param string $var
* @return $this
*/
public function setCreatedAt(string $var)
{
GPBUtil::checkString($var, true);
$this->created_at = $var;
return $this;
}
}