Package org.tensorflow.metadata.v0
Enum FeatureType
- java.lang.Object
-
- java.lang.Enum<FeatureType>
-
- org.tensorflow.metadata.v0.FeatureType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<FeatureType>
public enum FeatureType extends Enum<FeatureType> implements com.google.protobuf.ProtocolMessageEnum
Describes the physical representation of a feature. It may be different than the logical representation, which is represented as a Domain.
Protobuf enumtensorflow.metadata.v0.FeatureType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BYTESBYTES = 1;FLOATFLOAT = 3;INTINT = 2;STRUCTSTRUCT = 4;TYPE_UNKNOWNTYPE_UNKNOWN = 0;
-
Field Summary
Fields Modifier and Type Field Description static intBYTES_VALUEBYTES = 1;static intFLOAT_VALUEFLOAT = 3;static intINT_VALUEINT = 2;static intSTRUCT_VALUESTRUCT = 4;static intTYPE_UNKNOWN_VALUETYPE_UNKNOWN = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static FeatureTypeforNumber(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<FeatureType>internalGetValueMap()static FeatureTypevalueOf(int value)Deprecated.static FeatureTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static FeatureTypevalueOf(String name)Returns the enum constant of this type with the specified name.static FeatureType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TYPE_UNKNOWN
public static final FeatureType TYPE_UNKNOWN
TYPE_UNKNOWN = 0;
-
BYTES
public static final FeatureType BYTES
BYTES = 1;
-
INT
public static final FeatureType INT
INT = 2;
-
FLOAT
public static final FeatureType FLOAT
FLOAT = 3;
-
STRUCT
public static final FeatureType STRUCT
STRUCT = 4;
-
-
Field Detail
-
TYPE_UNKNOWN_VALUE
public static final int TYPE_UNKNOWN_VALUE
TYPE_UNKNOWN = 0;- See Also:
- Constant Field Values
-
BYTES_VALUE
public static final int BYTES_VALUE
BYTES = 1;- See Also:
- Constant Field Values
-
INT_VALUE
public static final int INT_VALUE
INT = 2;- See Also:
- Constant Field Values
-
FLOAT_VALUE
public static final int FLOAT_VALUE
FLOAT = 3;- See Also:
- Constant Field Values
-
STRUCT_VALUE
public static final int STRUCT_VALUE
STRUCT = 4;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static FeatureType[] 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 (FeatureType c : FeatureType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FeatureType 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 FeatureType 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 FeatureType 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<FeatureType> 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 FeatureType 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
-
-