public final void addProductToProductSet(ProductSetName name, ProductName product) {
    AddProductToProductSetRequest request =
        AddProductToProductSetRequest.newBuilder()
            .setName(name == null ? null : name.toString())
            .setProduct(product == null ? null : product.toString())
            .build();
    addProductToProductSet(request);
  }
Adds a Product to the specified ProductSet. If the Product is already present, no change is
made.

<p>One Product can be added to at most 100 ProductSets.

<p>Possible errors:

<ul>
  <li>Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
</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()) {
  ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
  ProductName product = ProductName.of("[PROJECT]", "[LOCATION]", "[PRODUCT]");
  productSearchClient.addProductToProductSet(name, product);
}
}</pre>

@param name Required. The resource name for the ProductSet to modify.
    <p>Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
@param product Required. The resource name for the Product to be added to this ProductSet.
    <p>Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/ProductSearchClient.java