Last I checked Google is not buying or pirating books for Google Search they just grab free data that has been provided.
> For works still under copyright, Google scanned and entered the whole work into their searchable database, but only provided "snippet views" of the scanned pages in search results to users.