registration.core.ClientAlertMessage
*/
class ClientAlertMessage
{
/**
* Generated from protobuf enum NoAlert = 0;
*/
const NoAlert = 0;
/**
* Generated from protobuf enum ExpiredLicenseLegacy = 1;
*/
const ExpiredLicenseLegacy = 1;
/**
* Generated from protobuf enum ExpiredSubscription = 2;
*/
const ExpiredSubscription = 2;
/**
* Generated from protobuf enum InvalidLicense = 3;
*/
const InvalidLicense = 3;
/**
* Generated from protobuf enum NoSeatsLegacy = 4;
*/
const NoSeatsLegacy = 4;
/**
* Generated from protobuf enum NoSeatsSubscription = 5;
*/
const NoSeatsSubscription = 5;
/**
* Generated from protobuf enum SeatDeactivatedSubscription = 6;
*/
const SeatDeactivatedSubscription = 6;
/**
* Generated from protobuf enum TimeDiscrepancyAlert = 7;
*/
const TimeDiscrepancyAlert = 7;
/**
* Generated from protobuf enum NoNetwork = 8;
*/
const NoNetwork = 8;
/**
* Generated from protobuf enum NoBibleCopies = 9;
*/
const NoBibleCopies = 9;
/**
* Generated from protobuf enum BibleMissingAlert = 10;
*/
const BibleMissingAlert = 10;
/**
* Generated from protobuf enum BibleNotPurchasedLegacy = 11;
*/
const BibleNotPurchasedLegacy = 11;
/**
* Generated from protobuf enum BibleNotPurchasedSubscription = 12;
*/
const BibleNotPurchasedSubscription = 12;
/**
* Generated from protobuf enum UnsuccessfulBibleActivationLegacy = 13;
*/
const UnsuccessfulBibleActivationLegacy = 13;
/**
* Generated from protobuf enum UnsuccessfulBibleActivationSubscription = 14;
*/
const UnsuccessfulBibleActivationSubscription = 14;
/**
* Generated from protobuf enum IOErrorAlert = 15;
*/
const IOErrorAlert = 15;
/**
* Generated from protobuf enum CodeExpiredAlert = 16;
*/
const CodeExpiredAlert = 16;
/**
* Generated from protobuf enum CodeInvalidAlert = 17;
*/
const CodeInvalidAlert = 17;
/**
* Generated from protobuf enum UnsuccessfulActivation = 18;
*/
const UnsuccessfulActivation = 18;
/**
* Generated from protobuf enum DeviceSignedOutSubscription = 19;
*/
const DeviceSignedOutSubscription = 19;
/**
* Generated from protobuf enum UnknownAlert = 20;
*/
const UnknownAlert = 20;
private static $valueToName = [
self::NoAlert => 'NoAlert',
self::ExpiredLicenseLegacy => 'ExpiredLicenseLegacy',
self::ExpiredSubscription => 'ExpiredSubscription',
self::InvalidLicense => 'InvalidLicense',
self::NoSeatsLegacy => 'NoSeatsLegacy',
self::NoSeatsSubscription => 'NoSeatsSubscription',
self::SeatDeactivatedSubscription => 'SeatDeactivatedSubscription',
self::TimeDiscrepancyAlert => 'TimeDiscrepancyAlert',
self::NoNetwork => 'NoNetwork',
self::NoBibleCopies => 'NoBibleCopies',
self::BibleMissingAlert => 'BibleMissingAlert',
self::BibleNotPurchasedLegacy => 'BibleNotPurchasedLegacy',
self::BibleNotPurchasedSubscription => 'BibleNotPurchasedSubscription',
self::UnsuccessfulBibleActivationLegacy => 'UnsuccessfulBibleActivationLegacy',
self::UnsuccessfulBibleActivationSubscription => 'UnsuccessfulBibleActivationSubscription',
self::IOErrorAlert => 'IOErrorAlert',
self::CodeExpiredAlert => 'CodeExpiredAlert',
self::CodeInvalidAlert => 'CodeInvalidAlert',
self::UnsuccessfulActivation => 'UnsuccessfulActivation',
self::DeviceSignedOutSubscription => 'DeviceSignedOutSubscription',
self::UnknownAlert => 'UnknownAlert',
];
public static function name($value)
{
if (!isset(self::$valueToName[$value])) {
throw new UnexpectedValueException(sprintf(
'Enum %s has no name defined for value %s', __CLASS__, $value));
}
return self::$valueToName[$value];
}
public static function value($name)
{
$const = __CLASS__ . '::' . strtoupper($name);
if (!defined($const)) {
throw new UnexpectedValueException(sprintf(
'Enum %s has no value defined for name %s', __CLASS__, $name));
}
return constant($const);
}
}