The Gigafactory IIRC has a $5B budget. The building and the land isn't expensive, especially given the preferential treatment by the government. The machinery and infrastructure, tailored for lithium battery production, are the biggest part of the budget and you won't be able to "just switch it out". The Gigafactory is a lithium battery factory on a massive scale, nothing else.
> New revolutionary hardware technologies don't just appear
Do you remember the revolution that got sparked by the iPhone? That one needed half a year to totally turn over the mobile phone market. It's not uncommon.
On the other hand, I agree that a revolutionary new technology is unlikely to appear - and with the Gigafactory, Tesla and Panasonic can basically control battery prices for the rest of the world.