Skip to content

pb: Add MARSHALLER and DESCRIPTOR object to group messages#589

Merged
Jozott00 merged 2 commits intogrpc-commonfrom
grpc/fix-groups
Mar 3, 2026
Merged

pb: Add MARSHALLER and DESCRIPTOR object to group messages#589
Jozott00 merged 2 commits intogrpc-commonfrom
grpc/fix-groups

Conversation

@Jozott00
Copy link
Collaborator

@Jozott00 Jozott00 commented Mar 2, 2026

Subsystem
Protobuf

Problem Description
Group messages were not annotated with @GeneratedProtoMessage because they didn't have a marshaller and descriptor object.

Solution
Now each group message also has a MARSHALLER object that allows encoding and decoding of a standalone group message. The encoding and decoding works like for normal functions, so no GROUP_START and GROUP_END tag are written or read.
While this isn't something that the protobuf spec intends, it doesn't violate any specs and allows us to annotate it with @GeneratedProtoMessage.

@Jozott00 Jozott00 self-assigned this Mar 2, 2026
@Jozott00 Jozott00 added the feature New feature or request label Mar 2, 2026
@Jozott00 Jozott00 requested a review from Mr3zee March 2, 2026 16:10
@Jozott00 Jozott00 marked this pull request as ready for review March 2, 2026 16:10
Copy link
Member

@Mr3zee Mr3zee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@Jozott00 Jozott00 merged commit 6c10403 into grpc-common Mar 3, 2026
8 of 9 checks passed
@Jozott00 Jozott00 deleted the grpc/fix-groups branch March 3, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants