openstatus.maintenance.v1.UpdateMaintenanceResponse
*/
class UpdateMaintenanceResponse extends \Google\Protobuf\Internal\Message
{
/**
* The updated maintenance.
*
* Generated from protobuf field .openstatus.maintenance.v1.Maintenance maintenance = 1 [json_name = "maintenance"];
*/
protected $maintenance = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Openstatus\Maintenance\V1\Maintenance $maintenance
* The updated maintenance.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Openstatus\Maintenance\V1\Service::initOnce();
parent::__construct($data);
}
/**
* The updated maintenance.
*
* Generated from protobuf field .openstatus.maintenance.v1.Maintenance maintenance = 1 [json_name = "maintenance"];
* @return \Openstatus\Maintenance\V1\Maintenance|null
*/
public function getMaintenance()
{
return $this->maintenance;
}
public function hasMaintenance()
{
return isset($this->maintenance);
}
public function clearMaintenance()
{
unset($this->maintenance);
}
/**
* The updated maintenance.
*
* Generated from protobuf field .openstatus.maintenance.v1.Maintenance maintenance = 1 [json_name = "maintenance"];
* @param \Openstatus\Maintenance\V1\Maintenance $var
* @return $this
*/
public function setMaintenance(\Openstatus\Maintenance\V1\Maintenance|null $var)
{
$this->maintenance = $var;
return $this;
}
}