Re: [protobuf] Can a message derive from another message?

2011-03-03 Thread Evan Jones
On 03/02/2011 10:04 AM, ZHOU Xiaobo wrote: required string Content = 3; WARNING: You should be using type bytes here, not type string. This doesn't matter for C++, but matters for other languages which will assume strings contain UTF-8 data. Evan -- http://evanjones.ca/ -- You

Re: [protobuf] Can a message derive from another message?

2011-03-03 Thread ZHOU Xiaobo
thank you. It sounds like what I am looking for No, message inheritance is not supported. Have a look at http://code.google.com/apis/protocolbuffers/docs/techniques.html#union and see if that solves your use case. On Wed, Mar 2, 2011 at 7:04 AM, ZHOU Xiaobo xb.z...@qq.com wrote: Hi: My

[protobuf] About import

2011-03-03 Thread ZHOU Xiaobo
I can't use import ../other_path/xx.proto. It seems that the 'import' instruction doesn't search files out of 'ptoto_path' thanks. -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to

Re: [protobuf] Can a message derive from another message?

2011-03-03 Thread ZHOU Xiaobo
thanks On 03/02/2011 10:04 AM, ZHOU Xiaobo wrote: required string Content = 3; WARNING: You should be using type bytes here, not type string. This doesn't matter for C++, but matters for other languages which will assume strings contain UTF-8 data. Evan -- http://evanjones.ca/ --

Re: [protobuf] About import

2011-03-03 Thread Pherl Liu
Right. Please see the document in http://code.google.com/apis/protocolbuffers/docs/proto.html The protocol compiler searches for imported files in a set of directories specified on the protocol compiler command line using the -I/--proto_pathflag. If no flag was given, it looks in the directory in

[protobuf] Chunking a large message

2011-03-03 Thread Linus
Hello, I am wondering if there are any examples of chunking large PB messages (about 1MB) into smaller chunks, to transmit over the wire. Thanks, Linus -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to