Google is facing criticism after users discovered a Gmail setting that allowed Gemini , the company’s artificial intelligence (AI) assistant, to read their emails and calendar events .