Re: [protobuf] decode messages that are in protocol buffer format

2011-10-18 Thread Aaron Rich
I would highly recommend looking at this: http://code.google.com/p/protobuf-wireshark/ Might get you want you need. -Aaron On Tue, Oct 18, 2011 at 11:02 AM, Marc Gravell wrote: > Well, firstly protobuf is not a text format, so UTF-8 is not the way to > start. What is it you need? Note that the

[protobuf] Re: adding submessages to higher message

2011-04-20 Thread Aaron Rich
I found the method: AddAllocated(Element*) which I think will add the Pong* that I have already created/allocated myself. Any input if there is a better method then this to use would be appreciated. Thanks. -Aaron On Wed, Apr 20, 2011 at 4:25 PM, Aaron Rich wrote: > New to protoco buffers

[protobuf] adding submessages to higher message

2011-04-20 Thread Aaron Rich
New to protoco buffers so sorry if this is a simple/stupid question. I have a proto: message WrapperMessage { enum Type { PING = 1; PONG = 2; } message Header{ required Type type = 1; required string source = 2; required int64 time = 3;

[protobuf] required field in extend

2011-04-04 Thread Aaron Rich
Newbie question: Can an extended message have a required field? For example, If I wanted to make any application using detailperson.proto's definition of a person have to have a middle name? person.proto: message person { required string first_name =1; required string last_name =2; extensi