Correct, the name coming after public there is the name of the class which your plugin is inheriting from. In your case, since you're using GZ_REGISTER_MODEL_PLUGIN, you need to inherit from gazebo::ModelPlugin. There are also other types available, like WorldPlugin and VisualPlugin.