From bf9bdd007bde22880389567d96da2ffddf72c45b Mon Sep 17 00:00:00 2001 From: rebeccaellis Date: Tue, 10 Jun 2025 13:17:32 -0500 Subject: [PATCH 1/3] Update search-simple-query.js Added region tag to simply search query for code snippet update in the documentation. --- retail/interactive-tutorials/search/search-simple-query.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/retail/interactive-tutorials/search/search-simple-query.js b/retail/interactive-tutorials/search/search-simple-query.js index 783d86ab21..e3406af443 100644 --- a/retail/interactive-tutorials/search/search-simple-query.js +++ b/retail/interactive-tutorials/search/search-simple-query.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// [START retail_search_simple_query] 'use strict'; async function main() { @@ -76,3 +77,5 @@ process.on('unhandledRejection', err => { }); main(); + +// [END retail_search_simple_query] From ec27aa371728f97c8785a7bfb079195d8df66559 Mon Sep 17 00:00:00 2001 From: rebeccaellis Date: Tue, 10 Jun 2025 18:59:26 -0500 Subject: [PATCH 2/3] Update search-with-pagination.js --- retail/interactive-tutorials/search/search-with-pagination.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/retail/interactive-tutorials/search/search-with-pagination.js b/retail/interactive-tutorials/search/search-with-pagination.js index 89559155bb..8a8f7dc8a4 100644 --- a/retail/interactive-tutorials/search/search-with-pagination.js +++ b/retail/interactive-tutorials/search/search-with-pagination.js @@ -14,6 +14,7 @@ 'use strict'; +// [START retail_search_for_products_with_pagination] async function main() { // Imports the Google Cloud client library. const {SearchServiceClient} = require('@google-cloud/retail'); @@ -83,6 +84,8 @@ async function main() { //PASTE CALL WITH NEXT PAGE TOKEN HERE: } +// [END retail_search_for_products_with_pagination] + process.on('unhandledRejection', err => { console.error(err.message); process.exitCode = 1; From 6c83f3b78ef24eb178cd165716e720acb3c924fc Mon Sep 17 00:00:00 2001 From: rebeccaellis Date: Fri, 27 Jun 2025 17:32:22 -0600 Subject: [PATCH 3/3] Update import-products-inline-source.js --- .../product/import-products-inline-source.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/retail/interactive-tutorials/product/import-products-inline-source.js b/retail/interactive-tutorials/product/import-products-inline-source.js index 6fb9a99203..5b79755148 100644 --- a/retail/interactive-tutorials/product/import-products-inline-source.js +++ b/retail/interactive-tutorials/product/import-products-inline-source.js @@ -13,7 +13,7 @@ // limitations under the License. 'use strict'; - +// [START retail_import_products_from_inline_source] async function main(id1, id2) { // Imports the Google Cloud client library. const {ProductServiceClient} = require('@google-cloud/retail').v2; @@ -126,3 +126,4 @@ process.on('unhandledRejection', err => { }); main(...process.argv.slice(2)); +// [END retail_import_products_from_inline_source]