Merge pull request #8499 from haberman/sync-stage

Integrate from Piper for C++, Java, and Python