Enum BundleHeaderProto.Endianness
- All Implemented Interfaces:
Internal.EnumLite, ProtocolMessageEnum, Serializable, Comparable<BundleHeaderProto.Endianness>
- Enclosing class:
BundleHeaderProto
public static enum BundleHeaderProto.Endianness
extends Enum<BundleHeaderProto.Endianness>
implements ProtocolMessageEnum
An enum indicating the endianness of the platform that produced this bundle. A bundle can only be read by a platform with matching endianness. Defaults to LITTLE, as most modern platforms are little-endian. Affects the binary tensor data bytes only, not the metadata in protobufs.Protobuf enum
tensorflow.BundleHeaderProto.Endianness-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBIG = 1;static final intLITTLE = 0; -
Method Summary
Modifier and TypeMethodDescriptionstatic BundleHeaderProto.EndiannessforNumber(int value) static final Descriptors.EnumDescriptorfinal intstatic BundleHeaderProto.EndiannessvalueOf(int value) Deprecated.static BundleHeaderProto.EndiannessReturns the enum constant of this type with the specified name.static BundleHeaderProto.EndiannessReturns the enum constant of this type with the specified name.static BundleHeaderProto.Endianness[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LITTLE
LITTLE = 0; -
BIG
BIG = 1; -
UNRECOGNIZED
-
-
Field Details
-
LITTLE_VALUE
public static final int LITTLE_VALUELITTLE = 0;- See Also:
-
BIG_VALUE
public static final int BIG_VALUEBIG = 1;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 interfaceInternal.EnumLite- Specified by:
getNumberin interfaceProtocolMessageEnum
-
valueOf
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
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
- Specified by:
getValueDescriptorin interfaceProtocolMessageEnum
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceProtocolMessageEnum
-
getDescriptor
-
valueOf
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
-