Skip to content

Commit

Permalink
chore (samples) Added a place for updateMask insertion from tutorials (
Browse files Browse the repository at this point in the history
…#498)

* 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 <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
dfirova and gcf-owl-bot[bot] authored Aug 8, 2022
1 parent 6dccbdf commit 2ca8240
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2ca8240

Please sign in to comment.