Protobuf4 Library 2.0.0 & Protobuf Example 3.1.0

Good news everyone,

We published a new major version of the Protobuf4 library and updated the Protobuf example. We especially want to shine a light on this version, since it changes the code generated from your .proto files.

The Protobuf4 library (2.0.0), based on Google Protobuf 4.33.5, now generates code closer to the mainstream protoc: messages serialize to the same bytes, and the generated classes expose more of the
protoc API. The generator accepts .proto files that declare custom options or that do not declare option optimize_for = LITE_RUNTIME;, and proto3 optional fields now report their presence correctly.
Enums and oneof cases are now generated as int constants instead of Java enum types to reduce the generated code footprint.

The Protobuf example (3.1.0) uses Protobuf4 2.0.0, and still works with Protobuf3.

More information in the Protobuf4 changelog and the Data Serialization
documentation
.

Happy coding!
The MicroEJ Team