I started building an app with protobuf 2.2.0 as it was the latest. Now I'm considering upgrading to protobuf 2.4.0a which is the latest. If I do so will the messages generated by one version of the app still be readable by the other version for the same schema? Or would I be breaking something?
Asked
Active
Viewed 2,120 times
8
-
For proto3 see http://stackoverflow.com/questions/40680273/protobuf-backward-compatibility-and-proto3-vs-proto2 – Paul Verest Nov 18 '16 at 15:07
1 Answers
5
That should be fine. Version 2.1.0 introduced packed repeated fields, but I don't believe there have been any wire format changes since then.

Jon Skeet
- 1,421,763
- 867
- 9,128
- 9,194
-
And to emphasise (for the OP) existing messages would have been fine; backwards compatible etc – Marc Gravell Feb 10 '11 at 23:12
-
@Marc: Yup. The danger would have been writing out packed repeated fields in newer code, and expecting older code to read it. That shouldn't be a problem between 2.2 and 2.4 though, and you'd have to do it explicitly anyway. – Jon Skeet Feb 10 '11 at 23:20