Skip to content

Commit

Permalink
docs: updated samples in READMEs (#507)
Browse files Browse the repository at this point in the history
* changes without context

        autosynth cannot find the source of changes triggered by earlier changes in this
        repository, or by version upgrades to tools such as linters.

* chore: generate GAPIC metadata JSON file

PiperOrigin-RevId: 345596855

Source-Author: Google APIs <noreply@google.com>
Source-Date: Thu Dec 3 21:00:34 2020 -0800
Source-Repo: googleapis/googleapis
Source-Sha: d189e871205fea665a9648f7c4676f027495ccaf
Source-Link: googleapis/googleapis@d189e87
  • Loading branch information
yoshi-automation authored Dec 8, 2020
1 parent be158ab commit a611966
Show file tree
Hide file tree
Showing 8 changed files with 163 additions and 41 deletions.
4 changes: 2 additions & 2 deletions packages/google-cloud-videointelligence/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ has instructions for running the samples.

| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Analyze-person-detection-gcs | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-person-detection-gcs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze-person-detection-gcs.js,samples/README.md) |
| Analyze-person-detection | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-person-detection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze-person-detection.js,samples/README.md) |
| Analyze-streaming-annotation-to-storage | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-streaming-annotation-to-storage.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze-streaming-annotation-to-storage.js,samples/README.md) |
| Analyze-streaming-automl-classification | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-streaming-automl-classification.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze-streaming-automl-classification.js,samples/README.md) |
| Analyze-streaming-labels | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-streaming-labels.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze-streaming-labels.js,samples/README.md) |
Expand All @@ -135,8 +137,6 @@ has instructions for running the samples.
| Analyze.v1p2beta1 | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze.v1p2beta1.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze.v1p2beta1.js,samples/README.md) |
| Analyze_face_detection | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze_face_detection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze_face_detection.js,samples/README.md) |
| Analyze_face_detection_gcs | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze_face_detection_gcs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze_face_detection_gcs.js,samples/README.md) |
| Analyze_person_detection | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze_person_detection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze_person_detection.js,samples/README.md) |
| Analyze_person_detection_gcs | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze_person_detection_gcs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze_person_detection_gcs.js,samples/README.md) |
| Detect_logo | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/detect_logo.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/detect_logo.js,samples/README.md) |
| Detect_logo_gcs | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/detect_logo_gcs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/detect_logo_gcs.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
Expand Down
72 changes: 36 additions & 36 deletions packages/google-cloud-videointelligence/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

* [Before you begin](#before-you-begin)
* [Samples](#samples)
* [Analyze-person-detection-gcs](#analyze-person-detection-gcs)
* [Analyze-person-detection](#analyze-person-detection)
* [Analyze-streaming-annotation-to-storage](#analyze-streaming-annotation-to-storage)
* [Analyze-streaming-automl-classification](#analyze-streaming-automl-classification)
* [Analyze-streaming-labels](#analyze-streaming-labels)
Expand All @@ -22,8 +24,6 @@
* [Analyze.v1p2beta1](#analyze.v1p2beta1)
* [Analyze_face_detection](#analyze_face_detection)
* [Analyze_face_detection_gcs](#analyze_face_detection_gcs)
* [Analyze_person_detection](#analyze_person_detection)
* [Analyze_person_detection_gcs](#analyze_person_detection_gcs)
* [Detect_logo](#detect_logo)
* [Detect_logo_gcs](#detect_logo_gcs)
* [Quickstart](#quickstart)
Expand All @@ -43,6 +43,40 @@ Before running the samples, make sure you've followed the steps outlined in



### Analyze-person-detection-gcs

View the [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-person-detection-gcs.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze-person-detection-gcs.js,samples/README.md)

__Usage:__


`node samples/analyze-person-detection-gcs.js`


-----




### Analyze-person-detection

View the [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-person-detection.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze-person-detection.js,samples/README.md)

__Usage:__


`node samples/analyze-person-detection.js`


-----




### Analyze-streaming-annotation-to-storage

View the [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-streaming-annotation-to-storage.js).
Expand Down Expand Up @@ -213,40 +247,6 @@ __Usage:__



### Analyze_person_detection

View the [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze_person_detection.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze_person_detection.js,samples/README.md)

__Usage:__


`node samples/analyze_person_detection.js`


-----




### Analyze_person_detection_gcs

View the [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze_person_detection_gcs.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-video-intelligence&page=editor&open_in_editor=samples/analyze_person_detection_gcs.js,samples/README.md)

__Usage:__


`node samples/analyze_person_detection_gcs.js`


-----




### Detect_logo

View the [source code](https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/detect_logo.js).
Expand Down
22 changes: 22 additions & 0 deletions packages/google-cloud-videointelligence/src/v1/gapic_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"schema": "1.0",
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "typescript",
"protoPackage": "google.cloud.videointelligence.v1",
"libraryPackage": "@google-cloud/video-intelligence",
"services": {"VideoIntelligenceService": {"clients": {
"grpc": {
"libraryClient": "VideoIntelligenceServiceClient",
"rpcs": {"AnnotateVideo": {
"methods": ["annotateVideo"]
}}
},
"grpc-fallback": {
"libraryClient": "VideoIntelligenceServiceClient",
"rpcs": {,"AnnotateVideo": {
"methods": ["annotateVideo"]
}}
}
}
}}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"schema": "1.0",
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "typescript",
"protoPackage": "google.cloud.videointelligence.v1beta2",
"libraryPackage": "@google-cloud/video-intelligence",
"services": {"VideoIntelligenceService": {"clients": {
"grpc": {
"libraryClient": "VideoIntelligenceServiceClient",
"rpcs": {"AnnotateVideo": {
"methods": ["annotateVideo"]
}}
},
"grpc-fallback": {
"libraryClient": "VideoIntelligenceServiceClient",
"rpcs": {,"AnnotateVideo": {
"methods": ["annotateVideo"]
}}
}
}
}}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"schema": "1.0",
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "typescript",
"protoPackage": "google.cloud.videointelligence.v1p1beta1",
"libraryPackage": "@google-cloud/video-intelligence",
"services": {"VideoIntelligenceService": {"clients": {
"grpc": {
"libraryClient": "VideoIntelligenceServiceClient",
"rpcs": {"AnnotateVideo": {
"methods": ["annotateVideo"]
}}
},
"grpc-fallback": {
"libraryClient": "VideoIntelligenceServiceClient",
"rpcs": {,"AnnotateVideo": {
"methods": ["annotateVideo"]
}}
}
}
}}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"schema": "1.0",
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "typescript",
"protoPackage": "google.cloud.videointelligence.v1p2beta1",
"libraryPackage": "@google-cloud/video-intelligence",
"services": {"VideoIntelligenceService": {"clients": {
"grpc": {
"libraryClient": "VideoIntelligenceServiceClient",
"rpcs": {"AnnotateVideo": {
"methods": ["annotateVideo"]
}}
},
"grpc-fallback": {
"libraryClient": "VideoIntelligenceServiceClient",
"rpcs": {,"AnnotateVideo": {
"methods": ["annotateVideo"]
}}
}
}
}}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"schema": "1.0",
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "typescript",
"protoPackage": "google.cloud.videointelligence.v1p3beta1",
"libraryPackage": "@google-cloud/video-intelligence",
"services": {"StreamingVideoIntelligenceService": {"clients": {
"grpc": {
"libraryClient": "StreamingVideoIntelligenceServiceClient",
"rpcs": {"StreamingAnnotateVideo": {
"methods": ["streamingAnnotateVideo"]
}}
},
"grpc-fallback": {
"libraryClient": "StreamingVideoIntelligenceServiceClient",
"rpcs": {}
}
}
},"VideoIntelligenceService": {"clients": {
"grpc": {
"libraryClient": "VideoIntelligenceServiceClient",
"rpcs": {"AnnotateVideo": {
"methods": ["annotateVideo"]
}}
},
"grpc-fallback": {
"libraryClient": "VideoIntelligenceServiceClient",
"rpcs": {,"AnnotateVideo": {
"methods": ["annotateVideo"]
}}
}
}
}}
}
6 changes: 3 additions & 3 deletions packages/google-cloud-videointelligence/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/nodejs-video-intelligence.git",
"sha": "2d3aa086d02e3ee0f238c4d81daeefbe2b355c11"
"sha": "eec2a653aa635716c2d455152867ea2eef10d284"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "2f019bf70bfe06f1e2af1b04011b0a2405190e43",
"internalRef": "343202295"
"sha": "d189e871205fea665a9648f7c4676f027495ccaf",
"internalRef": "345596855"
}
},
{
Expand Down

0 comments on commit a611966

Please sign in to comment.