hasPresence

Returns true if this field tracks presence, ie. does the field distinguish between “unset” and “present with default value.” This includes required, optional, and oneof fields. It excludes maps, repeated fields, and singular proto3 fields without “optional”.

Descriptor.swift:1140
var hasPresence: Bool { get }