public enum NullValue extends java.lang.Enum<NullValue> implements ProtocolMessageEnum
`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
Enum Constant and Description |
---|
NULL_VALUE
Null value.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
NULL_VALUE_VALUE
Null value.
|
Modifier and Type | Method and Description |
---|---|
static NullValue |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType()
Return the enum type's descriptor, which contains information about each defined value, etc.
|
int |
getNumber()
Return the value's numeric value as defined in the .proto file.
|
Descriptors.EnumValueDescriptor |
getValueDescriptor()
Return the value's descriptor, which contains information such as value name, number, and type.
|
static Internal.EnumLiteMap<NullValue> |
internalGetValueMap() |
static NullValue |
valueOf(Descriptors.EnumValueDescriptor desc) |
static NullValue |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static NullValue |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NullValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NullValue NULL_VALUE
Null value.
NULL_VALUE = 0;
public static final NullValue UNRECOGNIZED
public static final int NULL_VALUE_VALUE
Null value.
NULL_VALUE = 0;
public static NullValue[] values()
for (NullValue c : NullValue.values()) System.out.println(c);
public static NullValue valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
ProtocolMessageEnum
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static NullValue valueOf(int value)
forNumber(int)
instead.public static NullValue forNumber(int value)
public static Internal.EnumLiteMap<NullValue> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
ProtocolMessageEnum
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
ProtocolMessageEnum
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static NullValue valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.