Package sass.embedded_protocol
Enum EmbeddedSass.SingletonValue
- java.lang.Object
-
- java.lang.Enum<EmbeddedSass.SingletonValue>
-
- sass.embedded_protocol.EmbeddedSass.SingletonValue
-
- All Implemented Interfaces:
Internal.EnumLite,ProtocolMessageEnum,Serializable,Comparable<EmbeddedSass.SingletonValue>
- Enclosing class:
- EmbeddedSass
public static enum EmbeddedSass.SingletonValue extends Enum<EmbeddedSass.SingletonValue> implements ProtocolMessageEnum
Singleton SassScript values that have no internal state.
Protobuf enumsass.embedded_protocol.SingletonValue
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FALSEThe SassScript boolean false value.NULLThe SassScript null value.TRUEThe SassScript boolean true value.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intFALSE_VALUEThe SassScript boolean false value.static intNULL_VALUEThe SassScript null value.static intTRUE_VALUEThe SassScript boolean true value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static EmbeddedSass.SingletonValueforNumber(int value)static Descriptors.EnumDescriptorgetDescriptor()Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()Descriptors.EnumValueDescriptorgetValueDescriptor()static Internal.EnumLiteMap<EmbeddedSass.SingletonValue>internalGetValueMap()static EmbeddedSass.SingletonValuevalueOf(int value)Deprecated.static EmbeddedSass.SingletonValuevalueOf(Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static EmbeddedSass.SingletonValuevalueOf(String name)Returns the enum constant of this type with the specified name.static EmbeddedSass.SingletonValue[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRUE
public static final EmbeddedSass.SingletonValue TRUE
The SassScript boolean true value.
TRUE = 0;
-
FALSE
public static final EmbeddedSass.SingletonValue FALSE
The SassScript boolean false value.
FALSE = 1;
-
NULL
public static final EmbeddedSass.SingletonValue NULL
The SassScript null value.
NULL = 2;
-
UNRECOGNIZED
public static final EmbeddedSass.SingletonValue UNRECOGNIZED
-
-
Field Detail
-
TRUE_VALUE
public static final int TRUE_VALUE
The SassScript boolean true value.
TRUE = 0;- See Also:
- Constant Field Values
-
FALSE_VALUE
public static final int FALSE_VALUE
The SassScript boolean false value.
FALSE = 1;- See Also:
- Constant Field Values
-
NULL_VALUE
public static final int NULL_VALUE
The SassScript null value.
NULL = 2;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static EmbeddedSass.SingletonValue[] 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 (EmbeddedSass.SingletonValue c : EmbeddedSass.SingletonValue.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EmbeddedSass.SingletonValue 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 interfaceInternal.EnumLite- Specified by:
getNumberin interfaceProtocolMessageEnum
-
valueOf
@Deprecated public static EmbeddedSass.SingletonValue 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 EmbeddedSass.SingletonValue 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 Internal.EnumLiteMap<EmbeddedSass.SingletonValue> internalGetValueMap()
-
getValueDescriptor
public final Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfaceProtocolMessageEnum
-
getDescriptorForType
public final Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceProtocolMessageEnum
-
getDescriptor
public static final Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static EmbeddedSass.SingletonValue 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
-
-