openstatus.maintenance.v1.CreateMaintenanceResponse */ class CreateMaintenanceResponse extends \Google\Protobuf\Internal\Message { /** * The created 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 created maintenance. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Maintenance\V1\Service::initOnce(); parent::__construct($data); } /** * The created 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 created 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; } }