Gmail can read your emails and attachments to train its AI, unless you opt out
(www.malwarebytes.com)
I opened GMail and it specifically asked me to give consent in a descriptive/onboarding popover. Declining was choosing one of the two options. I'm in EU, it may be different elsewhere (title and article about US?).