commit | 243ceeb199c14ca80c3e608f2c76bf24ab0d45fb | [log] [tgz] |
---|---|---|
author | Ömer Sinan Ağacan <omersa@google.com> | Tue Oct 18 12:38:41 2022 +0200 |
committer | GitHub <noreply@github.com> | Tue Oct 18 13:38:41 2022 +0300 |
tree | 532d943cbae69503fc7cc25fdab5ac079cf5ae75 | |
parent | 2ae61bf27f1b6aceffca85e45d25e76283ff288c [diff] |
protoc_plugin: Improve "is map field" check (#765) `MessageOptions.map_entry` is an `optional bool` field. Currently to check whether a field is a map we check whether `map_entry` is present, but we don't check its value. This only works if the field is never set, or set to `true` (i.e. it's never set to `false`). The right way to check it is descriptor.options.hasMapEntry() && descriptor.options.mapEntry because the default value of the field is `false`, this can be simplified as descriptor.options.mapEntry
Protocol Buffers (protobuf) are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data.
This repository is home to packages related to protobuf for Dart.
Package | Description | Published Version |
---|---|---|
protobuf | A support library for the generated code | |
protoc_plugin | A Dart back-end for the protoc compiler | |
api_benchmark | Benchmarking for various API calls | |
query_benchmark | Benchmark for encoding and decoding of a “real-world” protobuf |