Skip to content

Conversation

Jozott00
Copy link
Collaborator

@Jozott00 Jozott00 commented Aug 7, 2025

Subsystem
gRPC/Protobuf

Solution
This PR adds support for maps in protobuf messages.
While the user interacts only with Kotlin Maps, internally a entry message class in generated that contains the logic for encoding and decoding map entries. This is because a map is nothing but a repeated field of map entries, where a entry looks like

message entry {
  <keyType> key = 1;
  <valType> value = 2;
}

@Jozott00 Jozott00 self-assigned this Aug 7, 2025
@Jozott00 Jozott00 added the feature New feature or request label Aug 7, 2025
Signed-off-by: Johannes Zottele <[email protected]>
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.

lgtm! Only minor comments about the code style

Signed-off-by: Johannes Zottele <[email protected]>
@Jozott00 Jozott00 merged commit 49ff159 into grpc-common Aug 7, 2025
2 of 3 checks passed
@Jozott00 Jozott00 deleted the grpc/pb-map branch August 7, 2025 14:13
Mr3zee pushed a commit that referenced this pull request Aug 8, 2025
Mr3zee pushed a commit that referenced this pull request Aug 21, 2025
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