Subject: Protocol Buffer Message Names and Dependencies
Because protocol buffers "compile" to code and class names, the use of identifiers such as Image is a little bold. I would like to recommend the use of "Rupture" as a common prefix for protocol buffer message names in the wiki docs.
Also, and this is also pretty minor, but could the doc please list messages that are used as sub-messages before the message(s) that use them? I am using a type-checking compiler that whines if a sub-type is not defined and aborts processing, so I have to manually rearrange the file. The following is an example of the problem (not the solution)
message Users {
repeated User user = 1;
}
message User {
...
}
The "User" message is defined after the "Users" message, which
fails to compile.
Support Staff 2 Posted by bill on 01 Jul, 2009 10:46 PM
Hey Rob,
I can definitely rearrange our proto file to be cleaner. Renaming the Messages is a bit more involved, but let me float the idea around the team.
:)