src/main/java/ca/jeb/protobuf/internal/ProtobufSerializerUtils.java
public static final Class<? extends GeneratedMessage> getProtobufClassFromPojoAnno(Class<?> clazz)
  {
    final ProtobufEntity annotation = getProtobufEntity(clazz);
    final Class<? extends GeneratedMessage> gpbClazz = (Class<? extends GeneratedMessage>)annotation.value();
    if (gpbClazz == null)
    {
      return null;
    }
    return gpbClazz;
  }
public static final Class<? extends GeneratedMessage> getProtobufClassFromPojoAnno(Class<?> clazz)
  {
    final ProtobufEntity annotation = getProtobufEntity(clazz);
    final Class<? extends GeneratedMessage> gpbClazz = (Class<? extends GeneratedMessage>)annotation.value();
    if (gpbClazz == null)
    {
      return null;
    }
    return gpbClazz;
  }
Return the Protobuf Class based on the pojo class, i.e. grab the value from the ProtobufEntity annotation.

@param clazz - any Class
@return Class&lt;? extends GeneratedMessage&gt;