You can now detect field presence in several cases: https://protobuf.dev/programming-guides/field_presence/#pres...
This is very solid with message types, but for basic types you can add `optional field` if needed as well (essentially making the value nullable)