Enum VerifierConfig.Toggle
- All Implemented Interfaces:
Internal.EnumLite, ProtocolMessageEnum, Serializable, Comparable<VerifierConfig.Toggle>
- Enclosing class:
VerifierConfig
public static enum VerifierConfig.Toggle
extends Enum<VerifierConfig.Toggle>
implements ProtocolMessageEnum
Protobuf enum
tensorflow.VerifierConfig.Toggle-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDEFAULT = 0;static final intOFF = 2;static final intON = 1; -
Method Summary
Modifier and TypeMethodDescriptionstatic VerifierConfig.ToggleforNumber(int value) static final Descriptors.EnumDescriptorfinal intstatic VerifierConfig.TogglevalueOf(int value) Deprecated.static VerifierConfig.ToggleReturns the enum constant of this type with the specified name.static VerifierConfig.ToggleReturns the enum constant of this type with the specified name.static VerifierConfig.Toggle[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
DEFAULT = 0; -
ON
ON = 1; -
OFF
OFF = 2; -
UNRECOGNIZED
-
-
Field Details
-
DEFAULT_VALUE
public static final int DEFAULT_VALUEDEFAULT = 0;- See Also:
-
ON_VALUE
public static final int ON_VALUEON = 1;- See Also:
-
OFF_VALUE
public static final int OFF_VALUEOFF = 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
-