I may not understand you question correctly. As long as you use proto3, 
there is no way to emit the default value as some bytes on the wire.

On Wednesday, September 4, 2019 at 10:25:43 PM UTC-7, Rupleena Chhabra 
wrote:
>
> Hi,
>
> Proto3 specification for Protocol buffer states that if a scalar message 
> field is set to its default value, the value will not be serialized on the 
> wire. 
>
> However, in case we have a scalar field set to default value, e.g. an 
> int32 message field with value set as 0, Is there a way to emit it with 
> default value in Java?
>
>
> Thanks!
> Rupleena
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/659c70f1-c2b7-4417-88e2-f22a8d5bcd93%40googlegroups.com.

Reply via email to