Hexret

Web Security · API security

Protocol Buffers field presence

Also known as: Protobuf field presence

Whether a parsed Protocol Buffers message records that a field was set. Plain proto3 scalar fields use implicit presence, so a default value such as 0 cannot be distinguished from unset. An optional scalar tracks explicit presence, allowing a patch to mean 'set to zero' rather than 'leave unchanged'.

Where you practice it

Related terms