Re: [protobuf] Using Protocol Buffers to unserialise proprietary protocol

2013-03-27 Thread Benoît Seutin
On Tuesday, March 26, 2013 7:05:21 PM UTC+1, Feng Xiao wrote: On Tue, Mar 26, 2013 at 2:06 AM, Benoît Seutin benoit...@gmail.comjavascript: wrote: Hello, I have to implement a TCP server which receives messages from another entity. The structure of these messages is well

[protobuf] How to find whether one specific field of protocol a message isRequired or isOptional?

2013-03-27 Thread PraYes
I needed to find out one specific field of protocol a message isRequired or isOptional? how to use below class to find them? any example? *com.google.protobuf.Descriptors.FieldDescriptor* https://developers.google.com/protocol-buffers/docs/reference/java/index -- You received this message

Re: [protobuf] How to find whether one specific field of protocol a message isRequired or isOptional?

2013-03-27 Thread Feng Xiao
On Wed, Mar 27, 2013 at 2:36 AM, PraYes pradeepkrathnay...@gmail.comwrote: I needed to find out one specific field of protocol a message isRequired or isOptional? how to use below class to find them? any example? Easy, for a specific field:

[protobuf] DecodeError (Truncated Message)

2013-03-27 Thread W. David Jarvis
Howdy all -- I'm looking to use protobuf objects as a convenient and lightweight object framework for some cross-language stuff I'm doing between Cascading and Hadoop Streaming, but I'm running into some low-level problems just parsing messages when I'm writing the message out somewhere.