Skip to content

Commit

Permalink
samples: removed region tags from events and search directories (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arakel2811 authored Sep 26, 2022
1 parent 439ee1f commit f032a03
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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 => {
Expand Down
3 changes: 0 additions & 3 deletions retail/interactive-tutorials/events/import-user-events-gcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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 => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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 => {
Expand Down
3 changes: 0 additions & 3 deletions retail/interactive-tutorials/events/purge-user-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -62,7 +60,6 @@ async function main() {

// Purge events
await callPurgeUserEvents();
// [END retail_purge_user_events]
}

process.on('unhandledRejection', err => {
Expand Down
3 changes: 0 additions & 3 deletions retail/interactive-tutorials/events/rejoin-user-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -66,7 +64,6 @@ async function main() {

// Purge events
utils.purgeUserEvents(parent, visitorId);
// [END retail_rejoin_user_event]
}

process.on('unhandledRejection', err => {
Expand Down
3 changes: 0 additions & 3 deletions retail/interactive-tutorials/events/write-user-event.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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 => {
Expand Down
2 changes: 0 additions & 2 deletions retail/interactive-tutorials/search/search-simple-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -69,7 +68,6 @@ async function main() {
};

callSearch();
// [END retail_search_for_products_with_query_parameter]
}

process.on('unhandledRejection', err => {
Expand Down
2 changes: 0 additions & 2 deletions retail/interactive-tutorials/search/search-with-boost-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -82,7 +81,6 @@ async function main() {
};

callSearch();
// [END retail_search_product_with_boost_spec]
}

process.on('unhandledRejection', err => {
Expand Down
2 changes: 0 additions & 2 deletions retail/interactive-tutorials/search/search-with-facet-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -73,7 +72,6 @@ async function main() {
};

callSearch();
// [END retail_search_products_with_facet_spec]
}

process.on('unhandledRejection', err => {
Expand Down
2 changes: 0 additions & 2 deletions retail/interactive-tutorials/search/search-with-filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -75,7 +74,6 @@ async function main() {
};

callSearch();
// [END retail_search_for_products_with_filter]
}

process.on('unhandledRejection', err => {
Expand Down
2 changes: 0 additions & 2 deletions retail/interactive-tutorials/search/search-with-ordering.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -74,7 +73,6 @@ async function main() {
};

callSearch();
// [END retail_search_for_products_with_ordering]
}

process.on('unhandledRejection', err => {
Expand Down
4 changes: 0 additions & 4 deletions retail/interactive-tutorials/search/search-with-pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -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 => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -76,7 +74,6 @@ async function main() {
};

callSearch();
// [END retail_search_for_products_with_query_expansion_specification]
}

process.on('unhandledRejection', err => {
Expand Down

0 comments on commit f032a03

Please sign in to comment.