nonNullOriginal

Returns non-nullable serial descriptor for the type if this descriptor has been auto-generated (plugin generated descriptors) or created with .nullable extension on a descriptor or serializer.

Otherwise, returns this.

It may return nullable descriptor if this descriptor has been created manually as nullable by directly implementing SerialDescriptor interface.

See also