How to update memo from Workflow with java sdk?

Memo description says that it could be updated from the running workflow and I even see upsertMemo in go sdk, but I cannot find similar function in java. How can I update memo with java?

go sdk: samples-go/memo/memo_workflow.go at main · temporalio/samples-go · GitHub