@@ -0,0 +1,2466 @@
+/*%0A * Copyright 2017, TeamDev Ltd. All rights reserved.%0A *%0A * Redistribution and use in source and/or binary forms, with or without%0A * modification, must retain the above copyright notice and the following%0A * disclaimer.%0A *%0A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS%0A * %22AS IS%22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT%0A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR%0A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT%0A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,%0A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT%0A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,%0A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY%0A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT%0A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE%0A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.%0A */%0A%0Apackage org.spine3.server.entity.storage;%0A%0A/**%0A * @author Dmytro Dashenkov%0A */%0A%0Aimport com.google.protobuf.ByteString;%0Aimport com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Type;%0A%0A/**%0A * Enumeration of the Protobuf scalar value types and corresponding Java types.%0A *%0A * %3Cp%3E%7B@link Type#TYPE_GROUP%7D are NOT supported, so do not create an associated Java type for it.%0A *%0A * @author Dmytro Grankin%0A * @author Dmytro Dashenkov%0A * @see %3Ca href=%22https://developers.google.com/protocol-buffers/docs/proto3#scalar%22%3E%0A * Protobuf scalar types%3C/a%3E%0A */%0Aenum ProtoScalarType %7B%0A%0A    DOUBLE(Type.TYPE_DOUBLE, double.class),%0A    FLOAT(Type.TYPE_FLOAT, float.class),%0A    INT32(Type.TYPE_INT32, int.class),%0A    INT64(Type.TYPE_INT64, long.class),%0A    UINT32(Type.TYPE_UINT32, int.class),%0A    UINT64(Type.TYPE_UINT64, long.class),%0A    SINT32(Type.TYPE_SINT32, int.class),%0A    SINT64(Type.TYPE_SINT64, int.class),%0A    FIXED32(Type.TYPE_FIXED32, int.class),%0A    FIXED64(Type.TYPE_FIXED64, long.class),%0A    SFIXED32(Type.TYPE_SFIXED32, int.class),%0A    SFIXED64(Type.TYPE_SFIXED64, long.class),%0A    BOOL(Type.TYPE_BOOL, boolean.class),%0A    STRING(Type.TYPE_STRING, String.class),%0A    BYTES(Type.TYPE_BYTES, ByteString.class);%0A%0A    private final Type protoScalarType;%0A    private final Class%3C?%3E javaClass;%0A%0A    ProtoScalarType(Type protoScalarType, Class%3C?%3E javaClass) %7B%0A        this.protoScalarType = protoScalarType;%0A        this.javaClass = javaClass;%0A    %7D%0A%7D%0A

Add ProtoScalarType for handling the message to Object conversion.