Re: [protobuf] Protobuf consistency when marshalling

2017-02-15 Thread 'Adam Cozzette' via Protocol Buffers
Right, exactly. But this behavior is new with proto3; in proto2 unknown fields are still retained On Tue, Feb 14, 2017 at 9:35 AM, Yacov Manevich wrote: > When you say unknown fields- you mean that if hostA has an .proto schema > of version N and hostB has a .proto schema of version M and when h

Re: [protobuf] Protobuf consistency when marshalling

2017-02-14 Thread Yacov Manevich
When you say unknown fields- you mean that if hostA has an .proto schema of version N and hostB has a .proto schema of version M > You might be able to make this work, but it can be tricky to get it right > and so I wouldn't necessarily recommend it. One major problem is that maps > are serializ

Re: [protobuf] Protobuf consistency when marshalling

2017-02-14 Thread 'Adam Cozzette' via Protocol Buffers
You might be able to make this work, but it can be tricky to get it right and so I wouldn't necessarily recommend it. One major problem is that maps are serialized non-deterministically because they are logically unordered. Another problem is unknown fields; if you're using proto3 then unknown fiel