code: public final void removeProductFromProductSet(ProductSetName name, String product) {
  
      RemoveProductFromProductSetRequest request =
          RemoveProductFromProductSetRequest.newBuilder()
              .setName(name == null ? null : name.toString())
              .setProduct(product)
              .build();
      removeProductFromProductSet(request);
    }
docs: Removes a Product from the specified ProductSet.
  
  <p>Possible errors:
  
  <p>&#42; Returns NOT_FOUND If the Product is not found under the ProductSet.
  
  <p>Sample code:
  
  <pre><code>
  try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
  ProductSetName name = ProductSetName.of("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]");
  String product = "";
  productSearchClient.removeProductFromProductSet(name, product);
  }
  </code></pre>
  
  @param name The resource name for the ProductSet to modify.
  <p>Format is: `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
  @param product The resource name for the Product to be removed from 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