Metonymy is a figure of speech, or a type of figurative language. This means that it is a non-literal way of getting a point across.