Package com.google.protobuf
Enum Class NullValue
- All Implemented Interfaces:
Internal.EnumLite
,Serializable
,Comparable<NullValue>
,Constable
`NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`.Protobuf enum
google.protobuf.NullValue
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Internal.EnumLiteMap
<NullValue> static final int
Null value.private final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NullValue
forNumber
(int value) final int
static Internal.EnumLiteMap
<NullValue> static Internal.EnumVerifier
static NullValue
valueOf
(int value) Deprecated.static NullValue
Returns the enum constant of this class with the specified name.static NullValue[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NULL_VALUE
Null value.
NULL_VALUE = 0;
-
UNRECOGNIZED
-
-
Field Details
-
NULL_VALUE_VALUE
public static final int NULL_VALUE_VALUENull value.
NULL_VALUE = 0;
- See Also:
-
internalValueMap
-
value
private final int value
-
-
Constructor Details
-
NullValue
private NullValue(int value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfaceInternal.EnumLite
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
-
internalGetValueMap
-
internalGetVerifier
-