Skip to content

Commit a5622fc

Browse files
docs(samples): add example tags to generated samples (#630)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 408439482 Source-Link: googleapis/googleapis@b9f6184 Source-Link: googleapis/googleapis-gen@eb888bc Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWI4ODhiYzIxNGVmYzdiZjQzYmY0NjM0YjQ3MDI1NDU2NWE2NTlhNSJ9
1 parent 708233d commit a5622fc

18 files changed

+289
-303
lines changed

packages/google-cloud-videointelligence/linkinator.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"img.shields.io"
77
],
88
"silent": true,
9-
"concurrency": 10
9+
"concurrency": 5
1010
}

packages/google-cloud-videointelligence/samples/generated/v1/video_intelligence_service.annotate_video.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ function main(features) {
2121
*/
2222
/**
2323
* Input video location. Currently, only
24-
* [Cloud Storage](https://cloud.google.com/storage/) URIs are
24+
* Cloud Storage (https://cloud.google.com/storage/) URIs are
2525
* supported. URIs must be specified in the following format:
2626
* `gs://bucket-id/object-id` (other URI formats return
27-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
28-
* more information, see [Request
29-
* URIs](https://cloud.google.com/storage/docs/request-endpoints). To identify
27+
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For
28+
* more information, see Request
29+
* URIs (https://cloud.google.com/storage/docs/request-endpoints). To identify
3030
* multiple videos, a video URI may include wildcards in the `object-id`.
3131
* Supported wildcards: '*' to match 0 or more characters;
3232
* '?' to match 1 character. If unset, the input video should be embedded
@@ -46,15 +46,15 @@ function main(features) {
4646
/**
4747
* Additional video context and/or feature-specific parameters.
4848
*/
49-
// const videoContext = ''
49+
// const videoContext = {}
5050
/**
5151
* Optional. Location where the output (in JSON format) should be stored.
52-
* Currently, only [Cloud Storage](https://cloud.google.com/storage/)
52+
* Currently, only Cloud Storage (https://cloud.google.com/storage/)
5353
* URIs are supported. These must be specified in the following format:
5454
* `gs://bucket-id/object-id` (other URI formats return
55-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
56-
* more information, see [Request
57-
* URIs](https://cloud.google.com/storage/docs/request-endpoints).
55+
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For
56+
* more information, see Request
57+
* URIs (https://cloud.google.com/storage/docs/request-endpoints).
5858
*/
5959
// const outputUri = 'abc123'
6060
/**
@@ -72,7 +72,7 @@ function main(features) {
7272
// Instantiates a client
7373
const videointelligenceClient = new VideoIntelligenceServiceClient();
7474

75-
async function annotateVideo() {
75+
async function callAnnotateVideo() {
7676
// Construct request
7777
const request = {
7878
features,
@@ -84,7 +84,7 @@ function main(features) {
8484
console.log(response);
8585
}
8686

87-
annotateVideo();
87+
callAnnotateVideo();
8888
// [END videointelligence_v1_generated_VideoIntelligenceService_AnnotateVideo_async]
8989
}
9090

packages/google-cloud-videointelligence/samples/generated/v1beta2/video_intelligence_service.annotate_video.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ function main(features) {
2121
*/
2222
/**
2323
* Input video location. Currently, only
24-
* [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
24+
* Google Cloud Storage (https://cloud.google.com/storage/) URIs are
2525
* supported, which must be specified in the following format:
2626
* `gs://bucket-id/object-id` (other URI formats return
27-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
28-
* more information, see [Request
29-
* URIs](https://cloud.google.com/storage/docs/request-endpoints). A video URI
27+
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For
28+
* more information, see Request
29+
* URIs (https://cloud.google.com/storage/docs/request-endpoints). A video URI
3030
* may include wildcards in `object-id`, and thus identify multiple videos.
3131
* Supported wildcards: '*' to match 0 or more characters;
3232
* '?' to match 1 character. If unset, the input video should be embedded
@@ -46,15 +46,15 @@ function main(features) {
4646
/**
4747
* Additional video context and/or feature-specific parameters.
4848
*/
49-
// const videoContext = ''
49+
// const videoContext = {}
5050
/**
5151
* Optional. Location where the output (in JSON format) should be stored.
52-
* Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
52+
* Currently, only Google Cloud Storage (https://cloud.google.com/storage/)
5353
* URIs are supported, which must be specified in the following format:
5454
* `gs://bucket-id/object-id` (other URI formats return
55-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
56-
* more information, see [Request
57-
* URIs](https://cloud.google.com/storage/docs/request-endpoints).
55+
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For
56+
* more information, see Request
57+
* URIs (https://cloud.google.com/storage/docs/request-endpoints).
5858
*/
5959
// const outputUri = 'abc123'
6060
/**
@@ -71,7 +71,7 @@ function main(features) {
7171
// Instantiates a client
7272
const videointelligenceClient = new VideoIntelligenceServiceClient();
7373

74-
async function annotateVideo() {
74+
async function callAnnotateVideo() {
7575
// Construct request
7676
const request = {
7777
features,
@@ -83,7 +83,7 @@ function main(features) {
8383
console.log(response);
8484
}
8585

86-
annotateVideo();
86+
callAnnotateVideo();
8787
// [END videointelligence_v1beta2_generated_VideoIntelligenceService_AnnotateVideo_async]
8888
}
8989

packages/google-cloud-videointelligence/samples/generated/v1p1beta1/video_intelligence_service.annotate_video.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ function main(features) {
2121
*/
2222
/**
2323
* Input video location. Currently, only
24-
* [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
24+
* Google Cloud Storage (https://cloud.google.com/storage/) URIs are
2525
* supported, which must be specified in the following format:
2626
* `gs://bucket-id/object-id` (other URI formats return
27-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
28-
* more information, see [Request
29-
* URIs](https://cloud.google.com/storage/docs/request-endpoints). A video URI
27+
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For
28+
* more information, see Request
29+
* URIs (https://cloud.google.com/storage/docs/request-endpoints). A video URI
3030
* may include wildcards in `object-id`, and thus identify multiple videos.
3131
* Supported wildcards: '*' to match 0 or more characters;
3232
* '?' to match 1 character. If unset, the input video should be embedded
@@ -46,15 +46,15 @@ function main(features) {
4646
/**
4747
* Additional video context and/or feature-specific parameters.
4848
*/
49-
// const videoContext = ''
49+
// const videoContext = {}
5050
/**
5151
* Optional. Location where the output (in JSON format) should be stored.
52-
* Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
52+
* Currently, only Google Cloud Storage (https://cloud.google.com/storage/)
5353
* URIs are supported, which must be specified in the following format:
5454
* `gs://bucket-id/object-id` (other URI formats return
55-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
56-
* more information, see [Request
57-
* URIs](https://cloud.google.com/storage/docs/request-endpoints).
55+
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For
56+
* more information, see Request
57+
* URIs (https://cloud.google.com/storage/docs/request-endpoints).
5858
*/
5959
// const outputUri = 'abc123'
6060
/**
@@ -71,7 +71,7 @@ function main(features) {
7171
// Instantiates a client
7272
const videointelligenceClient = new VideoIntelligenceServiceClient();
7373

74-
async function annotateVideo() {
74+
async function callAnnotateVideo() {
7575
// Construct request
7676
const request = {
7777
features,
@@ -83,7 +83,7 @@ function main(features) {
8383
console.log(response);
8484
}
8585

86-
annotateVideo();
86+
callAnnotateVideo();
8787
// [END videointelligence_v1p1beta1_generated_VideoIntelligenceService_AnnotateVideo_async]
8888
}
8989

packages/google-cloud-videointelligence/samples/generated/v1p2beta1/video_intelligence_service.annotate_video.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ function main(features) {
2121
*/
2222
/**
2323
* Input video location. Currently, only
24-
* [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
24+
* Google Cloud Storage (https://cloud.google.com/storage/) URIs are
2525
* supported, which must be specified in the following format:
2626
* `gs://bucket-id/object-id` (other URI formats return
27-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
28-
* [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
27+
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For more information, see
28+
* Request URIs (https://cloud.google.com/storage/docs/request-endpoints).
2929
* A video URI may include wildcards in `object-id`, and thus identify
3030
* multiple videos. Supported wildcards: '*' to match 0 or more characters;
3131
* '?' to match 1 character. If unset, the input video should be embedded
@@ -45,14 +45,14 @@ function main(features) {
4545
/**
4646
* Additional video context and/or feature-specific parameters.
4747
*/
48-
// const videoContext = ''
48+
// const videoContext = {}
4949
/**
5050
* Optional. Location where the output (in JSON format) should be stored.
51-
* Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
51+
* Currently, only Google Cloud Storage (https://cloud.google.com/storage/)
5252
* URIs are supported, which must be specified in the following format:
5353
* `gs://bucket-id/object-id` (other URI formats return
54-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
55-
* [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
54+
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For more information, see
55+
* Request URIs (https://cloud.google.com/storage/docs/request-endpoints).
5656
*/
5757
// const outputUri = 'abc123'
5858
/**
@@ -69,7 +69,7 @@ function main(features) {
6969
// Instantiates a client
7070
const videointelligenceClient = new VideoIntelligenceServiceClient();
7171

72-
async function annotateVideo() {
72+
async function callAnnotateVideo() {
7373
// Construct request
7474
const request = {
7575
features,
@@ -81,7 +81,7 @@ function main(features) {
8181
console.log(response);
8282
}
8383

84-
annotateVideo();
84+
callAnnotateVideo();
8585
// [END videointelligence_v1p2beta1_generated_VideoIntelligenceService_AnnotateVideo_async]
8686
}
8787

packages/google-cloud-videointelligence/samples/generated/v1p3beta1/streaming_video_intelligence_service.streaming_annotate_video.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function main() {
2424
* request. The first `AnnotateStreamingVideoRequest` message must only
2525
* contain a `video_config` message.
2626
*/
27-
// const videoConfig = ''
27+
// const videoConfig = {}
2828
/**
2929
* The video data to be annotated. Chunks of video data are sequentially
3030
* sent in `StreamingAnnotateVideoRequest` messages. Except the initial
@@ -43,7 +43,7 @@ function main() {
4343
// Instantiates a client
4444
const videointelligenceClient = new StreamingVideoIntelligenceServiceClient();
4545

46-
async function streamingAnnotateVideo() {
46+
async function callStreamingAnnotateVideo() {
4747
// Construct request
4848
const request = {};
4949

@@ -62,7 +62,7 @@ function main() {
6262
stream.end();
6363
}
6464

65-
streamingAnnotateVideo();
65+
callStreamingAnnotateVideo();
6666
// [END videointelligence_v1p3beta1_generated_StreamingVideoIntelligenceService_StreamingAnnotateVideo_async]
6767
}
6868

packages/google-cloud-videointelligence/samples/generated/v1p3beta1/video_intelligence_service.annotate_video.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ function main(features) {
2121
*/
2222
/**
2323
* Input video location. Currently, only
24-
* [Cloud Storage](https://cloud.google.com/storage/) URIs are
24+
* Cloud Storage (https://cloud.google.com/storage/) URIs are
2525
* supported. URIs must be specified in the following format:
2626
* `gs://bucket-id/object-id` (other URI formats return
27-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
28-
* more information, see [Request
29-
* URIs](https://cloud.google.com/storage/docs/request-endpoints). To identify
27+
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For
28+
* more information, see Request
29+
* URIs (https://cloud.google.com/storage/docs/request-endpoints). To identify
3030
* multiple videos, a video URI may include wildcards in the `object-id`.
3131
* Supported wildcards: '*' to match 0 or more characters;
3232
* '?' to match 1 character. If unset, the input video should be embedded
@@ -46,15 +46,15 @@ function main(features) {
4646
/**
4747
* Additional video context and/or feature-specific parameters.
4848
*/
49-
// const videoContext = ''
49+
// const videoContext = {}
5050
/**
5151
* Optional. Location where the output (in JSON format) should be stored.
52-
* Currently, only [Cloud Storage](https://cloud.google.com/storage/)
52+
* Currently, only Cloud Storage (https://cloud.google.com/storage/)
5353
* URIs are supported. These must be specified in the following format:
5454
* `gs://bucket-id/object-id` (other URI formats return
55-
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
56-
* more information, see [Request
57-
* URIs](https://cloud.google.com/storage/docs/request-endpoints).
55+
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For
56+
* more information, see Request
57+
* URIs (https://cloud.google.com/storage/docs/request-endpoints).
5858
*/
5959
// const outputUri = 'abc123'
6060
/**
@@ -72,7 +72,7 @@ function main(features) {
7272
// Instantiates a client
7373
const videointelligenceClient = new VideoIntelligenceServiceClient();
7474

75-
async function annotateVideo() {
75+
async function callAnnotateVideo() {
7676
// Construct request
7777
const request = {
7878
features,
@@ -84,7 +84,7 @@ function main(features) {
8484
console.log(response);
8585
}
8686

87-
annotateVideo();
87+
callAnnotateVideo();
8888
// [END videointelligence_v1p3beta1_generated_VideoIntelligenceService_AnnotateVideo_async]
8989
}
9090

0 commit comments

Comments
 (0)