Re: [protobuf] Maps and append-as-merge; expectation clarification please

2017-06-30 Thread 'Jisi Liu' via Protocol Buffers
Yes. It will replace the value with the same key. On Sat, Jun 24, 2017 at 11:08 AM Marc Gravell wrote: > Basically, if I have > > message Foo { > int32 x = 1; > int32 y = 2; > } > message Bar { > map items = 1; > } > > And I serialize 2 fragments

[protobuf] Maps and append-as-merge; expectation clarification please

2017-06-24 Thread Marc Gravell
Basically, if I have message Foo { int32 x = 1; int32 y = 2; } message Bar { map items = 1; } And I serialize 2 fragments appended: items = { 1: { x: 123 } } and (as the second appended chunk) items = { 1: { y: 456 } } And now I deserialize the entire chunk; is the