public final SearchHypernym updateSearchHypernym(
      SearchHypernym searchHypernym, FieldMask updateMask) {
    UpdateSearchHypernymRequest request =
        UpdateSearchHypernymRequest.newBuilder()
            .setSearchHypernym(searchHypernym)
            .setUpdateMask(updateMask)
            .build();
    return updateSearchHypernym(request);
  }
Updates a SearchHypernym inside a corpus.

<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 (WarehouseClient warehouseClient = WarehouseClient.create()) {
  SearchHypernym searchHypernym = SearchHypernym.newBuilder().build();
  FieldMask updateMask = FieldMask.newBuilder().build();
  SearchHypernym response = warehouseClient.updateSearchHypernym(searchHypernym, updateMask);
}
}</pre>

@param searchHypernym Required. The SearchHypernym to update. The search hypernym's `name`
    field is used to identify the search hypernym to be updated. Format:
    `projects/{project_number}/locations/{location}/corpora/{corpus}/searchHypernyms/{search_hypernym}`
@param updateMask The list of fields to be updated. If left unset, all field paths will be
    updated/overwritten.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/WarehouseClient.java