Better HN
top
new
best
ask
show
jobs
Log in
Sign up
UnluckySelf
1 karma · joined Jul 11, 2024 (2y ago) · 1 submissions
Submissions
comment 2y ago ·
link
·
parent
But you can distinguish between default and unset: all optional fields have has_ method associated with them:
https://protobuf.dev/reference/cpp/cpp-generated/#fields