The gunboat diplomacy

What is gunboat diplomacy? And how does it relate to the reason why Juan Gonzalez considers Puerto Rico a colony rather than its official title of “commonwealth”?