From f032a03f0f195aa4a9307c6f15a8888b8634f393 Mon Sep 17 00:00:00 2001 From: Arakel2811 <38522242+Arakel2811@users.noreply.github.com> Date: Mon, 26 Sep 2022 19:38:29 +0400 Subject: [PATCH] samples: removed region tags from events and search directories (#216) --- .../events/import-user-events-big-query.js | 3 --- retail/interactive-tutorials/events/import-user-events-gcs.js | 3 --- .../interactive-tutorials/events/import-user-events-inline.js | 3 --- retail/interactive-tutorials/events/purge-user-events.js | 3 --- retail/interactive-tutorials/events/rejoin-user-events.js | 3 --- retail/interactive-tutorials/events/write-user-event.js | 3 --- retail/interactive-tutorials/search/search-simple-query.js | 2 -- retail/interactive-tutorials/search/search-with-boost-spec.js | 2 -- retail/interactive-tutorials/search/search-with-facet-spec.js | 2 -- retail/interactive-tutorials/search/search-with-filtering.js | 2 -- retail/interactive-tutorials/search/search-with-ordering.js | 2 -- retail/interactive-tutorials/search/search-with-pagination.js | 4 ---- .../search/search-with-query-expansion-spec.js | 3 --- 13 files changed, 35 deletions(-) diff --git a/retail/interactive-tutorials/events/import-user-events-big-query.js b/retail/interactive-tutorials/events/import-user-events-big-query.js index 2c49490084..a822476a53 100644 --- a/retail/interactive-tutorials/events/import-user-events-big-query.js +++ b/retail/interactive-tutorials/events/import-user-events-big-query.js @@ -15,8 +15,6 @@ 'use strict'; async function main(datasetId) { - // [START retail_import_user_events_big_query] - // Imports the Google Cloud client library. const {UserEventServiceClient} = require('@google-cloud/retail').v2; @@ -71,7 +69,6 @@ async function main(datasetId) { console.log('Start events import'); await callImportUserEvents(); console.log('Events import finished'); - // [END retail_import_user_events_big_query] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/events/import-user-events-gcs.js b/retail/interactive-tutorials/events/import-user-events-gcs.js index e42a908acc..bc8af4d553 100644 --- a/retail/interactive-tutorials/events/import-user-events-gcs.js +++ b/retail/interactive-tutorials/events/import-user-events-gcs.js @@ -15,8 +15,6 @@ 'use strict'; async function main(bucketName) { - // [START retail_import_user_events_gcs] - // Imports the Google Cloud client library. const {UserEventServiceClient} = require('@google-cloud/retail').v2; @@ -78,7 +76,6 @@ async function main(bucketName) { console.log('Start events import'); await callImportUserEvents(); console.log('Events import finished'); - // [END retail_import_user_events_gcs] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/events/import-user-events-inline.js b/retail/interactive-tutorials/events/import-user-events-inline.js index 99a628e1a5..c063cd2d03 100644 --- a/retail/interactive-tutorials/events/import-user-events-inline.js +++ b/retail/interactive-tutorials/events/import-user-events-inline.js @@ -15,8 +15,6 @@ 'use strict'; async function main() { - // [START retail_import_user_events_inline] - // Imports the Google Cloud client library. const {UserEventServiceClient} = require('@google-cloud/retail').v2; @@ -81,7 +79,6 @@ async function main() { console.log('Start events import'); await callImportUserEvents(); console.log('Events import finished'); - // [END retail_import_user_events_inline] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/events/purge-user-events.js b/retail/interactive-tutorials/events/purge-user-events.js index 3815fa78d0..78695dc7af 100644 --- a/retail/interactive-tutorials/events/purge-user-events.js +++ b/retail/interactive-tutorials/events/purge-user-events.js @@ -15,8 +15,6 @@ 'use strict'; async function main() { - // [START retail_purge_user_events] - // Imports the Google Cloud client library. const {UserEventServiceClient} = require('@google-cloud/retail').v2; const utils = require('../setup/setup-cleanup'); @@ -62,7 +60,6 @@ async function main() { // Purge events await callPurgeUserEvents(); - // [END retail_purge_user_events] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/events/rejoin-user-events.js b/retail/interactive-tutorials/events/rejoin-user-events.js index 90bdcf3909..173f1e04ef 100644 --- a/retail/interactive-tutorials/events/rejoin-user-events.js +++ b/retail/interactive-tutorials/events/rejoin-user-events.js @@ -15,8 +15,6 @@ 'use strict'; async function main() { - // [START retail_rejoin_user_event] - // Imports the Google Cloud client library. const {UserEventServiceClient} = require('@google-cloud/retail').v2; const utils = require('../setup/setup-cleanup'); @@ -66,7 +64,6 @@ async function main() { // Purge events utils.purgeUserEvents(parent, visitorId); - // [END retail_rejoin_user_event] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/events/write-user-event.js b/retail/interactive-tutorials/events/write-user-event.js index fbcbf04d28..ee24e072ab 100644 --- a/retail/interactive-tutorials/events/write-user-event.js +++ b/retail/interactive-tutorials/events/write-user-event.js @@ -15,8 +15,6 @@ 'use strict'; async function main() { - // [START retail_write_user_event] - // Imports the Google Cloud client library. const {UserEventServiceClient} = require('@google-cloud/retail').v2; const utils = require('../setup/setup-cleanup'); @@ -60,7 +58,6 @@ async function main() { // Purge user events by visitor id await utils.purgeUserEvents(parent, visitorId); - // [END retail_write_user_event] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/search/search-simple-query.js b/retail/interactive-tutorials/search/search-simple-query.js index 393f7ab78f..c6cb52f30d 100644 --- a/retail/interactive-tutorials/search/search-simple-query.js +++ b/retail/interactive-tutorials/search/search-simple-query.js @@ -15,7 +15,6 @@ 'use strict'; async function main() { - // [START retail_search_for_products_with_query_parameter] // Call Retail API to search for a products in a catalog using only search query. // Imports the Google Cloud client library. @@ -69,7 +68,6 @@ async function main() { }; callSearch(); - // [END retail_search_for_products_with_query_parameter] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/search/search-with-boost-spec.js b/retail/interactive-tutorials/search/search-with-boost-spec.js index 64c5c812fe..7ebeee41d9 100644 --- a/retail/interactive-tutorials/search/search-with-boost-spec.js +++ b/retail/interactive-tutorials/search/search-with-boost-spec.js @@ -15,7 +15,6 @@ 'use strict'; async function main() { - // [START retail_search_product_with_boost_spec] // Call Retail API to search for a products in a catalog, rerank the // results boosting or burying the products that match defined condition. @@ -82,7 +81,6 @@ async function main() { }; callSearch(); - // [END retail_search_product_with_boost_spec] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/search/search-with-facet-spec.js b/retail/interactive-tutorials/search/search-with-facet-spec.js index c07e7dbda1..c8dca4c1c8 100644 --- a/retail/interactive-tutorials/search/search-with-facet-spec.js +++ b/retail/interactive-tutorials/search/search-with-facet-spec.js @@ -15,7 +15,6 @@ 'use strict'; async function main() { - // [START retail_search_products_with_facet_spec] // Call Retail API to search for a products in a catalog using only search query. // Imports the Google Cloud client library. @@ -73,7 +72,6 @@ async function main() { }; callSearch(); - // [END retail_search_products_with_facet_spec] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/search/search-with-filtering.js b/retail/interactive-tutorials/search/search-with-filtering.js index a357ff3019..f12099219d 100644 --- a/retail/interactive-tutorials/search/search-with-filtering.js +++ b/retail/interactive-tutorials/search/search-with-filtering.js @@ -15,7 +15,6 @@ 'use strict'; async function main() { - // [START retail_search_for_products_with_filter] // Call Retail API to search for a products in a catalog, filter the results by different product fields. // Imports the Google Cloud client library. @@ -75,7 +74,6 @@ async function main() { }; callSearch(); - // [END retail_search_for_products_with_filter] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/search/search-with-ordering.js b/retail/interactive-tutorials/search/search-with-ordering.js index 53e55a3e28..05993b5b9b 100644 --- a/retail/interactive-tutorials/search/search-with-ordering.js +++ b/retail/interactive-tutorials/search/search-with-ordering.js @@ -15,7 +15,6 @@ 'use strict'; async function main() { - // [START retail_search_for_products_with_ordering] // Call Retail API to search for a products in a catalog, order the results by different product fields. // Imports the Google Cloud client library. @@ -74,7 +73,6 @@ async function main() { }; callSearch(); - // [END retail_search_for_products_with_ordering] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/search/search-with-pagination.js b/retail/interactive-tutorials/search/search-with-pagination.js index cd6f79b272..b391c4a65b 100644 --- a/retail/interactive-tutorials/search/search-with-pagination.js +++ b/retail/interactive-tutorials/search/search-with-pagination.js @@ -15,8 +15,6 @@ 'use strict'; async function main() { - // [START retail_search_for_products_with_pagination] - // Imports the Google Cloud client library. const {SearchServiceClient} = require('@google-cloud/retail'); @@ -83,8 +81,6 @@ async function main() { await callSearch(); //PASTE CALL WITH NEXT PAGE TOKEN HERE: - - // [END retail_search_for_products_with_pagination] } process.on('unhandledRejection', err => { diff --git a/retail/interactive-tutorials/search/search-with-query-expansion-spec.js b/retail/interactive-tutorials/search/search-with-query-expansion-spec.js index 0492b16325..626d45ec58 100644 --- a/retail/interactive-tutorials/search/search-with-query-expansion-spec.js +++ b/retail/interactive-tutorials/search/search-with-query-expansion-spec.js @@ -15,8 +15,6 @@ 'use strict'; async function main() { - // [START retail_search_for_products_with_query_expansion_specification] - // Imports the Google Cloud client library. const {SearchServiceClient} = require('@google-cloud/retail'); @@ -76,7 +74,6 @@ async function main() { }; callSearch(); - // [END retail_search_for_products_with_query_expansion_specification] } process.on('unhandledRejection', err => {