@@ -0,0 +1,1124 @@
+package com.google.sps.servlets;%0A %0Aimport com.google.api.gax.longrunning.OperationFuture;%0Aimport com.google.cloud.vision.v1.*;%0A %0Aimport java.io.IOException;%0Aimport javax.servlet.annotation.WebServlet;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0Aimport java.util.*;%0Aimport com.google.sps.data.ServletLibrary;%0A %0A@WebServlet(%22/create-product%22)%0Apublic class CreateProductServlet extends HttpServlet %7B%0A %0A  public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException %7B%0A    String projectId = %22cloudberry-step-2%22;%0A    String computeRegion = %22us-east1%22;%0A    String productId = request.getParameter(%22product-id%22);%0A    String productDisplayName = request.getParameter(%22product-display%22);%0A    String productCategory = %22toys-v2%22;%0A    String setId;%0A   %0A    ServletsLibrary.createProduct(projectId, computeRegion, productId, productDisplayName, productCategory);%0A%0A    ServletsLibrary.addProductToProductSet(projectId, computeRegion, productId, setId);%0A    %0A    response.sendRedirect(%22create-product.html%22);%0A%0A  %7D %0A%7D

Add a servlet that creates a product and add a product to a product set