Skip to content

Conversation

Jozott00
Copy link
Collaborator

@Jozott00 Jozott00 commented Aug 6, 2025

Subsystem
gRPC/Protobuf

Solution
This PR adds support for sub-messages to the Protobuf generation.
Currently, messages are never nullable and there is also no way to determine whether a sub-message field was set/present or not. KRPC-188

@Jozott00 Jozott00 self-assigned this Aug 6, 2025
@Jozott00 Jozott00 added the feature New feature or request label Aug 6, 2025
@Jozott00 Jozott00 requested a review from Mr3zee August 6, 2025 15:51
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 speed

Signed-off-by: Johannes Zottele <[email protected]>
@Jozott00 Jozott00 merged commit aab38b9 into grpc-common Aug 7, 2025
2 of 3 checks passed
@Jozott00 Jozott00 deleted the grpc/pb-msg branch August 7, 2025 14:13
Mr3zee pushed a commit that referenced this pull request Aug 8, 2025
* grpc-pb: Implement sub messages

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: First successful sub-message test

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Support recursive messages

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Support nested message

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Support repeated messages

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Make generated methods internal

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Support message in oneof

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Add test for enum in oneOf

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Add oneOf message merge test

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Check required fields ins submessages

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Address PR comments

Signed-off-by: Johannes Zottele <[email protected]>

---------

Signed-off-by: Johannes Zottele <[email protected]>
Mr3zee pushed a commit that referenced this pull request Aug 21, 2025
* grpc-pb: Implement sub messages

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: First successful sub-message test

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Support recursive messages

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Support nested message

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Support repeated messages

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Make generated methods internal

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Support message in oneof

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Add test for enum in oneOf

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Add oneOf message merge test

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Check required fields ins submessages

Signed-off-by: Johannes Zottele <[email protected]>

* grpc-pb: Address PR comments

Signed-off-by: Johannes Zottele <[email protected]>

---------

Signed-off-by: Johannes Zottele <[email protected]>
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