Re: [protobuf] Message missing required fields exception when parsing a message that has required fields defaulted

2010-10-26 Thread Kenton Varda
On Fri, Oct 22, 2010 at 9:12 AM, locky true.n...@gmail.com wrote: From what I can see the issue is as follows: As the stringProperty value is the same as the default (an empty string) it is not sent over the wire. No, this is not correct. Whether or not a value is sent on the wire depends

[protobuf] Message missing required fields exception when parsing a message that has required fields defaulted

2010-10-22 Thread locky
I have a question regarding required string properties and default values. Consider the following message definition. message StringTestProto { required stringProperty = 1; } I have a C++/Java setup where C++ app is producing a message and a Java app is consuming it. If the stringProperty