Skip to content

feat: generate groups - #55

Merged
kafkiansky merged 1 commit into
0.6.xfrom
feat/generate-groups
Nov 24, 2026
Merged

kafkiansky merged 1 commit into
0.6.xfrom
feat/generate-groups

Conversation

@kafkiansky

Copy link
Copy Markdown
Contributor

thesis/protobuf 0.2.4 can write a message between start and end group tags, so groups are generated instead of being reported:

  • a proto2 group (optional, required, repeated, nested, a oneof variant);
  • an editions message field with features.message_encoding = DELIMITED, set on the field or inherited from the file.

Such a field gets Reflection\GroupT in place of ObjectT and otherwise looks like a message field. The key and the value of a map entry stay length-prefixed, as in protoc.

The bytes on the wire are checked against the output of protoc --encode. The runtime version gate of the generated code samples is gone, as thesis/protobuf ^0.2.4 is now required.

thesis/protobuf 0.2.4 can write a message between start and end group
tags, so groups are generated instead of being reported:

- a proto2 group (optional, required, repeated, nested, a oneof
  variant);
- an editions message field with features.message_encoding = DELIMITED,
  set on the field or inherited from the file.

Such a field gets Reflection\GroupT in place of ObjectT and otherwise
looks like a message field. The key and the value of a map entry stay
length-prefixed, as in protoc.

The bytes on the wire are checked against the output of
protoc --encode. The runtime version gate of the generated code samples
is gone, as thesis/protobuf ^0.2.4 is now required.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@kafkiansky kafkiansky self-assigned this Nov 24, 2026
@kafkiansky kafkiansky added the enhancement New feature or request label Nov 24, 2026
@kafkiansky
kafkiansky merged commit c786a56 into 0.6.x Nov 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant