Bock said Google has been working to diversify, not just its offices but in the broader tech sector. Since 2010, the firm has given more than $40 million to organizations working to bring computer science education to women and girls, he said.

The company also is working with historically black colleges and universities to elevate coursework and attendance in computer science, he said.

"But we're the first to admit that Google is miles from where we want to be, and that being totally clear about the extent of the problem is a really important part of the solution," he said.

Gender and ethnic disparities are reflected throughout the tech industry. About 7 percent of tech workers are black or Latino in Silicon Valley and nationally. Blacks and Hispanics make up 13.1 and 16.9 percent of the U.S. population, respectively, according to the most recent Census data.

In the coming months, Google said, it will work with the Kapor Center for Social Impact, a group that uses information technology to close gender and ethnic gaps in the Silicon Valley workforce. The center will be organizing a Google-backed conference in California focusing on issues of technology and diversity.