All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.protobuf.NullValue Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/protobuf/struct.proto

package com.google.protobuf;

/**
 * Protobuf enum {@code google.protobuf.NullValue}
 *
 * 
 * `NullValue` is a singleton enumeration to represent the null value for the
 * `Value` type union.
 *  The JSON representation for `NullValue` is JSON `null`.
 * 
*/ public enum NullValue implements com.google.protobuf.ProtocolMessageEnum { /** * NULL_VALUE = 0; * *
   * Null value.
   * 
*/ NULL_VALUE(0, 0), UNRECOGNIZED(-1, -1), ; /** * NULL_VALUE = 0; * *
   * Null value.
   * 
*/ public static final int NULL_VALUE_VALUE = 0; public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } public static NullValue valueOf(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.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.protobuf.StructProto.getDescriptor() .getEnumTypes().get(0); } private static final NullValue[] VALUES = values(); public static NullValue valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int index; private final int value; private NullValue(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:google.protobuf.NullValue) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy