Enum DataService.DataServiceMetadata.Compression
java.lang.Object
java.lang.Enum<DataService.DataServiceMetadata.Compression>
org.tensorflow.proto.data.DataService.DataServiceMetadata.Compression
- All Implemented Interfaces:
Internal.EnumLite, ProtocolMessageEnum, Serializable, Comparable<DataService.DataServiceMetadata.Compression>
- Enclosing class:
DataService.DataServiceMetadata
public static enum DataService.DataServiceMetadata.Compression
extends Enum<DataService.DataServiceMetadata.Compression>
implements ProtocolMessageEnum
Protobuf enum
tensorflow.data.DataServiceMetadata.Compression-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo compression.Snappy compression as defined in tensorflow/core/platform/snappy.h.COMPRESSION_UNSPECIFIED = 0; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNo compression.static final intSnappy compression as defined in tensorflow/core/platform/snappy.h.static final intCOMPRESSION_UNSPECIFIED = 0; -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final Descriptors.EnumDescriptorfinal intvalueOf(int value) Deprecated.Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COMPRESSION_UNSPECIFIED
COMPRESSION_UNSPECIFIED = 0; -
COMPRESSION_OFF
No compression.
COMPRESSION_OFF = 1; -
COMPRESSION_SNAPPY
Snappy compression as defined in tensorflow/core/platform/snappy.h.
COMPRESSION_SNAPPY = 2; -
UNRECOGNIZED
-
-
Field Details
-
COMPRESSION_UNSPECIFIED_VALUE
public static final int COMPRESSION_UNSPECIFIED_VALUECOMPRESSION_UNSPECIFIED = 0;- See Also:
-
COMPRESSION_OFF_VALUE
public static final int COMPRESSION_OFF_VALUENo compression.
COMPRESSION_OFF = 1;- See Also:
-
COMPRESSION_SNAPPY_VALUE
public static final int COMPRESSION_SNAPPY_VALUESnappy compression as defined in tensorflow/core/platform/snappy.h.
COMPRESSION_SNAPPY = 2;- 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
public static Internal.EnumLiteMap<DataService.DataServiceMetadata.Compression> internalGetValueMap() -
getValueDescriptor
- Specified by:
getValueDescriptorin interfaceProtocolMessageEnum
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceProtocolMessageEnum
-
getDescriptor
-
valueOf
public static DataService.DataServiceMetadata.Compression valueOf(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
-