Package api
Enum EventOuterClass.Cause
- java.lang.Object
-
- java.lang.Enum<EventOuterClass.Cause>
-
- api.EventOuterClass.Cause
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<EventOuterClass.Cause>
- Enclosing class:
- EventOuterClass
public static enum EventOuterClass.Cause extends Enum<EventOuterClass.Cause> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumapi.Cause
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DeadlineExceededDeadlineExceeded = 3;ErrorError = 0;EvictedEvicted = 1;OOMOOM = 2;RejectedRejected = 4;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intDeadlineExceeded_VALUEDeadlineExceeded = 3;static intError_VALUEError = 0;static intEvicted_VALUEEvicted = 1;static intOOM_VALUEOOM = 2;static intRejected_VALUERejected = 4;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static EventOuterClass.CauseforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<EventOuterClass.Cause>internalGetValueMap()static EventOuterClass.CausevalueOf(int value)Deprecated.static EventOuterClass.CausevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static EventOuterClass.CausevalueOf(String name)Returns the enum constant of this type with the specified name.static EventOuterClass.Cause[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Error
public static final EventOuterClass.Cause Error
Error = 0;
-
Evicted
public static final EventOuterClass.Cause Evicted
Evicted = 1;
-
OOM
public static final EventOuterClass.Cause OOM
OOM = 2;
-
DeadlineExceeded
public static final EventOuterClass.Cause DeadlineExceeded
DeadlineExceeded = 3;
-
Rejected
public static final EventOuterClass.Cause Rejected
Rejected = 4;
-
UNRECOGNIZED
public static final EventOuterClass.Cause UNRECOGNIZED
-
-
Field Detail
-
Error_VALUE
public static final int Error_VALUE
Error = 0;- See Also:
- Constant Field Values
-
Evicted_VALUE
public static final int Evicted_VALUE
Evicted = 1;- See Also:
- Constant Field Values
-
OOM_VALUE
public static final int OOM_VALUE
OOM = 2;- See Also:
- Constant Field Values
-
DeadlineExceeded_VALUE
public static final int DeadlineExceeded_VALUE
DeadlineExceeded = 3;- See Also:
- Constant Field Values
-
Rejected_VALUE
public static final int Rejected_VALUE
Rejected = 4;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static EventOuterClass.Cause[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EventOuterClass.Cause c : EventOuterClass.Cause.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EventOuterClass.Cause valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static EventOuterClass.Cause valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static EventOuterClass.Cause forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<EventOuterClass.Cause> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static EventOuterClass.Cause valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-