From ba97926cfd1e82bd294cf5e484633850d8e0b368 Mon Sep 17 00:00:00 2001 From: Bernhard Krämer Date: Sun, 9 Oct 2016 20:26:28 +0200 Subject: Add proto3 option to handle singular fields --- 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 8aab19a1..b9961c88 100644 --- a/generator/proto/nanopb.proto +++ b/generator/proto/nanopb.proto @@ -66,6 +66,9 @@ message NanoPBOptions { // decode oneof as anonymous union optional bool anonymous_oneof = 11 [default = false]; + + // Proto3 singular field does not generate a "has_" flag + optional bool proto3 = 12 [default = false]; } // Extensions to protoc 'Descriptor' type in order to define options -- cgit 1.2.3-korg