synedoche
Synecdoche is a figure of speech in which a term that designates a part of something is used to refer to the whole, or a term that denotes the whole is used to refer to a part. It can also involve a material used to make the thing, or a container used to signify its contents. These uses rely on a recognizable part–whole, material–object, or container–contents relationship rather than on direct resemblance.
Common forms include: part for whole, as in all hands on deck, where hands stands for the
Synecdoche is often treated as a specific type of metonymy, though it emphasizes a part–whole relationship.