Re: [protobuf] Renaming Fields

2010-11-18 Thread Marc Gravell
As far as the binary encoding is concerned, it won't care. Obviously any
code involved would need to be changed, and it *might* impact the text-based
encoding (I don't know for sure; I simply don't use this encoding).

Marc

On 18 November 2010 16:56, Cameron  wrote:

> I'm pretty sure I already know the answer to this, but I haven't found
> it spelled out anywhere so I wanted to ask to be sure:
>
> Can you change or rename a field name without affecting backwards
> compatibility?
>
> I assume the answer is yes because you qualify a field with a tag
> number. Field names are just for the compiled java/cpp/py files that
> are generated, correct?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>


-- 
Regards,

Marc

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



Re: [protobuf] Renaming Fields

2010-11-18 Thread Jason Hsueh
Yes, renaming fields is a wire compatible change. You might break things
that use human readable formats like TextFormat, and of course any code that
references the old field name.

On Thu, Nov 18, 2010 at 1:56 PM, Cameron wrote:

> I'm pretty sure I already know the answer to this, but I haven't found
> it spelled out anywhere so I wanted to ask to be sure:
>
> Can you change or rename a field name without affecting backwards
> compatibility?
>
> I assume the answer is yes because you qualify a field with a tag
> number. Field names are just for the compiled java/cpp/py files that
> are generated, correct?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] Renaming Fields

2010-11-18 Thread Cameron
I'm pretty sure I already know the answer to this, but I haven't found
it spelled out anywhere so I wanted to ask to be sure:

Can you change or rename a field name without affecting backwards
compatibility?

I assume the answer is yes because you qualify a field with a tag
number. Field names are just for the compiled java/cpp/py files that
are generated, correct?

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.