From 2ca8240ec4bd56ab952abd2f79e71d83c2f862a2 Mon Sep 17 00:00:00 2001 From: dfirova <93149631+dfirova@users.noreply.github.com> Date: Mon, 8 Aug 2022 21:21:38 +0300 Subject: [PATCH] chore (samples) Added a place for updateMask insertion from tutorials (#498) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added comment for update mask. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../src/main/java/product/UpdateProduct.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java-retail/samples/interactive-tutorials/src/main/java/product/UpdateProduct.java b/java-retail/samples/interactive-tutorials/src/main/java/product/UpdateProduct.java index 2fc3a1557024..e278dc8c24c4 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/product/UpdateProduct.java +++ b/java-retail/samples/interactive-tutorials/src/main/java/product/UpdateProduct.java @@ -86,6 +86,8 @@ public static void updateProduct(Product originalProduct, String defaultBranchNa .build(); System.out.printf("Update product request: %s%n", updateProductRequest); + // PASTE UPDATE MASK HERE: requires import com.google.protobuf.FieldMask + Product updatedProduct = serviceClient.updateProduct(updateProductRequest); System.out.printf("Updated product: %s%n", updatedProduct); }