This is a difficult question; at the posting level, a collection is just a repeating tag - and each element represents an object. Simply put, there is no way to directly express null in the protobuf specification.
Now I could be dirty and have some kind of double tag for a collection with zeros, but - to be honest, I think it would be better to use a null view of a non-zero object (if you see what I mean). In the case of a string, perhaps "" will do (it really depends on the context).
I am also open to suggestions, but ... he will have to take into account the limitations of the specification.
source share