summaryrefslogtreecommitdiff
path: root/file.proto
diff options
context:
space:
mode:
Diffstat (limited to 'file.proto')
-rw-r--r--file.proto10
1 files changed, 10 insertions, 0 deletions
diff --git a/file.proto b/file.proto
index a947826..94e05dd 100644
--- a/file.proto
+++ b/file.proto
@@ -48,6 +48,7 @@ message MsgName {
bool noMutex = 12; // only use the global mutex
bool doGui = 13; // if a gui.pb.go file should be created
string guiVarName = 14; // the name of the variable to use
+ MsgName localMsgs = 15; // messages can define other local only messages
}
message Sort {
@@ -58,6 +59,15 @@ message Sort {
bool needAll = 5; //
}
+// used to format protobuf files
+message FormatMsg {
+ repeated string lines = 1; // keys to sort on
+ 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
+}
+
message Find {
string parent = 1; // `autogenpb:unique` File
string varType = 2; // `autogenpb:unique` MsgName