Sending explicit zeroes in protobuf3
问题 In Protobuf3 zero is the default value for numeric types, and so they are filtered out when serialized. I have an application where I need to send a value only when it has changed. For example, x was 1, now x is 0, send this value. It isn't possible to send only the delta, eg -1, because some of these values are floats or doubles, and we do not want to accrue errors. There are over 200 different variables in some classes I need to serialize, so solutions like "add a boolean to flag which