diff options
Diffstat (limited to 'file.proto')
| -rw-r--r-- | file.proto | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -25,6 +25,7 @@ package main; // it needs in these protobuf files, then it processes the // protobuf files to write out *.sort.pb.go and *.marshal.pb.go files // + message MsgVar { string varName = 1; // the variable name string varType = 2; // the variable type @@ -58,15 +59,14 @@ message Sort { string lockname = 4; // bool needAll = 5; // } - // used to auto-format protobuf files message FormatMsg { - enum Type { - MESSAGE = 0; - ENUM = 1; - ONEOF = 2; - VAR = 3; - } + enum Type { + MESSAGE = 0; + ENUM = 1; + ONEOF = 2; + VAR = 3; + } int64 depth = 1; // used to indent output int64 maxVarname = 2; // max string length of var names @@ -76,7 +76,7 @@ message FormatMsg { repeated FormatMsg msgs = 6; // locally defined messages and enums repeated string lines = 7; // the variables string footer = 8; // the '}' line - Type type = 9; // yep. type. yep. that's what this is for + Type type = 9; // yep. type. yep. that's what this is for } message Find { @@ -86,7 +86,7 @@ message Find { bool needAll = 4; // } -message File { // `autogenpb:var:w io.Writer` +message File { // `autogenpb:var:w io.Writer` string Package = 1; // whatever the package name is at the top of the .go file string filename = 2; // yellow.proto string pbfilename = 3; // yellow.pb.go @@ -104,7 +104,6 @@ message File { // `autogenpb:var:w io.Writer` string goPath = 13; // the version to use in a func NewMsgName() bool doGui = 14; // if a gui.pb.go file should be created } - // I know, I know, the whole point of using protobuf // is so you don't need a uuid or versions because it's // inherently forward compatable. nonetheless, a simple stubbed out @@ -116,10 +115,10 @@ message Files { // `autogenpb:marshal` string version = 2; // `autogenpb:version:v0.0.38` repeated File Files = 3; // an array of each .proto file in the working directory } - // this generic message is used by autogen to identify and // then dump the uuid and version from any arbitrary .pb file message Identify { // `autogenpb:marshal` string uuid = 1; // string version = 2; // } +// footer was empty |
