Skip to content

Commit 97d9dd5

Browse files
Merge branch 'GoogleCloudPlatform:main' into model-armor-enable-floor-settings-tests
2 parents c3dacf1 + 165b528 commit 97d9dd5

30 files changed

+1028
-5
lines changed

retail/interactive-tutorials/events/import-user-events-big-query.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
// [START retail_import_user_events_from_big_query]
1415

1516
'use strict';
1617

@@ -82,3 +83,5 @@ main(
8283
return argv.length ? argv : ['user_events'];
8384
})()
8485
);
86+
87+
// [END retail_import_user_events_from_big_query]

retail/interactive-tutorials/events/import-user-events-gcs.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
// [START retail_import_user_events_from_gcs]
1415

1516
'use strict';
1617

@@ -89,3 +90,5 @@ main(
8990
return argv.length ? argv : [process.env['EVENTS_BUCKET_NAME']];
9091
})()
9192
);
93+
94+
// [END retail_import_user_events_from_gcs]

retail/interactive-tutorials/events/import-user-events-inline.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
// [START retail_import_user_events_from_inline_source]
1415

1516
'use strict';
1617

@@ -87,3 +88,4 @@ process.on('unhandledRejection', err => {
8788
});
8889

8990
main();
91+
// [END retail_import_user_events_from_inline_source]

retail/interactive-tutorials/events/purge-user-events.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
// [START retail_purge_user_events]
1415

1516
'use strict';
1617

@@ -68,3 +69,4 @@ process.on('unhandledRejection', err => {
6869
});
6970

7071
main();
72+
// [END retail_purge_user_events]

retail/interactive-tutorials/events/rejoin-user-events.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
// [START retail_rejoin_user_events]
1415

1516
'use strict';
1617

@@ -72,3 +73,5 @@ process.on('unhandledRejection', err => {
7273
});
7374

7475
main();
76+
77+
// [END retail_rejoin_user_events]

retail/interactive-tutorials/events/write-user-event.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
'use strict';
1616

17+
// [START retail_write_user_event]
1718
async function main() {
1819
// Imports the Google Cloud client library.
1920
const {UserEventServiceClient} = require('@google-cloud/retail').v2;
@@ -66,3 +67,4 @@ process.on('unhandledRejection', err => {
6667
});
6768

6869
main();
70+
// [END retail_write_user_event]

retail/interactive-tutorials/product/add-fulfillment-places.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
'use strict';
16-
16+
// [START retail_add_fulfillment_places]
1717
async function main(generatedProductId) {
1818
// Imports the Google Cloud client library.
1919
const {ProductServiceClient} = require('@google-cloud/retail').v2;
@@ -89,3 +89,4 @@ process.on('unhandledRejection', err => {
8989
});
9090

9191
main(...process.argv.slice(2));
92+
// [END retail_add_fulfillment_places]

retail/interactive-tutorials/product/import-products-inline-source.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
'use strict';
16-
16+
// [START retail_import_products_from_inline_source]
1717
async function main(id1, id2) {
1818
// Imports the Google Cloud client library.
1919
const {ProductServiceClient} = require('@google-cloud/retail').v2;
@@ -126,3 +126,4 @@ process.on('unhandledRejection', err => {
126126
});
127127

128128
main(...process.argv.slice(2));
129+
// [END retail_import_products_from_inline_source]

retail/interactive-tutorials/product/remove-fulfillment-places.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
'use strict';
1616

17+
// [START retail_remove_fulfillment_places]
18+
1719
async function main(generatedProductId) {
1820
// Imports the Google Cloud client library.
1921
const {ProductServiceClient} = require('@google-cloud/retail').v2;
@@ -84,3 +86,5 @@ process.on('unhandledRejection', err => {
8486
});
8587

8688
main(...process.argv.slice(2));
89+
90+
// [END retail_remove_fulfillment_places]

retail/interactive-tutorials/product/set-inventory.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14+
// [START retail_set_inventory]
1415

1516
'use strict';
1617

@@ -99,3 +100,4 @@ process.on('unhandledRejection', err => {
99100
});
100101

101102
main(...process.argv.slice(2));
103+
// [END retail_set_inventory]

0 commit comments

Comments
 (0)