You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to grpc.io
Is it allowed to send and receive mixed messages in a stream? Treat iis I have a proto file with two message, a header message and a content message. I want my server to receive one header and a random amount of content messages. It looks like the rpc directive only allows a single message definition. I considered using repeated field, but that looks like it only accepts a constant value at definition time, not a computed one at run time.
Kannan Jayaprakasam
unread,
Apr 23, 2025, 6:43:49 AM4/23/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to grpc.io
You can define a oneof message that is one of header message or content message, and define your RPC as a stream of this oneof message type.