Re: [protobuf] Re: issue with protocol buffers when using with java generics.

2011-02-22 Thread ramesh rudra
Hi Ben Wright,thanks for your replay. On Wed, Feb 23, 2011 at 2:12 AM, Ben Wright wrote: > You will need to provide the type during construction of your > instance. You will also want to provide the Descriptor for the type > you want to deserialize in order to safely perform that step. > > i.e.

[protobuf] Re: issue with protocol buffers when using with java generics.

2011-02-22 Thread Ben Wright
You will need to provide the type during construction of your instance. You will also want to provide the Descriptor for the type you want to deserialize in order to safely perform that step. i.e. public GPBFormat(Class clazz, Descriptor d) { //save the type information to instance variables }