Thunderbird will query the Gmail server2 and automatically configure the appropriate IMAP connection settings for your account. When complete, Thunderbird will show you a confirmation dialog.