Just to add an official response:  Yes, they will be compatible.  If they
weren't, we would consider that a very serious bug.  Inside Google we have
protobuf data written many years ago that we expect to be able to read with
the latest code.  :)

On Sun, Jan 11, 2009 at 8:47 PM, <shanibr...@gmail.com> wrote:

> Hi,
>   Lets say my proto (abcd.proto) is compiled with the protoc compiler
> version 2.0.3 and my application also links to the corresponding
> runtime libraries. I now run my app and store the  bytes generated
> from the proto object to some persistent store (say a database).
> A month from now, I decide to upgrade to protocol buffer version 2.0.4
> (which say is released) and recompile abcd.proto using the new
> compiler to generate the new cpp classes. I hook my app to the new
> runtime libraries and try to read the older bytes (v2.0.3) from the
> persistent store. Will it be able to?
> In other words, are the bytes that are written out (for an unchanged
> proto file) compatible across protobuf library versions? Will this
> always be guaranteed?
> Thanks.
> >

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to