public final ProductSet updateProductSet(ProductSet productSet, FieldMask updateMask) {
    UpdateProductSetRequest request =
        UpdateProductSetRequest.newBuilder()
            .setProductSet(productSet)
            .setUpdateMask(updateMask)
            .build();
    return updateProductSet(request);
  }
Makes changes to a ProductSet resource. Only display_name can be updated currently.

<p>Possible errors:

<ul>
  <li>Returns NOT_FOUND if the ProductSet does not exist.
  <li>Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the
      request or longer than 4096 characters.
</ul>

<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 (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
  ProductSet productSet = ProductSet.newBuilder().build();
  FieldMask updateMask = FieldMask.newBuilder().build();
  ProductSet response = productSearchClient.updateProductSet(productSet, updateMask);
}
}</pre>

@param productSet Required. The ProductSet resource which replaces the one on the server.
@param updateMask The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
    update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask
    path is `display_name`.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ProductSearchClient.java