google-cloud-video_intelligence 1.4.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -28
- data/README.md +3 -3
- data/lib/google/cloud/video_intelligence.rb +1 -1
- data/lib/google/cloud/video_intelligence/v1.rb +1 -2
- data/lib/google/cloud/video_intelligence/v1/doc/google/cloud/videointelligence/v1/video_intelligence.rb +37 -34
- data/lib/google/cloud/video_intelligence/v1/video_intelligence_service_client.rb +14 -14
- data/lib/google/cloud/video_intelligence/v1/video_intelligence_service_client_config.json +7 -7
- data/lib/google/cloud/video_intelligence/version.rb +1 -1
- data/lib/google/cloud/videointelligence/v1/video_intelligence_pb.rb +5 -4
- metadata +9 -19
- data/lib/google/cloud/video_intelligence/v1beta1.rb +0 -149
- data/lib/google/cloud/video_intelligence/v1beta1/credentials.rb +0 -41
- data/lib/google/cloud/video_intelligence/v1beta1/doc/google/cloud/videointelligence/v1beta1/video_intelligence.rb +0 -322
- data/lib/google/cloud/video_intelligence/v1beta1/doc/google/longrunning/operations.rb +0 -51
- data/lib/google/cloud/video_intelligence/v1beta1/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/video_intelligence/v1beta1/doc/google/rpc/status.rb +0 -87
- data/lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client.rb +0 -305
- data/lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client_config.json +0 -31
- data/lib/google/cloud/videointelligence/v1beta1/video_intelligence_pb.rb +0 -141
- data/lib/google/cloud/videointelligence/v1beta1/video_intelligence_services_pb.rb +0 -50
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a3b1ba0c89c290e01493d0f39bb48df91bf71f051a4c389e01fe03c5e3e5fd5
|
4
|
+
data.tar.gz: cbaee6d698cbb17c65467d235c156539990322567ebbafe65f40627f11b8e3be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24cb842eced5b72279f52a492ce19dc0d0dae8bc91b0cba5c5fe340526328e2652a832216de38d39844d2a5114300071fa8f21772aed0b892932565bee48fc1d
|
7
|
+
data.tar.gz: 2c13e37aec90377ba427d60525dad0fcb47221a03a42beca33da175dfa7fb8b13878623fd9dca6fbcfd58fd4c0779ae4f0f6ac44a03716c0a3281f38338771bf
|
data/AUTHENTICATION.md
CHANGED
@@ -41,7 +41,7 @@ code.
|
|
41
41
|
1. Specify project ID in method arguments
|
42
42
|
2. Specify project ID in configuration
|
43
43
|
3. Discover project ID in environment variables
|
44
|
-
4. Discover
|
44
|
+
4. Discover GCP project ID
|
45
45
|
5. Discover project ID in credentials JSON
|
46
46
|
|
47
47
|
**Credentials** are discovered in the following order:
|
@@ -51,36 +51,14 @@ code.
|
|
51
51
|
3. Discover credentials path in environment variables
|
52
52
|
4. Discover credentials JSON in environment variables
|
53
53
|
5. Discover credentials file in the Cloud SDK's path
|
54
|
-
6. Discover
|
54
|
+
6. Discover GCP credentials
|
55
55
|
|
56
56
|
### Google Cloud Platform environments
|
57
57
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
should be written as if already authenticated.
|
62
|
-
GCE instance][gce-how-to], you add the correct scopes for the APIs you want to
|
63
|
-
access. For example:
|
64
|
-
|
65
|
-
* **All APIs**
|
66
|
-
* `https://www.googleapis.com/auth/cloud-platform`
|
67
|
-
* `https://www.googleapis.com/auth/cloud-platform.read-only`
|
68
|
-
* **BigQuery**
|
69
|
-
* `https://www.googleapis.com/auth/bigquery`
|
70
|
-
* `https://www.googleapis.com/auth/bigquery.insertdata`
|
71
|
-
* **Compute Engine**
|
72
|
-
* `https://www.googleapis.com/auth/compute`
|
73
|
-
* **Datastore**
|
74
|
-
* `https://www.googleapis.com/auth/datastore`
|
75
|
-
* `https://www.googleapis.com/auth/userinfo.email`
|
76
|
-
* **DNS**
|
77
|
-
* `https://www.googleapis.com/auth/ndev.clouddns.readwrite`
|
78
|
-
* **Pub/Sub**
|
79
|
-
* `https://www.googleapis.com/auth/pubsub`
|
80
|
-
* **Storage**
|
81
|
-
* `https://www.googleapis.com/auth/devstorage.full_control`
|
82
|
-
* `https://www.googleapis.com/auth/devstorage.read_only`
|
83
|
-
* `https://www.googleapis.com/auth/devstorage.read_write`
|
58
|
+
When running on Google Cloud Platform (GCP), including Google Compute Engine (GCE),
|
59
|
+
Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud Functions
|
60
|
+
(GCF) and Cloud Run, the **Project ID** and **Credentials** and are discovered
|
61
|
+
automatically. Code should be written as if already authenticated.
|
84
62
|
|
85
63
|
### Environment Variables
|
86
64
|
|
data/README.md
CHANGED
@@ -32,7 +32,7 @@ features_element = :LABEL_DETECTION
|
|
32
32
|
features = [features_element]
|
33
33
|
|
34
34
|
# Register a callback during the method call.
|
35
|
-
operation = video_intelligence_client.annotate_video(input_uri: input_uri
|
35
|
+
operation = video_intelligence_client.annotate_video(features, input_uri: input_uri) do |op|
|
36
36
|
raise op.results.message if op.error?
|
37
37
|
op_results = op.results
|
38
38
|
# Process the results.
|
@@ -98,11 +98,11 @@ end
|
|
98
98
|
|
99
99
|
## Supported Ruby Versions
|
100
100
|
|
101
|
-
This library is supported on Ruby 2.
|
101
|
+
This library is supported on Ruby 2.4+.
|
102
102
|
|
103
103
|
Google provides official support for Ruby versions that are actively supported
|
104
104
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
105
|
-
in security maintenance, and not end of life. Currently, this means Ruby 2.
|
105
|
+
in security maintenance, and not end of life. Currently, this means Ruby 2.4
|
106
106
|
and later. Older versions of Ruby _may_ still work, but are unsupported and not
|
107
107
|
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
108
108
|
about the Ruby support schedule.
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# features = [features_element]
|
55
55
|
#
|
56
56
|
# # Register a callback during the method call.
|
57
|
-
# operation = video_intelligence_client.annotate_video(input_uri: input_uri
|
57
|
+
# operation = video_intelligence_client.annotate_video(features, input_uri: input_uri) do |op|
|
58
58
|
# raise op.results.message if op.error?
|
59
59
|
# op_results = op.results
|
60
60
|
# # Process the results.
|
@@ -15,7 +15,6 @@
|
|
15
15
|
|
16
16
|
require "google/cloud/video_intelligence/v1/video_intelligence_service_client"
|
17
17
|
require "google/cloud/videointelligence/v1/video_intelligence_pb"
|
18
|
-
require "google/rpc/status_pb"
|
19
18
|
|
20
19
|
module Google
|
21
20
|
module Cloud
|
@@ -56,7 +55,7 @@ module Google
|
|
56
55
|
# features = [features_element]
|
57
56
|
#
|
58
57
|
# # Register a callback during the method call.
|
59
|
-
# operation = video_intelligence_client.annotate_video(input_uri: input_uri
|
58
|
+
# operation = video_intelligence_client.annotate_video(features, input_uri: input_uri) do |op|
|
60
59
|
# raise op.results.message if op.error?
|
61
60
|
# op_results = op.results
|
62
61
|
# # Process the results.
|
@@ -24,10 +24,10 @@ module Google
|
|
24
24
|
# [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
|
25
25
|
# supported, which must be specified in the following format:
|
26
26
|
# `gs://bucket-id/object-id` (other URI formats return
|
27
|
-
# {Google::Rpc::Code::INVALID_ARGUMENT}). For
|
28
|
-
#
|
29
|
-
# URI may include wildcards in `object-id`, and thus identify
|
30
|
-
# videos. Supported wildcards: '*' to match 0 or more characters;
|
27
|
+
# {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
|
28
|
+
# [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
|
29
|
+
# A video URI may include wildcards in `object-id`, and thus identify
|
30
|
+
# multiple videos. Supported wildcards: '*' to match 0 or more characters;
|
31
31
|
# '?' to match 1 character. If unset, the input video should be embedded
|
32
32
|
# in the request as `input_content`. If set, `input_content` should be unset.
|
33
33
|
# @!attribute [rw] input_content
|
@@ -37,21 +37,21 @@ module Google
|
|
37
37
|
# If set, `input_uri` should be unset.
|
38
38
|
# @!attribute [rw] features
|
39
39
|
# @return [Array<Google::Cloud::VideoIntelligence::V1::Feature>]
|
40
|
-
# Requested video annotation features.
|
40
|
+
# Required. Requested video annotation features.
|
41
41
|
# @!attribute [rw] video_context
|
42
42
|
# @return [Google::Cloud::VideoIntelligence::V1::VideoContext]
|
43
43
|
# Additional video context and/or feature-specific parameters.
|
44
44
|
# @!attribute [rw] output_uri
|
45
45
|
# @return [String]
|
46
|
-
# Optional
|
46
|
+
# Optional. Location where the output (in JSON format) should be stored.
|
47
47
|
# Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
|
48
48
|
# URIs are supported, which must be specified in the following format:
|
49
49
|
# `gs://bucket-id/object-id` (other URI formats return
|
50
|
-
# {Google::Rpc::Code::INVALID_ARGUMENT}). For
|
51
|
-
#
|
50
|
+
# {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
|
51
|
+
# [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
|
52
52
|
# @!attribute [rw] location_id
|
53
53
|
# @return [String]
|
54
|
-
# Optional
|
54
|
+
# Optional. Cloud region where annotation should take place. Supported cloud
|
55
55
|
# regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
|
56
56
|
# is specified, a region will be determined based on video file location.
|
57
57
|
class AnnotateVideoRequest; end
|
@@ -127,13 +127,13 @@ module Google
|
|
127
127
|
# "builtin/latest".
|
128
128
|
class ShotChangeDetectionConfig; end
|
129
129
|
|
130
|
-
# Config for
|
130
|
+
# Config for OBJECT_TRACKING.
|
131
131
|
# @!attribute [rw] model
|
132
132
|
# @return [String]
|
133
|
-
# Model to use for
|
133
|
+
# Model to use for object tracking.
|
134
134
|
# Supported values: "builtin/stable" (the default if unset) and
|
135
135
|
# "builtin/latest".
|
136
|
-
class
|
136
|
+
class ObjectTrackingConfig; end
|
137
137
|
|
138
138
|
# Config for FACE_DETECTION.
|
139
139
|
# @!attribute [rw] model
|
@@ -146,13 +146,13 @@ module Google
|
|
146
146
|
# Whether bounding boxes be included in the face annotation output.
|
147
147
|
class FaceDetectionConfig; end
|
148
148
|
|
149
|
-
# Config for
|
149
|
+
# Config for EXPLICIT_CONTENT_DETECTION.
|
150
150
|
# @!attribute [rw] model
|
151
151
|
# @return [String]
|
152
|
-
# Model to use for
|
152
|
+
# Model to use for explicit content detection.
|
153
153
|
# Supported values: "builtin/stable" (the default if unset) and
|
154
154
|
# "builtin/latest".
|
155
|
-
class
|
155
|
+
class ExplicitContentDetectionConfig; end
|
156
156
|
|
157
157
|
# Config for TEXT_DETECTION.
|
158
158
|
# @!attribute [rw] language_hints
|
@@ -311,8 +311,11 @@ module Google
|
|
311
311
|
# @!attribute [rw] segment_presence_label_annotations
|
312
312
|
# @return [Array<Google::Cloud::VideoIntelligence::V1::LabelAnnotation>]
|
313
313
|
# Presence label annotations on video level or user specified segment level.
|
314
|
-
# There is exactly one element for each unique label.
|
315
|
-
#
|
314
|
+
# There is exactly one element for each unique label. Compared to the
|
315
|
+
# existing topical `segment_label_annotations`, this field presents more
|
316
|
+
# fine-grained, segment-level labels detected in video content and is made
|
317
|
+
# available only when the client sets `LabelDetectionConfig.model` to
|
318
|
+
# "builtin/latest" in the request.
|
316
319
|
# @!attribute [rw] shot_label_annotations
|
317
320
|
# @return [Array<Google::Cloud::VideoIntelligence::V1::LabelAnnotation>]
|
318
321
|
# Topical label annotations on shot level.
|
@@ -320,8 +323,10 @@ module Google
|
|
320
323
|
# @!attribute [rw] shot_presence_label_annotations
|
321
324
|
# @return [Array<Google::Cloud::VideoIntelligence::V1::LabelAnnotation>]
|
322
325
|
# Presence label annotations on shot level. There is exactly one element for
|
323
|
-
# each unique label.
|
324
|
-
#
|
326
|
+
# each unique label. Compared to the existing topical
|
327
|
+
# `shot_label_annotations`, this field presents more fine-grained, shot-level
|
328
|
+
# labels detected in video content and is made available only when the client
|
329
|
+
# sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
|
325
330
|
# @!attribute [rw] frame_label_annotations
|
326
331
|
# @return [Array<Google::Cloud::VideoIntelligence::V1::LabelAnnotation>]
|
327
332
|
# Label annotations on frame level.
|
@@ -396,30 +401,30 @@ module Google
|
|
396
401
|
# Config for SPEECH_TRANSCRIPTION.
|
397
402
|
# @!attribute [rw] language_code
|
398
403
|
# @return [String]
|
399
|
-
# *Required* The language of the supplied audio as a
|
404
|
+
# Required. *Required* The language of the supplied audio as a
|
400
405
|
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
|
401
406
|
# Example: "en-US".
|
402
407
|
# See [Language Support](https://cloud.google.com/speech/docs/languages)
|
403
408
|
# for a list of the currently supported language codes.
|
404
409
|
# @!attribute [rw] max_alternatives
|
405
410
|
# @return [Integer]
|
406
|
-
#
|
411
|
+
# Optional. Maximum number of recognition hypotheses to be returned.
|
407
412
|
# Specifically, the maximum number of `SpeechRecognitionAlternative` messages
|
408
413
|
# within each `SpeechTranscription`. The server may return fewer than
|
409
414
|
# `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will
|
410
415
|
# return a maximum of one. If omitted, will return a maximum of one.
|
411
416
|
# @!attribute [rw] filter_profanity
|
412
417
|
# @return [true, false]
|
413
|
-
#
|
418
|
+
# Optional. If set to `true`, the server will attempt to filter out
|
414
419
|
# profanities, replacing all but the initial character in each filtered word
|
415
420
|
# with asterisks, e.g. "f***". If set to `false` or omitted, profanities
|
416
421
|
# won't be filtered out.
|
417
422
|
# @!attribute [rw] speech_contexts
|
418
423
|
# @return [Array<Google::Cloud::VideoIntelligence::V1::SpeechContext>]
|
419
|
-
#
|
424
|
+
# Optional. A means to provide context to assist the speech recognition.
|
420
425
|
# @!attribute [rw] enable_automatic_punctuation
|
421
426
|
# @return [true, false]
|
422
|
-
#
|
427
|
+
# Optional. If 'true', adds punctuation to recognition result hypotheses.
|
423
428
|
# This feature is only available in select languages. Setting this for
|
424
429
|
# requests in other languages has no effect at all. The default 'false' value
|
425
430
|
# does not add punctuation to result hypotheses. NOTE: "This is currently
|
@@ -427,11 +432,11 @@ module Google
|
|
427
432
|
# future this may be exclusively available as a premium feature."
|
428
433
|
# @!attribute [rw] audio_tracks
|
429
434
|
# @return [Array<Integer>]
|
430
|
-
#
|
435
|
+
# Optional. For file formats, such as MXF or MKV, supporting multiple audio
|
431
436
|
# tracks, specify up to two tracks. Default: track 0.
|
432
437
|
# @!attribute [rw] enable_speaker_diarization
|
433
438
|
# @return [true, false]
|
434
|
-
#
|
439
|
+
# Optional. If 'true', enables speaker detection for each recognized word in
|
435
440
|
# the top alternative of the recognition result using a speaker_tag provided
|
436
441
|
# in the WordInfo.
|
437
442
|
# Note: When this is true, we send all the words from the beginning of the
|
@@ -440,13 +445,12 @@ module Google
|
|
440
445
|
# identify the speakers in the conversation over time.
|
441
446
|
# @!attribute [rw] diarization_speaker_count
|
442
447
|
# @return [Integer]
|
443
|
-
#
|
444
|
-
# If set, specifies the estimated number of speakers in the conversation.
|
448
|
+
# Optional. If set, specifies the estimated number of speakers in the conversation.
|
445
449
|
# If not set, defaults to '2'.
|
446
450
|
# Ignored unless enable_speaker_diarization is set to true.
|
447
451
|
# @!attribute [rw] enable_word_confidence
|
448
452
|
# @return [true, false]
|
449
|
-
#
|
453
|
+
# Optional. If `true`, the top result includes a list of words and the
|
450
454
|
# confidence for those words. If `false`, no word-level confidence
|
451
455
|
# information is returned. The default is `false`.
|
452
456
|
class SpeechTranscriptionConfig; end
|
@@ -455,7 +459,7 @@ module Google
|
|
455
459
|
# in the results.
|
456
460
|
# @!attribute [rw] phrases
|
457
461
|
# @return [Array<String>]
|
458
|
-
#
|
462
|
+
# Optional. A list of strings containing words and phrases "hints" so that
|
459
463
|
# the speech recognition is more likely to recognize them. This can be used
|
460
464
|
# to improve the accuracy for specific words and phrases, for example, if
|
461
465
|
# specific commands are typically spoken by the user. This can also be used
|
@@ -472,10 +476,9 @@ module Google
|
|
472
476
|
# ranked by the recognizer.
|
473
477
|
# @!attribute [rw] language_code
|
474
478
|
# @return [String]
|
475
|
-
# Output only. The
|
476
|
-
#
|
477
|
-
#
|
478
|
-
# likelihood of being spoken in the audio.
|
479
|
+
# Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of
|
480
|
+
# the language in this result. This language code was detected to have the
|
481
|
+
# most likelihood of being spoken in the audio.
|
479
482
|
class SpeechTranscription; end
|
480
483
|
|
481
484
|
# Alternative hypotheses (a.k.a. n-best list).
|
@@ -200,36 +200,36 @@ module Google
|
|
200
200
|
# `Operation.metadata` contains `AnnotateVideoProgress` (progress).
|
201
201
|
# `Operation.response` contains `AnnotateVideoResponse` (results).
|
202
202
|
#
|
203
|
+
# @param features [Array<Google::Cloud::VideoIntelligence::V1::Feature>]
|
204
|
+
# Required. Requested video annotation features.
|
203
205
|
# @param input_uri [String]
|
204
206
|
# Input video location. Currently, only
|
205
207
|
# [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
|
206
208
|
# supported, which must be specified in the following format:
|
207
209
|
# `gs://bucket-id/object-id` (other URI formats return
|
208
|
-
# {Google::Rpc::Code::INVALID_ARGUMENT}). For
|
209
|
-
#
|
210
|
-
# URI may include wildcards in `object-id`, and thus identify
|
211
|
-
# videos. Supported wildcards: '*' to match 0 or more characters;
|
210
|
+
# {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
|
211
|
+
# [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
|
212
|
+
# A video URI may include wildcards in `object-id`, and thus identify
|
213
|
+
# multiple videos. Supported wildcards: '*' to match 0 or more characters;
|
212
214
|
# '?' to match 1 character. If unset, the input video should be embedded
|
213
215
|
# in the request as `input_content`. If set, `input_content` should be unset.
|
214
216
|
# @param input_content [String]
|
215
217
|
# The video data bytes.
|
216
218
|
# If unset, the input video(s) should be specified via `input_uri`.
|
217
219
|
# If set, `input_uri` should be unset.
|
218
|
-
# @param features [Array<Google::Cloud::VideoIntelligence::V1::Feature>]
|
219
|
-
# Requested video annotation features.
|
220
220
|
# @param video_context [Google::Cloud::VideoIntelligence::V1::VideoContext | Hash]
|
221
221
|
# Additional video context and/or feature-specific parameters.
|
222
222
|
# A hash of the same form as `Google::Cloud::VideoIntelligence::V1::VideoContext`
|
223
223
|
# can also be provided.
|
224
224
|
# @param output_uri [String]
|
225
|
-
# Optional
|
225
|
+
# Optional. Location where the output (in JSON format) should be stored.
|
226
226
|
# Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
|
227
227
|
# URIs are supported, which must be specified in the following format:
|
228
228
|
# `gs://bucket-id/object-id` (other URI formats return
|
229
|
-
# {Google::Rpc::Code::INVALID_ARGUMENT}). For
|
230
|
-
#
|
229
|
+
# {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
|
230
|
+
# [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
|
231
231
|
# @param location_id [String]
|
232
|
-
# Optional
|
232
|
+
# Optional. Cloud region where annotation should take place. Supported cloud
|
233
233
|
# regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
|
234
234
|
# is specified, a region will be determined based on video file location.
|
235
235
|
# @param options [Google::Gax::CallOptions]
|
@@ -241,12 +241,12 @@ module Google
|
|
241
241
|
# require "google/cloud/video_intelligence"
|
242
242
|
#
|
243
243
|
# video_intelligence_client = Google::Cloud::VideoIntelligence.new(version: :v1)
|
244
|
-
# input_uri = "gs://cloud-samples-data/video/cat.mp4"
|
245
244
|
# features_element = :LABEL_DETECTION
|
246
245
|
# features = [features_element]
|
246
|
+
# input_uri = "gs://cloud-samples-data/video/cat.mp4"
|
247
247
|
#
|
248
248
|
# # Register a callback during the method call.
|
249
|
-
# operation = video_intelligence_client.annotate_video(input_uri: input_uri
|
249
|
+
# operation = video_intelligence_client.annotate_video(features, input_uri: input_uri) do |op|
|
250
250
|
# raise op.results.message if op.error?
|
251
251
|
# op_results = op.results
|
252
252
|
# # Process the results.
|
@@ -273,17 +273,17 @@ module Google
|
|
273
273
|
# operation.wait_until_done!
|
274
274
|
|
275
275
|
def annotate_video \
|
276
|
+
features,
|
276
277
|
input_uri: nil,
|
277
278
|
input_content: nil,
|
278
|
-
features: nil,
|
279
279
|
video_context: nil,
|
280
280
|
output_uri: nil,
|
281
281
|
location_id: nil,
|
282
282
|
options: nil
|
283
283
|
req = {
|
284
|
+
features: features,
|
284
285
|
input_uri: input_uri,
|
285
286
|
input_content: input_content,
|
286
|
-
features: features,
|
287
287
|
video_context: video_context,
|
288
288
|
output_uri: output_uri,
|
289
289
|
location_id: location_id
|
@@ -10,19 +10,19 @@
|
|
10
10
|
},
|
11
11
|
"retry_params": {
|
12
12
|
"default": {
|
13
|
-
"initial_retry_delay_millis":
|
14
|
-
"retry_delay_multiplier":
|
15
|
-
"max_retry_delay_millis":
|
16
|
-
"initial_rpc_timeout_millis":
|
13
|
+
"initial_retry_delay_millis": 100,
|
14
|
+
"retry_delay_multiplier": 1.3,
|
15
|
+
"max_retry_delay_millis": 60000,
|
16
|
+
"initial_rpc_timeout_millis": 20000,
|
17
17
|
"rpc_timeout_multiplier": 1.0,
|
18
|
-
"max_rpc_timeout_millis":
|
18
|
+
"max_rpc_timeout_millis": 20000,
|
19
19
|
"total_timeout_millis": 600000
|
20
20
|
}
|
21
21
|
},
|
22
22
|
"methods": {
|
23
23
|
"AnnotateVideo": {
|
24
|
-
"timeout_millis":
|
25
|
-
"retry_codes_name": "
|
24
|
+
"timeout_millis": 60000,
|
25
|
+
"retry_codes_name": "non_idempotent",
|
26
26
|
"retry_params_name": "default"
|
27
27
|
}
|
28
28
|
}
|
@@ -6,6 +6,7 @@ require 'google/protobuf'
|
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
9
10
|
require 'google/longrunning/operations_pb'
|
10
11
|
require 'google/protobuf/duration_pb'
|
11
12
|
require 'google/protobuf/timestamp_pb'
|
@@ -39,14 +40,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
39
40
|
add_message "google.cloud.videointelligence.v1.ShotChangeDetectionConfig" do
|
40
41
|
optional :model, :string, 1
|
41
42
|
end
|
42
|
-
add_message "google.cloud.videointelligence.v1.
|
43
|
+
add_message "google.cloud.videointelligence.v1.ObjectTrackingConfig" do
|
43
44
|
optional :model, :string, 1
|
44
45
|
end
|
45
46
|
add_message "google.cloud.videointelligence.v1.FaceDetectionConfig" do
|
46
47
|
optional :model, :string, 1
|
47
48
|
optional :include_bounding_boxes, :bool, 2
|
48
49
|
end
|
49
|
-
add_message "google.cloud.videointelligence.v1.
|
50
|
+
add_message "google.cloud.videointelligence.v1.ExplicitContentDetectionConfig" do
|
50
51
|
optional :model, :string, 1
|
51
52
|
end
|
52
53
|
add_message "google.cloud.videointelligence.v1.TextDetectionConfig" do
|
@@ -232,9 +233,9 @@ module Google::Cloud::VideoIntelligence::V1
|
|
232
233
|
VideoContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoContext").msgclass
|
233
234
|
LabelDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelDetectionConfig").msgclass
|
234
235
|
ShotChangeDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ShotChangeDetectionConfig").msgclass
|
235
|
-
ExplicitContentDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentDetectionConfig").msgclass
|
236
|
-
FaceDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceDetectionConfig").msgclass
|
237
236
|
ObjectTrackingConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ObjectTrackingConfig").msgclass
|
237
|
+
FaceDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.FaceDetectionConfig").msgclass
|
238
|
+
ExplicitContentDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.ExplicitContentDetectionConfig").msgclass
|
238
239
|
TextDetectionConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.TextDetectionConfig").msgclass
|
239
240
|
VideoSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.VideoSegment").msgclass
|
240
241
|
LabelSegment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.videointelligence.v1.LabelSegment").msgclass
|