Merge pull request #7583 from haberman/sync-stage

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