Hi; default values *are not sent*, especially in proto3 where zero is
default and default is zero. Likewise, the root object in a message is not
wrapped in any way - only fields *on* the root object.
This means that the binary encoding of a CommandRequest with Code.RESET is:
zero bytes, which is
Hello,
I am new to protobuf.
I have a request message like that
message CommandRequest
{
enum Code
{
RESET = 0;
ERASE_APP = 2;
ERASE_OTA = 3;
}
Code code = 1;
}
When I am trying to encode a request with zero value, i see that encoded
size is zero.