From cb8d3f624cf8dd958c75e5f83128e38ed8547b00 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 26 Mar 2025 05:28:26 -0500 Subject: add 'enum' and 'oneof' detection --- file.proto | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'file.proto') diff --git a/file.proto b/file.proto index 94e05dd..62033f3 100644 --- a/file.proto +++ b/file.proto @@ -14,7 +14,7 @@ syntax = "proto3"; // You can generate Marshal & Unmarshal for any struct (message) you want // You can generate SortBy and Append functions ONLY FOR 'repeated ' // Also, those structs must be defined in the same file -// Additionally, you must use `autogenpb:mutex` on the parent struct. +// Additionally, you must use `autogenpb:mutex` on the parent struct. // The autogenerated code requires a RW mutex and autogenpb will insert it into the struct package main; @@ -66,6 +66,7 @@ message FormatMsg { 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 } message Find { -- cgit v1.2.3