Package net.sf.okapi.proto
Enum PrimitiveValue.ValueTypeCase
- java.lang.Object
-
- java.lang.Enum<PrimitiveValue.ValueTypeCase>
-
- net.sf.okapi.proto.PrimitiveValue.ValueTypeCase
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,Serializable
,Comparable<PrimitiveValue.ValueTypeCase>
- Enclosing class:
- PrimitiveValue
public static enum PrimitiveValue.ValueTypeCase extends Enum<PrimitiveValue.ValueTypeCase> implements com.google.protobuf.Internal.EnumLite
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOL_VALUE
DOUBLE_VALUE
INT_VALUE
STRING_VALUE
VALUETYPE_NOT_SET
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static PrimitiveValue.ValueTypeCase
forNumber(int value)
int
getNumber()
static PrimitiveValue.ValueTypeCase
valueOf(int value)
Deprecated.static PrimitiveValue.ValueTypeCase
valueOf(String name)
Returns the enum constant of this type with the specified name.static PrimitiveValue.ValueTypeCase[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING_VALUE
public static final PrimitiveValue.ValueTypeCase STRING_VALUE
-
BOOL_VALUE
public static final PrimitiveValue.ValueTypeCase BOOL_VALUE
-
INT_VALUE
public static final PrimitiveValue.ValueTypeCase INT_VALUE
-
DOUBLE_VALUE
public static final PrimitiveValue.ValueTypeCase DOUBLE_VALUE
-
VALUETYPE_NOT_SET
public static final PrimitiveValue.ValueTypeCase VALUETYPE_NOT_SET
-
-
Method Detail
-
values
public static PrimitiveValue.ValueTypeCase[] 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 (PrimitiveValue.ValueTypeCase c : PrimitiveValue.ValueTypeCase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrimitiveValue.ValueTypeCase 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
-
valueOf
@Deprecated public static PrimitiveValue.ValueTypeCase 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 PrimitiveValue.ValueTypeCase forNumber(int value)
-
getNumber
public int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
-
-