Skip to content

Commit

Permalink
docs(samples): add example tags to generated samples (#630)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 408439482

Source-Link: googleapis/googleapis@b9f6184

Source-Link: googleapis/googleapis-gen@eb888bc
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWI4ODhiYzIxNGVmYzdiZjQzYmY0NjM0YjQ3MDI1NDU2NWE2NTlhNSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Nov 10, 2021
1 parent 708233d commit a5622fc
Show file tree
Hide file tree
Showing 18 changed files with 289 additions and 303 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"img.shields.io"
],
"silent": true,
"concurrency": 10
"concurrency": 5
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ function main(features) {
*/
/**
* Input video location. Currently, only
* [Cloud Storage](https://cloud.google.com/storage/) URIs are
* Cloud Storage (https://cloud.google.com/storage/) URIs are
* supported. URIs must be specified in the following format:
* `gs://bucket-id/object-id` (other URI formats return
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
* more information, see [Request
* URIs](https://cloud.google.com/storage/docs/request-endpoints). To identify
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For
* more information, see Request
* URIs (https://cloud.google.com/storage/docs/request-endpoints). To identify
* multiple videos, a video URI may include wildcards in the `object-id`.
* Supported wildcards: '*' to match 0 or more characters;
* '?' to match 1 character. If unset, the input video should be embedded
Expand All @@ -46,15 +46,15 @@ function main(features) {
/**
* Additional video context and/or feature-specific parameters.
*/
// const videoContext = ''
// const videoContext = {}
/**
* Optional. Location where the output (in JSON format) should be stored.
* Currently, only [Cloud Storage](https://cloud.google.com/storage/)
* Currently, only Cloud Storage (https://cloud.google.com/storage/)
* URIs are supported. These must be specified in the following format:
* `gs://bucket-id/object-id` (other URI formats return
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
* more information, see [Request
* URIs](https://cloud.google.com/storage/docs/request-endpoints).
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For
* more information, see Request
* URIs (https://cloud.google.com/storage/docs/request-endpoints).
*/
// const outputUri = 'abc123'
/**
Expand All @@ -72,7 +72,7 @@ function main(features) {
// Instantiates a client
const videointelligenceClient = new VideoIntelligenceServiceClient();

async function annotateVideo() {
async function callAnnotateVideo() {
// Construct request
const request = {
features,
Expand All @@ -84,7 +84,7 @@ function main(features) {
console.log(response);
}

annotateVideo();
callAnnotateVideo();
// [END videointelligence_v1_generated_VideoIntelligenceService_AnnotateVideo_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ function main(features) {
*/
/**
* Input video location. Currently, only
* [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
* Google Cloud Storage (https://cloud.google.com/storage/) URIs are
* supported, which must be specified in the following format:
* `gs://bucket-id/object-id` (other URI formats return
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
* more information, see [Request
* URIs](https://cloud.google.com/storage/docs/request-endpoints). A video URI
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For
* more information, see Request
* URIs (https://cloud.google.com/storage/docs/request-endpoints). A video URI
* may include wildcards in `object-id`, and thus identify multiple videos.
* Supported wildcards: '*' to match 0 or more characters;
* '?' to match 1 character. If unset, the input video should be embedded
Expand All @@ -46,15 +46,15 @@ function main(features) {
/**
* Additional video context and/or feature-specific parameters.
*/
// const videoContext = ''
// const videoContext = {}
/**
* Optional. Location where the output (in JSON format) should be stored.
* Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
* Currently, only Google Cloud Storage (https://cloud.google.com/storage/)
* URIs are supported, which must be specified in the following format:
* `gs://bucket-id/object-id` (other URI formats return
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
* more information, see [Request
* URIs](https://cloud.google.com/storage/docs/request-endpoints).
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For
* more information, see Request
* URIs (https://cloud.google.com/storage/docs/request-endpoints).
*/
// const outputUri = 'abc123'
/**
Expand All @@ -71,7 +71,7 @@ function main(features) {
// Instantiates a client
const videointelligenceClient = new VideoIntelligenceServiceClient();

async function annotateVideo() {
async function callAnnotateVideo() {
// Construct request
const request = {
features,
Expand All @@ -83,7 +83,7 @@ function main(features) {
console.log(response);
}

annotateVideo();
callAnnotateVideo();
// [END videointelligence_v1beta2_generated_VideoIntelligenceService_AnnotateVideo_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ function main(features) {
*/
/**
* Input video location. Currently, only
* [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
* Google Cloud Storage (https://cloud.google.com/storage/) URIs are
* supported, which must be specified in the following format:
* `gs://bucket-id/object-id` (other URI formats return
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
* more information, see [Request
* URIs](https://cloud.google.com/storage/docs/request-endpoints). A video URI
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For
* more information, see Request
* URIs (https://cloud.google.com/storage/docs/request-endpoints). A video URI
* may include wildcards in `object-id`, and thus identify multiple videos.
* Supported wildcards: '*' to match 0 or more characters;
* '?' to match 1 character. If unset, the input video should be embedded
Expand All @@ -46,15 +46,15 @@ function main(features) {
/**
* Additional video context and/or feature-specific parameters.
*/
// const videoContext = ''
// const videoContext = {}
/**
* Optional. Location where the output (in JSON format) should be stored.
* Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
* Currently, only Google Cloud Storage (https://cloud.google.com/storage/)
* URIs are supported, which must be specified in the following format:
* `gs://bucket-id/object-id` (other URI formats return
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
* more information, see [Request
* URIs](https://cloud.google.com/storage/docs/request-endpoints).
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For
* more information, see Request
* URIs (https://cloud.google.com/storage/docs/request-endpoints).
*/
// const outputUri = 'abc123'
/**
Expand All @@ -71,7 +71,7 @@ function main(features) {
// Instantiates a client
const videointelligenceClient = new VideoIntelligenceServiceClient();

async function annotateVideo() {
async function callAnnotateVideo() {
// Construct request
const request = {
features,
Expand All @@ -83,7 +83,7 @@ function main(features) {
console.log(response);
}

annotateVideo();
callAnnotateVideo();
// [END videointelligence_v1p1beta1_generated_VideoIntelligenceService_AnnotateVideo_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ function main(features) {
*/
/**
* Input video location. Currently, only
* [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
* Google Cloud Storage (https://cloud.google.com/storage/) URIs are
* supported, which must be specified in the following format:
* `gs://bucket-id/object-id` (other URI formats return
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
* [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For more information, see
* Request URIs (https://cloud.google.com/storage/docs/request-endpoints).
* A video URI may include wildcards in `object-id`, and thus identify
* multiple videos. Supported wildcards: '*' to match 0 or more characters;
* '?' to match 1 character. If unset, the input video should be embedded
Expand All @@ -45,14 +45,14 @@ function main(features) {
/**
* Additional video context and/or feature-specific parameters.
*/
// const videoContext = ''
// const videoContext = {}
/**
* Optional. Location where the output (in JSON format) should be stored.
* Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
* Currently, only Google Cloud Storage (https://cloud.google.com/storage/)
* URIs are supported, which must be specified in the following format:
* `gs://bucket-id/object-id` (other URI formats return
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
* [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For more information, see
* Request URIs (https://cloud.google.com/storage/docs/request-endpoints).
*/
// const outputUri = 'abc123'
/**
Expand All @@ -69,7 +69,7 @@ function main(features) {
// Instantiates a client
const videointelligenceClient = new VideoIntelligenceServiceClient();

async function annotateVideo() {
async function callAnnotateVideo() {
// Construct request
const request = {
features,
Expand All @@ -81,7 +81,7 @@ function main(features) {
console.log(response);
}

annotateVideo();
callAnnotateVideo();
// [END videointelligence_v1p2beta1_generated_VideoIntelligenceService_AnnotateVideo_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function main() {
* request. The first `AnnotateStreamingVideoRequest` message must only
* contain a `video_config` message.
*/
// const videoConfig = ''
// const videoConfig = {}
/**
* The video data to be annotated. Chunks of video data are sequentially
* sent in `StreamingAnnotateVideoRequest` messages. Except the initial
Expand All @@ -43,7 +43,7 @@ function main() {
// Instantiates a client
const videointelligenceClient = new StreamingVideoIntelligenceServiceClient();

async function streamingAnnotateVideo() {
async function callStreamingAnnotateVideo() {
// Construct request
const request = {};

Expand All @@ -62,7 +62,7 @@ function main() {
stream.end();
}

streamingAnnotateVideo();
callStreamingAnnotateVideo();
// [END videointelligence_v1p3beta1_generated_StreamingVideoIntelligenceService_StreamingAnnotateVideo_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ function main(features) {
*/
/**
* Input video location. Currently, only
* [Cloud Storage](https://cloud.google.com/storage/) URIs are
* Cloud Storage (https://cloud.google.com/storage/) URIs are
* supported. URIs must be specified in the following format:
* `gs://bucket-id/object-id` (other URI formats return
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
* more information, see [Request
* URIs](https://cloud.google.com/storage/docs/request-endpoints). To identify
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For
* more information, see Request
* URIs (https://cloud.google.com/storage/docs/request-endpoints). To identify
* multiple videos, a video URI may include wildcards in the `object-id`.
* Supported wildcards: '*' to match 0 or more characters;
* '?' to match 1 character. If unset, the input video should be embedded
Expand All @@ -46,15 +46,15 @@ function main(features) {
/**
* Additional video context and/or feature-specific parameters.
*/
// const videoContext = ''
// const videoContext = {}
/**
* Optional. Location where the output (in JSON format) should be stored.
* Currently, only [Cloud Storage](https://cloud.google.com/storage/)
* Currently, only Cloud Storage (https://cloud.google.com/storage/)
* URIs are supported. These must be specified in the following format:
* `gs://bucket-id/object-id` (other URI formats return
* [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
* more information, see [Request
* URIs](https://cloud.google.com/storage/docs/request-endpoints).
* google.rpc.Code.INVALID_ARGUMENT google.rpc.Code.INVALID_ARGUMENT). For
* more information, see Request
* URIs (https://cloud.google.com/storage/docs/request-endpoints).
*/
// const outputUri = 'abc123'
/**
Expand All @@ -72,7 +72,7 @@ function main(features) {
// Instantiates a client
const videointelligenceClient = new VideoIntelligenceServiceClient();

async function annotateVideo() {
async function callAnnotateVideo() {
// Construct request
const request = {
features,
Expand All @@ -84,7 +84,7 @@ function main(features) {
console.log(response);
}

annotateVideo();
callAnnotateVideo();
// [END videointelligence_v1p3beta1_generated_VideoIntelligenceService_AnnotateVideo_async]
}

Expand Down
Loading

0 comments on commit a5622fc

Please sign in to comment.