Hi
This is my first attempt at defining a command pattern :
message Command {
required Type type = 1;
optional Value value = 2;
optional Push push = 3;
optional Pop pop = 4;
}
enum Type { POP = 0, PUSH = 1 }
I deploy code using this file.
Later, I want to add a new command, but not break deployed clients.
Can I do so safely:
enum Type { POP = 0, PUSH = 1, TOP = 2 }
message Command {
required Type type = 1;
optional Value value = 2;
optional Push push = 3;
optional Pop pop = 4;
optional Top top = 5;
}
If not, what's the suggested way for achieving something like this?
I read up on 'extend' - would that be a better way? My concern is that
the other language ports (The C one, for example) do not yet support
extend.
thanx
-john
--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to
prot...@googlegroups.com.
To unsubscribe from this group, send email to
protobuf+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.