Subject: Protocol Buffer Message Names and Dependencies

Original Post rcolbert's Avatar

rcolbert

01 Jul, 2009 10:42 PM via web

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.
  1. Support Staff 2 Posted by bill on 01 Jul, 2009 10:46 PM

    bill's Avatar

    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.

    :)

Reply to this discussion

Internal reply

Formatting help or Preview

Attached Files

You can attach files up to 10MB

What is the last month of the year?

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Recent Discussions

01 Jul, 2009 10:46 PM
01 Jul, 2009 10:45 PM
01 Jul, 2009 10:44 PM