[Doc] Add an UpdateRequest example to Java API doc

Closes #7083.

(cherry picked from commit f37355a)