Package flyteidl.core
Enum Types.SimpleType
- java.lang.Object
-
- java.lang.Enum<Types.SimpleType>
-
- flyteidl.core.Types.SimpleType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Types.SimpleType>
- Enclosing class:
- Types
public static enum Types.SimpleType extends Enum<Types.SimpleType> implements com.google.protobuf.ProtocolMessageEnum
Define a set of simple types.
Protobuf enumflyteidl.core.SimpleType
-
-
Field Summary
Fields Modifier and Type Field Description static intBINARY_VALUEBINARY = 7;static intBOOLEAN_VALUEBOOLEAN = 4;static intDATETIME_VALUEDATETIME = 5;static intDURATION_VALUEDURATION = 6;static intERROR_VALUEERROR = 8;static intFLOAT_VALUEFLOAT = 2;static intINTEGER_VALUEINTEGER = 1;private static com.google.protobuf.Internal.EnumLiteMap<Types.SimpleType>internalValueMapstatic intNONE_VALUENONE = 0;static intSTRING_VALUESTRING = 3;static intSTRUCT_VALUESTRUCT = 9;private intvalueprivate static Types.SimpleType[]VALUES
-
Constructor Summary
Constructors Modifier Constructor Description privateSimpleType(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Types.SimpleTypeforNumber(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<Types.SimpleType>internalGetValueMap()static Types.SimpleTypevalueOf(int value)Deprecated.static Types.SimpleTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Types.SimpleTypevalueOf(String name)Returns the enum constant of this type with the specified name.static Types.SimpleType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Types.SimpleType NONE
NONE = 0;
-
INTEGER
public static final Types.SimpleType INTEGER
INTEGER = 1;
-
FLOAT
public static final Types.SimpleType FLOAT
FLOAT = 2;
-
STRING
public static final Types.SimpleType STRING
STRING = 3;
-
BOOLEAN
public static final Types.SimpleType BOOLEAN
BOOLEAN = 4;
-
DATETIME
public static final Types.SimpleType DATETIME
DATETIME = 5;
-
DURATION
public static final Types.SimpleType DURATION
DURATION = 6;
-
BINARY
public static final Types.SimpleType BINARY
BINARY = 7;
-
ERROR
public static final Types.SimpleType ERROR
ERROR = 8;
-
STRUCT
public static final Types.SimpleType STRUCT
STRUCT = 9;
-
UNRECOGNIZED
public static final Types.SimpleType UNRECOGNIZED
-
-
Field Detail
-
NONE_VALUE
public static final int NONE_VALUE
NONE = 0;- See Also:
- Constant Field Values
-
INTEGER_VALUE
public static final int INTEGER_VALUE
INTEGER = 1;- See Also:
- Constant Field Values
-
FLOAT_VALUE
public static final int FLOAT_VALUE
FLOAT = 2;- See Also:
- Constant Field Values
-
STRING_VALUE
public static final int STRING_VALUE
STRING = 3;- See Also:
- Constant Field Values
-
BOOLEAN_VALUE
public static final int BOOLEAN_VALUE
BOOLEAN = 4;- See Also:
- Constant Field Values
-
DATETIME_VALUE
public static final int DATETIME_VALUE
DATETIME = 5;- See Also:
- Constant Field Values
-
DURATION_VALUE
public static final int DURATION_VALUE
DURATION = 6;- See Also:
- Constant Field Values
-
BINARY_VALUE
public static final int BINARY_VALUE
BINARY = 7;- See Also:
- Constant Field Values
-
ERROR_VALUE
public static final int ERROR_VALUE
ERROR = 8;- See Also:
- Constant Field Values
-
STRUCT_VALUE
public static final int STRUCT_VALUE
STRUCT = 9;- See Also:
- Constant Field Values
-
internalValueMap
private static final com.google.protobuf.Internal.EnumLiteMap<Types.SimpleType> internalValueMap
-
VALUES
private static final Types.SimpleType[] VALUES
-
value
private final int value
-
-
Method Detail
-
values
public static Types.SimpleType[] 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 (Types.SimpleType c : Types.SimpleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Types.SimpleType 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 Types.SimpleType 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 Types.SimpleType 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<Types.SimpleType> 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 Types.SimpleType 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
-
-