Added a bunch of PublicAPI attributes to shutup refactoring suggestions of "not used".