On Sun, Mar 9, 2014 at 4:05 AM, Ori Popowski <ori....@gmail.com> wrote:
> Hello,
> I want to created a protobuf based infra for inter-service communication. It
> means that this infra should be able to pass any type of Java object. So
> we'll have a Java wrapper class with all meta-data about the passed object
> that is agreed between all clients of the infra, and this class will contain
> a generic type, say T, which represents the object itself.
> I experimented a bit and found out that it is not possible to define generic
> types in Protocol Buffers.
> Is there any solution to this?

Are you looking for 'bytes'? Something's going to have to serialize
that java object to bytes at some point, you can just stick it into
the protobuf then.

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to