Skip to content

Commit eca9a28

Browse files
chore: migrate videointelligence to the PHP microgenerator (#542)
Committer: @miraleung PiperOrigin-RevId: 371236895 Source-Link: googleapis/googleapis@1c56e2c Source-Link: googleapis/googleapis-gen@2878a8e
1 parent 5064d44 commit eca9a28

File tree

5 files changed

+37
-27
lines changed

5 files changed

+37
-27
lines changed

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"skip": [
44
"https://codecov.io/gh/googleapis/",
55
"www.googleapis.com",
6-
"img.shields.io",
7-
"https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-face-detection-gcs.js",
8-
"https://github.com/googleapis/nodejs-video-intelligence/blob/master/samples/analyze-face-detection.js"
6+
"img.shields.io"
97
],
108
"silent": true,
119
"concurrency": 10

packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1beta2/video_intelligence.proto

+6-4
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ message AnnotateVideoRequest {
6464
// supported, which must be specified in the following format:
6565
// `gs://bucket-id/object-id` (other URI formats return
6666
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
67-
// more information, see [Request URIs](https://cloud.google.com/storage/docs/request-endpoints). A video
68-
// URI may include wildcards in `object-id`, and thus identify multiple
69-
// videos. Supported wildcards: '*' to match 0 or more characters;
67+
// more information, see [Request
68+
// URIs](https://cloud.google.com/storage/docs/request-endpoints). A video URI
69+
// may include wildcards in `object-id`, and thus identify multiple videos.
70+
// Supported wildcards: '*' to match 0 or more characters;
7071
// '?' to match 1 character. If unset, the input video should be embedded
7172
// in the request as `input_content`. If set, `input_content` should be unset.
7273
string input_uri = 1;
@@ -87,7 +88,8 @@ message AnnotateVideoRequest {
8788
// URIs are supported, which must be specified in the following format:
8889
// `gs://bucket-id/object-id` (other URI formats return
8990
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
90-
// more information, see [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
91+
// more information, see [Request
92+
// URIs](https://cloud.google.com/storage/docs/request-endpoints).
9193
string output_uri = 4 [(google.api.field_behavior) = OPTIONAL];
9294

9395
// Optional. Cloud region where annotation should take place. Supported cloud

packages/google-cloud-videointelligence/protos/google/cloud/videointelligence/v1p1beta1/video_intelligence.proto

+16-10
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ option ruby_package = "Google::Cloud::VideoIntelligence::V1p1beta1";
3636
// Service that implements Google Cloud Video Intelligence API.
3737
service VideoIntelligenceService {
3838
option (google.api.default_host) = "videointelligence.googleapis.com";
39-
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
39+
option (google.api.oauth_scopes) =
40+
"https://www.googleapis.com/auth/cloud-platform";
4041

4142
// Performs asynchronous video annotation. Progress and results can be
4243
// retrieved through the `google.longrunning.Operations` interface.
4344
// `Operation.metadata` contains `AnnotateVideoProgress` (progress).
4445
// `Operation.response` contains `AnnotateVideoResponse` (results).
45-
rpc AnnotateVideo(AnnotateVideoRequest) returns (google.longrunning.Operation) {
46+
rpc AnnotateVideo(AnnotateVideoRequest)
47+
returns (google.longrunning.Operation) {
4648
option (google.api.http) = {
4749
post: "/v1p1beta1/videos:annotate"
4850
body: "*"
@@ -61,10 +63,11 @@ message AnnotateVideoRequest {
6163
// [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
6264
// supported, which must be specified in the following format:
6365
// `gs://bucket-id/object-id` (other URI formats return
64-
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
65-
// [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
66-
// A video URI may include wildcards in `object-id`, and thus identify
67-
// multiple videos. Supported wildcards: '*' to match 0 or more characters;
66+
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
67+
// more information, see [Request
68+
// URIs](https://cloud.google.com/storage/docs/request-endpoints). A video URI
69+
// may include wildcards in `object-id`, and thus identify multiple videos.
70+
// Supported wildcards: '*' to match 0 or more characters;
6871
// '?' to match 1 character. If unset, the input video should be embedded
6972
// in the request as `input_content`. If set, `input_content` should be unset.
7073
string input_uri = 1;
@@ -84,8 +87,9 @@ message AnnotateVideoRequest {
8487
// Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
8588
// URIs are supported, which must be specified in the following format:
8689
// `gs://bucket-id/object-id` (other URI formats return
87-
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
88-
// [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
90+
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
91+
// more information, see [Request
92+
// URIs](https://cloud.google.com/storage/docs/request-endpoints).
8993
string output_uri = 4 [(google.api.field_behavior) = OPTIONAL];
9094

9195
// Optional. Cloud region where annotation should take place. Supported cloud
@@ -316,15 +320,17 @@ message SpeechTranscriptionConfig {
316320
bool filter_profanity = 3 [(google.api.field_behavior) = OPTIONAL];
317321

318322
// Optional. A means to provide context to assist the speech recognition.
319-
repeated SpeechContext speech_contexts = 4 [(google.api.field_behavior) = OPTIONAL];
323+
repeated SpeechContext speech_contexts = 4
324+
[(google.api.field_behavior) = OPTIONAL];
320325

321326
// Optional. If 'true', adds punctuation to recognition result hypotheses.
322327
// This feature is only available in select languages. Setting this for
323328
// requests in other languages has no effect at all. The default 'false' value
324329
// does not add punctuation to result hypotheses. NOTE: "This is currently
325330
// offered as an experimental service, complimentary to all users. In the
326331
// future this may be exclusively available as a premium feature."
327-
bool enable_automatic_punctuation = 5 [(google.api.field_behavior) = OPTIONAL];
332+
bool enable_automatic_punctuation = 5
333+
[(google.api.field_behavior) = OPTIONAL];
328334

329335
// Optional. For file formats, such as MXF or MKV, supporting multiple audio
330336
// tracks, specify up to two tracks. Default: track 0.

packages/google-cloud-videointelligence/src/v1beta2/video_intelligence_service_client.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,10 @@ export class VideoIntelligenceServiceClient {
369369
* supported, which must be specified in the following format:
370370
* `gs://bucket-id/object-id` (other URI formats return
371371
* {@link google.rpc.Code.INVALID_ARGUMENT|google.rpc.Code.INVALID_ARGUMENT}). For
372-
* more information, see [Request URIs](https://cloud.google.com/storage/docs/request-endpoints). A video
373-
* URI may include wildcards in `object-id`, and thus identify multiple
374-
* videos. Supported wildcards: '*' to match 0 or more characters;
372+
* more information, see [Request
373+
* URIs](https://cloud.google.com/storage/docs/request-endpoints). A video URI
374+
* may include wildcards in `object-id`, and thus identify multiple videos.
375+
* Supported wildcards: '*' to match 0 or more characters;
375376
* '?' to match 1 character. If unset, the input video should be embedded
376377
* in the request as `input_content`. If set, `input_content` should be unset.
377378
* @param {Buffer} request.inputContent
@@ -388,7 +389,8 @@ export class VideoIntelligenceServiceClient {
388389
* URIs are supported, which must be specified in the following format:
389390
* `gs://bucket-id/object-id` (other URI formats return
390391
* {@link google.rpc.Code.INVALID_ARGUMENT|google.rpc.Code.INVALID_ARGUMENT}). For
391-
* more information, see [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
392+
* more information, see [Request
393+
* URIs](https://cloud.google.com/storage/docs/request-endpoints).
392394
* @param {string} [request.locationId]
393395
* Optional. Cloud region where annotation should take place. Supported cloud
394396
* regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region

packages/google-cloud-videointelligence/src/v1p1beta1/video_intelligence_service_client.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,11 @@ export class VideoIntelligenceServiceClient {
368368
* [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
369369
* supported, which must be specified in the following format:
370370
* `gs://bucket-id/object-id` (other URI formats return
371-
* {@link google.rpc.Code.INVALID_ARGUMENT|google.rpc.Code.INVALID_ARGUMENT}). For more information, see
372-
* [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
373-
* A video URI may include wildcards in `object-id`, and thus identify
374-
* multiple videos. Supported wildcards: '*' to match 0 or more characters;
371+
* {@link google.rpc.Code.INVALID_ARGUMENT|google.rpc.Code.INVALID_ARGUMENT}). For
372+
* more information, see [Request
373+
* URIs](https://cloud.google.com/storage/docs/request-endpoints). A video URI
374+
* may include wildcards in `object-id`, and thus identify multiple videos.
375+
* Supported wildcards: '*' to match 0 or more characters;
375376
* '?' to match 1 character. If unset, the input video should be embedded
376377
* in the request as `input_content`. If set, `input_content` should be unset.
377378
* @param {Buffer} request.inputContent
@@ -387,8 +388,9 @@ export class VideoIntelligenceServiceClient {
387388
* Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
388389
* URIs are supported, which must be specified in the following format:
389390
* `gs://bucket-id/object-id` (other URI formats return
390-
* {@link google.rpc.Code.INVALID_ARGUMENT|google.rpc.Code.INVALID_ARGUMENT}). For more information, see
391-
* [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
391+
* {@link google.rpc.Code.INVALID_ARGUMENT|google.rpc.Code.INVALID_ARGUMENT}). For
392+
* more information, see [Request
393+
* URIs](https://cloud.google.com/storage/docs/request-endpoints).
392394
* @param {string} [request.locationId]
393395
* Optional. Cloud region where annotation should take place. Supported cloud
394396
* regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region

0 commit comments

Comments
 (0)