Re: [protobuf] scalar types in service RPCs and partial messages

2019-06-29 Thread Marc Gravell
The "why" is because the marshaller assumes the root is a message; however, you should look at "wrappers.proto" - there are well-known wrappers for single values of most common types, including string. Also, prefer "empty.proto" for empty, not your own. On Sat, 29 Jun 2019 at 13:25, Ananya Bhat

[protobuf] scalar types in service RPCs and partial messages

2019-06-29 Thread Ananya Bhat
Hi, I am new to protobuf. I have question related to specifying partial messages as RPC parameters and using scalar types in RPCs for returning simple strings Why message wrappers are required? Please clarify my doubts to decide better message specification I have definition something like below