[protobuf] Getting fields from a generated Dynamic Message

2012-05-09 Thread Vinay Bansal
Hey, I have generated DynamicMessage from available FileDescriptorSet, now I want to be able to get fields from this message. Based on the typename I know what kind of message this is, but I don't know how to get the value of any particular field. Available getter functions available in java

[protobuf] Re: using GzipOutputStream increases size

2011-12-06 Thread Vinay Bansal
at 5:24 PM, Vinay Bansal vinsalw...@gmail.com wrote: Hey, I have run into one more problem. Whenever I try to find out the number of bytes written by the streams, CodedOutputStream.ByteSize() gives the right answer but ZeroCopyOutputStream.ByteSize() always gives 0 and GzipOutputStream

[protobuf] using GzipOutputStream increases size

2011-12-01 Thread Vinay Bansal
Hi Guys, I am working with protocol buffers and I have come across this weird problem: Objective : The objective was to write a few thousand messages after zipping them in a file. I do it like this: void write() { int fd = open(myfile, O_WRONLY), O_APPEND);

[protobuf] Re: using GzipOutputStream increases size

2011-12-01 Thread Vinay Bansal
Hey Oliver, I figured it out just a minutes before your reply. Thanks anyway Cheers, -Vinay On Dec 1, 2:28 pm, Oliver Jowett oliver.jow...@gmail.com wrote: On Thu, Dec 1, 2011 at 3:22 PM, Vinay Bansal vinsalw...@gmail.com wrote:  void write() {    int fd = open(myfile, O_WRONLY), O_APPEND

[protobuf] Re: using GzipOutputStream increases size

2011-12-01 Thread Vinay Bansal
no. of bytes written by the stream. I would really appreciate the help. Thanks On Dec 1, 3:10 pm, Vinay Bansal vinsalw...@gmail.com wrote: Hey Oliver, I figured it out just a minutes before your reply. Thanks anyway Cheers, -Vinay On Dec 1, 2:28 pm, Oliver Jowett oliver.jow...@gmail.com wrote