Add Java equal and toString annotations.

Add annotations so that the Java backend would generate equals and
toString methods, which would be useful in our code.

Test: Manual build.
Bug: 205774940
Change-Id: Ib08c5f42d29c6d028abcaa1a577147d1495cf550
62 files changed