com.google.protobuf.NullValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-lite Show documentation
Show all versions of protobuf-lite Show documentation
A trimmed-down version of the Protocol Buffers library.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/struct.proto
package com.google.protobuf;
/**
*
* `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 {@code google.protobuf.NullValue}
*/
public enum NullValue
implements com.google.protobuf.Internal.EnumLite {
/**
*
* Null value.
*
*
* NULL_VALUE = 0;
*/
NULL_VALUE(0),
UNRECOGNIZED(-1),
;
/**
*
* Null value.
*
*
* NULL_VALUE = 0;
*/
public static final int NULL_VALUE_VALUE = 0;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NullValue valueOf(int value) {
return forNumber(value);
}
public static NullValue forNumber(int value) {
switch (value) {
case 0: return NULL_VALUE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
NullValue> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public NullValue findValueByNumber(int number) {
return NullValue.forNumber(number);
}
};
private final int value;
private NullValue(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.protobuf.NullValue)
}