io.camunda.zeebe.protocol.management.BackupStatusCode Maven / Gradle / Ivy
/* Generated SBE (Simple Binary Encoding) message codec. */
package io.camunda.zeebe.protocol.management;
@SuppressWarnings("all")
public enum BackupStatusCode
{
DOES_NOT_EXIST((short)0),
IN_PROGRESS((short)1),
COMPLETED((short)2),
FAILED((short)3),
/**
* To be used to represent an unknown value from a later version.
*/
SBE_UNKNOWN((short)255),
/**
* To be used to represent not present or null.
*/
NULL_VAL((short)255);
private final short value;
BackupStatusCode(final short value)
{
this.value = value;
}
/**
* The raw encoded value in the Java type representation.
*
* @return the raw value encoded.
*/
public short value()
{
return value;
}
/**
* Lookup the enum value representing the value.
*
* @param value encoded to be looked up.
* @return the enum value representing the value.
*/
public static BackupStatusCode get(final short value)
{
switch (value)
{
case 0: return DOES_NOT_EXIST;
case 1: return IN_PROGRESS;
case 2: return COMPLETED;
case 3: return FAILED;
case 255: return NULL_VAL;
}
return SBE_UNKNOWN;
}
}