Package org.tensorflow.metadata.v0
Enum TimeDomain.IntegerTimeFormat
- java.lang.Object
-
- java.lang.Enum<TimeDomain.IntegerTimeFormat>
-
- org.tensorflow.metadata.v0.TimeDomain.IntegerTimeFormat
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<TimeDomain.IntegerTimeFormat>
- Enclosing class:
- TimeDomain
public static enum TimeDomain.IntegerTimeFormat extends Enum<TimeDomain.IntegerTimeFormat> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumtensorflow.metadata.v0.TimeDomain.IntegerTimeFormat
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FORMAT_UNKNOWNFORMAT_UNKNOWN = 0;UNIX_DAYSNumber of days since 1970-01-01.UNIX_MICROSECONDSUNIX_MICROSECONDS = 3;UNIX_MILLISECONDSUNIX_MILLISECONDS = 2;UNIX_NANOSECONDSUNIX_NANOSECONDS = 4;UNIX_SECONDSUNIX_SECONDS = 1;
-
Field Summary
Fields Modifier and Type Field Description static intFORMAT_UNKNOWN_VALUEFORMAT_UNKNOWN = 0;static intUNIX_DAYS_VALUENumber of days since 1970-01-01.static intUNIX_MICROSECONDS_VALUEUNIX_MICROSECONDS = 3;static intUNIX_MILLISECONDS_VALUEUNIX_MILLISECONDS = 2;static intUNIX_NANOSECONDS_VALUEUNIX_NANOSECONDS = 4;static intUNIX_SECONDS_VALUEUNIX_SECONDS = 1;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TimeDomain.IntegerTimeFormatforNumber(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<TimeDomain.IntegerTimeFormat>internalGetValueMap()static TimeDomain.IntegerTimeFormatvalueOf(int value)Deprecated.static TimeDomain.IntegerTimeFormatvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static TimeDomain.IntegerTimeFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static TimeDomain.IntegerTimeFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FORMAT_UNKNOWN
public static final TimeDomain.IntegerTimeFormat FORMAT_UNKNOWN
FORMAT_UNKNOWN = 0;
-
UNIX_DAYS
public static final TimeDomain.IntegerTimeFormat UNIX_DAYS
Number of days since 1970-01-01.
UNIX_DAYS = 5;
-
UNIX_SECONDS
public static final TimeDomain.IntegerTimeFormat UNIX_SECONDS
UNIX_SECONDS = 1;
-
UNIX_MILLISECONDS
public static final TimeDomain.IntegerTimeFormat UNIX_MILLISECONDS
UNIX_MILLISECONDS = 2;
-
UNIX_MICROSECONDS
public static final TimeDomain.IntegerTimeFormat UNIX_MICROSECONDS
UNIX_MICROSECONDS = 3;
-
UNIX_NANOSECONDS
public static final TimeDomain.IntegerTimeFormat UNIX_NANOSECONDS
UNIX_NANOSECONDS = 4;
-
-
Field Detail
-
FORMAT_UNKNOWN_VALUE
public static final int FORMAT_UNKNOWN_VALUE
FORMAT_UNKNOWN = 0;- See Also:
- Constant Field Values
-
UNIX_DAYS_VALUE
public static final int UNIX_DAYS_VALUE
Number of days since 1970-01-01.
UNIX_DAYS = 5;- See Also:
- Constant Field Values
-
UNIX_SECONDS_VALUE
public static final int UNIX_SECONDS_VALUE
UNIX_SECONDS = 1;- See Also:
- Constant Field Values
-
UNIX_MILLISECONDS_VALUE
public static final int UNIX_MILLISECONDS_VALUE
UNIX_MILLISECONDS = 2;- See Also:
- Constant Field Values
-
UNIX_MICROSECONDS_VALUE
public static final int UNIX_MICROSECONDS_VALUE
UNIX_MICROSECONDS = 3;- See Also:
- Constant Field Values
-
UNIX_NANOSECONDS_VALUE
public static final int UNIX_NANOSECONDS_VALUE
UNIX_NANOSECONDS = 4;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static TimeDomain.IntegerTimeFormat[] 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 (TimeDomain.IntegerTimeFormat c : TimeDomain.IntegerTimeFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeDomain.IntegerTimeFormat 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 TimeDomain.IntegerTimeFormat 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 TimeDomain.IntegerTimeFormat 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<TimeDomain.IntegerTimeFormat> 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 TimeDomain.IntegerTimeFormat 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
-
-