diff options
author | Bernhard Krämer <bdkrae@gmail.com> | 2016-10-09 20:26:28 +0200 |
---|---|---|
committer | Bernhard Krämer <bdkrae@gmail.com> | 2016-10-09 20:26:28 +0200 |
commit | ba97926cfd1e82bd294cf5e484633850d8e0b368 (patch) | |
tree | 41aa38edf6cf9b87e318287b6497a01940700551 /generator/proto | |
parent | 91bb64a47b36b112c9b22391ef76fab29cf2cffc (diff) |
Add proto3 option to handle singular fields
Diffstat (limited to 'generator/proto')
-rw-r--r-- | generator/proto/nanopb.proto | 3 |
1 files changed, 3 insertions, 0 deletions
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 |