Get started

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 a nullable descriptor if this descriptor has been created manually as nullable by directly implementing SerialDescriptor interface. However, direct implementations of SerialDescriptor are discouraged and should not be encountered in practice.

See also