propresenter-php/php/generated/Registration/Core/DowngradeAvailable.php
2026-03-01 16:12:17 +01:00

124 lines
3 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: registration.proto
namespace Registration\Core;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>registration.core.DowngradeAvailable</code>
*/
class DowngradeAvailable extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>.registration.core.Status status = 1;</code>
*/
protected $status = 0;
/**
* Generated from protobuf field <code>.registration.core.BuildInformation downgrade = 2;</code>
*/
protected $downgrade = null;
/**
* Generated from protobuf field <code>string release_notes = 3;</code>
*/
protected $release_notes = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $status
* @type \Registration\Core\BuildInformation $downgrade
* @type string $release_notes
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Registration::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>.registration.core.Status status = 1;</code>
* @return int
*/
public function getStatus()
{
return $this->status;
}
/**
* Generated from protobuf field <code>.registration.core.Status status = 1;</code>
* @param int $var
* @return $this
*/
public function setStatus($var)
{
GPBUtil::checkEnum($var, \Registration\Core\Status::class);
$this->status = $var;
return $this;
}
/**
* Generated from protobuf field <code>.registration.core.BuildInformation downgrade = 2;</code>
* @return \Registration\Core\BuildInformation|null
*/
public function getDowngrade()
{
return $this->downgrade;
}
public function hasDowngrade()
{
return isset($this->downgrade);
}
public function clearDowngrade()
{
unset($this->downgrade);
}
/**
* Generated from protobuf field <code>.registration.core.BuildInformation downgrade = 2;</code>
* @param \Registration\Core\BuildInformation $var
* @return $this
*/
public function setDowngrade($var)
{
GPBUtil::checkMessage($var, \Registration\Core\BuildInformation::class);
$this->downgrade = $var;
return $this;
}
/**
* Generated from protobuf field <code>string release_notes = 3;</code>
* @return string
*/
public function getReleaseNotes()
{
return $this->release_notes;
}
/**
* Generated from protobuf field <code>string release_notes = 3;</code>
* @param string $var
* @return $this
*/
public function setReleaseNotes($var)
{
GPBUtil::checkString($var, True);
$this->release_notes = $var;
return $this;
}
}