Difference between heightmapWidth, heightmapHeight and size

Sorry if my question is silly.

Can someone briefly explain the difference between:

TerrainData.size.x and TerrainData.heightmapWidth
(TerrainData.size.z and TerrainData.heightmapHeight)?

Thanks!

the size of the terrain is gotten through the size variable - the heightmapWidth and height, have to do with samples and data about the patches of the terrain