google-api-client 0.24.3 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -2
- data/CHANGELOG.md +99 -0
- data/Gemfile +1 -0
- data/generated/google/apis/abusiveexperiencereport_v1.rb +2 -2
- data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +0 -1
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +1 -1
- data/generated/google/apis/{content_v2sandbox.rb → accesscontextmanager_v1beta.rb} +11 -12
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +697 -0
- data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +240 -0
- data/generated/google/apis/accesscontextmanager_v1beta/service.rb +666 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +16 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +2 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -2
- data/generated/google/apis/adexperiencereport_v1.rb +2 -2
- data/generated/google/apis/adexperiencereport_v1/service.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +4 -3
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +9 -2
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +1 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +3 -2
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +3 -2
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +68 -6
- data/generated/google/apis/androidenterprise_v1/representations.rb +20 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +92 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +36 -0
- data/generated/google/apis/androidpublisher_v1.rb +2 -2
- data/generated/google/apis/androidpublisher_v1/service.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1.rb +2 -2
- data/generated/google/apis/androidpublisher_v1_1/service.rb +1 -1
- data/generated/google/apis/androidpublisher_v2.rb +2 -2
- data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
- data/generated/google/apis/androidpublisher_v3.rb +2 -2
- data/generated/google/apis/androidpublisher_v3/service.rb +3 -2
- data/generated/google/apis/appengine_v1.rb +2 -3
- data/generated/google/apis/appengine_v1/service.rb +1 -2
- data/generated/google/apis/appengine_v1alpha.rb +2 -3
- data/generated/google/apis/appengine_v1alpha/service.rb +1 -2
- data/generated/google/apis/appengine_v1beta.rb +2 -3
- data/generated/google/apis/appengine_v1beta/service.rb +1 -2
- data/generated/google/apis/appengine_v1beta4.rb +2 -3
- data/generated/google/apis/appengine_v1beta4/service.rb +1 -2
- data/generated/google/apis/appengine_v1beta5.rb +2 -3
- data/generated/google/apis/appengine_v1beta5/service.rb +1 -2
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +98 -7
- data/generated/google/apis/bigquery_v2/representations.rb +35 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +18 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +5 -5
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +10 -1
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +418 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +121 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +107 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +16 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +2 -1
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +2 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v2.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +2 -2
- data/generated/google/apis/cloudsearch_v1.rb +59 -0
- data/generated/google/apis/cloudsearch_v1/classes.rb +4697 -0
- data/generated/google/apis/cloudsearch_v1/representations.rb +2151 -0
- data/generated/google/apis/cloudsearch_v1/service.rb +1351 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +34 -0
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +34 -30
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +5 -8
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +197 -69
- data/generated/google/apis/content_v2/representations.rb +64 -33
- data/generated/google/apis/content_v2/service.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +42 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +17 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +19 -19
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +19 -19
- data/generated/google/apis/dialogflow_v2.rb +6 -3
- data/generated/google/apis/dialogflow_v2/classes.rb +112 -8
- data/generated/google/apis/dialogflow_v2/representations.rb +30 -0
- data/generated/google/apis/dialogflow_v2/service.rb +7 -2
- data/generated/google/apis/dialogflow_v2beta1.rb +6 -3
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +116 -8
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +30 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +19 -8
- data/generated/google/apis/digitalassetlinks_v1.rb +2 -3
- data/generated/google/apis/digitalassetlinks_v1/service.rb +1 -2
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +17 -5
- data/generated/google/apis/dlp_v2/representations.rb +2 -0
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +81 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +34 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +3 -1
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +637 -0
- data/generated/google/apis/firestore_v1/representations.rb +260 -0
- data/generated/google/apis/firestore_v1/service.rb +377 -0
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/firestore_v1beta2/classes.rb +205 -0
- data/generated/google/apis/firestore_v1beta2/representations.rb +83 -0
- data/generated/google/apis/firestore_v1beta2/service.rb +79 -0
- data/generated/google/apis/genomics_v1.rb +2 -2
- data/generated/google/apis/genomics_v1/service.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2.rb +2 -2
- data/generated/google/apis/genomics_v1alpha2/service.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1.rb +2 -2
- data/generated/google/apis/genomics_v2alpha1/service.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +4 -3
- data/generated/google/apis/iamcredentials_v1.rb +2 -2
- data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
- data/generated/google/apis/indexing_v3.rb +2 -3
- data/generated/google/apis/indexing_v3/service.rb +1 -2
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +2 -2
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +3 -3
- data/generated/google/apis/jobs_v3/service.rb +20 -2
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +3 -3
- data/generated/google/apis/jobs_v3p1beta1/service.rb +20 -2
- data/generated/google/apis/language_v1.rb +4 -4
- data/generated/google/apis/language_v1/service.rb +3 -3
- data/generated/google/apis/language_v1beta1.rb +4 -4
- data/generated/google/apis/language_v1beta1/service.rb +3 -3
- data/generated/google/apis/language_v1beta2.rb +4 -4
- data/generated/google/apis/language_v1beta2/service.rb +3 -3
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +2 -13
- data/generated/google/apis/logging_v2/representations.rb +0 -2
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +2 -41
- data/generated/google/apis/logging_v2beta1/representations.rb +0 -16
- data/generated/google/apis/logging_v2beta1/service.rb +0 -255
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +25 -15
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/monitoring_v3/service.rb +366 -1
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1/service.rb +7 -1
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/service.rb +10 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/service.rb +7 -1
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +6 -0
- data/generated/google/apis/redis_v1/representations.rb +1 -0
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +6 -0
- data/generated/google/apis/redis_v1beta1/representations.rb +1 -0
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +7 -6
- data/generated/google/apis/script_v1.rb +2 -2
- data/generated/google/apis/script_v1/service.rb +7 -3
- data/generated/google/apis/serviceconsumermanagement_v1.rb +2 -3
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +7 -0
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +1 -2
- data/generated/google/apis/servicecontrol_v1.rb +3 -3
- data/generated/google/apis/servicecontrol_v1/classes.rb +18 -230
- data/generated/google/apis/servicecontrol_v1/representations.rb +2 -99
- data/generated/google/apis/servicecontrol_v1/service.rb +2 -140
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +24 -0
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +3 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +7 -0
- data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +7 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
- data/generated/google/apis/slides_v1.rb +2 -2
- data/generated/google/apis/slides_v1/classes.rb +4 -3
- data/generated/google/apis/slides_v1/service.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/service.rb +2 -3
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +9 -0
- data/generated/google/apis/testing_v1/representations.rb +1 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/service.rb +1 -1
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +6 -0
- data/generated/google/apis/tpu_v1/representations.rb +1 -0
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +6 -0
- data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +7 -0
- data/generated/google/apis/vault_v1/representations.rb +1 -0
- data/generated/google/apis/videointelligence_v1.rb +3 -2
- data/generated/google/apis/videointelligence_v1/classes.rb +547 -12
- data/generated/google/apis/videointelligence_v1/representations.rb +190 -2
- data/generated/google/apis/videointelligence_v1/service.rb +2 -1
- data/generated/google/apis/videointelligence_v1beta2.rb +3 -2
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +547 -12
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +190 -2
- data/generated/google/apis/videointelligence_v1beta2/service.rb +2 -1
- data/generated/google/apis/videointelligence_v1p1beta1.rb +3 -2
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +418 -13
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +153 -2
- data/generated/google/apis/videointelligence_v1p1beta1/service.rb +2 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1139 -54
- data/generated/google/apis/vision_v1/representations.rb +478 -0
- data/generated/google/apis/vision_v1/service.rb +744 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +761 -16
- data/generated/google/apis/vision_v1p1beta1/representations.rb +333 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +758 -13
- data/generated/google/apis/vision_v1p2beta1/representations.rb +333 -0
- data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
- data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/lib/google/apis/core/http_command.rb +83 -10
- data/lib/google/apis/options.rb +5 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +10 -14
- data/generated/google/apis/content_v2sandbox/classes.rb +0 -4436
- data/generated/google/apis/content_v2sandbox/representations.rb +0 -1956
- data/generated/google/apis/content_v2sandbox/service.rb +0 -1296
- data/generated/google/apis/dfareporting_v2_8.rb +0 -40
- data/generated/google/apis/dfareporting_v2_8/classes.rb +0 -12043
- data/generated/google/apis/dfareporting_v2_8/representations.rb +0 -4311
- data/generated/google/apis/dfareporting_v2_8/service.rb +0 -8727
- data/generated/google/apis/serviceuser_v1.rb +0 -42
- data/generated/google/apis/serviceuser_v1/classes.rb +0 -3472
- data/generated/google/apis/serviceuser_v1/representations.rb +0 -1030
- data/generated/google/apis/serviceuser_v1/service.rb +0 -215
@@ -70,6 +70,18 @@ module Google
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
71
71
|
end
|
72
72
|
|
73
|
+
class GoogleCloudVideointelligenceV1SpeechRecognitionAlternative
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class GoogleCloudVideointelligenceV1SpeechTranscription
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
73
85
|
class GoogleCloudVideointelligenceV1VideoAnnotationProgress
|
74
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
87
|
|
@@ -88,6 +100,12 @@ module Google
|
|
88
100
|
include Google::Apis::Core::JsonObjectSupport
|
89
101
|
end
|
90
102
|
|
103
|
+
class GoogleCloudVideointelligenceV1WordInfo
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
91
109
|
class GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress
|
92
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
111
|
|
@@ -160,6 +178,30 @@ module Google
|
|
160
178
|
include Google::Apis::Core::JsonObjectSupport
|
161
179
|
end
|
162
180
|
|
181
|
+
class GoogleCloudVideointelligenceV1beta2SpeechContext
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
187
|
+
class GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
193
|
+
class GoogleCloudVideointelligenceV1beta2SpeechTranscription
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
199
|
+
class GoogleCloudVideointelligenceV1beta2SpeechTranscriptionConfig
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
163
205
|
class GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress
|
164
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
207
|
|
@@ -184,6 +226,12 @@ module Google
|
|
184
226
|
include Google::Apis::Core::JsonObjectSupport
|
185
227
|
end
|
186
228
|
|
229
|
+
class GoogleCloudVideointelligenceV1beta2WordInfo
|
230
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
|
+
|
232
|
+
include Google::Apis::Core::JsonObjectSupport
|
233
|
+
end
|
234
|
+
|
187
235
|
class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress
|
188
236
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
237
|
|
@@ -346,6 +394,18 @@ module Google
|
|
346
394
|
include Google::Apis::Core::JsonObjectSupport
|
347
395
|
end
|
348
396
|
|
397
|
+
class GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
|
+
|
400
|
+
include Google::Apis::Core::JsonObjectSupport
|
401
|
+
end
|
402
|
+
|
403
|
+
class GoogleCloudVideointelligenceV1p2beta1SpeechTranscription
|
404
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
405
|
+
|
406
|
+
include Google::Apis::Core::JsonObjectSupport
|
407
|
+
end
|
408
|
+
|
349
409
|
class GoogleCloudVideointelligenceV1p2beta1TextAnnotation
|
350
410
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
351
411
|
|
@@ -382,6 +442,12 @@ module Google
|
|
382
442
|
include Google::Apis::Core::JsonObjectSupport
|
383
443
|
end
|
384
444
|
|
445
|
+
class GoogleCloudVideointelligenceV1p2beta1WordInfo
|
446
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
447
|
+
|
448
|
+
include Google::Apis::Core::JsonObjectSupport
|
449
|
+
end
|
450
|
+
|
385
451
|
class GoogleLongrunningOperation
|
386
452
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
453
|
|
@@ -466,6 +532,25 @@ module Google
|
|
466
532
|
end
|
467
533
|
end
|
468
534
|
|
535
|
+
class GoogleCloudVideointelligenceV1SpeechRecognitionAlternative
|
536
|
+
# @private
|
537
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
538
|
+
property :confidence, as: 'confidence'
|
539
|
+
property :transcript, as: 'transcript'
|
540
|
+
collection :words, as: 'words', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1WordInfo, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1WordInfo::Representation
|
541
|
+
|
542
|
+
end
|
543
|
+
end
|
544
|
+
|
545
|
+
class GoogleCloudVideointelligenceV1SpeechTranscription
|
546
|
+
# @private
|
547
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
548
|
+
collection :alternatives, as: 'alternatives', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1SpeechRecognitionAlternative, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1SpeechRecognitionAlternative::Representation
|
549
|
+
|
550
|
+
property :language_code, as: 'languageCode'
|
551
|
+
end
|
552
|
+
end
|
553
|
+
|
469
554
|
class GoogleCloudVideointelligenceV1VideoAnnotationProgress
|
470
555
|
# @private
|
471
556
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -492,6 +577,8 @@ module Google
|
|
492
577
|
|
493
578
|
collection :shot_label_annotations, as: 'shotLabelAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1LabelAnnotation::Representation
|
494
579
|
|
580
|
+
collection :speech_transcriptions, as: 'speechTranscriptions', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1SpeechTranscription, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1SpeechTranscription::Representation
|
581
|
+
|
495
582
|
end
|
496
583
|
end
|
497
584
|
|
@@ -503,6 +590,17 @@ module Google
|
|
503
590
|
end
|
504
591
|
end
|
505
592
|
|
593
|
+
class GoogleCloudVideointelligenceV1WordInfo
|
594
|
+
# @private
|
595
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
596
|
+
property :confidence, as: 'confidence'
|
597
|
+
property :end_time, as: 'endTime'
|
598
|
+
property :speaker_tag, as: 'speakerTag'
|
599
|
+
property :start_time, as: 'startTime'
|
600
|
+
property :word, as: 'word'
|
601
|
+
end
|
602
|
+
end
|
603
|
+
|
506
604
|
class GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress
|
507
605
|
# @private
|
508
606
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -611,6 +709,48 @@ module Google
|
|
611
709
|
end
|
612
710
|
end
|
613
711
|
|
712
|
+
class GoogleCloudVideointelligenceV1beta2SpeechContext
|
713
|
+
# @private
|
714
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
715
|
+
collection :phrases, as: 'phrases'
|
716
|
+
end
|
717
|
+
end
|
718
|
+
|
719
|
+
class GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative
|
720
|
+
# @private
|
721
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
722
|
+
property :confidence, as: 'confidence'
|
723
|
+
property :transcript, as: 'transcript'
|
724
|
+
collection :words, as: 'words', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2WordInfo, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2WordInfo::Representation
|
725
|
+
|
726
|
+
end
|
727
|
+
end
|
728
|
+
|
729
|
+
class GoogleCloudVideointelligenceV1beta2SpeechTranscription
|
730
|
+
# @private
|
731
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
732
|
+
collection :alternatives, as: 'alternatives', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative::Representation
|
733
|
+
|
734
|
+
property :language_code, as: 'languageCode'
|
735
|
+
end
|
736
|
+
end
|
737
|
+
|
738
|
+
class GoogleCloudVideointelligenceV1beta2SpeechTranscriptionConfig
|
739
|
+
# @private
|
740
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
741
|
+
collection :audio_tracks, as: 'audioTracks'
|
742
|
+
property :diarization_speaker_count, as: 'diarizationSpeakerCount'
|
743
|
+
property :enable_automatic_punctuation, as: 'enableAutomaticPunctuation'
|
744
|
+
property :enable_speaker_diarization, as: 'enableSpeakerDiarization'
|
745
|
+
property :enable_word_confidence, as: 'enableWordConfidence'
|
746
|
+
property :filter_profanity, as: 'filterProfanity'
|
747
|
+
property :language_code, as: 'languageCode'
|
748
|
+
property :max_alternatives, as: 'maxAlternatives'
|
749
|
+
collection :speech_contexts, as: 'speechContexts', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2SpeechContext, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2SpeechContext::Representation
|
750
|
+
|
751
|
+
end
|
752
|
+
end
|
753
|
+
|
614
754
|
class GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress
|
615
755
|
# @private
|
616
756
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -637,6 +777,8 @@ module Google
|
|
637
777
|
|
638
778
|
collection :shot_label_annotations, as: 'shotLabelAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2LabelAnnotation::Representation
|
639
779
|
|
780
|
+
collection :speech_transcriptions, as: 'speechTranscriptions', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2SpeechTranscription, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2SpeechTranscription::Representation
|
781
|
+
|
640
782
|
end
|
641
783
|
end
|
642
784
|
|
@@ -651,6 +793,8 @@ module Google
|
|
651
793
|
|
652
794
|
property :shot_change_detection_config, as: 'shotChangeDetectionConfig', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2ShotChangeDetectionConfig, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2ShotChangeDetectionConfig::Representation
|
653
795
|
|
796
|
+
property :speech_transcription_config, as: 'speechTranscriptionConfig', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2SpeechTranscriptionConfig, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2SpeechTranscriptionConfig::Representation
|
797
|
+
|
654
798
|
end
|
655
799
|
end
|
656
800
|
|
@@ -662,6 +806,17 @@ module Google
|
|
662
806
|
end
|
663
807
|
end
|
664
808
|
|
809
|
+
class GoogleCloudVideointelligenceV1beta2WordInfo
|
810
|
+
# @private
|
811
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
812
|
+
property :confidence, as: 'confidence'
|
813
|
+
property :end_time, as: 'endTime'
|
814
|
+
property :speaker_tag, as: 'speakerTag'
|
815
|
+
property :start_time, as: 'startTime'
|
816
|
+
property :word, as: 'word'
|
817
|
+
end
|
818
|
+
end
|
819
|
+
|
665
820
|
class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress
|
666
821
|
# @private
|
667
822
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -749,6 +904,7 @@ module Google
|
|
749
904
|
class Representation < Google::Apis::Core::JsonRepresentation
|
750
905
|
collection :alternatives, as: 'alternatives', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative::Representation
|
751
906
|
|
907
|
+
property :language_code, as: 'languageCode'
|
752
908
|
end
|
753
909
|
end
|
754
910
|
|
@@ -922,12 +1078,28 @@ module Google
|
|
922
1078
|
end
|
923
1079
|
end
|
924
1080
|
|
925
|
-
class
|
1081
|
+
class GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative
|
926
1082
|
# @private
|
927
1083
|
class Representation < Google::Apis::Core::JsonRepresentation
|
928
1084
|
property :confidence, as: 'confidence'
|
929
|
-
|
1085
|
+
property :transcript, as: 'transcript'
|
1086
|
+
collection :words, as: 'words', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1WordInfo, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1WordInfo::Representation
|
930
1087
|
|
1088
|
+
end
|
1089
|
+
end
|
1090
|
+
|
1091
|
+
class GoogleCloudVideointelligenceV1p2beta1SpeechTranscription
|
1092
|
+
# @private
|
1093
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1094
|
+
collection :alternatives, as: 'alternatives', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative::Representation
|
1095
|
+
|
1096
|
+
property :language_code, as: 'languageCode'
|
1097
|
+
end
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
class GoogleCloudVideointelligenceV1p2beta1TextAnnotation
|
1101
|
+
# @private
|
1102
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
931
1103
|
collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextSegment::Representation
|
932
1104
|
|
933
1105
|
property :text, as: 'text'
|
@@ -946,6 +1118,9 @@ module Google
|
|
946
1118
|
class GoogleCloudVideointelligenceV1p2beta1TextSegment
|
947
1119
|
# @private
|
948
1120
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1121
|
+
property :confidence, as: 'confidence'
|
1122
|
+
collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextFrame, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextFrame::Representation
|
1123
|
+
|
949
1124
|
property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoSegment::Representation
|
950
1125
|
|
951
1126
|
end
|
@@ -979,6 +1154,8 @@ module Google
|
|
979
1154
|
|
980
1155
|
collection :shot_label_annotations, as: 'shotLabelAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1LabelAnnotation::Representation
|
981
1156
|
|
1157
|
+
collection :speech_transcriptions, as: 'speechTranscriptions', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1SpeechTranscription, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1SpeechTranscription::Representation
|
1158
|
+
|
982
1159
|
collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextAnnotation::Representation
|
983
1160
|
|
984
1161
|
end
|
@@ -992,6 +1169,17 @@ module Google
|
|
992
1169
|
end
|
993
1170
|
end
|
994
1171
|
|
1172
|
+
class GoogleCloudVideointelligenceV1p2beta1WordInfo
|
1173
|
+
# @private
|
1174
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1175
|
+
property :confidence, as: 'confidence'
|
1176
|
+
property :end_time, as: 'endTime'
|
1177
|
+
property :speaker_tag, as: 'speakerTag'
|
1178
|
+
property :start_time, as: 'startTime'
|
1179
|
+
property :word, as: 'word'
|
1180
|
+
end
|
1181
|
+
end
|
1182
|
+
|
995
1183
|
class GoogleLongrunningOperation
|
996
1184
|
# @private
|
997
1185
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -22,7 +22,8 @@ module Google
|
|
22
22
|
module VideointelligenceV1beta2
|
23
23
|
# Cloud Video Intelligence API
|
24
24
|
#
|
25
|
-
#
|
25
|
+
# Detects objects, explicit content, and scene changes in videos. It also
|
26
|
+
# specifies the region for annotation and transcribes speech to text.
|
26
27
|
#
|
27
28
|
# @example
|
28
29
|
# require 'google/apis/videointelligence_v1beta2'
|
@@ -20,12 +20,13 @@ module Google
|
|
20
20
|
module Apis
|
21
21
|
# Cloud Video Intelligence API
|
22
22
|
#
|
23
|
-
#
|
23
|
+
# Detects objects, explicit content, and scene changes in videos. It also
|
24
|
+
# specifies the region for annotation and transcribes speech to text.
|
24
25
|
#
|
25
26
|
# @see https://cloud.google.com/video-intelligence/docs/
|
26
27
|
module VideointelligenceV1p1beta1
|
27
28
|
VERSION = 'V1p1beta1'
|
28
|
-
REVISION = '
|
29
|
+
REVISION = '20181027'
|
29
30
|
|
30
31
|
# View and manage your data across Google Cloud Platform services
|
31
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -235,6 +235,73 @@ module Google
|
|
235
235
|
end
|
236
236
|
end
|
237
237
|
|
238
|
+
# Alternative hypotheses (a.k.a. n-best list).
|
239
|
+
class GoogleCloudVideointelligenceV1SpeechRecognitionAlternative
|
240
|
+
include Google::Apis::Core::Hashable
|
241
|
+
|
242
|
+
# The confidence estimate between 0.0 and 1.0. A higher number
|
243
|
+
# indicates an estimated greater likelihood that the recognized words are
|
244
|
+
# correct. This field is typically provided only for the top hypothesis, and
|
245
|
+
# only for `is_final=true` results. Clients should not rely on the
|
246
|
+
# `confidence` field as it is not guaranteed to be accurate or consistent.
|
247
|
+
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
|
248
|
+
# Corresponds to the JSON property `confidence`
|
249
|
+
# @return [Float]
|
250
|
+
attr_accessor :confidence
|
251
|
+
|
252
|
+
# Transcript text representing the words that the user spoke.
|
253
|
+
# Corresponds to the JSON property `transcript`
|
254
|
+
# @return [String]
|
255
|
+
attr_accessor :transcript
|
256
|
+
|
257
|
+
# A list of word-specific information for each recognized word.
|
258
|
+
# Corresponds to the JSON property `words`
|
259
|
+
# @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1WordInfo>]
|
260
|
+
attr_accessor :words
|
261
|
+
|
262
|
+
def initialize(**args)
|
263
|
+
update!(**args)
|
264
|
+
end
|
265
|
+
|
266
|
+
# Update properties of this object
|
267
|
+
def update!(**args)
|
268
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
269
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
270
|
+
@words = args[:words] if args.key?(:words)
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
274
|
+
# A speech recognition result corresponding to a portion of the audio.
|
275
|
+
class GoogleCloudVideointelligenceV1SpeechTranscription
|
276
|
+
include Google::Apis::Core::Hashable
|
277
|
+
|
278
|
+
# May contain one or more recognition hypotheses (up to the maximum specified
|
279
|
+
# in `max_alternatives`). These alternatives are ordered in terms of
|
280
|
+
# accuracy, with the top (first) alternative being the most probable, as
|
281
|
+
# ranked by the recognizer.
|
282
|
+
# Corresponds to the JSON property `alternatives`
|
283
|
+
# @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1SpeechRecognitionAlternative>]
|
284
|
+
attr_accessor :alternatives
|
285
|
+
|
286
|
+
# Output only. The
|
287
|
+
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
|
288
|
+
# language in this result. This language code was detected to have the most
|
289
|
+
# likelihood of being spoken in the audio.
|
290
|
+
# Corresponds to the JSON property `languageCode`
|
291
|
+
# @return [String]
|
292
|
+
attr_accessor :language_code
|
293
|
+
|
294
|
+
def initialize(**args)
|
295
|
+
update!(**args)
|
296
|
+
end
|
297
|
+
|
298
|
+
# Update properties of this object
|
299
|
+
def update!(**args)
|
300
|
+
@alternatives = args[:alternatives] if args.key?(:alternatives)
|
301
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
238
305
|
# Annotation progress for a single video.
|
239
306
|
class GoogleCloudVideointelligenceV1VideoAnnotationProgress
|
240
307
|
include Google::Apis::Core::Hashable
|
@@ -357,6 +424,11 @@ module Google
|
|
357
424
|
# @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1LabelAnnotation>]
|
358
425
|
attr_accessor :shot_label_annotations
|
359
426
|
|
427
|
+
# Speech transcription.
|
428
|
+
# Corresponds to the JSON property `speechTranscriptions`
|
429
|
+
# @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1SpeechTranscription>]
|
430
|
+
attr_accessor :speech_transcriptions
|
431
|
+
|
360
432
|
def initialize(**args)
|
361
433
|
update!(**args)
|
362
434
|
end
|
@@ -370,6 +442,7 @@ module Google
|
|
370
442
|
@segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)
|
371
443
|
@shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
|
372
444
|
@shot_label_annotations = args[:shot_label_annotations] if args.key?(:shot_label_annotations)
|
445
|
+
@speech_transcriptions = args[:speech_transcriptions] if args.key?(:speech_transcriptions)
|
373
446
|
end
|
374
447
|
end
|
375
448
|
|
@@ -400,6 +473,65 @@ module Google
|
|
400
473
|
end
|
401
474
|
end
|
402
475
|
|
476
|
+
# Word-specific information for recognized words. Word information is only
|
477
|
+
# included in the response when certain request parameters are set, such
|
478
|
+
# as `enable_word_time_offsets`.
|
479
|
+
class GoogleCloudVideointelligenceV1WordInfo
|
480
|
+
include Google::Apis::Core::Hashable
|
481
|
+
|
482
|
+
# Output only. The confidence estimate between 0.0 and 1.0. A higher number
|
483
|
+
# indicates an estimated greater likelihood that the recognized words are
|
484
|
+
# correct. This field is set only for the top alternative.
|
485
|
+
# This field is not guaranteed to be accurate and users should not rely on it
|
486
|
+
# to be always provided.
|
487
|
+
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
|
488
|
+
# Corresponds to the JSON property `confidence`
|
489
|
+
# @return [Float]
|
490
|
+
attr_accessor :confidence
|
491
|
+
|
492
|
+
# Time offset relative to the beginning of the audio, and
|
493
|
+
# corresponding to the end of the spoken word. This field is only set if
|
494
|
+
# `enable_word_time_offsets=true` and only in the top hypothesis. This is an
|
495
|
+
# experimental feature and the accuracy of the time offset can vary.
|
496
|
+
# Corresponds to the JSON property `endTime`
|
497
|
+
# @return [String]
|
498
|
+
attr_accessor :end_time
|
499
|
+
|
500
|
+
# Output only. A distinct integer value is assigned for every speaker within
|
501
|
+
# the audio. This field specifies which one of those speakers was detected to
|
502
|
+
# have spoken this word. Value ranges from 1 up to diarization_speaker_count,
|
503
|
+
# and is only set if speaker diarization is enabled.
|
504
|
+
# Corresponds to the JSON property `speakerTag`
|
505
|
+
# @return [Fixnum]
|
506
|
+
attr_accessor :speaker_tag
|
507
|
+
|
508
|
+
# Time offset relative to the beginning of the audio, and
|
509
|
+
# corresponding to the start of the spoken word. This field is only set if
|
510
|
+
# `enable_word_time_offsets=true` and only in the top hypothesis. This is an
|
511
|
+
# experimental feature and the accuracy of the time offset can vary.
|
512
|
+
# Corresponds to the JSON property `startTime`
|
513
|
+
# @return [String]
|
514
|
+
attr_accessor :start_time
|
515
|
+
|
516
|
+
# The word corresponding to this set of information.
|
517
|
+
# Corresponds to the JSON property `word`
|
518
|
+
# @return [String]
|
519
|
+
attr_accessor :word
|
520
|
+
|
521
|
+
def initialize(**args)
|
522
|
+
update!(**args)
|
523
|
+
end
|
524
|
+
|
525
|
+
# Update properties of this object
|
526
|
+
def update!(**args)
|
527
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
528
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
529
|
+
@speaker_tag = args[:speaker_tag] if args.key?(:speaker_tag)
|
530
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
531
|
+
@word = args[:word] if args.key?(:word)
|
532
|
+
end
|
533
|
+
end
|
534
|
+
|
403
535
|
# Video annotation progress. Included in the `metadata`
|
404
536
|
# field of the `Operation` returned by the `GetOperation`
|
405
537
|
# call of the `google::longrunning::Operations` service.
|
@@ -613,6 +745,73 @@ module Google
|
|
613
745
|
end
|
614
746
|
end
|
615
747
|
|
748
|
+
# Alternative hypotheses (a.k.a. n-best list).
|
749
|
+
class GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative
|
750
|
+
include Google::Apis::Core::Hashable
|
751
|
+
|
752
|
+
# The confidence estimate between 0.0 and 1.0. A higher number
|
753
|
+
# indicates an estimated greater likelihood that the recognized words are
|
754
|
+
# correct. This field is typically provided only for the top hypothesis, and
|
755
|
+
# only for `is_final=true` results. Clients should not rely on the
|
756
|
+
# `confidence` field as it is not guaranteed to be accurate or consistent.
|
757
|
+
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
|
758
|
+
# Corresponds to the JSON property `confidence`
|
759
|
+
# @return [Float]
|
760
|
+
attr_accessor :confidence
|
761
|
+
|
762
|
+
# Transcript text representing the words that the user spoke.
|
763
|
+
# Corresponds to the JSON property `transcript`
|
764
|
+
# @return [String]
|
765
|
+
attr_accessor :transcript
|
766
|
+
|
767
|
+
# A list of word-specific information for each recognized word.
|
768
|
+
# Corresponds to the JSON property `words`
|
769
|
+
# @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2WordInfo>]
|
770
|
+
attr_accessor :words
|
771
|
+
|
772
|
+
def initialize(**args)
|
773
|
+
update!(**args)
|
774
|
+
end
|
775
|
+
|
776
|
+
# Update properties of this object
|
777
|
+
def update!(**args)
|
778
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
779
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
780
|
+
@words = args[:words] if args.key?(:words)
|
781
|
+
end
|
782
|
+
end
|
783
|
+
|
784
|
+
# A speech recognition result corresponding to a portion of the audio.
|
785
|
+
class GoogleCloudVideointelligenceV1beta2SpeechTranscription
|
786
|
+
include Google::Apis::Core::Hashable
|
787
|
+
|
788
|
+
# May contain one or more recognition hypotheses (up to the maximum specified
|
789
|
+
# in `max_alternatives`). These alternatives are ordered in terms of
|
790
|
+
# accuracy, with the top (first) alternative being the most probable, as
|
791
|
+
# ranked by the recognizer.
|
792
|
+
# Corresponds to the JSON property `alternatives`
|
793
|
+
# @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative>]
|
794
|
+
attr_accessor :alternatives
|
795
|
+
|
796
|
+
# Output only. The
|
797
|
+
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
|
798
|
+
# language in this result. This language code was detected to have the most
|
799
|
+
# likelihood of being spoken in the audio.
|
800
|
+
# Corresponds to the JSON property `languageCode`
|
801
|
+
# @return [String]
|
802
|
+
attr_accessor :language_code
|
803
|
+
|
804
|
+
def initialize(**args)
|
805
|
+
update!(**args)
|
806
|
+
end
|
807
|
+
|
808
|
+
# Update properties of this object
|
809
|
+
def update!(**args)
|
810
|
+
@alternatives = args[:alternatives] if args.key?(:alternatives)
|
811
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
812
|
+
end
|
813
|
+
end
|
814
|
+
|
616
815
|
# Annotation progress for a single video.
|
617
816
|
class GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress
|
618
817
|
include Google::Apis::Core::Hashable
|
@@ -735,6 +934,11 @@ module Google
|
|
735
934
|
# @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation>]
|
736
935
|
attr_accessor :shot_label_annotations
|
737
936
|
|
937
|
+
# Speech transcription.
|
938
|
+
# Corresponds to the JSON property `speechTranscriptions`
|
939
|
+
# @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2SpeechTranscription>]
|
940
|
+
attr_accessor :speech_transcriptions
|
941
|
+
|
738
942
|
def initialize(**args)
|
739
943
|
update!(**args)
|
740
944
|
end
|
@@ -748,6 +952,7 @@ module Google
|
|
748
952
|
@segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)
|
749
953
|
@shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
|
750
954
|
@shot_label_annotations = args[:shot_label_annotations] if args.key?(:shot_label_annotations)
|
955
|
+
@speech_transcriptions = args[:speech_transcriptions] if args.key?(:speech_transcriptions)
|
751
956
|
end
|
752
957
|
end
|
753
958
|
|
@@ -778,6 +983,65 @@ module Google
|
|
778
983
|
end
|
779
984
|
end
|
780
985
|
|
986
|
+
# Word-specific information for recognized words. Word information is only
|
987
|
+
# included in the response when certain request parameters are set, such
|
988
|
+
# as `enable_word_time_offsets`.
|
989
|
+
class GoogleCloudVideointelligenceV1beta2WordInfo
|
990
|
+
include Google::Apis::Core::Hashable
|
991
|
+
|
992
|
+
# Output only. The confidence estimate between 0.0 and 1.0. A higher number
|
993
|
+
# indicates an estimated greater likelihood that the recognized words are
|
994
|
+
# correct. This field is set only for the top alternative.
|
995
|
+
# This field is not guaranteed to be accurate and users should not rely on it
|
996
|
+
# to be always provided.
|
997
|
+
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
|
998
|
+
# Corresponds to the JSON property `confidence`
|
999
|
+
# @return [Float]
|
1000
|
+
attr_accessor :confidence
|
1001
|
+
|
1002
|
+
# Time offset relative to the beginning of the audio, and
|
1003
|
+
# corresponding to the end of the spoken word. This field is only set if
|
1004
|
+
# `enable_word_time_offsets=true` and only in the top hypothesis. This is an
|
1005
|
+
# experimental feature and the accuracy of the time offset can vary.
|
1006
|
+
# Corresponds to the JSON property `endTime`
|
1007
|
+
# @return [String]
|
1008
|
+
attr_accessor :end_time
|
1009
|
+
|
1010
|
+
# Output only. A distinct integer value is assigned for every speaker within
|
1011
|
+
# the audio. This field specifies which one of those speakers was detected to
|
1012
|
+
# have spoken this word. Value ranges from 1 up to diarization_speaker_count,
|
1013
|
+
# and is only set if speaker diarization is enabled.
|
1014
|
+
# Corresponds to the JSON property `speakerTag`
|
1015
|
+
# @return [Fixnum]
|
1016
|
+
attr_accessor :speaker_tag
|
1017
|
+
|
1018
|
+
# Time offset relative to the beginning of the audio, and
|
1019
|
+
# corresponding to the start of the spoken word. This field is only set if
|
1020
|
+
# `enable_word_time_offsets=true` and only in the top hypothesis. This is an
|
1021
|
+
# experimental feature and the accuracy of the time offset can vary.
|
1022
|
+
# Corresponds to the JSON property `startTime`
|
1023
|
+
# @return [String]
|
1024
|
+
attr_accessor :start_time
|
1025
|
+
|
1026
|
+
# The word corresponding to this set of information.
|
1027
|
+
# Corresponds to the JSON property `word`
|
1028
|
+
# @return [String]
|
1029
|
+
attr_accessor :word
|
1030
|
+
|
1031
|
+
def initialize(**args)
|
1032
|
+
update!(**args)
|
1033
|
+
end
|
1034
|
+
|
1035
|
+
# Update properties of this object
|
1036
|
+
def update!(**args)
|
1037
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
1038
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
1039
|
+
@speaker_tag = args[:speaker_tag] if args.key?(:speaker_tag)
|
1040
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
1041
|
+
@word = args[:word] if args.key?(:word)
|
1042
|
+
end
|
1043
|
+
end
|
1044
|
+
|
781
1045
|
# Video annotation progress. Included in the `metadata`
|
782
1046
|
# field of the `Operation` returned by the `GetOperation`
|
783
1047
|
# call of the `google::longrunning::Operations` service.
|
@@ -1212,6 +1476,14 @@ module Google
|
|
1212
1476
|
# @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative>]
|
1213
1477
|
attr_accessor :alternatives
|
1214
1478
|
|
1479
|
+
# Output only. The
|
1480
|
+
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
|
1481
|
+
# language in this result. This language code was detected to have the most
|
1482
|
+
# likelihood of being spoken in the audio.
|
1483
|
+
# Corresponds to the JSON property `languageCode`
|
1484
|
+
# @return [String]
|
1485
|
+
attr_accessor :language_code
|
1486
|
+
|
1215
1487
|
def initialize(**args)
|
1216
1488
|
update!(**args)
|
1217
1489
|
end
|
@@ -1219,6 +1491,7 @@ module Google
|
|
1219
1491
|
# Update properties of this object
|
1220
1492
|
def update!(**args)
|
1221
1493
|
@alternatives = args[:alternatives] if args.key?(:alternatives)
|
1494
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
1222
1495
|
end
|
1223
1496
|
end
|
1224
1497
|
|
@@ -1291,7 +1564,7 @@ module Google
|
|
1291
1564
|
|
1292
1565
|
# *Optional* Maximum number of recognition hypotheses to be returned.
|
1293
1566
|
# Specifically, the maximum number of `SpeechRecognitionAlternative` messages
|
1294
|
-
# within each `
|
1567
|
+
# within each `SpeechTranscription`. The server may return fewer than
|
1295
1568
|
# `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will
|
1296
1569
|
# return a maximum of one. If omitted, will return a maximum of one.
|
1297
1570
|
# Corresponds to the JSON property `maxAlternatives`
|
@@ -1973,22 +2246,78 @@ module Google
|
|
1973
2246
|
end
|
1974
2247
|
end
|
1975
2248
|
|
1976
|
-
#
|
1977
|
-
|
1978
|
-
# detection.
|
1979
|
-
class GoogleCloudVideointelligenceV1p2beta1TextAnnotation
|
2249
|
+
# Alternative hypotheses (a.k.a. n-best list).
|
2250
|
+
class GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative
|
1980
2251
|
include Google::Apis::Core::Hashable
|
1981
2252
|
|
1982
|
-
#
|
1983
|
-
#
|
2253
|
+
# The confidence estimate between 0.0 and 1.0. A higher number
|
2254
|
+
# indicates an estimated greater likelihood that the recognized words are
|
2255
|
+
# correct. This field is typically provided only for the top hypothesis, and
|
2256
|
+
# only for `is_final=true` results. Clients should not rely on the
|
2257
|
+
# `confidence` field as it is not guaranteed to be accurate or consistent.
|
2258
|
+
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
|
1984
2259
|
# Corresponds to the JSON property `confidence`
|
1985
2260
|
# @return [Float]
|
1986
2261
|
attr_accessor :confidence
|
1987
2262
|
|
1988
|
-
#
|
1989
|
-
# Corresponds to the JSON property `
|
1990
|
-
# @return [
|
1991
|
-
attr_accessor :
|
2263
|
+
# Transcript text representing the words that the user spoke.
|
2264
|
+
# Corresponds to the JSON property `transcript`
|
2265
|
+
# @return [String]
|
2266
|
+
attr_accessor :transcript
|
2267
|
+
|
2268
|
+
# A list of word-specific information for each recognized word.
|
2269
|
+
# Corresponds to the JSON property `words`
|
2270
|
+
# @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1WordInfo>]
|
2271
|
+
attr_accessor :words
|
2272
|
+
|
2273
|
+
def initialize(**args)
|
2274
|
+
update!(**args)
|
2275
|
+
end
|
2276
|
+
|
2277
|
+
# Update properties of this object
|
2278
|
+
def update!(**args)
|
2279
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
2280
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
2281
|
+
@words = args[:words] if args.key?(:words)
|
2282
|
+
end
|
2283
|
+
end
|
2284
|
+
|
2285
|
+
# A speech recognition result corresponding to a portion of the audio.
|
2286
|
+
class GoogleCloudVideointelligenceV1p2beta1SpeechTranscription
|
2287
|
+
include Google::Apis::Core::Hashable
|
2288
|
+
|
2289
|
+
# May contain one or more recognition hypotheses (up to the maximum specified
|
2290
|
+
# in `max_alternatives`). These alternatives are ordered in terms of
|
2291
|
+
# accuracy, with the top (first) alternative being the most probable, as
|
2292
|
+
# ranked by the recognizer.
|
2293
|
+
# Corresponds to the JSON property `alternatives`
|
2294
|
+
# @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative>]
|
2295
|
+
attr_accessor :alternatives
|
2296
|
+
|
2297
|
+
# Output only. The
|
2298
|
+
# [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
|
2299
|
+
# language in this result. This language code was detected to have the most
|
2300
|
+
# likelihood of being spoken in the audio.
|
2301
|
+
# Corresponds to the JSON property `languageCode`
|
2302
|
+
# @return [String]
|
2303
|
+
attr_accessor :language_code
|
2304
|
+
|
2305
|
+
def initialize(**args)
|
2306
|
+
update!(**args)
|
2307
|
+
end
|
2308
|
+
|
2309
|
+
# Update properties of this object
|
2310
|
+
def update!(**args)
|
2311
|
+
@alternatives = args[:alternatives] if args.key?(:alternatives)
|
2312
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
2313
|
+
end
|
2314
|
+
end
|
2315
|
+
|
2316
|
+
# Annotations related to one detected OCR text snippet. This will contain the
|
2317
|
+
# corresponding text, confidence value, and frame level information for each
|
2318
|
+
# detection.
|
2319
|
+
class GoogleCloudVideointelligenceV1p2beta1TextAnnotation
|
2320
|
+
include Google::Apis::Core::Hashable
|
1992
2321
|
|
1993
2322
|
# All video segments where OCR detected text appears.
|
1994
2323
|
# Corresponds to the JSON property `segments`
|
@@ -2006,8 +2335,6 @@ module Google
|
|
2006
2335
|
|
2007
2336
|
# Update properties of this object
|
2008
2337
|
def update!(**args)
|
2009
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
2010
|
-
@frames = args[:frames] if args.key?(:frames)
|
2011
2338
|
@segments = args[:segments] if args.key?(:segments)
|
2012
2339
|
@text = args[:text] if args.key?(:text)
|
2013
2340
|
end
|
@@ -2058,6 +2385,17 @@ module Google
|
|
2058
2385
|
class GoogleCloudVideointelligenceV1p2beta1TextSegment
|
2059
2386
|
include Google::Apis::Core::Hashable
|
2060
2387
|
|
2388
|
+
# Confidence for the track of detected text. It is calculated as the highest
|
2389
|
+
# over all frames where OCR detected text appears.
|
2390
|
+
# Corresponds to the JSON property `confidence`
|
2391
|
+
# @return [Float]
|
2392
|
+
attr_accessor :confidence
|
2393
|
+
|
2394
|
+
# Information related to the frames where OCR detected text appears.
|
2395
|
+
# Corresponds to the JSON property `frames`
|
2396
|
+
# @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1TextFrame>]
|
2397
|
+
attr_accessor :frames
|
2398
|
+
|
2061
2399
|
# Video segment.
|
2062
2400
|
# Corresponds to the JSON property `segment`
|
2063
2401
|
# @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1VideoSegment]
|
@@ -2069,6 +2407,8 @@ module Google
|
|
2069
2407
|
|
2070
2408
|
# Update properties of this object
|
2071
2409
|
def update!(**args)
|
2410
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
2411
|
+
@frames = args[:frames] if args.key?(:frames)
|
2072
2412
|
@segment = args[:segment] if args.key?(:segment)
|
2073
2413
|
end
|
2074
2414
|
end
|
@@ -2200,6 +2540,11 @@ module Google
|
|
2200
2540
|
# @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>]
|
2201
2541
|
attr_accessor :shot_label_annotations
|
2202
2542
|
|
2543
|
+
# Speech transcription.
|
2544
|
+
# Corresponds to the JSON property `speechTranscriptions`
|
2545
|
+
# @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1SpeechTranscription>]
|
2546
|
+
attr_accessor :speech_transcriptions
|
2547
|
+
|
2203
2548
|
# OCR text detection and tracking.
|
2204
2549
|
# Annotations for list of detected text snippets. Each will have list of
|
2205
2550
|
# frame information associated with it.
|
@@ -2221,6 +2566,7 @@ module Google
|
|
2221
2566
|
@segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)
|
2222
2567
|
@shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
|
2223
2568
|
@shot_label_annotations = args[:shot_label_annotations] if args.key?(:shot_label_annotations)
|
2569
|
+
@speech_transcriptions = args[:speech_transcriptions] if args.key?(:speech_transcriptions)
|
2224
2570
|
@text_annotations = args[:text_annotations] if args.key?(:text_annotations)
|
2225
2571
|
end
|
2226
2572
|
end
|
@@ -2252,6 +2598,65 @@ module Google
|
|
2252
2598
|
end
|
2253
2599
|
end
|
2254
2600
|
|
2601
|
+
# Word-specific information for recognized words. Word information is only
|
2602
|
+
# included in the response when certain request parameters are set, such
|
2603
|
+
# as `enable_word_time_offsets`.
|
2604
|
+
class GoogleCloudVideointelligenceV1p2beta1WordInfo
|
2605
|
+
include Google::Apis::Core::Hashable
|
2606
|
+
|
2607
|
+
# Output only. The confidence estimate between 0.0 and 1.0. A higher number
|
2608
|
+
# indicates an estimated greater likelihood that the recognized words are
|
2609
|
+
# correct. This field is set only for the top alternative.
|
2610
|
+
# This field is not guaranteed to be accurate and users should not rely on it
|
2611
|
+
# to be always provided.
|
2612
|
+
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
|
2613
|
+
# Corresponds to the JSON property `confidence`
|
2614
|
+
# @return [Float]
|
2615
|
+
attr_accessor :confidence
|
2616
|
+
|
2617
|
+
# Time offset relative to the beginning of the audio, and
|
2618
|
+
# corresponding to the end of the spoken word. This field is only set if
|
2619
|
+
# `enable_word_time_offsets=true` and only in the top hypothesis. This is an
|
2620
|
+
# experimental feature and the accuracy of the time offset can vary.
|
2621
|
+
# Corresponds to the JSON property `endTime`
|
2622
|
+
# @return [String]
|
2623
|
+
attr_accessor :end_time
|
2624
|
+
|
2625
|
+
# Output only. A distinct integer value is assigned for every speaker within
|
2626
|
+
# the audio. This field specifies which one of those speakers was detected to
|
2627
|
+
# have spoken this word. Value ranges from 1 up to diarization_speaker_count,
|
2628
|
+
# and is only set if speaker diarization is enabled.
|
2629
|
+
# Corresponds to the JSON property `speakerTag`
|
2630
|
+
# @return [Fixnum]
|
2631
|
+
attr_accessor :speaker_tag
|
2632
|
+
|
2633
|
+
# Time offset relative to the beginning of the audio, and
|
2634
|
+
# corresponding to the start of the spoken word. This field is only set if
|
2635
|
+
# `enable_word_time_offsets=true` and only in the top hypothesis. This is an
|
2636
|
+
# experimental feature and the accuracy of the time offset can vary.
|
2637
|
+
# Corresponds to the JSON property `startTime`
|
2638
|
+
# @return [String]
|
2639
|
+
attr_accessor :start_time
|
2640
|
+
|
2641
|
+
# The word corresponding to this set of information.
|
2642
|
+
# Corresponds to the JSON property `word`
|
2643
|
+
# @return [String]
|
2644
|
+
attr_accessor :word
|
2645
|
+
|
2646
|
+
def initialize(**args)
|
2647
|
+
update!(**args)
|
2648
|
+
end
|
2649
|
+
|
2650
|
+
# Update properties of this object
|
2651
|
+
def update!(**args)
|
2652
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
2653
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
2654
|
+
@speaker_tag = args[:speaker_tag] if args.key?(:speaker_tag)
|
2655
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
2656
|
+
@word = args[:word] if args.key?(:word)
|
2657
|
+
end
|
2658
|
+
end
|
2659
|
+
|
2255
2660
|
# This resource represents a long-running operation that is the result of a
|
2256
2661
|
# network API call.
|
2257
2662
|
class GoogleLongrunningOperation
|