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.
2.1 kB · 77 lines
PHP
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778<?php# Generated by the protocol buffer compiler. DO NOT EDIT!# NO CHECKED-IN PROTOBUF GENCODE# source: openstatus/maintenance/v1/service.proto
namespace Openstatus\Maintenance\V1;
use Google\Protobuf\Internal\GPBType;use Google\Protobuf\Internal\GPBUtil;use Google\Protobuf\RepeatedField;
/** * GetMaintenanceResponse is the response containing the maintenance window. * * Generated from protobuf message <code>openstatus.maintenance.v1.GetMaintenanceResponse</code> */class GetMaintenanceResponse extends \Google\Protobuf\Internal\Message{ /** * The requested maintenance. * * Generated from protobuf field <code>.openstatus.maintenance.v1.Maintenance maintenance = 1 [json_name = "maintenance"];</code> */ protected $maintenance = null;
/** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Openstatus\Maintenance\V1\Maintenance $maintenance * The requested maintenance. * } */ public function __construct($data = NULL) { \GPBMetadata\Openstatus\Maintenance\V1\Service::initOnce(); parent::__construct($data); }
/** * The requested maintenance. * * Generated from protobuf field <code>.openstatus.maintenance.v1.Maintenance maintenance = 1 [json_name = "maintenance"];</code> * @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 requested maintenance. * * Generated from protobuf field <code>.openstatus.maintenance.v1.Maintenance maintenance = 1 [json_name = "maintenance"];</code> * @param \Openstatus\Maintenance\V1\Maintenance $var * @return $this */ public function setMaintenance(\Openstatus\Maintenance\V1\Maintenance|null $var) { $this->maintenance = $var;
return $this; }
}