src/main/java/ca/jeb/protobuf/ProtobufSerializer.java
private static final Object serializeFromProtobufEntity(Message protoBuf, Class<?> pojoClazz) throws JException
  {
    final ProtobufEntity protoBufEntity = ProtobufSerializerUtils.getProtobufEntity(pojoClazz);

    if (protoBufEntity == null)
    {
      return protoBuf;
    }

    return new ProtobufSerializer().fromProtobuf(protoBuf, pojoClazz);
  }
private static final Object serializeFromProtobufEntity(Message protoBuf, Class<?> pojoClazz) throws JException
  {
    final ProtobufEntity protoBufEntity = ProtobufSerializerUtils.getProtobufEntity(pojoClazz);

    if (protoBufEntity == null)
    {
      return protoBuf;
    }

    return new ProtobufSerializer().fromProtobuf(protoBuf, pojoClazz);
  }
private static final Object serializeFromProtobufEntity ( Message protoBuf , Class < ? > pojoClazz ) throws JException { final ProtobufEntity protoBufEntity = ProtobufSerializerUtils . getProtobufEntity ( pojoClazz ) ; if ( protoBufEntity == null ) { return protoBuf ; } return new ProtobufSerializer ( ) . fromProtobuf ( protoBuf , pojoClazz ) ; }
Create a new serializer and (de)serializes the supplied Protobu/attribute to a POJO of type <i>pojoClazz</i>.

@param protoBuf
@param pojoClazz
@return
@throws JException
Create a new serializer and ( de ) serializes the supplied Protobu / attribute to a POJO of type <i > pojoClazz< / i > .