Class SerializeSupport
java.lang.Object
org.curioswitch.common.protobuf.json.SerializeSupport
-
Method Summary
Modifier and TypeMethodDescriptionmapIterator(Map<?, ?> map, boolean sortingMapKeys, boolean stringKey) static longnormalizeUnsignedInt32(int value) static StringnormalizeUnsignedInt64(long value) static voidprintBool(boolean value, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintBytes(com.google.protobuf.ByteString value, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintDouble(double value, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintEnum(int value, com.fasterxml.jackson.core.JsonGenerator gen, com.google.protobuf.Descriptors.EnumDescriptor descriptor) static voidprintEnum(com.google.protobuf.Descriptors.EnumValueDescriptor value, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintFloat(float value, com.fasterxml.jackson.core.JsonGenerator gen) static <T extends com.google.protobuf.Message>
voidprintMessage(T value, com.fasterxml.jackson.core.JsonGenerator gen, TypeSpecificMarshaller<T> serializer) static voidprintNull(int unused, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintRepeatedBool(List<Boolean> values, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintRepeatedBytes(List<com.google.protobuf.ByteString> values, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintRepeatedDouble(List<Double> values, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintRepeatedEnum(List<Integer> values, com.fasterxml.jackson.core.JsonGenerator gen, com.google.protobuf.Descriptors.EnumDescriptor descriptor) static voidprintRepeatedFloat(List<Float> values, com.fasterxml.jackson.core.JsonGenerator gen) static <T extends com.google.protobuf.Message>
voidprintRepeatedMessage(List<T> values, com.fasterxml.jackson.core.JsonGenerator gen, TypeSpecificMarshaller<T> serializer) static voidprintRepeatedNull(List<Integer> values, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintRepeatedSignedInt32(List<Integer> values, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintRepeatedSignedInt64(List<Long> values, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintRepeatedString(List<String> values, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintRepeatedUnsignedInt32(List<Integer> values, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintRepeatedUnsignedInt64(List<Long> values, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintSignedInt32(int value, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintSignedInt64(long value, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintString(String value, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintUnsignedInt32(int value, com.fasterxml.jackson.core.JsonGenerator gen) static voidprintUnsignedInt64(long value, com.fasterxml.jackson.core.JsonGenerator gen) static com.fasterxml.jackson.core.io.SerializedStringserializeString(String name)
-
Method Details
-
printRepeatedSignedInt32
public static void printRepeatedSignedInt32(List<Integer> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printSignedInt32
public static void printSignedInt32(int value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printRepeatedSignedInt64
public static void printRepeatedSignedInt64(List<Long> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printSignedInt64
public static void printSignedInt64(long value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printRepeatedUnsignedInt32
public static void printRepeatedUnsignedInt32(List<Integer> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printUnsignedInt32
public static void printUnsignedInt32(int value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
normalizeUnsignedInt32
public static long normalizeUnsignedInt32(int value) -
printRepeatedUnsignedInt64
public static void printRepeatedUnsignedInt64(List<Long> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printUnsignedInt64
public static void printUnsignedInt64(long value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
normalizeUnsignedInt64
-
printRepeatedBool
public static void printRepeatedBool(List<Boolean> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printBool
public static void printBool(boolean value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printRepeatedFloat
public static void printRepeatedFloat(List<Float> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printFloat
public static void printFloat(float value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printRepeatedDouble
public static void printRepeatedDouble(List<Double> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printDouble
public static void printDouble(double value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printRepeatedString
public static void printRepeatedString(List<String> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printString
public static void printString(String value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printRepeatedBytes
public static void printRepeatedBytes(List<com.google.protobuf.ByteString> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printBytes
public static void printBytes(com.google.protobuf.ByteString value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printRepeatedNull
public static void printRepeatedNull(List<Integer> values, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printNull
public static void printNull(int unused, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printRepeatedEnum
public static void printRepeatedEnum(List<Integer> values, com.fasterxml.jackson.core.JsonGenerator gen, com.google.protobuf.Descriptors.EnumDescriptor descriptor) throws IOException - Throws:
IOException
-
printEnum
public static void printEnum(int value, com.fasterxml.jackson.core.JsonGenerator gen, com.google.protobuf.Descriptors.EnumDescriptor descriptor) throws IOException - Throws:
IOException
-
printEnum
public static void printEnum(com.google.protobuf.Descriptors.EnumValueDescriptor value, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
printRepeatedMessage
public static <T extends com.google.protobuf.Message> void printRepeatedMessage(List<T> values, com.fasterxml.jackson.core.JsonGenerator gen, TypeSpecificMarshaller<T> serializer) throws IOException - Throws:
IOException
-
printMessage
public static <T extends com.google.protobuf.Message> void printMessage(T value, com.fasterxml.jackson.core.JsonGenerator gen, TypeSpecificMarshaller<T> serializer) throws IOException - Throws:
IOException
-
serializeString
-
mapIterator
-