registration.core.DowngradeAvailable
*/
class DowngradeAvailable extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .registration.core.Status status = 1;
*/
protected $status = 0;
/**
* Generated from protobuf field .registration.core.BuildInformation downgrade = 2;
*/
protected $downgrade = null;
/**
* Generated from protobuf field string release_notes = 3;
*/
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 .registration.core.Status status = 1;
* @return int
*/
public function getStatus()
{
return $this->status;
}
/**
* Generated from protobuf field .registration.core.Status status = 1;
* @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 .registration.core.BuildInformation downgrade = 2;
* @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 .registration.core.BuildInformation downgrade = 2;
* @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 string release_notes = 3;
* @return string
*/
public function getReleaseNotes()
{
return $this->release_notes;
}
/**
* Generated from protobuf field string release_notes = 3;
* @param string $var
* @return $this
*/
public function setReleaseNotes($var)
{
GPBUtil::checkString($var, True);
$this->release_notes = $var;
return $this;
}
}