From d3a667052ca45b7950371e1a413f95fdf178855f Mon Sep 17 00:00:00 2001 From: Rebecca Taylor Date: Wed, 16 May 2018 15:54:55 -0700 Subject: [PATCH] Update sample region tags --- samples/analyze.js | 16 ++++++++-------- samples/quickstart.js | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/samples/analyze.js b/samples/analyze.js index b1181739..f58e4032 100644 --- a/samples/analyze.js +++ b/samples/analyze.js @@ -16,7 +16,7 @@ 'use strict'; function analyzeLabelsGCS(gcsUri) { - // [START analyze_labels_gcs] + // [START video_analyze_labels_gcs] // Imports the Google Cloud Video Intelligence library const video = require('@google-cloud/video-intelligence').v1; @@ -77,11 +77,11 @@ function analyzeLabelsGCS(gcsUri) { .catch(err => { console.error('ERROR:', err); }); - // [END analyze_labels_gcs] + // [END video_analyze_labels_gcs] } function analyzeLabelsLocal(path) { - // [START analyze_labels_local] + // [START video_analyze_labels_local] // Imports the Google Cloud Video Intelligence library + Node's fs library const video = require('@google-cloud/video-intelligence').v1; const fs = require('fs'); @@ -148,11 +148,11 @@ function analyzeLabelsLocal(path) { .catch(err => { console.error('ERROR:', err); }); - // [END analyze_labels_local] + // [END video_analyze_labels_local] } function analyzeShots(gcsUri) { - // [START analyze_shots] + // [START video_analyze_shots] // Imports the Google Cloud Video Intelligence library const video = require('@google-cloud/video-intelligence').v1; @@ -219,11 +219,11 @@ function analyzeShots(gcsUri) { .catch(err => { console.error('ERROR:', err); }); - // [END analyze_shots] + // [END video_analyze_shots] } function analyzeSafeSearch(gcsUri) { - // [START analyze_safe_search] + // [START video_analyze_explicit_content] // Imports the Google Cloud Video Intelligence library const video = require('@google-cloud/video-intelligence').v1; @@ -287,7 +287,7 @@ function analyzeSafeSearch(gcsUri) { .catch(err => { console.error('ERROR:', err); }); - // [END analyze_safe_search] + // [END video_analyze_explicit_content] } function analyzeVideoTranscription(gcsUri) { diff --git a/samples/quickstart.js b/samples/quickstart.js index a2297806..d09c139c 100644 --- a/samples/quickstart.js +++ b/samples/quickstart.js @@ -15,7 +15,7 @@ 'use strict'; -// [START videointelligence_quickstart] +// [START video_quickstart] // Imports the Google Cloud Video Intelligence library const videoIntelligence = require('@google-cloud/video-intelligence'); @@ -77,4 +77,4 @@ client .catch(err => { console.error('ERROR:', err); }); -// [END videointelligence_quickstart] +// [END video_quickstart]