From ad6d66010ee072043c61a533730e0691def40061 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Wed, 26 Oct 2016 13:55:44 -0700 Subject: nanopb: update generator to emit optional enum->string mapping function Google-Bug-Id: 28000875 Signed-off-by: William A. Kennington III Change-Id: I1bffd39168abe04593588291b0ebbe5199a00138 --- generator/proto/nanopb.proto | 3 +++ 1 file changed, 3 insertions(+) (limited to 'generator/proto') 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 -- cgit 1.2.3-korg