Is there a Layer 2 protocol when using an Ethernet hub?
Yes, an Ethernet host always deals with Ethernet layer-2 among other things.
Ethernet L2 operates between hosts – both hubs and switches are (mostly) transparent at L2, and nothing changes in a host's operation between being connected to a hub, vs a switch, vs a direct connection to another host.