Skip to content

grpc: Support sub-messages #430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 7, 2025
Merged

grpc: Support sub-messages #430

merged 11 commits into from
Aug 7, 2025

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

Signed-off-by: Johannes Zottele <official@johannes-zottele.at>
Signed-off-by: Johannes Zottele <official@johannes-zottele.at>
Signed-off-by: Johannes Zottele <official@johannes-zottele.at>
Signed-off-by: Johannes Zottele <official@johannes-zottele.at>
Signed-off-by: Johannes Zottele <official@johannes-zottele.at>
Signed-off-by: Johannes Zottele <official@johannes-zottele.at>
Signed-off-by: Johannes Zottele <official@johannes-zottele.at>
Signed-off-by: Johannes Zottele <official@johannes-zottele.at>
Signed-off-by: Johannes Zottele <official@johannes-zottele.at>
Signed-off-by: Johannes Zottele <official@johannes-zottele.at>
@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
Collaborator

@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 <official@johannes-zottele.at>
@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 <official@johannes-zottele.at>

* grpc-pb: First successful sub-message test

Signed-off-by: Johannes Zottele <official@johannes-zottele.at>

* grpc-pb: Support recursive messages

Signed-off-by: Johannes Zottele <official@johannes-zottele.at>

* grpc-pb: Support nested message

Signed-off-by: Johannes Zottele <official@johannes-zottele.at>

* grpc-pb: Support repeated messages

Signed-off-by: Johannes Zottele <official@johannes-zottele.at>

* grpc-pb: Make generated methods internal

Signed-off-by: Johannes Zottele <official@johannes-zottele.at>

* grpc-pb: Support message in oneof

Signed-off-by: Johannes Zottele <official@johannes-zottele.at>

* grpc-pb: Add test for enum in oneOf

Signed-off-by: Johannes Zottele <official@johannes-zottele.at>

* grpc-pb: Add oneOf message merge test

Signed-off-by: Johannes Zottele <official@johannes-zottele.at>

* grpc-pb: Check required fields ins submessages

Signed-off-by: Johannes Zottele <official@johannes-zottele.at>

* grpc-pb: Address PR comments

Signed-off-by: Johannes Zottele <official@johannes-zottele.at>

---------

Signed-off-by: Johannes Zottele <official@johannes-zottele.at>
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