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 wrote:
> Hi:
> My problem is that when I receive a packet I have to check one field(
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 receiv
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 wrote:
> Hi:
> My problem is tha
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/
--
Yo