diff options
| author | Jeff Carr <[email protected]> | 2025-03-27 06:26:01 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-27 06:26:01 -0500 |
| commit | 1b7d44ec42bc5be8f07bb67c0fbbddf36f2e3050 (patch) | |
| tree | 9fc2157180c98e1b1d3493516ec73394343d2fbf /file.proto | |
| parent | ebf856a579281c4aea7630d3cc712adac5bb21d7 (diff) | |
add an enum for messages
Diffstat (limited to 'file.proto')
| -rw-r--r-- | file.proto | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -61,15 +61,21 @@ message Sort { // used to auto-format protobuf files message FormatMsg { - repeated string lines = 1; // keys to sort on + enum Type { + MESSAGE = 0; + ENUM = 1; + ONEOF = 2; + } + + int64 depth = 1; // used to indent output int64 maxVarname = 2; // max string length of var names int64 maxVartype = 3; // max string length of var types - repeated FormatMsg inceptionMsgs = 4; // messages inside messages - repeated FormatMsg enums = 5; // locally defined enums - repeated FormatMsg oneofs = 6; // locally defined oneofs - string header = 7; // the 'message {','enum {', etc line + string header = 4; // the 'message {','enum {', etc line + repeated string notes = 5; // unknown lines or comments + repeated FormatMsg msgs = 6; // locally defined messages and enums + repeated string lines = 7; // the variables string footer = 8; // the '}' line - repeated string notes = 9; // unknown lines or comments + Type type = 9; } message Find { |
