summaryrefslogtreecommitdiffstats
path: root/generator/proto/nanopb.proto
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2016-10-26 13:55:44 -0700
committerWilliam A. Kennington III <wak@google.com>2016-11-21 15:02:23 -0800
commitad6d66010ee072043c61a533730e0691def40061 (patch)
tree73ca0de44dccb696f9a0d565e6ca249c04ccdceb /generator/proto/nanopb.proto
parent82dd587c7b8d10150ab6683733863e2b7e34a428 (diff)
nanopb: update generator to emit optional enum->string mapping function
Google-Bug-Id: 28000875 Signed-off-by: William A. Kennington III <wak@google.com> Change-Id: I1bffd39168abe04593588291b0ebbe5199a00138
Diffstat (limited to 'generator/proto/nanopb.proto')
-rw-r--r--generator/proto/nanopb.proto3
1 files changed, 3 insertions, 0 deletions
diff --git a/generator/proto/nanopb.proto b/generator/proto/nanopb.proto
index b9961c88..f6fe4a20 100644
--- a/generator/proto/nanopb.proto
+++ b/generator/proto/nanopb.proto
@@ -69,6 +69,9 @@ message NanoPBOptions {
// Proto3 singular field does not generate a "has_" flag
optional bool proto3 = 12 [default = false];
+
+ // Generate an enum->string mapping function (can take up lots of space).
+ optional bool enum_to_string = 13 [default = false];
}
// Extensions to protoc 'Descriptor' type in order to define options