public final OperationFuture<PhraseSet, OperationMetadata> updatePhraseSetAsync(
      PhraseSet phraseSet, FieldMask updateMask) {
    UpdatePhraseSetRequest request =
        UpdatePhraseSetRequest.newBuilder()
            .setPhraseSet(phraseSet)
            .setUpdateMask(updateMask)
            .build();
    return updatePhraseSetAsync(request);
  }
Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].

<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 (SpeechClient speechClient = SpeechClient.create()) {
  PhraseSet phraseSet = PhraseSet.newBuilder().build();
  FieldMask updateMask = FieldMask.newBuilder().build();
  PhraseSet response = speechClient.updatePhraseSetAsync(phraseSet, updateMask).get();
}
}</pre>

@param phraseSet Required. The PhraseSet to update.
    <p>The PhraseSet's `name` field is used to identify the PhraseSet to update. Format:
    `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
@param updateMask The list of fields to update. If empty, all non-default valued fields are
    considered for update. Use `&#42;` to update the entire PhraseSet resource.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/SpeechClient.java