Enum DatasetOptions.ExternalStatePolicy
java.lang.Object
java.lang.Enum<DatasetOptions.ExternalStatePolicy>
org.tensorflow.proto.data.DatasetOptions.ExternalStatePolicy
- All Implemented Interfaces:
Internal.EnumLite, ProtocolMessageEnum, Serializable, Comparable<DatasetOptions.ExternalStatePolicy>
- Enclosing class:
DatasetOptions
public static enum DatasetOptions.ExternalStatePolicy
extends Enum<DatasetOptions.ExternalStatePolicy>
implements ProtocolMessageEnum
Represents how to handle external state during serialization.Protobuf enum
tensorflow.data.ExternalStatePolicy-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPOLICY_FAIL = 2;POLICY_IGNORE = 1;POLICY_WARN = 0; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intPOLICY_FAIL = 2;static final intPOLICY_IGNORE = 1;static final intPOLICY_WARN = 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.static DatasetOptions.ExternalStatePolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
POLICY_WARN
POLICY_WARN = 0; -
POLICY_IGNORE
POLICY_IGNORE = 1; -
POLICY_FAIL
POLICY_FAIL = 2; -
UNRECOGNIZED
-
-
Field Details
-
POLICY_WARN_VALUE
public static final int POLICY_WARN_VALUEPOLICY_WARN = 0;- See Also:
-
POLICY_IGNORE_VALUE
public static final int POLICY_IGNORE_VALUEPOLICY_IGNORE = 1;- See Also:
-
POLICY_FAIL_VALUE
public static final int POLICY_FAIL_VALUEPOLICY_FAIL = 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
-
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
-