google-api-client 0.24.2 → 0.24.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +68 -0
  3. data/README.md +9 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +5 -4
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +90 -87
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +17 -15
  7. data/generated/google/apis/admin_directory_v1.rb +1 -1
  8. data/generated/google/apis/admin_directory_v1/classes.rb +155 -0
  9. data/generated/google/apis/admin_directory_v1/representations.rb +82 -0
  10. data/generated/google/apis/alertcenter_v1beta1.rb +31 -0
  11. data/generated/google/apis/alertcenter_v1beta1/classes.rb +835 -0
  12. data/generated/google/apis/alertcenter_v1beta1/representations.rb +394 -0
  13. data/generated/google/apis/alertcenter_v1beta1/service.rb +302 -0
  14. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  15. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +37 -0
  16. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
  17. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +8 -1
  18. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  19. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -4
  20. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  21. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  22. data/generated/google/apis/androidpublisher_v2/service.rb +5 -1
  23. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  24. data/generated/google/apis/androidpublisher_v3/service.rb +5 -1
  25. data/generated/google/apis/appengine_v1.rb +1 -1
  26. data/generated/google/apis/appengine_v1/classes.rb +8 -1
  27. data/generated/google/apis/appengine_v1/representations.rb +1 -0
  28. data/generated/google/apis/appengine_v1beta.rb +1 -1
  29. data/generated/google/apis/appengine_v1beta/classes.rb +1 -1
  30. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  31. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +6 -5
  32. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +12 -10
  33. data/generated/google/apis/calendar_v3.rb +1 -1
  34. data/generated/google/apis/calendar_v3/service.rb +52 -18
  35. data/generated/google/apis/cloudasset_v1beta1.rb +34 -0
  36. data/generated/google/apis/cloudasset_v1beta1/classes.rb +798 -0
  37. data/generated/google/apis/cloudasset_v1beta1/representations.rb +263 -0
  38. data/generated/google/apis/cloudasset_v1beta1/service.rb +313 -0
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +42 -5
  41. data/generated/google/apis/cloudbuild_v1/representations.rb +6 -0
  42. data/generated/google/apis/cloudiot_v1.rb +1 -1
  43. data/generated/google/apis/cloudiot_v1/classes.rb +59 -0
  44. data/generated/google/apis/cloudiot_v1/representations.rb +28 -0
  45. data/generated/google/apis/cloudiot_v1/service.rb +94 -0
  46. data/generated/google/apis/composer_v1.rb +1 -1
  47. data/generated/google/apis/composer_v1/classes.rb +1 -0
  48. data/generated/google/apis/composer_v1beta1.rb +1 -1
  49. data/generated/google/apis/composer_v1beta1/classes.rb +34 -5
  50. data/generated/google/apis/composer_v1beta1/representations.rb +1 -0
  51. data/generated/google/apis/compute_alpha.rb +1 -1
  52. data/generated/google/apis/compute_alpha/classes.rb +227 -48
  53. data/generated/google/apis/compute_alpha/representations.rb +84 -1
  54. data/generated/google/apis/compute_alpha/service.rb +50 -10
  55. data/generated/google/apis/compute_beta.rb +1 -1
  56. data/generated/google/apis/compute_beta/classes.rb +593 -77
  57. data/generated/google/apis/compute_beta/representations.rb +224 -18
  58. data/generated/google/apis/compute_beta/service.rb +174 -3
  59. data/generated/google/apis/compute_v1.rb +1 -1
  60. data/generated/google/apis/compute_v1/classes.rb +41 -18
  61. data/generated/google/apis/compute_v1/representations.rb +3 -0
  62. data/generated/google/apis/content_v2.rb +1 -1
  63. data/generated/google/apis/content_v2/classes.rb +372 -119
  64. data/generated/google/apis/content_v2/representations.rb +157 -39
  65. data/generated/google/apis/content_v2/service.rb +101 -11
  66. data/generated/google/apis/content_v2sandbox.rb +1 -1
  67. data/generated/google/apis/content_v2sandbox/classes.rb +372 -119
  68. data/generated/google/apis/content_v2sandbox/representations.rb +157 -39
  69. data/generated/google/apis/content_v2sandbox/service.rb +90 -0
  70. data/generated/google/apis/customsearch_v1.rb +1 -1
  71. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  72. data/generated/google/apis/dataflow_v1b3/classes.rb +7 -0
  73. data/generated/google/apis/dataflow_v1b3/representations.rb +1 -0
  74. data/generated/google/apis/dataproc_v1.rb +1 -1
  75. data/generated/google/apis/dataproc_v1/classes.rb +12 -0
  76. data/generated/google/apis/dataproc_v1/representations.rb +2 -0
  77. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  78. data/generated/google/apis/dataproc_v1beta2/classes.rb +21 -6
  79. data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
  80. data/generated/google/apis/datastore_v1.rb +1 -1
  81. data/generated/google/apis/datastore_v1/classes.rb +2 -2
  82. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  83. data/generated/google/apis/datastore_v1beta3/classes.rb +2 -2
  84. data/generated/google/apis/dlp_v2.rb +1 -1
  85. data/generated/google/apis/dlp_v2/classes.rb +110 -5
  86. data/generated/google/apis/dlp_v2/representations.rb +17 -0
  87. data/generated/google/apis/dlp_v2/service.rb +41 -3
  88. data/generated/google/apis/file_v1beta1.rb +1 -1
  89. data/generated/google/apis/file_v1beta1/classes.rb +0 -234
  90. data/generated/google/apis/file_v1beta1/representations.rb +0 -79
  91. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  92. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +19 -1
  93. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +3 -0
  94. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -1
  95. data/generated/google/apis/firebasehosting_v1beta1.rb +43 -0
  96. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +767 -0
  97. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +337 -0
  98. data/generated/google/apis/firebasehosting_v1beta1/service.rb +502 -0
  99. data/generated/google/apis/firebaserules_v1.rb +1 -1
  100. data/generated/google/apis/firebaserules_v1/classes.rb +8 -0
  101. data/generated/google/apis/firebaserules_v1/representations.rb +1 -0
  102. data/generated/google/apis/firebaserules_v1/service.rb +1 -1
  103. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  104. data/generated/google/apis/firestore_v1beta2/service.rb +80 -80
  105. data/generated/google/apis/games_v1.rb +1 -1
  106. data/generated/google/apis/games_v1/service.rb +4 -1
  107. data/generated/google/apis/iam_v1.rb +1 -1
  108. data/generated/google/apis/iam_v1/classes.rb +3 -1
  109. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  110. data/generated/google/apis/iamcredentials_v1/service.rb +0 -10
  111. data/generated/google/apis/iap_v1beta1.rb +1 -1
  112. data/generated/google/apis/iap_v1beta1/service.rb +339 -0
  113. data/generated/google/apis/jobs_v2.rb +1 -1
  114. data/generated/google/apis/jobs_v2/classes.rb +45 -37
  115. data/generated/google/apis/jobs_v3.rb +1 -1
  116. data/generated/google/apis/jobs_v3/classes.rb +21 -18
  117. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  118. data/generated/google/apis/jobs_v3p1beta1/classes.rb +45 -20
  119. data/generated/google/apis/jobs_v3p1beta1/representations.rb +2 -0
  120. data/generated/google/apis/language_v1.rb +1 -1
  121. data/generated/google/apis/language_v1beta1.rb +1 -1
  122. data/generated/google/apis/language_v1beta2.rb +1 -1
  123. data/generated/google/apis/logging_v2.rb +1 -1
  124. data/generated/google/apis/logging_v2/classes.rb +12 -0
  125. data/generated/google/apis/logging_v2/representations.rb +1 -0
  126. data/generated/google/apis/logging_v2beta1.rb +1 -1
  127. data/generated/google/apis/logging_v2beta1/classes.rb +12 -0
  128. data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
  129. data/generated/google/apis/ml_v1.rb +1 -1
  130. data/generated/google/apis/ml_v1/classes.rb +2 -2
  131. data/generated/google/apis/monitoring_v3.rb +1 -1
  132. data/generated/google/apis/monitoring_v3/classes.rb +19 -17
  133. data/generated/google/apis/monitoring_v3/representations.rb +1 -2
  134. data/generated/google/apis/partners_v2.rb +1 -1
  135. data/generated/google/apis/partners_v2/classes.rb +18 -15
  136. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  137. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +18 -15
  138. data/generated/google/apis/redis_v1.rb +1 -1
  139. data/generated/google/apis/redis_v1/classes.rb +1 -1
  140. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  141. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -1
  142. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  143. data/generated/google/apis/servicemanagement_v1/classes.rb +2 -150
  144. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -42
  145. data/generated/google/apis/servicenetworking_v1beta.rb +38 -0
  146. data/generated/google/apis/servicenetworking_v1beta/classes.rb +3440 -0
  147. data/generated/google/apis/servicenetworking_v1beta/representations.rb +992 -0
  148. data/generated/google/apis/servicenetworking_v1beta/service.rb +227 -0
  149. data/generated/google/apis/serviceusage_v1.rb +1 -1
  150. data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
  151. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  152. data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
  153. data/generated/google/apis/serviceuser_v1.rb +1 -1
  154. data/generated/google/apis/serviceuser_v1/classes.rb +2 -150
  155. data/generated/google/apis/serviceuser_v1/representations.rb +0 -42
  156. data/generated/google/apis/spanner_v1.rb +1 -1
  157. data/generated/google/apis/spanner_v1/classes.rb +308 -30
  158. data/generated/google/apis/spanner_v1/representations.rb +17 -0
  159. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  160. data/generated/google/apis/streetviewpublish_v1/classes.rb +12 -0
  161. data/generated/google/apis/streetviewpublish_v1/representations.rb +1 -0
  162. data/generated/google/apis/testing_v1.rb +1 -1
  163. data/generated/google/apis/testing_v1/classes.rb +47 -0
  164. data/generated/google/apis/testing_v1/representations.rb +18 -0
  165. data/generated/google/apis/videointelligence_v1.rb +1 -1
  166. data/generated/google/apis/videointelligence_v1/classes.rb +676 -0
  167. data/generated/google/apis/videointelligence_v1/representations.rb +306 -0
  168. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  169. data/generated/google/apis/videointelligence_v1beta2/classes.rb +676 -0
  170. data/generated/google/apis/videointelligence_v1beta2/representations.rb +306 -0
  171. data/generated/google/apis/{videointelligence_v1beta1.rb → videointelligence_v1p1beta1.rb} +6 -6
  172. data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/classes.rb +885 -489
  173. data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/representations.rb +357 -194
  174. data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/service.rb +12 -12
  175. data/generated/google/apis/vision_v1.rb +1 -1
  176. data/generated/google/apis/vision_v1/classes.rb +1 -1
  177. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  178. data/generated/google/apis/vision_v1p1beta1/classes.rb +1 -1
  179. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  180. data/generated/google/apis/vision_v1p2beta1/classes.rb +1 -1
  181. data/generated/google/apis/youtube_partner_v1.rb +2 -2
  182. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  183. data/generated/google/apis/youtube_partner_v1/service.rb +1 -1
  184. data/lib/google/apis/version.rb +1 -1
  185. metadata +22 -6
@@ -268,6 +268,120 @@ module Google
268
268
  include Google::Apis::Core::JsonObjectSupport
269
269
  end
270
270
 
271
+ class GoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
277
+ class GoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class GoogleCloudVideointelligenceV1p2beta1Entity
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
295
+ class GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
301
+ class GoogleCloudVideointelligenceV1p2beta1LabelAnnotation
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
307
+ class GoogleCloudVideointelligenceV1p2beta1LabelFrame
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
313
+ class GoogleCloudVideointelligenceV1p2beta1LabelSegment
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
319
+ class GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
331
+ class GoogleCloudVideointelligenceV1p2beta1NormalizedVertex
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
337
+ class GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+
340
+ include Google::Apis::Core::JsonObjectSupport
341
+ end
342
+
343
+ class GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
349
+ class GoogleCloudVideointelligenceV1p2beta1TextAnnotation
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
355
+ class GoogleCloudVideointelligenceV1p2beta1TextFrame
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
361
+ class GoogleCloudVideointelligenceV1p2beta1TextSegment
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
367
+ class GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress
368
+ class Representation < Google::Apis::Core::JsonRepresentation; end
369
+
370
+ include Google::Apis::Core::JsonObjectSupport
371
+ end
372
+
373
+ class GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
379
+ class GoogleCloudVideointelligenceV1p2beta1VideoSegment
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
271
385
  class GoogleLongrunningOperation
272
386
  class Representation < Google::Apis::Core::JsonRepresentation; end
273
387
 
@@ -680,12 +794,204 @@ module Google
680
794
  class GoogleCloudVideointelligenceV1p1beta1WordInfo
681
795
  # @private
682
796
  class Representation < Google::Apis::Core::JsonRepresentation
797
+ property :confidence, as: 'confidence'
683
798
  property :end_time, as: 'endTime'
799
+ property :speaker_tag, as: 'speakerTag'
684
800
  property :start_time, as: 'startTime'
685
801
  property :word, as: 'word'
686
802
  end
687
803
  end
688
804
 
805
+ class GoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress
806
+ # @private
807
+ class Representation < Google::Apis::Core::JsonRepresentation
808
+ collection :annotation_progress, as: 'annotationProgress', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress::Representation
809
+
810
+ end
811
+ end
812
+
813
+ class GoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse
814
+ # @private
815
+ class Representation < Google::Apis::Core::JsonRepresentation
816
+ collection :annotation_results, as: 'annotationResults', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults::Representation
817
+
818
+ end
819
+ end
820
+
821
+ class GoogleCloudVideointelligenceV1p2beta1Entity
822
+ # @private
823
+ class Representation < Google::Apis::Core::JsonRepresentation
824
+ property :description, as: 'description'
825
+ property :entity_id, as: 'entityId'
826
+ property :language_code, as: 'languageCode'
827
+ end
828
+ end
829
+
830
+ class GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation
831
+ # @private
832
+ class Representation < Google::Apis::Core::JsonRepresentation
833
+ collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame::Representation
834
+
835
+ end
836
+ end
837
+
838
+ class GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame
839
+ # @private
840
+ class Representation < Google::Apis::Core::JsonRepresentation
841
+ property :pornography_likelihood, as: 'pornographyLikelihood'
842
+ property :time_offset, as: 'timeOffset'
843
+ end
844
+ end
845
+
846
+ class GoogleCloudVideointelligenceV1p2beta1LabelAnnotation
847
+ # @private
848
+ class Representation < Google::Apis::Core::JsonRepresentation
849
+ collection :category_entities, as: 'categoryEntities', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1Entity, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1Entity::Representation
850
+
851
+ property :entity, as: 'entity', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1Entity, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1Entity::Representation
852
+
853
+ collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1LabelFrame, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1LabelFrame::Representation
854
+
855
+ collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1LabelSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1LabelSegment::Representation
856
+
857
+ end
858
+ end
859
+
860
+ class GoogleCloudVideointelligenceV1p2beta1LabelFrame
861
+ # @private
862
+ class Representation < Google::Apis::Core::JsonRepresentation
863
+ property :confidence, as: 'confidence'
864
+ property :time_offset, as: 'timeOffset'
865
+ end
866
+ end
867
+
868
+ class GoogleCloudVideointelligenceV1p2beta1LabelSegment
869
+ # @private
870
+ class Representation < Google::Apis::Core::JsonRepresentation
871
+ property :confidence, as: 'confidence'
872
+ property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoSegment::Representation
873
+
874
+ end
875
+ end
876
+
877
+ class GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox
878
+ # @private
879
+ class Representation < Google::Apis::Core::JsonRepresentation
880
+ property :bottom, as: 'bottom'
881
+ property :left, as: 'left'
882
+ property :right, as: 'right'
883
+ property :top, as: 'top'
884
+ end
885
+ end
886
+
887
+ class GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly
888
+ # @private
889
+ class Representation < Google::Apis::Core::JsonRepresentation
890
+ collection :vertices, as: 'vertices', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1NormalizedVertex, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1NormalizedVertex::Representation
891
+
892
+ end
893
+ end
894
+
895
+ class GoogleCloudVideointelligenceV1p2beta1NormalizedVertex
896
+ # @private
897
+ class Representation < Google::Apis::Core::JsonRepresentation
898
+ property :x, as: 'x'
899
+ property :y, as: 'y'
900
+ end
901
+ end
902
+
903
+ class GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation
904
+ # @private
905
+ class Representation < Google::Apis::Core::JsonRepresentation
906
+ property :confidence, as: 'confidence'
907
+ property :entity, as: 'entity', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1Entity, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1Entity::Representation
908
+
909
+ collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame::Representation
910
+
911
+ property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoSegment::Representation
912
+
913
+ end
914
+ end
915
+
916
+ class GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame
917
+ # @private
918
+ class Representation < Google::Apis::Core::JsonRepresentation
919
+ property :normalized_bounding_box, as: 'normalizedBoundingBox', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox::Representation
920
+
921
+ property :time_offset, as: 'timeOffset'
922
+ end
923
+ end
924
+
925
+ class GoogleCloudVideointelligenceV1p2beta1TextAnnotation
926
+ # @private
927
+ class Representation < Google::Apis::Core::JsonRepresentation
928
+ property :confidence, as: 'confidence'
929
+ collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextFrame, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextFrame::Representation
930
+
931
+ collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextSegment::Representation
932
+
933
+ property :text, as: 'text'
934
+ end
935
+ end
936
+
937
+ class GoogleCloudVideointelligenceV1p2beta1TextFrame
938
+ # @private
939
+ class Representation < Google::Apis::Core::JsonRepresentation
940
+ property :rotated_bounding_box, as: 'rotatedBoundingBox', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly::Representation
941
+
942
+ property :time_offset, as: 'timeOffset'
943
+ end
944
+ end
945
+
946
+ class GoogleCloudVideointelligenceV1p2beta1TextSegment
947
+ # @private
948
+ class Representation < Google::Apis::Core::JsonRepresentation
949
+ property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoSegment::Representation
950
+
951
+ end
952
+ end
953
+
954
+ class GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress
955
+ # @private
956
+ class Representation < Google::Apis::Core::JsonRepresentation
957
+ property :input_uri, as: 'inputUri'
958
+ property :progress_percent, as: 'progressPercent'
959
+ property :start_time, as: 'startTime'
960
+ property :update_time, as: 'updateTime'
961
+ end
962
+ end
963
+
964
+ class GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults
965
+ # @private
966
+ class Representation < Google::Apis::Core::JsonRepresentation
967
+ property :error, as: 'error', class: Google::Apis::VideointelligenceV1beta2::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1beta2::GoogleRpcStatus::Representation
968
+
969
+ property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation::Representation
970
+
971
+ collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1LabelAnnotation::Representation
972
+
973
+ property :input_uri, as: 'inputUri'
974
+ collection :object_annotations, as: 'objectAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation::Representation
975
+
976
+ collection :segment_label_annotations, as: 'segmentLabelAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1LabelAnnotation::Representation
977
+
978
+ collection :shot_annotations, as: 'shotAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1VideoSegment::Representation
979
+
980
+ collection :shot_label_annotations, as: 'shotLabelAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1LabelAnnotation::Representation
981
+
982
+ collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1TextAnnotation::Representation
983
+
984
+ end
985
+ end
986
+
987
+ class GoogleCloudVideointelligenceV1p2beta1VideoSegment
988
+ # @private
989
+ class Representation < Google::Apis::Core::JsonRepresentation
990
+ property :end_time_offset, as: 'endTimeOffset'
991
+ property :start_time_offset, as: 'startTimeOffset'
992
+ end
993
+ end
994
+
689
995
  class GoogleLongrunningOperation
690
996
  # @private
691
997
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -12,9 +12,9 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- require 'google/apis/videointelligence_v1beta1/service.rb'
16
- require 'google/apis/videointelligence_v1beta1/classes.rb'
17
- require 'google/apis/videointelligence_v1beta1/representations.rb'
15
+ require 'google/apis/videointelligence_v1p1beta1/service.rb'
16
+ require 'google/apis/videointelligence_v1p1beta1/classes.rb'
17
+ require 'google/apis/videointelligence_v1p1beta1/representations.rb'
18
18
 
19
19
  module Google
20
20
  module Apis
@@ -23,9 +23,9 @@ module Google
23
23
  # Cloud Video Intelligence API.
24
24
  #
25
25
  # @see https://cloud.google.com/video-intelligence/docs/
26
- module VideointelligenceV1beta1
27
- VERSION = 'V1beta1'
28
- REVISION = '20180502'
26
+ module VideointelligenceV1p1beta1
27
+ VERSION = 'V1p1beta1'
28
+ REVISION = '20180920'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -20,7 +20,7 @@ require 'google/apis/errors'
20
20
 
21
21
  module Google
22
22
  module Apis
23
- module VideointelligenceV1beta1
23
+ module VideointelligenceV1p1beta1
24
24
 
25
25
  # Video annotation progress. Included in the `metadata`
26
26
  # field of the `Operation` returned by the `GetOperation`
@@ -30,7 +30,7 @@ module Google
30
30
 
31
31
  # Progress metadata for all videos specified in `AnnotateVideoRequest`.
32
32
  # Corresponds to the JSON property `annotationProgress`
33
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoAnnotationProgress>]
33
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1VideoAnnotationProgress>]
34
34
  attr_accessor :annotation_progress
35
35
 
36
36
  def initialize(**args)
@@ -51,7 +51,7 @@ module Google
51
51
 
52
52
  # Annotation results for all videos specified in `AnnotateVideoRequest`.
53
53
  # Corresponds to the JSON property `annotationResults`
54
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoAnnotationResults>]
54
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1VideoAnnotationResults>]
55
55
  attr_accessor :annotation_results
56
56
 
57
57
  def initialize(**args)
@@ -105,7 +105,7 @@ module Google
105
105
 
106
106
  # All video frames where explicit content was detected.
107
107
  # Corresponds to the JSON property `frames`
108
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1ExplicitContentFrame>]
108
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1ExplicitContentFrame>]
109
109
  attr_accessor :frames
110
110
 
111
111
  def initialize(**args)
@@ -153,22 +153,22 @@ module Google
153
153
  # cases there might be more than one categories e.g. `Terrier` could also be
154
154
  # a `pet`.
155
155
  # Corresponds to the JSON property `categoryEntities`
156
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1Entity>]
156
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1Entity>]
157
157
  attr_accessor :category_entities
158
158
 
159
159
  # Detected entity from video analysis.
160
160
  # Corresponds to the JSON property `entity`
161
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1Entity]
161
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1Entity]
162
162
  attr_accessor :entity
163
163
 
164
164
  # All video frames where a label was detected.
165
165
  # Corresponds to the JSON property `frames`
166
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelFrame>]
166
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1LabelFrame>]
167
167
  attr_accessor :frames
168
168
 
169
169
  # All video segments where a label was detected.
170
170
  # Corresponds to the JSON property `segments`
171
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelSegment>]
171
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1LabelSegment>]
172
172
  attr_accessor :segments
173
173
 
174
174
  def initialize(**args)
@@ -221,7 +221,7 @@ module Google
221
221
 
222
222
  # Video segment.
223
223
  # Corresponds to the JSON property `segment`
224
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoSegment]
224
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1VideoSegment]
225
225
  attr_accessor :segment
226
226
 
227
227
  def initialize(**args)
@@ -239,24 +239,24 @@ module Google
239
239
  class GoogleCloudVideointelligenceV1VideoAnnotationProgress
240
240
  include Google::Apis::Core::Hashable
241
241
 
242
- # Output only. Video file location in
242
+ # Video file location in
243
243
  # [Google Cloud Storage](https://cloud.google.com/storage/).
244
244
  # Corresponds to the JSON property `inputUri`
245
245
  # @return [String]
246
246
  attr_accessor :input_uri
247
247
 
248
- # Output only. Approximate percentage processed thus far. Guaranteed to be
248
+ # Approximate percentage processed thus far. Guaranteed to be
249
249
  # 100 when fully processed.
250
250
  # Corresponds to the JSON property `progressPercent`
251
251
  # @return [Fixnum]
252
252
  attr_accessor :progress_percent
253
253
 
254
- # Output only. Time when the request was received.
254
+ # Time when the request was received.
255
255
  # Corresponds to the JSON property `startTime`
256
256
  # @return [String]
257
257
  attr_accessor :start_time
258
258
 
259
- # Output only. Time of the most recent update.
259
+ # Time of the most recent update.
260
260
  # Corresponds to the JSON property `updateTime`
261
261
  # @return [String]
262
262
  attr_accessor :update_time
@@ -318,23 +318,23 @@ module Google
318
318
  # - Logging. If some API errors are stored in logs, the message `Status` could
319
319
  # be used directly after any stripping needed for security/privacy reasons.
320
320
  # Corresponds to the JSON property `error`
321
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus]
321
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus]
322
322
  attr_accessor :error
323
323
 
324
324
  # Explicit content annotation (based on per-frame visual signals only).
325
325
  # If no explicit content has been detected in a frame, no annotations are
326
326
  # present for that frame.
327
327
  # Corresponds to the JSON property `explicitAnnotation`
328
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1ExplicitContentAnnotation]
328
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1ExplicitContentAnnotation]
329
329
  attr_accessor :explicit_annotation
330
330
 
331
331
  # Label annotations on frame level.
332
332
  # There is exactly one element for each unique label.
333
333
  # Corresponds to the JSON property `frameLabelAnnotations`
334
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelAnnotation>]
334
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1LabelAnnotation>]
335
335
  attr_accessor :frame_label_annotations
336
336
 
337
- # Output only. Video file location in
337
+ # Video file location in
338
338
  # [Google Cloud Storage](https://cloud.google.com/storage/).
339
339
  # Corresponds to the JSON property `inputUri`
340
340
  # @return [String]
@@ -343,18 +343,18 @@ module Google
343
343
  # Label annotations on video level or user specified segment level.
344
344
  # There is exactly one element for each unique label.
345
345
  # Corresponds to the JSON property `segmentLabelAnnotations`
346
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelAnnotation>]
346
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1LabelAnnotation>]
347
347
  attr_accessor :segment_label_annotations
348
348
 
349
349
  # Shot annotations. Each shot is represented as a video segment.
350
350
  # Corresponds to the JSON property `shotAnnotations`
351
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoSegment>]
351
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1VideoSegment>]
352
352
  attr_accessor :shot_annotations
353
353
 
354
354
  # Label annotations on shot level.
355
355
  # There is exactly one element for each unique label.
356
356
  # Corresponds to the JSON property `shotLabelAnnotations`
357
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelAnnotation>]
357
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1LabelAnnotation>]
358
358
  attr_accessor :shot_label_annotations
359
359
 
360
360
  def initialize(**args)
@@ -403,12 +403,12 @@ module Google
403
403
  # Video annotation progress. Included in the `metadata`
404
404
  # field of the `Operation` returned by the `GetOperation`
405
405
  # call of the `google::longrunning::Operations` service.
406
- class GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress
406
+ class GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress
407
407
  include Google::Apis::Core::Hashable
408
408
 
409
409
  # Progress metadata for all videos specified in `AnnotateVideoRequest`.
410
410
  # Corresponds to the JSON property `annotationProgress`
411
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress>]
411
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress>]
412
412
  attr_accessor :annotation_progress
413
413
 
414
414
  def initialize(**args)
@@ -421,56 +421,47 @@ module Google
421
421
  end
422
422
  end
423
423
 
424
- # Video annotation request.
425
- class GoogleCloudVideointelligenceV1beta1AnnotateVideoRequest
424
+ # Video annotation response. Included in the `response`
425
+ # field of the `Operation` returned by the `GetOperation`
426
+ # call of the `google::longrunning::Operations` service.
427
+ class GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse
426
428
  include Google::Apis::Core::Hashable
427
429
 
428
- # Requested video annotation features.
429
- # Corresponds to the JSON property `features`
430
- # @return [Array<String>]
431
- attr_accessor :features
430
+ # Annotation results for all videos specified in `AnnotateVideoRequest`.
431
+ # Corresponds to the JSON property `annotationResults`
432
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2VideoAnnotationResults>]
433
+ attr_accessor :annotation_results
432
434
 
433
- # The video data bytes. Encoding: base64. If unset, the input video(s)
434
- # should be specified via `input_uri`. If set, `input_uri` should be unset.
435
- # Corresponds to the JSON property `inputContent`
436
- # @return [String]
437
- attr_accessor :input_content
435
+ def initialize(**args)
436
+ update!(**args)
437
+ end
438
438
 
439
- # Input video location. Currently, only
440
- # [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
441
- # supported, which must be specified in the following format:
442
- # `gs://bucket-id/object-id` (other URI formats return
443
- # google.rpc.Code.INVALID_ARGUMENT). For more information, see
444
- # [Request URIs](/storage/docs/reference-uris).
445
- # A video URI may include wildcards in `object-id`, and thus identify
446
- # multiple videos. Supported wildcards: '*' to match 0 or more characters;
447
- # '?' to match 1 character. If unset, the input video should be embedded
448
- # in the request as `input_content`. If set, `input_content` should be unset.
449
- # Corresponds to the JSON property `inputUri`
450
- # @return [String]
451
- attr_accessor :input_uri
439
+ # Update properties of this object
440
+ def update!(**args)
441
+ @annotation_results = args[:annotation_results] if args.key?(:annotation_results)
442
+ end
443
+ end
452
444
 
453
- # Optional cloud region where annotation should take place. Supported cloud
454
- # regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
455
- # is specified, a region will be determined based on video file location.
456
- # Corresponds to the JSON property `locationId`
445
+ # Detected entity from video analysis.
446
+ class GoogleCloudVideointelligenceV1beta2Entity
447
+ include Google::Apis::Core::Hashable
448
+
449
+ # Textual description, e.g. `Fixed-gear bicycle`.
450
+ # Corresponds to the JSON property `description`
457
451
  # @return [String]
458
- attr_accessor :location_id
452
+ attr_accessor :description
459
453
 
460
- # Optional location where the output (in JSON format) should be stored.
461
- # Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
462
- # URIs are supported, which must be specified in the following format:
463
- # `gs://bucket-id/object-id` (other URI formats return
464
- # google.rpc.Code.INVALID_ARGUMENT). For more information, see
465
- # [Request URIs](/storage/docs/reference-uris).
466
- # Corresponds to the JSON property `outputUri`
454
+ # Opaque entity ID. Some IDs may be available in
455
+ # [Google Knowledge Graph Search
456
+ # API](https://developers.google.com/knowledge-graph/).
457
+ # Corresponds to the JSON property `entityId`
467
458
  # @return [String]
468
- attr_accessor :output_uri
459
+ attr_accessor :entity_id
469
460
 
470
- # Video context and/or feature-specific parameters.
471
- # Corresponds to the JSON property `videoContext`
472
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoContext]
473
- attr_accessor :video_context
461
+ # Language code for `description` in BCP-47 format.
462
+ # Corresponds to the JSON property `languageCode`
463
+ # @return [String]
464
+ attr_accessor :language_code
474
465
 
475
466
  def initialize(**args)
476
467
  update!(**args)
@@ -478,25 +469,22 @@ module Google
478
469
 
479
470
  # Update properties of this object
480
471
  def update!(**args)
481
- @features = args[:features] if args.key?(:features)
482
- @input_content = args[:input_content] if args.key?(:input_content)
483
- @input_uri = args[:input_uri] if args.key?(:input_uri)
484
- @location_id = args[:location_id] if args.key?(:location_id)
485
- @output_uri = args[:output_uri] if args.key?(:output_uri)
486
- @video_context = args[:video_context] if args.key?(:video_context)
472
+ @description = args[:description] if args.key?(:description)
473
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
474
+ @language_code = args[:language_code] if args.key?(:language_code)
487
475
  end
488
476
  end
489
477
 
490
- # Video annotation response. Included in the `response`
491
- # field of the `Operation` returned by the `GetOperation`
492
- # call of the `google::longrunning::Operations` service.
493
- class GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse
478
+ # Explicit content annotation (based on per-frame visual signals only).
479
+ # If no explicit content has been detected in a frame, no annotations are
480
+ # present for that frame.
481
+ class GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation
494
482
  include Google::Apis::Core::Hashable
495
483
 
496
- # Annotation results for all videos specified in `AnnotateVideoRequest`.
497
- # Corresponds to the JSON property `annotationResults`
498
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoAnnotationResults>]
499
- attr_accessor :annotation_results
484
+ # All video frames where explicit content was detected.
485
+ # Corresponds to the JSON property `frames`
486
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2ExplicitContentFrame>]
487
+ attr_accessor :frames
500
488
 
501
489
  def initialize(**args)
502
490
  update!(**args)
@@ -504,28 +492,62 @@ module Google
504
492
 
505
493
  # Update properties of this object
506
494
  def update!(**args)
507
- @annotation_results = args[:annotation_results] if args.key?(:annotation_results)
495
+ @frames = args[:frames] if args.key?(:frames)
508
496
  end
509
497
  end
510
498
 
511
- # Label annotation.
512
- class GoogleCloudVideointelligenceV1beta1LabelAnnotation
499
+ # Video frame level annotation results for explicit content.
500
+ class GoogleCloudVideointelligenceV1beta2ExplicitContentFrame
513
501
  include Google::Apis::Core::Hashable
514
502
 
515
- # Textual description, e.g. `Fixed-gear bicycle`.
516
- # Corresponds to the JSON property `description`
503
+ # Likelihood of the pornography content..
504
+ # Corresponds to the JSON property `pornographyLikelihood`
517
505
  # @return [String]
518
- attr_accessor :description
506
+ attr_accessor :pornography_likelihood
519
507
 
520
- # Language code for `description` in BCP-47 format.
521
- # Corresponds to the JSON property `languageCode`
508
+ # Time-offset, relative to the beginning of the video, corresponding to the
509
+ # video frame for this location.
510
+ # Corresponds to the JSON property `timeOffset`
522
511
  # @return [String]
523
- attr_accessor :language_code
512
+ attr_accessor :time_offset
513
+
514
+ def initialize(**args)
515
+ update!(**args)
516
+ end
517
+
518
+ # Update properties of this object
519
+ def update!(**args)
520
+ @pornography_likelihood = args[:pornography_likelihood] if args.key?(:pornography_likelihood)
521
+ @time_offset = args[:time_offset] if args.key?(:time_offset)
522
+ end
523
+ end
524
+
525
+ # Label annotation.
526
+ class GoogleCloudVideointelligenceV1beta2LabelAnnotation
527
+ include Google::Apis::Core::Hashable
524
528
 
525
- # Where the label was detected and with what confidence.
526
- # Corresponds to the JSON property `locations`
527
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1LabelLocation>]
528
- attr_accessor :locations
529
+ # Common categories for the detected entity.
530
+ # E.g. when the label is `Terrier` the category is likely `dog`. And in some
531
+ # cases there might be more than one categories e.g. `Terrier` could also be
532
+ # a `pet`.
533
+ # Corresponds to the JSON property `categoryEntities`
534
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2Entity>]
535
+ attr_accessor :category_entities
536
+
537
+ # Detected entity from video analysis.
538
+ # Corresponds to the JSON property `entity`
539
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2Entity]
540
+ attr_accessor :entity
541
+
542
+ # All video frames where a label was detected.
543
+ # Corresponds to the JSON property `frames`
544
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2LabelFrame>]
545
+ attr_accessor :frames
546
+
547
+ # All video segments where a label was detected.
548
+ # Corresponds to the JSON property `segments`
549
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2LabelSegment>]
550
+ attr_accessor :segments
529
551
 
530
552
  def initialize(**args)
531
553
  update!(**args)
@@ -533,14 +555,15 @@ module Google
533
555
 
534
556
  # Update properties of this object
535
557
  def update!(**args)
536
- @description = args[:description] if args.key?(:description)
537
- @language_code = args[:language_code] if args.key?(:language_code)
538
- @locations = args[:locations] if args.key?(:locations)
558
+ @category_entities = args[:category_entities] if args.key?(:category_entities)
559
+ @entity = args[:entity] if args.key?(:entity)
560
+ @frames = args[:frames] if args.key?(:frames)
561
+ @segments = args[:segments] if args.key?(:segments)
539
562
  end
540
563
  end
541
564
 
542
- # Label location.
543
- class GoogleCloudVideointelligenceV1beta1LabelLocation
565
+ # Video frame level annotation results for label detection.
566
+ class GoogleCloudVideointelligenceV1beta2LabelFrame
544
567
  include Google::Apis::Core::Hashable
545
568
 
546
569
  # Confidence that the label is accurate. Range: [0, 1].
@@ -548,15 +571,11 @@ module Google
548
571
  # @return [Float]
549
572
  attr_accessor :confidence
550
573
 
551
- # Label level.
552
- # Corresponds to the JSON property `level`
574
+ # Time-offset, relative to the beginning of the video, corresponding to the
575
+ # video frame for this location.
576
+ # Corresponds to the JSON property `timeOffset`
553
577
  # @return [String]
554
- attr_accessor :level
555
-
556
- # Video segment.
557
- # Corresponds to the JSON property `segment`
558
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoSegment]
559
- attr_accessor :segment
578
+ attr_accessor :time_offset
560
579
 
561
580
  def initialize(**args)
562
581
  update!(**args)
@@ -565,49 +584,23 @@ module Google
565
584
  # Update properties of this object
566
585
  def update!(**args)
567
586
  @confidence = args[:confidence] if args.key?(:confidence)
568
- @level = args[:level] if args.key?(:level)
569
- @segment = args[:segment] if args.key?(:segment)
587
+ @time_offset = args[:time_offset] if args.key?(:time_offset)
570
588
  end
571
589
  end
572
590
 
573
- # Safe search annotation (based on per-frame visual signals only).
574
- # If no unsafe content has been detected in a frame, no annotations
575
- # are present for that frame. If only some types of unsafe content
576
- # have been detected in a frame, the likelihood is set to `UNKNOWN`
577
- # for all other types of unsafe content.
578
- class GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
591
+ # Video segment level annotation results for label detection.
592
+ class GoogleCloudVideointelligenceV1beta2LabelSegment
579
593
  include Google::Apis::Core::Hashable
580
594
 
581
- # Likelihood of adult content.
582
- # Corresponds to the JSON property `adult`
583
- # @return [String]
584
- attr_accessor :adult
585
-
586
- # Likelihood of medical content.
587
- # Corresponds to the JSON property `medical`
588
- # @return [String]
589
- attr_accessor :medical
590
-
591
- # Likelihood of racy content.
592
- # Corresponds to the JSON property `racy`
593
- # @return [String]
594
- attr_accessor :racy
595
-
596
- # Likelihood that an obvious modification was made to the original
597
- # version to make it appear funny or offensive.
598
- # Corresponds to the JSON property `spoof`
599
- # @return [String]
600
- attr_accessor :spoof
601
-
602
- # Video time offset in microseconds.
603
- # Corresponds to the JSON property `timeOffset`
604
- # @return [Fixnum]
605
- attr_accessor :time_offset
595
+ # Confidence that the label is accurate. Range: [0, 1].
596
+ # Corresponds to the JSON property `confidence`
597
+ # @return [Float]
598
+ attr_accessor :confidence
606
599
 
607
- # Likelihood of violent content.
608
- # Corresponds to the JSON property `violent`
609
- # @return [String]
610
- attr_accessor :violent
600
+ # Video segment.
601
+ # Corresponds to the JSON property `segment`
602
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2VideoSegment]
603
+ attr_accessor :segment
611
604
 
612
605
  def initialize(**args)
613
606
  update!(**args)
@@ -615,17 +608,13 @@ module Google
615
608
 
616
609
  # Update properties of this object
617
610
  def update!(**args)
618
- @adult = args[:adult] if args.key?(:adult)
619
- @medical = args[:medical] if args.key?(:medical)
620
- @racy = args[:racy] if args.key?(:racy)
621
- @spoof = args[:spoof] if args.key?(:spoof)
622
- @time_offset = args[:time_offset] if args.key?(:time_offset)
623
- @violent = args[:violent] if args.key?(:violent)
611
+ @confidence = args[:confidence] if args.key?(:confidence)
612
+ @segment = args[:segment] if args.key?(:segment)
624
613
  end
625
614
  end
626
615
 
627
616
  # Annotation progress for a single video.
628
- class GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress
617
+ class GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress
629
618
  include Google::Apis::Core::Hashable
630
619
 
631
620
  # Video file location in
@@ -634,8 +623,8 @@ module Google
634
623
  # @return [String]
635
624
  attr_accessor :input_uri
636
625
 
637
- # Approximate percentage processed thus far.
638
- # Guaranteed to be 100 when fully processed.
626
+ # Approximate percentage processed thus far. Guaranteed to be
627
+ # 100 when fully processed.
639
628
  # Corresponds to the JSON property `progressPercent`
640
629
  # @return [Fixnum]
641
630
  attr_accessor :progress_percent
@@ -664,7 +653,7 @@ module Google
664
653
  end
665
654
 
666
655
  # Annotation results for a single video.
667
- class GoogleCloudVideointelligenceV1beta1VideoAnnotationResults
656
+ class GoogleCloudVideointelligenceV1beta2VideoAnnotationResults
668
657
  include Google::Apis::Core::Hashable
669
658
 
670
659
  # The `Status` type defines a logical error model that is suitable for different
@@ -707,30 +696,45 @@ module Google
707
696
  # - Logging. If some API errors are stored in logs, the message `Status` could
708
697
  # be used directly after any stripping needed for security/privacy reasons.
709
698
  # Corresponds to the JSON property `error`
710
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus]
699
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus]
711
700
  attr_accessor :error
712
701
 
702
+ # Explicit content annotation (based on per-frame visual signals only).
703
+ # If no explicit content has been detected in a frame, no annotations are
704
+ # present for that frame.
705
+ # Corresponds to the JSON property `explicitAnnotation`
706
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation]
707
+ attr_accessor :explicit_annotation
708
+
709
+ # Label annotations on frame level.
710
+ # There is exactly one element for each unique label.
711
+ # Corresponds to the JSON property `frameLabelAnnotations`
712
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation>]
713
+ attr_accessor :frame_label_annotations
714
+
713
715
  # Video file location in
714
716
  # [Google Cloud Storage](https://cloud.google.com/storage/).
715
717
  # Corresponds to the JSON property `inputUri`
716
718
  # @return [String]
717
719
  attr_accessor :input_uri
718
720
 
719
- # Label annotations. There is exactly one element for each unique label.
720
- # Corresponds to the JSON property `labelAnnotations`
721
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1LabelAnnotation>]
722
- attr_accessor :label_annotations
723
-
724
- # Safe search annotations.
725
- # Corresponds to the JSON property `safeSearchAnnotations`
726
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation>]
727
- attr_accessor :safe_search_annotations
721
+ # Label annotations on video level or user specified segment level.
722
+ # There is exactly one element for each unique label.
723
+ # Corresponds to the JSON property `segmentLabelAnnotations`
724
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation>]
725
+ attr_accessor :segment_label_annotations
728
726
 
729
727
  # Shot annotations. Each shot is represented as a video segment.
730
728
  # Corresponds to the JSON property `shotAnnotations`
731
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoSegment>]
729
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2VideoSegment>]
732
730
  attr_accessor :shot_annotations
733
731
 
732
+ # Label annotations on shot level.
733
+ # There is exactly one element for each unique label.
734
+ # Corresponds to the JSON property `shotLabelAnnotations`
735
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation>]
736
+ attr_accessor :shot_label_annotations
737
+
734
738
  def initialize(**args)
735
739
  update!(**args)
736
740
  end
@@ -738,55 +742,30 @@ module Google
738
742
  # Update properties of this object
739
743
  def update!(**args)
740
744
  @error = args[:error] if args.key?(:error)
745
+ @explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation)
746
+ @frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations)
741
747
  @input_uri = args[:input_uri] if args.key?(:input_uri)
742
- @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
743
- @safe_search_annotations = args[:safe_search_annotations] if args.key?(:safe_search_annotations)
748
+ @segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)
744
749
  @shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
750
+ @shot_label_annotations = args[:shot_label_annotations] if args.key?(:shot_label_annotations)
745
751
  end
746
752
  end
747
753
 
748
- # Video context and/or feature-specific parameters.
749
- class GoogleCloudVideointelligenceV1beta1VideoContext
754
+ # Video segment.
755
+ class GoogleCloudVideointelligenceV1beta2VideoSegment
750
756
  include Google::Apis::Core::Hashable
751
757
 
752
- # If label detection has been requested, what labels should be detected
753
- # in addition to video-level labels or segment-level labels. If unspecified,
754
- # defaults to `SHOT_MODE`.
755
- # Corresponds to the JSON property `labelDetectionMode`
756
- # @return [String]
757
- attr_accessor :label_detection_mode
758
-
759
- # Model to use for label detection.
760
- # Supported values: "latest" and "stable" (the default).
761
- # Corresponds to the JSON property `labelDetectionModel`
762
- # @return [String]
763
- attr_accessor :label_detection_model
764
-
765
- # Model to use for safe search detection.
766
- # Supported values: "latest" and "stable" (the default).
767
- # Corresponds to the JSON property `safeSearchDetectionModel`
758
+ # Time-offset, relative to the beginning of the video,
759
+ # corresponding to the end of the segment (inclusive).
760
+ # Corresponds to the JSON property `endTimeOffset`
768
761
  # @return [String]
769
- attr_accessor :safe_search_detection_model
770
-
771
- # Video segments to annotate. The segments may overlap and are not required
772
- # to be contiguous or span the whole video. If unspecified, each video
773
- # is treated as a single segment.
774
- # Corresponds to the JSON property `segments`
775
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoSegment>]
776
- attr_accessor :segments
762
+ attr_accessor :end_time_offset
777
763
 
778
- # Model to use for shot change detection.
779
- # Supported values: "latest" and "stable" (the default).
780
- # Corresponds to the JSON property `shotChangeDetectionModel`
764
+ # Time-offset, relative to the beginning of the video,
765
+ # corresponding to the start of the segment (inclusive).
766
+ # Corresponds to the JSON property `startTimeOffset`
781
767
  # @return [String]
782
- attr_accessor :shot_change_detection_model
783
-
784
- # Whether the video has been shot from a stationary (i.e. non-moving) camera.
785
- # When set to true, might improve detection accuracy for moving objects.
786
- # Corresponds to the JSON property `stationaryCamera`
787
- # @return [Boolean]
788
- attr_accessor :stationary_camera
789
- alias_method :stationary_camera?, :stationary_camera
768
+ attr_accessor :start_time_offset
790
769
 
791
770
  def initialize(**args)
792
771
  update!(**args)
@@ -794,28 +773,21 @@ module Google
794
773
 
795
774
  # Update properties of this object
796
775
  def update!(**args)
797
- @label_detection_mode = args[:label_detection_mode] if args.key?(:label_detection_mode)
798
- @label_detection_model = args[:label_detection_model] if args.key?(:label_detection_model)
799
- @safe_search_detection_model = args[:safe_search_detection_model] if args.key?(:safe_search_detection_model)
800
- @segments = args[:segments] if args.key?(:segments)
801
- @shot_change_detection_model = args[:shot_change_detection_model] if args.key?(:shot_change_detection_model)
802
- @stationary_camera = args[:stationary_camera] if args.key?(:stationary_camera)
776
+ @end_time_offset = args[:end_time_offset] if args.key?(:end_time_offset)
777
+ @start_time_offset = args[:start_time_offset] if args.key?(:start_time_offset)
803
778
  end
804
779
  end
805
780
 
806
- # Video segment.
807
- class GoogleCloudVideointelligenceV1beta1VideoSegment
781
+ # Video annotation progress. Included in the `metadata`
782
+ # field of the `Operation` returned by the `GetOperation`
783
+ # call of the `google::longrunning::Operations` service.
784
+ class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress
808
785
  include Google::Apis::Core::Hashable
809
786
 
810
- # End offset in microseconds (inclusive). Unset means 0.
811
- # Corresponds to the JSON property `endTimeOffset`
812
- # @return [Fixnum]
813
- attr_accessor :end_time_offset
814
-
815
- # Start offset in microseconds (inclusive). Unset means 0.
816
- # Corresponds to the JSON property `startTimeOffset`
817
- # @return [Fixnum]
818
- attr_accessor :start_time_offset
787
+ # Progress metadata for all videos specified in `AnnotateVideoRequest`.
788
+ # Corresponds to the JSON property `annotationProgress`
789
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress>]
790
+ attr_accessor :annotation_progress
819
791
 
820
792
  def initialize(**args)
821
793
  update!(**args)
@@ -823,21 +795,62 @@ module Google
823
795
 
824
796
  # Update properties of this object
825
797
  def update!(**args)
826
- @end_time_offset = args[:end_time_offset] if args.key?(:end_time_offset)
827
- @start_time_offset = args[:start_time_offset] if args.key?(:start_time_offset)
798
+ @annotation_progress = args[:annotation_progress] if args.key?(:annotation_progress)
828
799
  end
829
800
  end
830
801
 
831
- # Video annotation progress. Included in the `metadata`
832
- # field of the `Operation` returned by the `GetOperation`
833
- # call of the `google::longrunning::Operations` service.
834
- class GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress
802
+ # Video annotation request.
803
+ class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoRequest
835
804
  include Google::Apis::Core::Hashable
836
805
 
837
- # Progress metadata for all videos specified in `AnnotateVideoRequest`.
838
- # Corresponds to the JSON property `annotationProgress`
839
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress>]
840
- attr_accessor :annotation_progress
806
+ # Requested video annotation features.
807
+ # Corresponds to the JSON property `features`
808
+ # @return [Array<String>]
809
+ attr_accessor :features
810
+
811
+ # The video data bytes.
812
+ # If unset, the input video(s) should be specified via `input_uri`.
813
+ # If set, `input_uri` should be unset.
814
+ # Corresponds to the JSON property `inputContent`
815
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
816
+ # @return [String]
817
+ attr_accessor :input_content
818
+
819
+ # Input video location. Currently, only
820
+ # [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
821
+ # supported, which must be specified in the following format:
822
+ # `gs://bucket-id/object-id` (other URI formats return
823
+ # google.rpc.Code.INVALID_ARGUMENT). For more information, see
824
+ # [Request URIs](/storage/docs/reference-uris).
825
+ # A video URI may include wildcards in `object-id`, and thus identify
826
+ # multiple videos. Supported wildcards: '*' to match 0 or more characters;
827
+ # '?' to match 1 character. If unset, the input video should be embedded
828
+ # in the request as `input_content`. If set, `input_content` should be unset.
829
+ # Corresponds to the JSON property `inputUri`
830
+ # @return [String]
831
+ attr_accessor :input_uri
832
+
833
+ # Optional cloud region where annotation should take place. Supported cloud
834
+ # regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
835
+ # is specified, a region will be determined based on video file location.
836
+ # Corresponds to the JSON property `locationId`
837
+ # @return [String]
838
+ attr_accessor :location_id
839
+
840
+ # Optional location where the output (in JSON format) should be stored.
841
+ # Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
842
+ # URIs are supported, which must be specified in the following format:
843
+ # `gs://bucket-id/object-id` (other URI formats return
844
+ # google.rpc.Code.INVALID_ARGUMENT). For more information, see
845
+ # [Request URIs](/storage/docs/reference-uris).
846
+ # Corresponds to the JSON property `outputUri`
847
+ # @return [String]
848
+ attr_accessor :output_uri
849
+
850
+ # Video context and/or feature-specific parameters.
851
+ # Corresponds to the JSON property `videoContext`
852
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoContext]
853
+ attr_accessor :video_context
841
854
 
842
855
  def initialize(**args)
843
856
  update!(**args)
@@ -845,19 +858,24 @@ module Google
845
858
 
846
859
  # Update properties of this object
847
860
  def update!(**args)
848
- @annotation_progress = args[:annotation_progress] if args.key?(:annotation_progress)
861
+ @features = args[:features] if args.key?(:features)
862
+ @input_content = args[:input_content] if args.key?(:input_content)
863
+ @input_uri = args[:input_uri] if args.key?(:input_uri)
864
+ @location_id = args[:location_id] if args.key?(:location_id)
865
+ @output_uri = args[:output_uri] if args.key?(:output_uri)
866
+ @video_context = args[:video_context] if args.key?(:video_context)
849
867
  end
850
868
  end
851
869
 
852
870
  # Video annotation response. Included in the `response`
853
871
  # field of the `Operation` returned by the `GetOperation`
854
872
  # call of the `google::longrunning::Operations` service.
855
- class GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse
873
+ class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse
856
874
  include Google::Apis::Core::Hashable
857
875
 
858
876
  # Annotation results for all videos specified in `AnnotateVideoRequest`.
859
877
  # Corresponds to the JSON property `annotationResults`
860
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2VideoAnnotationResults>]
878
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults>]
861
879
  attr_accessor :annotation_results
862
880
 
863
881
  def initialize(**args)
@@ -871,7 +889,7 @@ module Google
871
889
  end
872
890
 
873
891
  # Detected entity from video analysis.
874
- class GoogleCloudVideointelligenceV1beta2Entity
892
+ class GoogleCloudVideointelligenceV1p1beta1Entity
875
893
  include Google::Apis::Core::Hashable
876
894
 
877
895
  # Textual description, e.g. `Fixed-gear bicycle`.
@@ -906,12 +924,12 @@ module Google
906
924
  # Explicit content annotation (based on per-frame visual signals only).
907
925
  # If no explicit content has been detected in a frame, no annotations are
908
926
  # present for that frame.
909
- class GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation
927
+ class GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation
910
928
  include Google::Apis::Core::Hashable
911
929
 
912
930
  # All video frames where explicit content was detected.
913
931
  # Corresponds to the JSON property `frames`
914
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2ExplicitContentFrame>]
932
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame>]
915
933
  attr_accessor :frames
916
934
 
917
935
  def initialize(**args)
@@ -924,8 +942,29 @@ module Google
924
942
  end
925
943
  end
926
944
 
945
+ # Config for EXPLICIT_CONTENT_DETECTION.
946
+ class GoogleCloudVideointelligenceV1p1beta1ExplicitContentDetectionConfig
947
+ include Google::Apis::Core::Hashable
948
+
949
+ # Model to use for explicit content detection.
950
+ # Supported values: "builtin/stable" (the default if unset) and
951
+ # "builtin/latest".
952
+ # Corresponds to the JSON property `model`
953
+ # @return [String]
954
+ attr_accessor :model
955
+
956
+ def initialize(**args)
957
+ update!(**args)
958
+ end
959
+
960
+ # Update properties of this object
961
+ def update!(**args)
962
+ @model = args[:model] if args.key?(:model)
963
+ end
964
+ end
965
+
927
966
  # Video frame level annotation results for explicit content.
928
- class GoogleCloudVideointelligenceV1beta2ExplicitContentFrame
967
+ class GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame
929
968
  include Google::Apis::Core::Hashable
930
969
 
931
970
  # Likelihood of the pornography content..
@@ -951,7 +990,7 @@ module Google
951
990
  end
952
991
 
953
992
  # Label annotation.
954
- class GoogleCloudVideointelligenceV1beta2LabelAnnotation
993
+ class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation
955
994
  include Google::Apis::Core::Hashable
956
995
 
957
996
  # Common categories for the detected entity.
@@ -959,22 +998,22 @@ module Google
959
998
  # cases there might be more than one categories e.g. `Terrier` could also be
960
999
  # a `pet`.
961
1000
  # Corresponds to the JSON property `categoryEntities`
962
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2Entity>]
1001
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1Entity>]
963
1002
  attr_accessor :category_entities
964
1003
 
965
1004
  # Detected entity from video analysis.
966
1005
  # Corresponds to the JSON property `entity`
967
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2Entity]
1006
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1Entity]
968
1007
  attr_accessor :entity
969
1008
 
970
1009
  # All video frames where a label was detected.
971
1010
  # Corresponds to the JSON property `frames`
972
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2LabelFrame>]
1011
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelFrame>]
973
1012
  attr_accessor :frames
974
1013
 
975
1014
  # All video segments where a label was detected.
976
1015
  # Corresponds to the JSON property `segments`
977
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2LabelSegment>]
1016
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelSegment>]
978
1017
  attr_accessor :segments
979
1018
 
980
1019
  def initialize(**args)
@@ -990,8 +1029,46 @@ module Google
990
1029
  end
991
1030
  end
992
1031
 
1032
+ # Config for LABEL_DETECTION.
1033
+ class GoogleCloudVideointelligenceV1p1beta1LabelDetectionConfig
1034
+ include Google::Apis::Core::Hashable
1035
+
1036
+ # What labels should be detected with LABEL_DETECTION, in addition to
1037
+ # video-level labels or segment-level labels.
1038
+ # If unspecified, defaults to `SHOT_MODE`.
1039
+ # Corresponds to the JSON property `labelDetectionMode`
1040
+ # @return [String]
1041
+ attr_accessor :label_detection_mode
1042
+
1043
+ # Model to use for label detection.
1044
+ # Supported values: "builtin/stable" (the default if unset) and
1045
+ # "builtin/latest".
1046
+ # Corresponds to the JSON property `model`
1047
+ # @return [String]
1048
+ attr_accessor :model
1049
+
1050
+ # Whether the video has been shot from a stationary (i.e. non-moving) camera.
1051
+ # When set to true, might improve detection accuracy for moving objects.
1052
+ # Should be used with `SHOT_AND_FRAME_MODE` enabled.
1053
+ # Corresponds to the JSON property `stationaryCamera`
1054
+ # @return [Boolean]
1055
+ attr_accessor :stationary_camera
1056
+ alias_method :stationary_camera?, :stationary_camera
1057
+
1058
+ def initialize(**args)
1059
+ update!(**args)
1060
+ end
1061
+
1062
+ # Update properties of this object
1063
+ def update!(**args)
1064
+ @label_detection_mode = args[:label_detection_mode] if args.key?(:label_detection_mode)
1065
+ @model = args[:model] if args.key?(:model)
1066
+ @stationary_camera = args[:stationary_camera] if args.key?(:stationary_camera)
1067
+ end
1068
+ end
1069
+
993
1070
  # Video frame level annotation results for label detection.
994
- class GoogleCloudVideointelligenceV1beta2LabelFrame
1071
+ class GoogleCloudVideointelligenceV1p1beta1LabelFrame
995
1072
  include Google::Apis::Core::Hashable
996
1073
 
997
1074
  # Confidence that the label is accurate. Range: [0, 1].
@@ -1017,7 +1094,7 @@ module Google
1017
1094
  end
1018
1095
 
1019
1096
  # Video segment level annotation results for label detection.
1020
- class GoogleCloudVideointelligenceV1beta2LabelSegment
1097
+ class GoogleCloudVideointelligenceV1p1beta1LabelSegment
1021
1098
  include Google::Apis::Core::Hashable
1022
1099
 
1023
1100
  # Confidence that the label is accurate. Range: [0, 1].
@@ -1027,7 +1104,7 @@ module Google
1027
1104
 
1028
1105
  # Video segment.
1029
1106
  # Corresponds to the JSON property `segment`
1030
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2VideoSegment]
1107
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment]
1031
1108
  attr_accessor :segment
1032
1109
 
1033
1110
  def initialize(**args)
@@ -1041,28 +1118,231 @@ module Google
1041
1118
  end
1042
1119
  end
1043
1120
 
1121
+ # Config for SHOT_CHANGE_DETECTION.
1122
+ class GoogleCloudVideointelligenceV1p1beta1ShotChangeDetectionConfig
1123
+ include Google::Apis::Core::Hashable
1124
+
1125
+ # Model to use for shot change detection.
1126
+ # Supported values: "builtin/stable" (the default if unset) and
1127
+ # "builtin/latest".
1128
+ # Corresponds to the JSON property `model`
1129
+ # @return [String]
1130
+ attr_accessor :model
1131
+
1132
+ def initialize(**args)
1133
+ update!(**args)
1134
+ end
1135
+
1136
+ # Update properties of this object
1137
+ def update!(**args)
1138
+ @model = args[:model] if args.key?(:model)
1139
+ end
1140
+ end
1141
+
1142
+ # Provides "hints" to the speech recognizer to favor specific words and phrases
1143
+ # in the results.
1144
+ class GoogleCloudVideointelligenceV1p1beta1SpeechContext
1145
+ include Google::Apis::Core::Hashable
1146
+
1147
+ # *Optional* A list of strings containing words and phrases "hints" so that
1148
+ # the speech recognition is more likely to recognize them. This can be used
1149
+ # to improve the accuracy for specific words and phrases, for example, if
1150
+ # specific commands are typically spoken by the user. This can also be used
1151
+ # to add additional words to the vocabulary of the recognizer. See
1152
+ # [usage limits](https://cloud.google.com/speech/limits#content).
1153
+ # Corresponds to the JSON property `phrases`
1154
+ # @return [Array<String>]
1155
+ attr_accessor :phrases
1156
+
1157
+ def initialize(**args)
1158
+ update!(**args)
1159
+ end
1160
+
1161
+ # Update properties of this object
1162
+ def update!(**args)
1163
+ @phrases = args[:phrases] if args.key?(:phrases)
1164
+ end
1165
+ end
1166
+
1167
+ # Alternative hypotheses (a.k.a. n-best list).
1168
+ class GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
1169
+ include Google::Apis::Core::Hashable
1170
+
1171
+ # The confidence estimate between 0.0 and 1.0. A higher number
1172
+ # indicates an estimated greater likelihood that the recognized words are
1173
+ # correct. This field is typically provided only for the top hypothesis, and
1174
+ # only for `is_final=true` results. Clients should not rely on the
1175
+ # `confidence` field as it is not guaranteed to be accurate or consistent.
1176
+ # The default of 0.0 is a sentinel value indicating `confidence` was not set.
1177
+ # Corresponds to the JSON property `confidence`
1178
+ # @return [Float]
1179
+ attr_accessor :confidence
1180
+
1181
+ # Transcript text representing the words that the user spoke.
1182
+ # Corresponds to the JSON property `transcript`
1183
+ # @return [String]
1184
+ attr_accessor :transcript
1185
+
1186
+ # A list of word-specific information for each recognized word.
1187
+ # Corresponds to the JSON property `words`
1188
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1WordInfo>]
1189
+ attr_accessor :words
1190
+
1191
+ def initialize(**args)
1192
+ update!(**args)
1193
+ end
1194
+
1195
+ # Update properties of this object
1196
+ def update!(**args)
1197
+ @confidence = args[:confidence] if args.key?(:confidence)
1198
+ @transcript = args[:transcript] if args.key?(:transcript)
1199
+ @words = args[:words] if args.key?(:words)
1200
+ end
1201
+ end
1202
+
1203
+ # A speech recognition result corresponding to a portion of the audio.
1204
+ class GoogleCloudVideointelligenceV1p1beta1SpeechTranscription
1205
+ include Google::Apis::Core::Hashable
1206
+
1207
+ # May contain one or more recognition hypotheses (up to the maximum specified
1208
+ # in `max_alternatives`). These alternatives are ordered in terms of
1209
+ # accuracy, with the top (first) alternative being the most probable, as
1210
+ # ranked by the recognizer.
1211
+ # Corresponds to the JSON property `alternatives`
1212
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative>]
1213
+ attr_accessor :alternatives
1214
+
1215
+ def initialize(**args)
1216
+ update!(**args)
1217
+ end
1218
+
1219
+ # Update properties of this object
1220
+ def update!(**args)
1221
+ @alternatives = args[:alternatives] if args.key?(:alternatives)
1222
+ end
1223
+ end
1224
+
1225
+ # Config for SPEECH_TRANSCRIPTION.
1226
+ class GoogleCloudVideointelligenceV1p1beta1SpeechTranscriptionConfig
1227
+ include Google::Apis::Core::Hashable
1228
+
1229
+ # *Optional* For file formats, such as MXF or MKV, supporting multiple audio
1230
+ # tracks, specify up to two tracks. Default: track 0.
1231
+ # Corresponds to the JSON property `audioTracks`
1232
+ # @return [Array<Fixnum>]
1233
+ attr_accessor :audio_tracks
1234
+
1235
+ # *Optional*
1236
+ # If set, specifies the estimated number of speakers in the conversation.
1237
+ # If not set, defaults to '2'.
1238
+ # Ignored unless enable_speaker_diarization is set to true.
1239
+ # Corresponds to the JSON property `diarizationSpeakerCount`
1240
+ # @return [Fixnum]
1241
+ attr_accessor :diarization_speaker_count
1242
+
1243
+ # *Optional* If 'true', adds punctuation to recognition result hypotheses.
1244
+ # This feature is only available in select languages. Setting this for
1245
+ # requests in other languages has no effect at all. The default 'false' value
1246
+ # does not add punctuation to result hypotheses. NOTE: "This is currently
1247
+ # offered as an experimental service, complimentary to all users. In the
1248
+ # future this may be exclusively available as a premium feature."
1249
+ # Corresponds to the JSON property `enableAutomaticPunctuation`
1250
+ # @return [Boolean]
1251
+ attr_accessor :enable_automatic_punctuation
1252
+ alias_method :enable_automatic_punctuation?, :enable_automatic_punctuation
1253
+
1254
+ # *Optional* If 'true', enables speaker detection for each recognized word in
1255
+ # the top alternative of the recognition result using a speaker_tag provided
1256
+ # in the WordInfo.
1257
+ # Note: When this is true, we send all the words from the beginning of the
1258
+ # audio for the top alternative in every consecutive responses.
1259
+ # This is done in order to improve our speaker tags as our models learn to
1260
+ # identify the speakers in the conversation over time.
1261
+ # Corresponds to the JSON property `enableSpeakerDiarization`
1262
+ # @return [Boolean]
1263
+ attr_accessor :enable_speaker_diarization
1264
+ alias_method :enable_speaker_diarization?, :enable_speaker_diarization
1265
+
1266
+ # *Optional* If `true`, the top result includes a list of words and the
1267
+ # confidence for those words. If `false`, no word-level confidence
1268
+ # information is returned. The default is `false`.
1269
+ # Corresponds to the JSON property `enableWordConfidence`
1270
+ # @return [Boolean]
1271
+ attr_accessor :enable_word_confidence
1272
+ alias_method :enable_word_confidence?, :enable_word_confidence
1273
+
1274
+ # *Optional* If set to `true`, the server will attempt to filter out
1275
+ # profanities, replacing all but the initial character in each filtered word
1276
+ # with asterisks, e.g. "f***". If set to `false` or omitted, profanities
1277
+ # won't be filtered out.
1278
+ # Corresponds to the JSON property `filterProfanity`
1279
+ # @return [Boolean]
1280
+ attr_accessor :filter_profanity
1281
+ alias_method :filter_profanity?, :filter_profanity
1282
+
1283
+ # *Required* The language of the supplied audio as a
1284
+ # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
1285
+ # Example: "en-US".
1286
+ # See [Language Support](https://cloud.google.com/speech/docs/languages)
1287
+ # for a list of the currently supported language codes.
1288
+ # Corresponds to the JSON property `languageCode`
1289
+ # @return [String]
1290
+ attr_accessor :language_code
1291
+
1292
+ # *Optional* Maximum number of recognition hypotheses to be returned.
1293
+ # Specifically, the maximum number of `SpeechRecognitionAlternative` messages
1294
+ # within each `SpeechRecognitionResult`. The server may return fewer than
1295
+ # `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will
1296
+ # return a maximum of one. If omitted, will return a maximum of one.
1297
+ # Corresponds to the JSON property `maxAlternatives`
1298
+ # @return [Fixnum]
1299
+ attr_accessor :max_alternatives
1300
+
1301
+ # *Optional* A means to provide context to assist the speech recognition.
1302
+ # Corresponds to the JSON property `speechContexts`
1303
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechContext>]
1304
+ attr_accessor :speech_contexts
1305
+
1306
+ def initialize(**args)
1307
+ update!(**args)
1308
+ end
1309
+
1310
+ # Update properties of this object
1311
+ def update!(**args)
1312
+ @audio_tracks = args[:audio_tracks] if args.key?(:audio_tracks)
1313
+ @diarization_speaker_count = args[:diarization_speaker_count] if args.key?(:diarization_speaker_count)
1314
+ @enable_automatic_punctuation = args[:enable_automatic_punctuation] if args.key?(:enable_automatic_punctuation)
1315
+ @enable_speaker_diarization = args[:enable_speaker_diarization] if args.key?(:enable_speaker_diarization)
1316
+ @enable_word_confidence = args[:enable_word_confidence] if args.key?(:enable_word_confidence)
1317
+ @filter_profanity = args[:filter_profanity] if args.key?(:filter_profanity)
1318
+ @language_code = args[:language_code] if args.key?(:language_code)
1319
+ @max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
1320
+ @speech_contexts = args[:speech_contexts] if args.key?(:speech_contexts)
1321
+ end
1322
+ end
1323
+
1044
1324
  # Annotation progress for a single video.
1045
- class GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress
1325
+ class GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress
1046
1326
  include Google::Apis::Core::Hashable
1047
1327
 
1048
- # Output only. Video file location in
1328
+ # Video file location in
1049
1329
  # [Google Cloud Storage](https://cloud.google.com/storage/).
1050
1330
  # Corresponds to the JSON property `inputUri`
1051
1331
  # @return [String]
1052
1332
  attr_accessor :input_uri
1053
1333
 
1054
- # Output only. Approximate percentage processed thus far. Guaranteed to be
1334
+ # Approximate percentage processed thus far. Guaranteed to be
1055
1335
  # 100 when fully processed.
1056
1336
  # Corresponds to the JSON property `progressPercent`
1057
1337
  # @return [Fixnum]
1058
1338
  attr_accessor :progress_percent
1059
1339
 
1060
- # Output only. Time when the request was received.
1340
+ # Time when the request was received.
1061
1341
  # Corresponds to the JSON property `startTime`
1062
1342
  # @return [String]
1063
1343
  attr_accessor :start_time
1064
1344
 
1065
- # Output only. Time of the most recent update.
1345
+ # Time of the most recent update.
1066
1346
  # Corresponds to the JSON property `updateTime`
1067
1347
  # @return [String]
1068
1348
  attr_accessor :update_time
@@ -1081,7 +1361,7 @@ module Google
1081
1361
  end
1082
1362
 
1083
1363
  # Annotation results for a single video.
1084
- class GoogleCloudVideointelligenceV1beta2VideoAnnotationResults
1364
+ class GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults
1085
1365
  include Google::Apis::Core::Hashable
1086
1366
 
1087
1367
  # The `Status` type defines a logical error model that is suitable for different
@@ -1124,23 +1404,23 @@ module Google
1124
1404
  # - Logging. If some API errors are stored in logs, the message `Status` could
1125
1405
  # be used directly after any stripping needed for security/privacy reasons.
1126
1406
  # Corresponds to the JSON property `error`
1127
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus]
1407
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus]
1128
1408
  attr_accessor :error
1129
1409
 
1130
1410
  # Explicit content annotation (based on per-frame visual signals only).
1131
1411
  # If no explicit content has been detected in a frame, no annotations are
1132
1412
  # present for that frame.
1133
1413
  # Corresponds to the JSON property `explicitAnnotation`
1134
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation]
1414
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation]
1135
1415
  attr_accessor :explicit_annotation
1136
1416
 
1137
1417
  # Label annotations on frame level.
1138
1418
  # There is exactly one element for each unique label.
1139
1419
  # Corresponds to the JSON property `frameLabelAnnotations`
1140
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation>]
1420
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>]
1141
1421
  attr_accessor :frame_label_annotations
1142
1422
 
1143
- # Output only. Video file location in
1423
+ # Video file location in
1144
1424
  # [Google Cloud Storage](https://cloud.google.com/storage/).
1145
1425
  # Corresponds to the JSON property `inputUri`
1146
1426
  # @return [String]
@@ -1149,20 +1429,25 @@ module Google
1149
1429
  # Label annotations on video level or user specified segment level.
1150
1430
  # There is exactly one element for each unique label.
1151
1431
  # Corresponds to the JSON property `segmentLabelAnnotations`
1152
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation>]
1432
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>]
1153
1433
  attr_accessor :segment_label_annotations
1154
1434
 
1155
1435
  # Shot annotations. Each shot is represented as a video segment.
1156
1436
  # Corresponds to the JSON property `shotAnnotations`
1157
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2VideoSegment>]
1437
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment>]
1158
1438
  attr_accessor :shot_annotations
1159
1439
 
1160
1440
  # Label annotations on shot level.
1161
1441
  # There is exactly one element for each unique label.
1162
1442
  # Corresponds to the JSON property `shotLabelAnnotations`
1163
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta2LabelAnnotation>]
1443
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>]
1164
1444
  attr_accessor :shot_label_annotations
1165
1445
 
1446
+ # Speech transcription.
1447
+ # Corresponds to the JSON property `speechTranscriptions`
1448
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechTranscription>]
1449
+ attr_accessor :speech_transcriptions
1450
+
1166
1451
  def initialize(**args)
1167
1452
  update!(**args)
1168
1453
  end
@@ -1176,11 +1461,57 @@ module Google
1176
1461
  @segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)
1177
1462
  @shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
1178
1463
  @shot_label_annotations = args[:shot_label_annotations] if args.key?(:shot_label_annotations)
1464
+ @speech_transcriptions = args[:speech_transcriptions] if args.key?(:speech_transcriptions)
1465
+ end
1466
+ end
1467
+
1468
+ # Video context and/or feature-specific parameters.
1469
+ class GoogleCloudVideointelligenceV1p1beta1VideoContext
1470
+ include Google::Apis::Core::Hashable
1471
+
1472
+ # Config for EXPLICIT_CONTENT_DETECTION.
1473
+ # Corresponds to the JSON property `explicitContentDetectionConfig`
1474
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentDetectionConfig]
1475
+ attr_accessor :explicit_content_detection_config
1476
+
1477
+ # Config for LABEL_DETECTION.
1478
+ # Corresponds to the JSON property `labelDetectionConfig`
1479
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1LabelDetectionConfig]
1480
+ attr_accessor :label_detection_config
1481
+
1482
+ # Video segments to annotate. The segments may overlap and are not required
1483
+ # to be contiguous or span the whole video. If unspecified, each video is
1484
+ # treated as a single segment.
1485
+ # Corresponds to the JSON property `segments`
1486
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment>]
1487
+ attr_accessor :segments
1488
+
1489
+ # Config for SHOT_CHANGE_DETECTION.
1490
+ # Corresponds to the JSON property `shotChangeDetectionConfig`
1491
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1ShotChangeDetectionConfig]
1492
+ attr_accessor :shot_change_detection_config
1493
+
1494
+ # Config for SPEECH_TRANSCRIPTION.
1495
+ # Corresponds to the JSON property `speechTranscriptionConfig`
1496
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechTranscriptionConfig]
1497
+ attr_accessor :speech_transcription_config
1498
+
1499
+ def initialize(**args)
1500
+ update!(**args)
1501
+ end
1502
+
1503
+ # Update properties of this object
1504
+ def update!(**args)
1505
+ @explicit_content_detection_config = args[:explicit_content_detection_config] if args.key?(:explicit_content_detection_config)
1506
+ @label_detection_config = args[:label_detection_config] if args.key?(:label_detection_config)
1507
+ @segments = args[:segments] if args.key?(:segments)
1508
+ @shot_change_detection_config = args[:shot_change_detection_config] if args.key?(:shot_change_detection_config)
1509
+ @speech_transcription_config = args[:speech_transcription_config] if args.key?(:speech_transcription_config)
1179
1510
  end
1180
1511
  end
1181
1512
 
1182
1513
  # Video segment.
1183
- class GoogleCloudVideointelligenceV1beta2VideoSegment
1514
+ class GoogleCloudVideointelligenceV1p1beta1VideoSegment
1184
1515
  include Google::Apis::Core::Hashable
1185
1516
 
1186
1517
  # Time-offset, relative to the beginning of the video,
@@ -1206,16 +1537,50 @@ module Google
1206
1537
  end
1207
1538
  end
1208
1539
 
1209
- # Video annotation progress. Included in the `metadata`
1210
- # field of the `Operation` returned by the `GetOperation`
1211
- # call of the `google::longrunning::Operations` service.
1212
- class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress
1540
+ # Word-specific information for recognized words. Word information is only
1541
+ # included in the response when certain request parameters are set, such
1542
+ # as `enable_word_time_offsets`.
1543
+ class GoogleCloudVideointelligenceV1p1beta1WordInfo
1213
1544
  include Google::Apis::Core::Hashable
1214
1545
 
1215
- # Progress metadata for all videos specified in `AnnotateVideoRequest`.
1216
- # Corresponds to the JSON property `annotationProgress`
1217
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress>]
1218
- attr_accessor :annotation_progress
1546
+ # Output only. The confidence estimate between 0.0 and 1.0. A higher number
1547
+ # indicates an estimated greater likelihood that the recognized words are
1548
+ # correct. This field is set only for the top alternative.
1549
+ # This field is not guaranteed to be accurate and users should not rely on it
1550
+ # to be always provided.
1551
+ # The default of 0.0 is a sentinel value indicating `confidence` was not set.
1552
+ # Corresponds to the JSON property `confidence`
1553
+ # @return [Float]
1554
+ attr_accessor :confidence
1555
+
1556
+ # Time offset relative to the beginning of the audio, and
1557
+ # corresponding to the end of the spoken word. This field is only set if
1558
+ # `enable_word_time_offsets=true` and only in the top hypothesis. This is an
1559
+ # experimental feature and the accuracy of the time offset can vary.
1560
+ # Corresponds to the JSON property `endTime`
1561
+ # @return [String]
1562
+ attr_accessor :end_time
1563
+
1564
+ # Output only. A distinct integer value is assigned for every speaker within
1565
+ # the audio. This field specifies which one of those speakers was detected to
1566
+ # have spoken this word. Value ranges from 1 up to diarization_speaker_count,
1567
+ # and is only set if speaker diarization is enabled.
1568
+ # Corresponds to the JSON property `speakerTag`
1569
+ # @return [Fixnum]
1570
+ attr_accessor :speaker_tag
1571
+
1572
+ # Time offset relative to the beginning of the audio, and
1573
+ # corresponding to the start of the spoken word. This field is only set if
1574
+ # `enable_word_time_offsets=true` and only in the top hypothesis. This is an
1575
+ # experimental feature and the accuracy of the time offset can vary.
1576
+ # Corresponds to the JSON property `startTime`
1577
+ # @return [String]
1578
+ attr_accessor :start_time
1579
+
1580
+ # The word corresponding to this set of information.
1581
+ # Corresponds to the JSON property `word`
1582
+ # @return [String]
1583
+ attr_accessor :word
1219
1584
 
1220
1585
  def initialize(**args)
1221
1586
  update!(**args)
@@ -1223,20 +1588,24 @@ module Google
1223
1588
 
1224
1589
  # Update properties of this object
1225
1590
  def update!(**args)
1226
- @annotation_progress = args[:annotation_progress] if args.key?(:annotation_progress)
1591
+ @confidence = args[:confidence] if args.key?(:confidence)
1592
+ @end_time = args[:end_time] if args.key?(:end_time)
1593
+ @speaker_tag = args[:speaker_tag] if args.key?(:speaker_tag)
1594
+ @start_time = args[:start_time] if args.key?(:start_time)
1595
+ @word = args[:word] if args.key?(:word)
1227
1596
  end
1228
1597
  end
1229
1598
 
1230
- # Video annotation response. Included in the `response`
1599
+ # Video annotation progress. Included in the `metadata`
1231
1600
  # field of the `Operation` returned by the `GetOperation`
1232
1601
  # call of the `google::longrunning::Operations` service.
1233
- class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse
1602
+ class GoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress
1234
1603
  include Google::Apis::Core::Hashable
1235
1604
 
1236
- # Annotation results for all videos specified in `AnnotateVideoRequest`.
1237
- # Corresponds to the JSON property `annotationResults`
1238
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults>]
1239
- attr_accessor :annotation_results
1605
+ # Progress metadata for all videos specified in `AnnotateVideoRequest`.
1606
+ # Corresponds to the JSON property `annotationProgress`
1607
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress>]
1608
+ attr_accessor :annotation_progress
1240
1609
 
1241
1610
  def initialize(**args)
1242
1611
  update!(**args)
@@ -1244,23 +1613,20 @@ module Google
1244
1613
 
1245
1614
  # Update properties of this object
1246
1615
  def update!(**args)
1247
- @annotation_results = args[:annotation_results] if args.key?(:annotation_results)
1616
+ @annotation_progress = args[:annotation_progress] if args.key?(:annotation_progress)
1248
1617
  end
1249
1618
  end
1250
1619
 
1251
- # Emotion attribute.
1252
- class GoogleCloudVideointelligenceV1p1beta1EmotionAttribute
1620
+ # Video annotation response. Included in the `response`
1621
+ # field of the `Operation` returned by the `GetOperation`
1622
+ # call of the `google::longrunning::Operations` service.
1623
+ class GoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse
1253
1624
  include Google::Apis::Core::Hashable
1254
1625
 
1255
- # Emotion entry.
1256
- # Corresponds to the JSON property `emotion`
1257
- # @return [String]
1258
- attr_accessor :emotion
1259
-
1260
- # Confidence score.
1261
- # Corresponds to the JSON property `score`
1262
- # @return [Float]
1263
- attr_accessor :score
1626
+ # Annotation results for all videos specified in `AnnotateVideoRequest`.
1627
+ # Corresponds to the JSON property `annotationResults`
1628
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults>]
1629
+ attr_accessor :annotation_results
1264
1630
 
1265
1631
  def initialize(**args)
1266
1632
  update!(**args)
@@ -1268,13 +1634,12 @@ module Google
1268
1634
 
1269
1635
  # Update properties of this object
1270
1636
  def update!(**args)
1271
- @emotion = args[:emotion] if args.key?(:emotion)
1272
- @score = args[:score] if args.key?(:score)
1637
+ @annotation_results = args[:annotation_results] if args.key?(:annotation_results)
1273
1638
  end
1274
1639
  end
1275
1640
 
1276
1641
  # Detected entity from video analysis.
1277
- class GoogleCloudVideointelligenceV1p1beta1Entity
1642
+ class GoogleCloudVideointelligenceV1p2beta1Entity
1278
1643
  include Google::Apis::Core::Hashable
1279
1644
 
1280
1645
  # Textual description, e.g. `Fixed-gear bicycle`.
@@ -1309,12 +1674,12 @@ module Google
1309
1674
  # Explicit content annotation (based on per-frame visual signals only).
1310
1675
  # If no explicit content has been detected in a frame, no annotations are
1311
1676
  # present for that frame.
1312
- class GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation
1677
+ class GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation
1313
1678
  include Google::Apis::Core::Hashable
1314
1679
 
1315
1680
  # All video frames where explicit content was detected.
1316
1681
  # Corresponds to the JSON property `frames`
1317
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame>]
1682
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame>]
1318
1683
  attr_accessor :frames
1319
1684
 
1320
1685
  def initialize(**args)
@@ -1328,7 +1693,7 @@ module Google
1328
1693
  end
1329
1694
 
1330
1695
  # Video frame level annotation results for explicit content.
1331
- class GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame
1696
+ class GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame
1332
1697
  include Google::Apis::Core::Hashable
1333
1698
 
1334
1699
  # Likelihood of the pornography content..
@@ -1353,107 +1718,8 @@ module Google
1353
1718
  end
1354
1719
  end
1355
1720
 
1356
- # Face detection annotation.
1357
- class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
1358
- include Google::Apis::Core::Hashable
1359
-
1360
- # All video frames where a face was detected.
1361
- # Corresponds to the JSON property `frames`
1362
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame>]
1363
- attr_accessor :frames
1364
-
1365
- # All video segments where a face was detected.
1366
- # Corresponds to the JSON property `segments`
1367
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceSegment>]
1368
- attr_accessor :segments
1369
-
1370
- def initialize(**args)
1371
- update!(**args)
1372
- end
1373
-
1374
- # Update properties of this object
1375
- def update!(**args)
1376
- @frames = args[:frames] if args.key?(:frames)
1377
- @segments = args[:segments] if args.key?(:segments)
1378
- end
1379
- end
1380
-
1381
- # Face detection attribute.
1382
- class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute
1383
- include Google::Apis::Core::Hashable
1384
-
1385
- # Emotion attributes.
1386
- # Corresponds to the JSON property `emotions`
1387
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1EmotionAttribute>]
1388
- attr_accessor :emotions
1389
-
1390
- # Normalized bounding box.
1391
- # The normalized vertex coordinates are relative to the original image.
1392
- # Range: [0, 1].
1393
- # Corresponds to the JSON property `normalizedBoundingBox`
1394
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox]
1395
- attr_accessor :normalized_bounding_box
1396
-
1397
- def initialize(**args)
1398
- update!(**args)
1399
- end
1400
-
1401
- # Update properties of this object
1402
- def update!(**args)
1403
- @emotions = args[:emotions] if args.key?(:emotions)
1404
- @normalized_bounding_box = args[:normalized_bounding_box] if args.key?(:normalized_bounding_box)
1405
- end
1406
- end
1407
-
1408
- # Video frame level annotation results for face detection.
1409
- class GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame
1410
- include Google::Apis::Core::Hashable
1411
-
1412
- # Face attributes in a frame.
1413
- # There can be more than one attributes if the same face is detected in
1414
- # multiple locations within the current frame.
1415
- # Corresponds to the JSON property `attributes`
1416
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute>]
1417
- attr_accessor :attributes
1418
-
1419
- # Time-offset, relative to the beginning of the video,
1420
- # corresponding to the video frame for this location.
1421
- # Corresponds to the JSON property `timeOffset`
1422
- # @return [String]
1423
- attr_accessor :time_offset
1424
-
1425
- def initialize(**args)
1426
- update!(**args)
1427
- end
1428
-
1429
- # Update properties of this object
1430
- def update!(**args)
1431
- @attributes = args[:attributes] if args.key?(:attributes)
1432
- @time_offset = args[:time_offset] if args.key?(:time_offset)
1433
- end
1434
- end
1435
-
1436
- # Video segment level annotation results for face detection.
1437
- class GoogleCloudVideointelligenceV1p1beta1FaceSegment
1438
- include Google::Apis::Core::Hashable
1439
-
1440
- # Video segment.
1441
- # Corresponds to the JSON property `segment`
1442
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment]
1443
- attr_accessor :segment
1444
-
1445
- def initialize(**args)
1446
- update!(**args)
1447
- end
1448
-
1449
- # Update properties of this object
1450
- def update!(**args)
1451
- @segment = args[:segment] if args.key?(:segment)
1452
- end
1453
- end
1454
-
1455
1721
  # Label annotation.
1456
- class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation
1722
+ class GoogleCloudVideointelligenceV1p2beta1LabelAnnotation
1457
1723
  include Google::Apis::Core::Hashable
1458
1724
 
1459
1725
  # Common categories for the detected entity.
@@ -1461,22 +1727,22 @@ module Google
1461
1727
  # cases there might be more than one categories e.g. `Terrier` could also be
1462
1728
  # a `pet`.
1463
1729
  # Corresponds to the JSON property `categoryEntities`
1464
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1Entity>]
1730
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1Entity>]
1465
1731
  attr_accessor :category_entities
1466
1732
 
1467
1733
  # Detected entity from video analysis.
1468
1734
  # Corresponds to the JSON property `entity`
1469
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1Entity]
1735
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1Entity]
1470
1736
  attr_accessor :entity
1471
1737
 
1472
1738
  # All video frames where a label was detected.
1473
1739
  # Corresponds to the JSON property `frames`
1474
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelFrame>]
1740
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1LabelFrame>]
1475
1741
  attr_accessor :frames
1476
1742
 
1477
1743
  # All video segments where a label was detected.
1478
1744
  # Corresponds to the JSON property `segments`
1479
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelSegment>]
1745
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1LabelSegment>]
1480
1746
  attr_accessor :segments
1481
1747
 
1482
1748
  def initialize(**args)
@@ -1493,7 +1759,7 @@ module Google
1493
1759
  end
1494
1760
 
1495
1761
  # Video frame level annotation results for label detection.
1496
- class GoogleCloudVideointelligenceV1p1beta1LabelFrame
1762
+ class GoogleCloudVideointelligenceV1p2beta1LabelFrame
1497
1763
  include Google::Apis::Core::Hashable
1498
1764
 
1499
1765
  # Confidence that the label is accurate. Range: [0, 1].
@@ -1519,7 +1785,7 @@ module Google
1519
1785
  end
1520
1786
 
1521
1787
  # Video segment level annotation results for label detection.
1522
- class GoogleCloudVideointelligenceV1p1beta1LabelSegment
1788
+ class GoogleCloudVideointelligenceV1p2beta1LabelSegment
1523
1789
  include Google::Apis::Core::Hashable
1524
1790
 
1525
1791
  # Confidence that the label is accurate. Range: [0, 1].
@@ -1529,7 +1795,7 @@ module Google
1529
1795
 
1530
1796
  # Video segment.
1531
1797
  # Corresponds to the JSON property `segment`
1532
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment]
1798
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1VideoSegment]
1533
1799
  attr_accessor :segment
1534
1800
 
1535
1801
  def initialize(**args)
@@ -1546,7 +1812,7 @@ module Google
1546
1812
  # Normalized bounding box.
1547
1813
  # The normalized vertex coordinates are relative to the original image.
1548
1814
  # Range: [0, 1].
1549
- class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
1815
+ class GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox
1550
1816
  include Google::Apis::Core::Hashable
1551
1817
 
1552
1818
  # Bottom Y coordinate.
@@ -1582,29 +1848,157 @@ module Google
1582
1848
  end
1583
1849
  end
1584
1850
 
1585
- # Alternative hypotheses (a.k.a. n-best list).
1586
- class GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
1851
+ # Normalized bounding polygon for text (that might not be aligned with axis).
1852
+ # Contains list of the corner points in clockwise order starting from
1853
+ # top-left corner. For example, for a rectangular bounding box:
1854
+ # When the text is horizontal it might look like:
1855
+ # 0----1
1856
+ # | |
1857
+ # 3----2
1858
+ # When it's clockwise rotated 180 degrees around the top-left corner it
1859
+ # becomes:
1860
+ # 2----3
1861
+ # | |
1862
+ # 1----0
1863
+ # and the vertex order will still be (0, 1, 2, 3). Note that values can be less
1864
+ # than 0, or greater than 1 due to trignometric calculations for location of
1865
+ # the box.
1866
+ class GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly
1587
1867
  include Google::Apis::Core::Hashable
1588
1868
 
1589
- # Output only. The confidence estimate between 0.0 and 1.0. A higher number
1590
- # indicates an estimated greater likelihood that the recognized words are
1591
- # correct. This field is typically provided only for the top hypothesis, and
1592
- # only for `is_final=true` results. Clients should not rely on the
1593
- # `confidence` field as it is not guaranteed to be accurate or consistent.
1594
- # The default of 0.0 is a sentinel value indicating `confidence` was not set.
1869
+ # Normalized vertices of the bounding polygon.
1870
+ # Corresponds to the JSON property `vertices`
1871
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1NormalizedVertex>]
1872
+ attr_accessor :vertices
1873
+
1874
+ def initialize(**args)
1875
+ update!(**args)
1876
+ end
1877
+
1878
+ # Update properties of this object
1879
+ def update!(**args)
1880
+ @vertices = args[:vertices] if args.key?(:vertices)
1881
+ end
1882
+ end
1883
+
1884
+ # A vertex represents a 2D point in the image.
1885
+ # NOTE: the normalized vertex coordinates are relative to the original image
1886
+ # and range from 0 to 1.
1887
+ class GoogleCloudVideointelligenceV1p2beta1NormalizedVertex
1888
+ include Google::Apis::Core::Hashable
1889
+
1890
+ # X coordinate.
1891
+ # Corresponds to the JSON property `x`
1892
+ # @return [Float]
1893
+ attr_accessor :x
1894
+
1895
+ # Y coordinate.
1896
+ # Corresponds to the JSON property `y`
1897
+ # @return [Float]
1898
+ attr_accessor :y
1899
+
1900
+ def initialize(**args)
1901
+ update!(**args)
1902
+ end
1903
+
1904
+ # Update properties of this object
1905
+ def update!(**args)
1906
+ @x = args[:x] if args.key?(:x)
1907
+ @y = args[:y] if args.key?(:y)
1908
+ end
1909
+ end
1910
+
1911
+ # Annotations corresponding to one tracked object.
1912
+ class GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation
1913
+ include Google::Apis::Core::Hashable
1914
+
1915
+ # Object category's labeling confidence of this track.
1595
1916
  # Corresponds to the JSON property `confidence`
1596
1917
  # @return [Float]
1597
1918
  attr_accessor :confidence
1598
1919
 
1599
- # Output only. Transcript text representing the words that the user spoke.
1600
- # Corresponds to the JSON property `transcript`
1920
+ # Detected entity from video analysis.
1921
+ # Corresponds to the JSON property `entity`
1922
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1Entity]
1923
+ attr_accessor :entity
1924
+
1925
+ # Information corresponding to all frames where this object track appears.
1926
+ # Corresponds to the JSON property `frames`
1927
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame>]
1928
+ attr_accessor :frames
1929
+
1930
+ # Video segment.
1931
+ # Corresponds to the JSON property `segment`
1932
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1VideoSegment]
1933
+ attr_accessor :segment
1934
+
1935
+ def initialize(**args)
1936
+ update!(**args)
1937
+ end
1938
+
1939
+ # Update properties of this object
1940
+ def update!(**args)
1941
+ @confidence = args[:confidence] if args.key?(:confidence)
1942
+ @entity = args[:entity] if args.key?(:entity)
1943
+ @frames = args[:frames] if args.key?(:frames)
1944
+ @segment = args[:segment] if args.key?(:segment)
1945
+ end
1946
+ end
1947
+
1948
+ # Video frame level annotations for object detection and tracking. This field
1949
+ # stores per frame location, time offset, and confidence.
1950
+ class GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame
1951
+ include Google::Apis::Core::Hashable
1952
+
1953
+ # Normalized bounding box.
1954
+ # The normalized vertex coordinates are relative to the original image.
1955
+ # Range: [0, 1].
1956
+ # Corresponds to the JSON property `normalizedBoundingBox`
1957
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox]
1958
+ attr_accessor :normalized_bounding_box
1959
+
1960
+ # The timestamp of the frame in microseconds.
1961
+ # Corresponds to the JSON property `timeOffset`
1601
1962
  # @return [String]
1602
- attr_accessor :transcript
1963
+ attr_accessor :time_offset
1603
1964
 
1604
- # Output only. A list of word-specific information for each recognized word.
1605
- # Corresponds to the JSON property `words`
1606
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1WordInfo>]
1607
- attr_accessor :words
1965
+ def initialize(**args)
1966
+ update!(**args)
1967
+ end
1968
+
1969
+ # Update properties of this object
1970
+ def update!(**args)
1971
+ @normalized_bounding_box = args[:normalized_bounding_box] if args.key?(:normalized_bounding_box)
1972
+ @time_offset = args[:time_offset] if args.key?(:time_offset)
1973
+ end
1974
+ end
1975
+
1976
+ # Annotations related to one detected OCR text snippet. This will contain the
1977
+ # corresponding text, confidence value, and frame level information for each
1978
+ # detection.
1979
+ class GoogleCloudVideointelligenceV1p2beta1TextAnnotation
1980
+ include Google::Apis::Core::Hashable
1981
+
1982
+ # Confidence for the track of detected text. It is calculated as the highest
1983
+ # over all frames where OCR detected text appears.
1984
+ # Corresponds to the JSON property `confidence`
1985
+ # @return [Float]
1986
+ attr_accessor :confidence
1987
+
1988
+ # Information related to the frames where OCR detected text appears.
1989
+ # Corresponds to the JSON property `frames`
1990
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1TextFrame>]
1991
+ attr_accessor :frames
1992
+
1993
+ # All video segments where OCR detected text appears.
1994
+ # Corresponds to the JSON property `segments`
1995
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1TextSegment>]
1996
+ attr_accessor :segments
1997
+
1998
+ # The detected text.
1999
+ # Corresponds to the JSON property `text`
2000
+ # @return [String]
2001
+ attr_accessor :text
1608
2002
 
1609
2003
  def initialize(**args)
1610
2004
  update!(**args)
@@ -1613,22 +2007,41 @@ module Google
1613
2007
  # Update properties of this object
1614
2008
  def update!(**args)
1615
2009
  @confidence = args[:confidence] if args.key?(:confidence)
1616
- @transcript = args[:transcript] if args.key?(:transcript)
1617
- @words = args[:words] if args.key?(:words)
2010
+ @frames = args[:frames] if args.key?(:frames)
2011
+ @segments = args[:segments] if args.key?(:segments)
2012
+ @text = args[:text] if args.key?(:text)
1618
2013
  end
1619
2014
  end
1620
2015
 
1621
- # A speech recognition result corresponding to a portion of the audio.
1622
- class GoogleCloudVideointelligenceV1p1beta1SpeechTranscription
2016
+ # Video frame level annotation results for text annotation (OCR).
2017
+ # Contains information regarding timestamp and bounding box locations for the
2018
+ # frames containing detected OCR text snippets.
2019
+ class GoogleCloudVideointelligenceV1p2beta1TextFrame
1623
2020
  include Google::Apis::Core::Hashable
1624
2021
 
1625
- # Output only. May contain one or more recognition hypotheses (up to the
1626
- # maximum specified in `max_alternatives`).
1627
- # These alternatives are ordered in terms of accuracy, with the top (first)
1628
- # alternative being the most probable, as ranked by the recognizer.
1629
- # Corresponds to the JSON property `alternatives`
1630
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative>]
1631
- attr_accessor :alternatives
2022
+ # Normalized bounding polygon for text (that might not be aligned with axis).
2023
+ # Contains list of the corner points in clockwise order starting from
2024
+ # top-left corner. For example, for a rectangular bounding box:
2025
+ # When the text is horizontal it might look like:
2026
+ # 0----1
2027
+ # | |
2028
+ # 3----2
2029
+ # When it's clockwise rotated 180 degrees around the top-left corner it
2030
+ # becomes:
2031
+ # 2----3
2032
+ # | |
2033
+ # 1----0
2034
+ # and the vertex order will still be (0, 1, 2, 3). Note that values can be less
2035
+ # than 0, or greater than 1 due to trignometric calculations for location of
2036
+ # the box.
2037
+ # Corresponds to the JSON property `rotatedBoundingBox`
2038
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly]
2039
+ attr_accessor :rotated_bounding_box
2040
+
2041
+ # Timestamp of this frame.
2042
+ # Corresponds to the JSON property `timeOffset`
2043
+ # @return [String]
2044
+ attr_accessor :time_offset
1632
2045
 
1633
2046
  def initialize(**args)
1634
2047
  update!(**args)
@@ -1636,32 +2049,52 @@ module Google
1636
2049
 
1637
2050
  # Update properties of this object
1638
2051
  def update!(**args)
1639
- @alternatives = args[:alternatives] if args.key?(:alternatives)
2052
+ @rotated_bounding_box = args[:rotated_bounding_box] if args.key?(:rotated_bounding_box)
2053
+ @time_offset = args[:time_offset] if args.key?(:time_offset)
2054
+ end
2055
+ end
2056
+
2057
+ # Video segment level annotation results for text detection.
2058
+ class GoogleCloudVideointelligenceV1p2beta1TextSegment
2059
+ include Google::Apis::Core::Hashable
2060
+
2061
+ # Video segment.
2062
+ # Corresponds to the JSON property `segment`
2063
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1VideoSegment]
2064
+ attr_accessor :segment
2065
+
2066
+ def initialize(**args)
2067
+ update!(**args)
2068
+ end
2069
+
2070
+ # Update properties of this object
2071
+ def update!(**args)
2072
+ @segment = args[:segment] if args.key?(:segment)
1640
2073
  end
1641
2074
  end
1642
2075
 
1643
2076
  # Annotation progress for a single video.
1644
- class GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress
2077
+ class GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress
1645
2078
  include Google::Apis::Core::Hashable
1646
2079
 
1647
- # Output only. Video file location in
2080
+ # Video file location in
1648
2081
  # [Google Cloud Storage](https://cloud.google.com/storage/).
1649
2082
  # Corresponds to the JSON property `inputUri`
1650
2083
  # @return [String]
1651
2084
  attr_accessor :input_uri
1652
2085
 
1653
- # Output only. Approximate percentage processed thus far. Guaranteed to be
2086
+ # Approximate percentage processed thus far. Guaranteed to be
1654
2087
  # 100 when fully processed.
1655
2088
  # Corresponds to the JSON property `progressPercent`
1656
2089
  # @return [Fixnum]
1657
2090
  attr_accessor :progress_percent
1658
2091
 
1659
- # Output only. Time when the request was received.
2092
+ # Time when the request was received.
1660
2093
  # Corresponds to the JSON property `startTime`
1661
2094
  # @return [String]
1662
2095
  attr_accessor :start_time
1663
2096
 
1664
- # Output only. Time of the most recent update.
2097
+ # Time of the most recent update.
1665
2098
  # Corresponds to the JSON property `updateTime`
1666
2099
  # @return [String]
1667
2100
  attr_accessor :update_time
@@ -1680,7 +2113,7 @@ module Google
1680
2113
  end
1681
2114
 
1682
2115
  # Annotation results for a single video.
1683
- class GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults
2116
+ class GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults
1684
2117
  include Google::Apis::Core::Hashable
1685
2118
 
1686
2119
  # The `Status` type defines a logical error model that is suitable for different
@@ -1723,54 +2156,56 @@ module Google
1723
2156
  # - Logging. If some API errors are stored in logs, the message `Status` could
1724
2157
  # be used directly after any stripping needed for security/privacy reasons.
1725
2158
  # Corresponds to the JSON property `error`
1726
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus]
2159
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus]
1727
2160
  attr_accessor :error
1728
2161
 
1729
2162
  # Explicit content annotation (based on per-frame visual signals only).
1730
2163
  # If no explicit content has been detected in a frame, no annotations are
1731
2164
  # present for that frame.
1732
2165
  # Corresponds to the JSON property `explicitAnnotation`
1733
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation]
2166
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation]
1734
2167
  attr_accessor :explicit_annotation
1735
2168
 
1736
- # Face detection annotations.
1737
- # Corresponds to the JSON property `faceDetectionAnnotations`
1738
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation>]
1739
- attr_accessor :face_detection_annotations
1740
-
1741
2169
  # Label annotations on frame level.
1742
2170
  # There is exactly one element for each unique label.
1743
2171
  # Corresponds to the JSON property `frameLabelAnnotations`
1744
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>]
2172
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>]
1745
2173
  attr_accessor :frame_label_annotations
1746
2174
 
1747
- # Output only. Video file location in
2175
+ # Video file location in
1748
2176
  # [Google Cloud Storage](https://cloud.google.com/storage/).
1749
2177
  # Corresponds to the JSON property `inputUri`
1750
2178
  # @return [String]
1751
2179
  attr_accessor :input_uri
1752
2180
 
2181
+ # Annotations for list of objects detected and tracked in video.
2182
+ # Corresponds to the JSON property `objectAnnotations`
2183
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation>]
2184
+ attr_accessor :object_annotations
2185
+
1753
2186
  # Label annotations on video level or user specified segment level.
1754
2187
  # There is exactly one element for each unique label.
1755
2188
  # Corresponds to the JSON property `segmentLabelAnnotations`
1756
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>]
2189
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>]
1757
2190
  attr_accessor :segment_label_annotations
1758
2191
 
1759
2192
  # Shot annotations. Each shot is represented as a video segment.
1760
2193
  # Corresponds to the JSON property `shotAnnotations`
1761
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment>]
2194
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1VideoSegment>]
1762
2195
  attr_accessor :shot_annotations
1763
2196
 
1764
2197
  # Label annotations on shot level.
1765
2198
  # There is exactly one element for each unique label.
1766
2199
  # Corresponds to the JSON property `shotLabelAnnotations`
1767
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>]
2200
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>]
1768
2201
  attr_accessor :shot_label_annotations
1769
2202
 
1770
- # Speech transcription.
1771
- # Corresponds to the JSON property `speechTranscriptions`
1772
- # @return [Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1SpeechTranscription>]
1773
- attr_accessor :speech_transcriptions
2203
+ # OCR text detection and tracking.
2204
+ # Annotations for list of detected text snippets. Each will have list of
2205
+ # frame information associated with it.
2206
+ # Corresponds to the JSON property `textAnnotations`
2207
+ # @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1TextAnnotation>]
2208
+ attr_accessor :text_annotations
1774
2209
 
1775
2210
  def initialize(**args)
1776
2211
  update!(**args)
@@ -1780,18 +2215,18 @@ module Google
1780
2215
  def update!(**args)
1781
2216
  @error = args[:error] if args.key?(:error)
1782
2217
  @explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation)
1783
- @face_detection_annotations = args[:face_detection_annotations] if args.key?(:face_detection_annotations)
1784
2218
  @frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations)
1785
2219
  @input_uri = args[:input_uri] if args.key?(:input_uri)
2220
+ @object_annotations = args[:object_annotations] if args.key?(:object_annotations)
1786
2221
  @segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)
1787
2222
  @shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
1788
2223
  @shot_label_annotations = args[:shot_label_annotations] if args.key?(:shot_label_annotations)
1789
- @speech_transcriptions = args[:speech_transcriptions] if args.key?(:speech_transcriptions)
2224
+ @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
1790
2225
  end
1791
2226
  end
1792
2227
 
1793
2228
  # Video segment.
1794
- class GoogleCloudVideointelligenceV1p1beta1VideoSegment
2229
+ class GoogleCloudVideointelligenceV1p2beta1VideoSegment
1795
2230
  include Google::Apis::Core::Hashable
1796
2231
 
1797
2232
  # Time-offset, relative to the beginning of the video,
@@ -1817,45 +2252,6 @@ module Google
1817
2252
  end
1818
2253
  end
1819
2254
 
1820
- # Word-specific information for recognized words. Word information is only
1821
- # included in the response when certain request parameters are set, such
1822
- # as `enable_word_time_offsets`.
1823
- class GoogleCloudVideointelligenceV1p1beta1WordInfo
1824
- include Google::Apis::Core::Hashable
1825
-
1826
- # Output only. Time offset relative to the beginning of the audio, and
1827
- # corresponding to the end of the spoken word. This field is only set if
1828
- # `enable_word_time_offsets=true` and only in the top hypothesis. This is an
1829
- # experimental feature and the accuracy of the time offset can vary.
1830
- # Corresponds to the JSON property `endTime`
1831
- # @return [String]
1832
- attr_accessor :end_time
1833
-
1834
- # Output only. Time offset relative to the beginning of the audio, and
1835
- # corresponding to the start of the spoken word. This field is only set if
1836
- # `enable_word_time_offsets=true` and only in the top hypothesis. This is an
1837
- # experimental feature and the accuracy of the time offset can vary.
1838
- # Corresponds to the JSON property `startTime`
1839
- # @return [String]
1840
- attr_accessor :start_time
1841
-
1842
- # Output only. The word corresponding to this set of information.
1843
- # Corresponds to the JSON property `word`
1844
- # @return [String]
1845
- attr_accessor :word
1846
-
1847
- def initialize(**args)
1848
- update!(**args)
1849
- end
1850
-
1851
- # Update properties of this object
1852
- def update!(**args)
1853
- @end_time = args[:end_time] if args.key?(:end_time)
1854
- @start_time = args[:start_time] if args.key?(:start_time)
1855
- @word = args[:word] if args.key?(:word)
1856
- end
1857
- end
1858
-
1859
2255
  # This resource represents a long-running operation that is the result of a
1860
2256
  # network API call.
1861
2257
  class GoogleLongrunningOperation
@@ -1909,7 +2305,7 @@ module Google
1909
2305
  # - Logging. If some API errors are stored in logs, the message `Status` could
1910
2306
  # be used directly after any stripping needed for security/privacy reasons.
1911
2307
  # Corresponds to the JSON property `error`
1912
- # @return [Google::Apis::VideointelligenceV1beta1::GoogleRpcStatus]
2308
+ # @return [Google::Apis::VideointelligenceV1p1beta1::GoogleRpcStatus]
1913
2309
  attr_accessor :error
1914
2310
 
1915
2311
  # Service-specific metadata associated with the operation. It typically