Are protobuf messages compatible across versions of protobuf

戏子无情 提交于 2019-12-09 16:23:57

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/4963620/are-protobuf-messages-compatible-across-versions-of-protobuf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!