Add an UpdateRequest example to Java API doc

Closes #7083.
What goes into `setDoc()`?  Give an actual example