</span></span></code></pre></div><h2 id=
cheat>Cheat sheet
</h2><p><strong>Proto2:
</strong></p><p>Is field presence tracked?
</p><table><thead><tr><th>Field type
</th><th>Tracked?
</th></tr></thead><tbody><tr><td>Singular field
</td><td>yes
</td></tr><tr><td>Singular message field
</td><td>yes
</td></tr><tr><td>Field in a oneof
</td><td>yes
</td></tr><tr><td>Repeated field & map
</td><td>no
</td></tr></tbody></table><p><strong>Proto3:
</strong></p><p>Is field presence tracked?
</p><table><thead><tr><th>Field type
</th><th>Tracked?
</th></tr></thead><tbody><tr><td>Singular message field
</td><td>yes
</td></tr><tr><td>Field in a oneof
</td><td>yes
</td></tr><tr><td><em>Other
</em> singular field
</td><td>if defined as
<code>optional
</code></td></tr><tr><td>Repeated field & map
</td><td>no
</td></tr></tbody></table><p><strong>Edition 2023:
</strong></p><p>Is field presence tracked?
</p><table><thead><tr><th>Field type
</th><th>Tracked?
</th></tr></thead><tbody><tr><td>Default
</td><td>yes
</td></tr><tr><td><code>features.field_presence
</code> set to
<code>LEGACY_REQUIRED
</code></td><td>yes
</td></tr><tr><td><code>features.field_presence
</code> set to
<code>IMPLICIT
</code></td><td>no
</td></tr><tr><td>Repeated field & map
</td><td>no
</td></tr></tbody></table></div></main></div></div><footer class="
bg-dark py-5 row d-print-none"
><div class="
container-fluid mx-sm-5"
><div class=
row><div class="
col-6 col-sm-4 text-xs-center order-sm-2"
><ul class="
list-inline mb-0"
><li class="
list-inline-item mx-2 h3"
data-toggle=
tooltip data-placement=
top title="
Stack Overflow"
aria-label="
Stack Overflow"
><a class=
text-white target=
_blank rel=
noopener href=
https://stackoverflow.com/questions/tagged/protocol-buffers aria-label="
Stack Overflow"
><i class="
fab fa-stack-overflow"
></i></a></li></ul><script type=
text/javascript id=
cookiebanner src=
https://cdn.jsdelivr.net/gh/dobarkod/[email protected]/dist/cookiebanner.min.js data-height=
50px data-message="
Protobuf.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic."
data-bg=
#ffb data-fg=
#000 data-position=
bottom data-padding="
10px 16px"
data-close-text="
OK, got it"
data-font-size=
18px data-moreinfo=
https://policies.google.com/technologies/cookies></script></div><div class="
col-6 col-sm-4 text-right text-xs-center order-sm-3"
><ul class="
list-inline mb-0"
><li class="
list-inline-item mx-2 h3"
data-toggle=
tooltip data-placement=
top title=
GitHub aria-label=
GitHub><a class=
text-white target=
_blank rel=
noopener href=
https://github.com/protocolbuffers/protobuf aria-label=
GitHub><i class="
fab fa-github"
></i></a></li><li class="
list-inline-item mx-2 h3"
data-toggle=
tooltip data-placement=
top title="
Developer mailing list"
aria-label="
Developer mailing list"
><a class=
text-white target=
_blank rel=
noopener href=
https://groups.google.com/g/protobuf aria-label="
Developer mailing list"
><i class="
fa fa-envelope"
></i></a></li></ul><script type=
text/javascript id=
cookiebanner src=
https://cdn.jsdelivr.net/gh/dobarkod/[email protected]/dist/cookiebanner.min.js data-height=
50px data-message="
Protobuf.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic."
data-bg=
#ffb data-fg=
#000 data-position=
bottom data-padding="
10px 16px"
data-close-text="
OK, got it"
data-font-size=
18px data-moreinfo=
https://policies.google.com/technologies/cookies></script></div><div class="
col-12 col-sm-4 text-center py-2 order-sm-2"
><small class=
text-white>© 2024 Google LLC All Rights Reserved
</small>
0 commit comments