Endometriosis?

I am going to be making a appointment with a gynecologist to get checked, but was just curious what signs made others get checked? I have extremely painful periods, pain during sex, bloating, and almost every other symptom that comes up when you look it up. How did they diagnose you if you do have it?