Package org.tensorflow.metadata.v0
Enum FeatureNameStatistics.Type
- java.lang.Object
-
- java.lang.Enum<FeatureNameStatistics.Type>
-
- org.tensorflow.metadata.v0.FeatureNameStatistics.Type
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<FeatureNameStatistics.Type>
- Enclosing class:
- FeatureNameStatistics
public static enum FeatureNameStatistics.Type extends Enum<FeatureNameStatistics.Type> implements com.google.protobuf.ProtocolMessageEnum
The types supported by the feature statistics. When aggregating tf.Examples, if the bytelist contains a string, it is recommended to encode it here as STRING instead of BYTES in order to calculate string-specific statistical measures.
Protobuf enumtensorflow.metadata.v0.FeatureNameStatistics.Type
-
-
Field Summary
Fields Modifier and Type Field Description static intBYTES_VALUEBYTES = 3;static intFLOAT_VALUEFLOAT = 1;static intINT_VALUEINT = 0;static intSTRING_VALUESTRING = 2;static intSTRUCT_VALUESTRUCT = 4;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static FeatureNameStatistics.TypeforNumber(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<FeatureNameStatistics.Type>internalGetValueMap()static FeatureNameStatistics.TypevalueOf(int value)Deprecated.static FeatureNameStatistics.TypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static FeatureNameStatistics.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static FeatureNameStatistics.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INT
public static final FeatureNameStatistics.Type INT
INT = 0;
-
FLOAT
public static final FeatureNameStatistics.Type FLOAT
FLOAT = 1;
-
STRING
public static final FeatureNameStatistics.Type STRING
STRING = 2;
-
BYTES
public static final FeatureNameStatistics.Type BYTES
BYTES = 3;
-
STRUCT
public static final FeatureNameStatistics.Type STRUCT
STRUCT = 4;
-
UNRECOGNIZED
public static final FeatureNameStatistics.Type UNRECOGNIZED
-
-
Field Detail
-
INT_VALUE
public static final int INT_VALUE
INT = 0;- See Also:
- Constant Field Values
-
FLOAT_VALUE
public static final int FLOAT_VALUE
FLOAT = 1;- See Also:
- Constant Field Values
-
STRING_VALUE
public static final int STRING_VALUE
STRING = 2;- See Also:
- Constant Field Values
-
BYTES_VALUE
public static final int BYTES_VALUE
BYTES = 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 FeatureNameStatistics.Type[] 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 (FeatureNameStatistics.Type c : FeatureNameStatistics.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FeatureNameStatistics.Type 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 FeatureNameStatistics.Type 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 FeatureNameStatistics.Type 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<FeatureNameStatistics.Type> 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 FeatureNameStatistics.Type 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
-
-