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

Re: [protobuf] Scalar types

2010-07-21 Thread Henner Zeller
2010/7/21 Julian González julian@gmail.com: Does protocol buffers support an scalar type of one byte or two byte length? lets say an int16, int8? No. But note that integers are 'varint' encoded, so if you only give a small value, it will only eat up a small amount of bits. So a number in