public final OperationFuture<Glossary, UpdateGlossaryMetadata> updateGlossaryAsync(
      Glossary glossary, FieldMask updateMask) {
    UpdateGlossaryRequest request =
        UpdateGlossaryRequest.newBuilder().setGlossary(glossary).setUpdateMask(updateMask).build();
    return updateGlossaryAsync(request);
  }
Updates a glossary. A LRO is used since the update can be async if the glossary's entry file is
updated.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
  Glossary glossary = Glossary.newBuilder().build();
  FieldMask updateMask = FieldMask.newBuilder().build();
  Glossary response = translationServiceClient.updateGlossaryAsync(glossary, updateMask).get();
}
}</pre>

@param glossary Required. The glossary entry to update.
@param updateMask The list of fields to be updated. Currently only `display_name` and
    'input_config'
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java