Description
Hello,
I'm learning about ProtoBuf and writing a POC with proto3 as protobuf syntax. While browsing the doc about Proto3 syntax and the Internet, I found some inconsistencies.
The documentation ProtobufDoc speaks of these 4 field rules : singular
, optional
, repeated
and map
, singular
being the default field rule.
However, in an issue on gitHub here, it is said that optional
has been removed as a field rule, and I understood that it was now the default rule (which is also claimed by both VSCode and WebStorm when I work with it).
I don't find it clear which are the proto3 field rules, and which one is the default one : is it singular
? is it optional
? And if both are still in use in proto3, what is the difference between them ?
I'm sorry if this is a duplicate, I did not found an issue about the presence of optional
and singular
in proto3 doc or the fact that both are claimed to be the default rule.
Thanks a lot for all the work.
Julie