Make the toString of enums be the value if names are omitted (#649)

Use the field index for field numbers in GeneratedMessage.toString if
field names are omitted.

The new test is not run with `make run-tests`. To run manually: (in
protoc_plugin/)

    $ dart pub get
    $ make protos
    $ dart run test/omit_enum_names_test.dart
    $ dart -Dprotobuf.omit_enum_names=true run test/omit_enum_names_test.dart

Port of cl/322743819
4 files changed
tree: 00bdff7906ec437664f5a94b38e16dbe4f7073af
  1. .github/
  2. api_benchmark/
  3. protobuf/
  4. protoc_plugin/
  5. query_benchmark/
  6. tool/
  7. .gitignore
  8. analysis_options.yaml
  9. mono_repo.yaml
  10. README.md
README.md

Protobuf support for Dart

CI status pub package

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. It contains: