Identifying Default vs Unset Values in Google Protocol Buffers (proto3)

What are Protocol Buffers / Protobuf? Protocol buffers are Google’s language-neutral, platform-neutral, extensible mechanism for serializing structured data – think XML, but smaller, faster, and simpler. You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages. Problem In proto3, all fields are “optional” (it is not an error if the sender fails to set them)....

June 24, 2020 · 2 min · Sourav Badami