google-api-client 0.24.3 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (262) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +0 -2
  3. data/CHANGELOG.md +99 -0
  4. data/Gemfile +1 -0
  5. data/generated/google/apis/abusiveexperiencereport_v1.rb +2 -2
  6. data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +0 -1
  7. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +1 -1
  8. data/generated/google/apis/{content_v2sandbox.rb → accesscontextmanager_v1beta.rb} +11 -12
  9. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +697 -0
  10. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +240 -0
  11. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +666 -0
  12. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +16 -0
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +2 -0
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -2
  16. data/generated/google/apis/adexperiencereport_v1.rb +2 -2
  17. data/generated/google/apis/adexperiencereport_v1/service.rb +1 -1
  18. data/generated/google/apis/alertcenter_v1beta1.rb +4 -3
  19. data/generated/google/apis/alertcenter_v1beta1/classes.rb +9 -2
  20. data/generated/google/apis/alertcenter_v1beta1/representations.rb +1 -0
  21. data/generated/google/apis/alertcenter_v1beta1/service.rb +3 -2
  22. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  23. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +3 -2
  24. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  25. data/generated/google/apis/androidenterprise_v1/classes.rb +68 -6
  26. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -0
  27. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  28. data/generated/google/apis/androidmanagement_v1/classes.rb +92 -0
  29. data/generated/google/apis/androidmanagement_v1/representations.rb +36 -0
  30. data/generated/google/apis/androidpublisher_v1.rb +2 -2
  31. data/generated/google/apis/androidpublisher_v1/service.rb +1 -1
  32. data/generated/google/apis/androidpublisher_v1_1.rb +2 -2
  33. data/generated/google/apis/androidpublisher_v1_1/service.rb +1 -1
  34. data/generated/google/apis/androidpublisher_v2.rb +2 -2
  35. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  36. data/generated/google/apis/androidpublisher_v3.rb +2 -2
  37. data/generated/google/apis/androidpublisher_v3/service.rb +3 -2
  38. data/generated/google/apis/appengine_v1.rb +2 -3
  39. data/generated/google/apis/appengine_v1/service.rb +1 -2
  40. data/generated/google/apis/appengine_v1alpha.rb +2 -3
  41. data/generated/google/apis/appengine_v1alpha/service.rb +1 -2
  42. data/generated/google/apis/appengine_v1beta.rb +2 -3
  43. data/generated/google/apis/appengine_v1beta/service.rb +1 -2
  44. data/generated/google/apis/appengine_v1beta4.rb +2 -3
  45. data/generated/google/apis/appengine_v1beta4/service.rb +1 -2
  46. data/generated/google/apis/appengine_v1beta5.rb +2 -3
  47. data/generated/google/apis/appengine_v1beta5/service.rb +1 -2
  48. data/generated/google/apis/bigquery_v2.rb +1 -1
  49. data/generated/google/apis/bigquery_v2/classes.rb +98 -7
  50. data/generated/google/apis/bigquery_v2/representations.rb +35 -0
  51. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  52. data/generated/google/apis/civicinfo_v2.rb +1 -1
  53. data/generated/google/apis/civicinfo_v2/classes.rb +18 -0
  54. data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
  55. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudasset_v1beta1/classes.rb +5 -5
  57. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  58. data/generated/google/apis/cloudbuild_v1/classes.rb +10 -1
  59. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  60. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  61. data/generated/google/apis/cloudfunctions_v1/classes.rb +418 -0
  62. data/generated/google/apis/cloudfunctions_v1/representations.rb +121 -0
  63. data/generated/google/apis/cloudfunctions_v1/service.rb +107 -0
  64. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  65. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +16 -0
  66. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
  67. data/generated/google/apis/cloudkms_v1.rb +1 -1
  68. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  69. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +2 -1
  70. data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
  71. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +3 -3
  72. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +2 -1
  73. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
  74. data/generated/google/apis/cloudresourcemanager_v2.rb +3 -3
  75. data/generated/google/apis/cloudresourcemanager_v2/service.rb +2 -2
  76. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +3 -3
  77. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +2 -2
  78. data/generated/google/apis/cloudsearch_v1.rb +59 -0
  79. data/generated/google/apis/cloudsearch_v1/classes.rb +4697 -0
  80. data/generated/google/apis/cloudsearch_v1/representations.rb +2151 -0
  81. data/generated/google/apis/cloudsearch_v1/service.rb +1351 -0
  82. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  83. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +34 -0
  84. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  85. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +34 -30
  86. data/generated/google/apis/composer_v1beta1.rb +1 -1
  87. data/generated/google/apis/composer_v1beta1/classes.rb +5 -8
  88. data/generated/google/apis/compute_alpha.rb +1 -1
  89. data/generated/google/apis/compute_beta.rb +1 -1
  90. data/generated/google/apis/compute_v1.rb +1 -1
  91. data/generated/google/apis/content_v2.rb +1 -1
  92. data/generated/google/apis/content_v2/classes.rb +197 -69
  93. data/generated/google/apis/content_v2/representations.rb +64 -33
  94. data/generated/google/apis/content_v2/service.rb +1 -1
  95. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  96. data/generated/google/apis/dataflow_v1b3/classes.rb +42 -0
  97. data/generated/google/apis/dataflow_v1b3/representations.rb +17 -0
  98. data/generated/google/apis/dataproc_v1.rb +1 -1
  99. data/generated/google/apis/dataproc_v1/classes.rb +19 -19
  100. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  101. data/generated/google/apis/dataproc_v1beta2/classes.rb +19 -19
  102. data/generated/google/apis/dialogflow_v2.rb +6 -3
  103. data/generated/google/apis/dialogflow_v2/classes.rb +112 -8
  104. data/generated/google/apis/dialogflow_v2/representations.rb +30 -0
  105. data/generated/google/apis/dialogflow_v2/service.rb +7 -2
  106. data/generated/google/apis/dialogflow_v2beta1.rb +6 -3
  107. data/generated/google/apis/dialogflow_v2beta1/classes.rb +116 -8
  108. data/generated/google/apis/dialogflow_v2beta1/representations.rb +30 -0
  109. data/generated/google/apis/dialogflow_v2beta1/service.rb +19 -8
  110. data/generated/google/apis/digitalassetlinks_v1.rb +2 -3
  111. data/generated/google/apis/digitalassetlinks_v1/service.rb +1 -2
  112. data/generated/google/apis/dlp_v2.rb +1 -1
  113. data/generated/google/apis/dlp_v2/classes.rb +17 -5
  114. data/generated/google/apis/dlp_v2/representations.rb +2 -0
  115. data/generated/google/apis/dns_v1beta2.rb +1 -1
  116. data/generated/google/apis/dns_v1beta2/classes.rb +81 -0
  117. data/generated/google/apis/dns_v1beta2/representations.rb +34 -0
  118. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  119. data/generated/google/apis/doubleclicksearch_v2/classes.rb +1 -1
  120. data/generated/google/apis/drive_v2.rb +1 -1
  121. data/generated/google/apis/drive_v2/classes.rb +3 -1
  122. data/generated/google/apis/firebaserules_v1.rb +1 -1
  123. data/generated/google/apis/firestore_v1.rb +1 -1
  124. data/generated/google/apis/firestore_v1/classes.rb +637 -0
  125. data/generated/google/apis/firestore_v1/representations.rb +260 -0
  126. data/generated/google/apis/firestore_v1/service.rb +377 -0
  127. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  128. data/generated/google/apis/firestore_v1beta2/classes.rb +205 -0
  129. data/generated/google/apis/firestore_v1beta2/representations.rb +83 -0
  130. data/generated/google/apis/firestore_v1beta2/service.rb +79 -0
  131. data/generated/google/apis/genomics_v1.rb +2 -2
  132. data/generated/google/apis/genomics_v1/service.rb +1 -1
  133. data/generated/google/apis/genomics_v1alpha2.rb +2 -2
  134. data/generated/google/apis/genomics_v1alpha2/service.rb +1 -1
  135. data/generated/google/apis/genomics_v2alpha1.rb +2 -2
  136. data/generated/google/apis/genomics_v2alpha1/service.rb +1 -1
  137. data/generated/google/apis/iam_v1.rb +1 -1
  138. data/generated/google/apis/iam_v1/classes.rb +4 -3
  139. data/generated/google/apis/iamcredentials_v1.rb +2 -2
  140. data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
  141. data/generated/google/apis/indexing_v3.rb +2 -3
  142. data/generated/google/apis/indexing_v3/service.rb +1 -2
  143. data/generated/google/apis/jobs_v2.rb +1 -1
  144. data/generated/google/apis/jobs_v2/classes.rb +2 -2
  145. data/generated/google/apis/jobs_v3.rb +1 -1
  146. data/generated/google/apis/jobs_v3/classes.rb +3 -3
  147. data/generated/google/apis/jobs_v3/service.rb +20 -2
  148. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  149. data/generated/google/apis/jobs_v3p1beta1/classes.rb +3 -3
  150. data/generated/google/apis/jobs_v3p1beta1/service.rb +20 -2
  151. data/generated/google/apis/language_v1.rb +4 -4
  152. data/generated/google/apis/language_v1/service.rb +3 -3
  153. data/generated/google/apis/language_v1beta1.rb +4 -4
  154. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  155. data/generated/google/apis/language_v1beta2.rb +4 -4
  156. data/generated/google/apis/language_v1beta2/service.rb +3 -3
  157. data/generated/google/apis/logging_v2.rb +1 -1
  158. data/generated/google/apis/logging_v2/classes.rb +2 -13
  159. data/generated/google/apis/logging_v2/representations.rb +0 -2
  160. data/generated/google/apis/logging_v2beta1.rb +1 -1
  161. data/generated/google/apis/logging_v2beta1/classes.rb +2 -41
  162. data/generated/google/apis/logging_v2beta1/representations.rb +0 -16
  163. data/generated/google/apis/logging_v2beta1/service.rb +0 -255
  164. data/generated/google/apis/monitoring_v3.rb +1 -1
  165. data/generated/google/apis/monitoring_v3/classes.rb +25 -15
  166. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  167. data/generated/google/apis/monitoring_v3/service.rb +366 -1
  168. data/generated/google/apis/oslogin_v1.rb +1 -1
  169. data/generated/google/apis/oslogin_v1/service.rb +7 -1
  170. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  171. data/generated/google/apis/oslogin_v1alpha/service.rb +10 -1
  172. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  173. data/generated/google/apis/oslogin_v1beta/service.rb +7 -1
  174. data/generated/google/apis/redis_v1.rb +1 -1
  175. data/generated/google/apis/redis_v1/classes.rb +6 -0
  176. data/generated/google/apis/redis_v1/representations.rb +1 -0
  177. data/generated/google/apis/redis_v1beta1.rb +1 -1
  178. data/generated/google/apis/redis_v1beta1/classes.rb +6 -0
  179. data/generated/google/apis/redis_v1beta1/representations.rb +1 -0
  180. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  181. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +7 -6
  182. data/generated/google/apis/script_v1.rb +2 -2
  183. data/generated/google/apis/script_v1/service.rb +7 -3
  184. data/generated/google/apis/serviceconsumermanagement_v1.rb +2 -3
  185. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +7 -0
  186. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
  187. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +1 -2
  188. data/generated/google/apis/servicecontrol_v1.rb +3 -3
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +18 -230
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +2 -99
  191. data/generated/google/apis/servicecontrol_v1/service.rb +2 -140
  192. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +1 -1
  194. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  195. data/generated/google/apis/servicenetworking_v1beta/classes.rb +24 -0
  196. data/generated/google/apis/servicenetworking_v1beta/representations.rb +3 -0
  197. data/generated/google/apis/serviceusage_v1.rb +1 -1
  198. data/generated/google/apis/serviceusage_v1/classes.rb +7 -0
  199. data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
  200. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  201. data/generated/google/apis/serviceusage_v1beta1/classes.rb +7 -0
  202. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
  203. data/generated/google/apis/slides_v1.rb +2 -2
  204. data/generated/google/apis/slides_v1/classes.rb +4 -3
  205. data/generated/google/apis/slides_v1/service.rb +1 -1
  206. data/generated/google/apis/storage_v1.rb +1 -1
  207. data/generated/google/apis/storage_v1/service.rb +2 -3
  208. data/generated/google/apis/testing_v1.rb +1 -1
  209. data/generated/google/apis/testing_v1/classes.rb +9 -0
  210. data/generated/google/apis/testing_v1/representations.rb +1 -0
  211. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  212. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -1
  213. data/generated/google/apis/tpu_v1.rb +1 -1
  214. data/generated/google/apis/tpu_v1/classes.rb +6 -0
  215. data/generated/google/apis/tpu_v1/representations.rb +1 -0
  216. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  217. data/generated/google/apis/tpu_v1alpha1/classes.rb +6 -0
  218. data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
  219. data/generated/google/apis/vault_v1.rb +1 -1
  220. data/generated/google/apis/vault_v1/classes.rb +7 -0
  221. data/generated/google/apis/vault_v1/representations.rb +1 -0
  222. data/generated/google/apis/videointelligence_v1.rb +3 -2
  223. data/generated/google/apis/videointelligence_v1/classes.rb +547 -12
  224. data/generated/google/apis/videointelligence_v1/representations.rb +190 -2
  225. data/generated/google/apis/videointelligence_v1/service.rb +2 -1
  226. data/generated/google/apis/videointelligence_v1beta2.rb +3 -2
  227. data/generated/google/apis/videointelligence_v1beta2/classes.rb +547 -12
  228. data/generated/google/apis/videointelligence_v1beta2/representations.rb +190 -2
  229. data/generated/google/apis/videointelligence_v1beta2/service.rb +2 -1
  230. data/generated/google/apis/videointelligence_v1p1beta1.rb +3 -2
  231. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +418 -13
  232. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +153 -2
  233. data/generated/google/apis/videointelligence_v1p1beta1/service.rb +2 -1
  234. data/generated/google/apis/vision_v1.rb +1 -1
  235. data/generated/google/apis/vision_v1/classes.rb +1139 -54
  236. data/generated/google/apis/vision_v1/representations.rb +478 -0
  237. data/generated/google/apis/vision_v1/service.rb +744 -0
  238. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  239. data/generated/google/apis/vision_v1p1beta1/classes.rb +761 -16
  240. data/generated/google/apis/vision_v1p1beta1/representations.rb +333 -0
  241. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  242. data/generated/google/apis/vision_v1p2beta1/classes.rb +758 -13
  243. data/generated/google/apis/vision_v1p2beta1/representations.rb +333 -0
  244. data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
  245. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
  246. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  247. data/generated/google/apis/youtube_v3.rb +1 -1
  248. data/lib/google/apis/core/http_command.rb +83 -10
  249. data/lib/google/apis/options.rb +5 -1
  250. data/lib/google/apis/version.rb +1 -1
  251. metadata +10 -14
  252. data/generated/google/apis/content_v2sandbox/classes.rb +0 -4436
  253. data/generated/google/apis/content_v2sandbox/representations.rb +0 -1956
  254. data/generated/google/apis/content_v2sandbox/service.rb +0 -1296
  255. data/generated/google/apis/dfareporting_v2_8.rb +0 -40
  256. data/generated/google/apis/dfareporting_v2_8/classes.rb +0 -12043
  257. data/generated/google/apis/dfareporting_v2_8/representations.rb +0 -4311
  258. data/generated/google/apis/dfareporting_v2_8/service.rb +0 -8727
  259. data/generated/google/apis/serviceuser_v1.rb +0 -42
  260. data/generated/google/apis/serviceuser_v1/classes.rb +0 -3472
  261. data/generated/google/apis/serviceuser_v1/representations.rb +0 -1030
  262. data/generated/google/apis/serviceuser_v1/service.rb +0 -215
@@ -509,6 +509,7 @@ module Google
509
509
  property :address, as: 'address'
510
510
  property :deadline, as: 'deadline'
511
511
  property :min_deadline, as: 'minDeadline'
512
+ property :operation_deadline, as: 'operationDeadline'
512
513
  property :selector, as: 'selector'
513
514
  end
514
515
  end
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/service-usage/
28
28
  module ServiceusageV1beta1
29
29
  VERSION = 'V1beta1'
30
- REVISION = '20181004'
30
+ REVISION = '20181030'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -381,6 +381,12 @@ module Google
381
381
  # @return [Float]
382
382
  attr_accessor :min_deadline
383
383
 
384
+ # The number of seconds to wait for the completion of a long running
385
+ # operation. The default is no deadline.
386
+ # Corresponds to the JSON property `operationDeadline`
387
+ # @return [Float]
388
+ attr_accessor :operation_deadline
389
+
384
390
  # Selects the methods to which this rule applies.
385
391
  # Refer to selector for syntax details.
386
392
  # Corresponds to the JSON property `selector`
@@ -396,6 +402,7 @@ module Google
396
402
  @address = args[:address] if args.key?(:address)
397
403
  @deadline = args[:deadline] if args.key?(:deadline)
398
404
  @min_deadline = args[:min_deadline] if args.key?(:min_deadline)
405
+ @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
399
406
  @selector = args[:selector] if args.key?(:selector)
400
407
  end
401
408
  end
@@ -515,6 +515,7 @@ module Google
515
515
  property :address, as: 'address'
516
516
  property :deadline, as: 'deadline'
517
517
  property :min_deadline, as: 'minDeadline'
518
+ property :operation_deadline, as: 'operationDeadline'
518
519
  property :selector, as: 'selector'
519
520
  end
520
521
  end
@@ -20,12 +20,12 @@ module Google
20
20
  module Apis
21
21
  # Google Slides API
22
22
  #
23
- # An API for creating and editing Google Slides presentations.
23
+ # Reads and writes Google Slides presentations.
24
24
  #
25
25
  # @see https://developers.google.com/slides/
26
26
  module SlidesV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180807'
28
+ REVISION = '20181030'
29
29
 
30
30
  # View and manage the files in your Google Drive
31
31
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -3232,7 +3232,7 @@ module Google
3232
3232
  include Google::Apis::Core::Hashable
3233
3233
 
3234
3234
  # The alignment point of the shadow, that sets the origin for translate,
3235
- # scale and skew of the shadow.
3235
+ # scale and skew of the shadow. This property is read-only.
3236
3236
  # Corresponds to the JSON property `alignment`
3237
3237
  # @return [String]
3238
3238
  attr_accessor :alignment
@@ -3261,7 +3261,8 @@ module Google
3261
3261
  # @return [String]
3262
3262
  attr_accessor :property_state
3263
3263
 
3264
- # Whether the shadow should rotate with the shape.
3264
+ # Whether the shadow should rotate with the shape. This property is
3265
+ # read-only.
3265
3266
  # Corresponds to the JSON property `rotateWithShape`
3266
3267
  # @return [Boolean]
3267
3268
  attr_accessor :rotate_with_shape
@@ -3280,7 +3281,7 @@ module Google
3280
3281
  # @return [Google::Apis::SlidesV1::AffineTransform]
3281
3282
  attr_accessor :transform
3282
3283
 
3283
- # The type of the shadow.
3284
+ # The type of the shadow. This property is read-only.
3284
3285
  # Corresponds to the JSON property `type`
3285
3286
  # @return [String]
3286
3287
  attr_accessor :type
@@ -22,7 +22,7 @@ module Google
22
22
  module SlidesV1
23
23
  # Google Slides API
24
24
  #
25
- # An API for creating and editing Google Slides presentations.
25
+ # Reads and writes Google Slides presentations.
26
26
  #
27
27
  # @example
28
28
  # require 'google/apis/slides_v1'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/storage/docs/json_api/
26
26
  module StorageV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180905'
28
+ REVISION = '20181013'
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'
@@ -554,9 +554,8 @@ module Google
554
554
  execute_or_queue_command(command, &block)
555
555
  end
556
556
 
557
- # Updates a bucket. Changes to the bucket will be readable immediately after
558
- # writing, but configuration changes may take time to propagate. This method
559
- # supports patch semantics.
557
+ # Patches a bucket. Changes to the bucket will be readable immediately after
558
+ # writing, but configuration changes may take time to propagate.
560
559
  # @param [String] bucket
561
560
  # Name of a bucket.
562
561
  # @param [Google::Apis::StorageV1::Bucket] bucket_object
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/cloud-test-lab/
27
27
  module TestingV1
28
28
  VERSION = 'V1'
29
- REVISION = '20181003'
29
+ REVISION = '20181025'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -313,6 +313,14 @@ module Google
313
313
  # @return [String]
314
314
  attr_accessor :id
315
315
 
316
+ # True if and only if tests with this model are recorded by stitching
317
+ # together screenshots. See use_low_spec_video_recording in device config.
318
+ # @OutputOnly
319
+ # Corresponds to the JSON property `lowFpsVideoRecording`
320
+ # @return [Boolean]
321
+ attr_accessor :low_fps_video_recording
322
+ alias_method :low_fps_video_recording?, :low_fps_video_recording
323
+
316
324
  # The manufacturer of this device.
317
325
  # @OutputOnly
318
326
  # Corresponds to the JSON property `manufacturer`
@@ -388,6 +396,7 @@ module Google
388
396
  @form = args[:form] if args.key?(:form)
389
397
  @form_factor = args[:form_factor] if args.key?(:form_factor)
390
398
  @id = args[:id] if args.key?(:id)
399
+ @low_fps_video_recording = args[:low_fps_video_recording] if args.key?(:low_fps_video_recording)
391
400
  @manufacturer = args[:manufacturer] if args.key?(:manufacturer)
392
401
  @name = args[:name] if args.key?(:name)
393
402
  @screen_density = args[:screen_density] if args.key?(:screen_density)
@@ -447,6 +447,7 @@ module Google
447
447
  property :form, as: 'form'
448
448
  property :form_factor, as: 'formFactor'
449
449
  property :id, as: 'id'
450
+ property :low_fps_video_recording, as: 'lowFpsVideoRecording'
450
451
  property :manufacturer, as: 'manufacturer'
451
452
  property :name, as: 'name'
452
453
  property :screen_density, as: 'screenDensity'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://firebase.google.com/docs/test-lab/
26
26
  module ToolresultsV1beta3
27
27
  VERSION = 'V1beta3'
28
- REVISION = '20180918'
28
+ REVISION = '20181015'
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'
@@ -380,7 +380,7 @@ module Google
380
380
  execute_or_queue_command(command, &block)
381
381
  end
382
382
 
383
- # Lists Histories for a given Project.
383
+ # Lists Executions for a given History.
384
384
  # The executions are sorted by creation_time in descending order. The
385
385
  # execution_id key will be used to order the executions with the same
386
386
  # creation_time.
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/tpu/
26
26
  module TpuV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180902'
28
+ REVISION = '20181010'
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'
@@ -130,6 +130,11 @@ module Google
130
130
  # @return [Array<Google::Apis::TpuV1::Node>]
131
131
  attr_accessor :nodes
132
132
 
133
+ # Locations that could not be reached.
134
+ # Corresponds to the JSON property `unreachable`
135
+ # @return [Array<String>]
136
+ attr_accessor :unreachable
137
+
133
138
  def initialize(**args)
134
139
  update!(**args)
135
140
  end
@@ -138,6 +143,7 @@ module Google
138
143
  def update!(**args)
139
144
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
140
145
  @nodes = args[:nodes] if args.key?(:nodes)
146
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
141
147
  end
142
148
  end
143
149
 
@@ -168,6 +168,7 @@ module Google
168
168
  property :next_page_token, as: 'nextPageToken'
169
169
  collection :nodes, as: 'nodes', class: Google::Apis::TpuV1::Node, decorator: Google::Apis::TpuV1::Node::Representation
170
170
 
171
+ collection :unreachable, as: 'unreachable'
171
172
  end
172
173
  end
173
174
 
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/tpu/
26
26
  module TpuV1alpha1
27
27
  VERSION = 'V1alpha1'
28
- REVISION = '20180902'
28
+ REVISION = '20181010'
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'
@@ -130,6 +130,11 @@ module Google
130
130
  # @return [Array<Google::Apis::TpuV1alpha1::Node>]
131
131
  attr_accessor :nodes
132
132
 
133
+ # Locations that could not be reached.
134
+ # Corresponds to the JSON property `unreachable`
135
+ # @return [Array<String>]
136
+ attr_accessor :unreachable
137
+
133
138
  def initialize(**args)
134
139
  update!(**args)
135
140
  end
@@ -138,6 +143,7 @@ module Google
138
143
  def update!(**args)
139
144
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
140
145
  @nodes = args[:nodes] if args.key?(:nodes)
146
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
141
147
  end
142
148
  end
143
149
 
@@ -168,6 +168,7 @@ module Google
168
168
  property :next_page_token, as: 'nextPageToken'
169
169
  collection :nodes, as: 'nodes', class: Google::Apis::TpuV1alpha1::Node, decorator: Google::Apis::TpuV1alpha1::Node::Representation
170
170
 
171
+ collection :unreachable, as: 'unreachable'
171
172
  end
172
173
  end
173
174
 
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/vault
26
26
  module VaultV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180731'
28
+ REVISION = '20180919'
29
29
 
30
30
  # Manage your eDiscovery data
31
31
  AUTH_EDISCOVERY = 'https://www.googleapis.com/auth/ediscovery'
@@ -930,6 +930,12 @@ module Google
930
930
  # @return [String]
931
931
  attr_accessor :export_format
932
932
 
933
+ # Set to true to export confidential mode content
934
+ # Corresponds to the JSON property `showConfidentialModeContent`
935
+ # @return [Boolean]
936
+ attr_accessor :show_confidential_mode_content
937
+ alias_method :show_confidential_mode_content?, :show_confidential_mode_content
938
+
933
939
  def initialize(**args)
934
940
  update!(**args)
935
941
  end
@@ -937,6 +943,7 @@ module Google
937
943
  # Update properties of this object
938
944
  def update!(**args)
939
945
  @export_format = args[:export_format] if args.key?(:export_format)
946
+ @show_confidential_mode_content = args[:show_confidential_mode_content] if args.key?(:show_confidential_mode_content)
940
947
  end
941
948
  end
942
949
 
@@ -583,6 +583,7 @@ module Google
583
583
  # @private
584
584
  class Representation < Google::Apis::Core::JsonRepresentation
585
585
  property :export_format, as: 'exportFormat'
586
+ property :show_confidential_mode_content, as: 'showConfidentialModeContent'
586
587
  end
587
588
  end
588
589
 
@@ -20,12 +20,13 @@ module Google
20
20
  module Apis
21
21
  # Cloud Video Intelligence API
22
22
  #
23
- # Cloud Video Intelligence API.
23
+ # Detects objects, explicit content, and scene changes in videos. It also
24
+ # specifies the region for annotation and transcribes speech to text.
24
25
  #
25
26
  # @see https://cloud.google.com/video-intelligence/docs/
26
27
  module VideointelligenceV1
27
28
  VERSION = 'V1'
28
- REVISION = '20180920'
29
+ REVISION = '20181027'
29
30
 
30
31
  # View and manage your data across Google Cloud Platform services
31
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -383,6 +383,197 @@ module Google
383
383
  end
384
384
  end
385
385
 
386
+ # Provides "hints" to the speech recognizer to favor specific words and phrases
387
+ # in the results.
388
+ class GoogleCloudVideointelligenceV1SpeechContext
389
+ include Google::Apis::Core::Hashable
390
+
391
+ # *Optional* A list of strings containing words and phrases "hints" so that
392
+ # the speech recognition is more likely to recognize them. This can be used
393
+ # to improve the accuracy for specific words and phrases, for example, if
394
+ # specific commands are typically spoken by the user. This can also be used
395
+ # to add additional words to the vocabulary of the recognizer. See
396
+ # [usage limits](https://cloud.google.com/speech/limits#content).
397
+ # Corresponds to the JSON property `phrases`
398
+ # @return [Array<String>]
399
+ attr_accessor :phrases
400
+
401
+ def initialize(**args)
402
+ update!(**args)
403
+ end
404
+
405
+ # Update properties of this object
406
+ def update!(**args)
407
+ @phrases = args[:phrases] if args.key?(:phrases)
408
+ end
409
+ end
410
+
411
+ # Alternative hypotheses (a.k.a. n-best list).
412
+ class GoogleCloudVideointelligenceV1SpeechRecognitionAlternative
413
+ include Google::Apis::Core::Hashable
414
+
415
+ # The confidence estimate between 0.0 and 1.0. A higher number
416
+ # indicates an estimated greater likelihood that the recognized words are
417
+ # correct. This field is typically provided only for the top hypothesis, and
418
+ # only for `is_final=true` results. Clients should not rely on the
419
+ # `confidence` field as it is not guaranteed to be accurate or consistent.
420
+ # The default of 0.0 is a sentinel value indicating `confidence` was not set.
421
+ # Corresponds to the JSON property `confidence`
422
+ # @return [Float]
423
+ attr_accessor :confidence
424
+
425
+ # Transcript text representing the words that the user spoke.
426
+ # Corresponds to the JSON property `transcript`
427
+ # @return [String]
428
+ attr_accessor :transcript
429
+
430
+ # A list of word-specific information for each recognized word.
431
+ # Corresponds to the JSON property `words`
432
+ # @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1WordInfo>]
433
+ attr_accessor :words
434
+
435
+ def initialize(**args)
436
+ update!(**args)
437
+ end
438
+
439
+ # Update properties of this object
440
+ def update!(**args)
441
+ @confidence = args[:confidence] if args.key?(:confidence)
442
+ @transcript = args[:transcript] if args.key?(:transcript)
443
+ @words = args[:words] if args.key?(:words)
444
+ end
445
+ end
446
+
447
+ # A speech recognition result corresponding to a portion of the audio.
448
+ class GoogleCloudVideointelligenceV1SpeechTranscription
449
+ include Google::Apis::Core::Hashable
450
+
451
+ # May contain one or more recognition hypotheses (up to the maximum specified
452
+ # in `max_alternatives`). These alternatives are ordered in terms of
453
+ # accuracy, with the top (first) alternative being the most probable, as
454
+ # ranked by the recognizer.
455
+ # Corresponds to the JSON property `alternatives`
456
+ # @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1SpeechRecognitionAlternative>]
457
+ attr_accessor :alternatives
458
+
459
+ # Output only. The
460
+ # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
461
+ # language in this result. This language code was detected to have the most
462
+ # likelihood of being spoken in the audio.
463
+ # Corresponds to the JSON property `languageCode`
464
+ # @return [String]
465
+ attr_accessor :language_code
466
+
467
+ def initialize(**args)
468
+ update!(**args)
469
+ end
470
+
471
+ # Update properties of this object
472
+ def update!(**args)
473
+ @alternatives = args[:alternatives] if args.key?(:alternatives)
474
+ @language_code = args[:language_code] if args.key?(:language_code)
475
+ end
476
+ end
477
+
478
+ # Config for SPEECH_TRANSCRIPTION.
479
+ class GoogleCloudVideointelligenceV1SpeechTranscriptionConfig
480
+ include Google::Apis::Core::Hashable
481
+
482
+ # *Optional* For file formats, such as MXF or MKV, supporting multiple audio
483
+ # tracks, specify up to two tracks. Default: track 0.
484
+ # Corresponds to the JSON property `audioTracks`
485
+ # @return [Array<Fixnum>]
486
+ attr_accessor :audio_tracks
487
+
488
+ # *Optional*
489
+ # If set, specifies the estimated number of speakers in the conversation.
490
+ # If not set, defaults to '2'.
491
+ # Ignored unless enable_speaker_diarization is set to true.
492
+ # Corresponds to the JSON property `diarizationSpeakerCount`
493
+ # @return [Fixnum]
494
+ attr_accessor :diarization_speaker_count
495
+
496
+ # *Optional* If 'true', adds punctuation to recognition result hypotheses.
497
+ # This feature is only available in select languages. Setting this for
498
+ # requests in other languages has no effect at all. The default 'false' value
499
+ # does not add punctuation to result hypotheses. NOTE: "This is currently
500
+ # offered as an experimental service, complimentary to all users. In the
501
+ # future this may be exclusively available as a premium feature."
502
+ # Corresponds to the JSON property `enableAutomaticPunctuation`
503
+ # @return [Boolean]
504
+ attr_accessor :enable_automatic_punctuation
505
+ alias_method :enable_automatic_punctuation?, :enable_automatic_punctuation
506
+
507
+ # *Optional* If 'true', enables speaker detection for each recognized word in
508
+ # the top alternative of the recognition result using a speaker_tag provided
509
+ # in the WordInfo.
510
+ # Note: When this is true, we send all the words from the beginning of the
511
+ # audio for the top alternative in every consecutive responses.
512
+ # This is done in order to improve our speaker tags as our models learn to
513
+ # identify the speakers in the conversation over time.
514
+ # Corresponds to the JSON property `enableSpeakerDiarization`
515
+ # @return [Boolean]
516
+ attr_accessor :enable_speaker_diarization
517
+ alias_method :enable_speaker_diarization?, :enable_speaker_diarization
518
+
519
+ # *Optional* If `true`, the top result includes a list of words and the
520
+ # confidence for those words. If `false`, no word-level confidence
521
+ # information is returned. The default is `false`.
522
+ # Corresponds to the JSON property `enableWordConfidence`
523
+ # @return [Boolean]
524
+ attr_accessor :enable_word_confidence
525
+ alias_method :enable_word_confidence?, :enable_word_confidence
526
+
527
+ # *Optional* If set to `true`, the server will attempt to filter out
528
+ # profanities, replacing all but the initial character in each filtered word
529
+ # with asterisks, e.g. "f***". If set to `false` or omitted, profanities
530
+ # won't be filtered out.
531
+ # Corresponds to the JSON property `filterProfanity`
532
+ # @return [Boolean]
533
+ attr_accessor :filter_profanity
534
+ alias_method :filter_profanity?, :filter_profanity
535
+
536
+ # *Required* The language of the supplied audio as a
537
+ # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
538
+ # Example: "en-US".
539
+ # See [Language Support](https://cloud.google.com/speech/docs/languages)
540
+ # for a list of the currently supported language codes.
541
+ # Corresponds to the JSON property `languageCode`
542
+ # @return [String]
543
+ attr_accessor :language_code
544
+
545
+ # *Optional* Maximum number of recognition hypotheses to be returned.
546
+ # Specifically, the maximum number of `SpeechRecognitionAlternative` messages
547
+ # within each `SpeechTranscription`. The server may return fewer than
548
+ # `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will
549
+ # return a maximum of one. If omitted, will return a maximum of one.
550
+ # Corresponds to the JSON property `maxAlternatives`
551
+ # @return [Fixnum]
552
+ attr_accessor :max_alternatives
553
+
554
+ # *Optional* A means to provide context to assist the speech recognition.
555
+ # Corresponds to the JSON property `speechContexts`
556
+ # @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1SpeechContext>]
557
+ attr_accessor :speech_contexts
558
+
559
+ def initialize(**args)
560
+ update!(**args)
561
+ end
562
+
563
+ # Update properties of this object
564
+ def update!(**args)
565
+ @audio_tracks = args[:audio_tracks] if args.key?(:audio_tracks)
566
+ @diarization_speaker_count = args[:diarization_speaker_count] if args.key?(:diarization_speaker_count)
567
+ @enable_automatic_punctuation = args[:enable_automatic_punctuation] if args.key?(:enable_automatic_punctuation)
568
+ @enable_speaker_diarization = args[:enable_speaker_diarization] if args.key?(:enable_speaker_diarization)
569
+ @enable_word_confidence = args[:enable_word_confidence] if args.key?(:enable_word_confidence)
570
+ @filter_profanity = args[:filter_profanity] if args.key?(:filter_profanity)
571
+ @language_code = args[:language_code] if args.key?(:language_code)
572
+ @max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
573
+ @speech_contexts = args[:speech_contexts] if args.key?(:speech_contexts)
574
+ end
575
+ end
576
+
386
577
  # Annotation progress for a single video.
387
578
  class GoogleCloudVideointelligenceV1VideoAnnotationProgress
388
579
  include Google::Apis::Core::Hashable
@@ -505,6 +696,11 @@ module Google
505
696
  # @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1LabelAnnotation>]
506
697
  attr_accessor :shot_label_annotations
507
698
 
699
+ # Speech transcription.
700
+ # Corresponds to the JSON property `speechTranscriptions`
701
+ # @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1SpeechTranscription>]
702
+ attr_accessor :speech_transcriptions
703
+
508
704
  def initialize(**args)
509
705
  update!(**args)
510
706
  end
@@ -518,6 +714,7 @@ module Google
518
714
  @segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)
519
715
  @shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
520
716
  @shot_label_annotations = args[:shot_label_annotations] if args.key?(:shot_label_annotations)
717
+ @speech_transcriptions = args[:speech_transcriptions] if args.key?(:speech_transcriptions)
521
718
  end
522
719
  end
523
720
 
@@ -547,6 +744,11 @@ module Google
547
744
  # @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1ShotChangeDetectionConfig]
548
745
  attr_accessor :shot_change_detection_config
549
746
 
747
+ # Config for SPEECH_TRANSCRIPTION.
748
+ # Corresponds to the JSON property `speechTranscriptionConfig`
749
+ # @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1SpeechTranscriptionConfig]
750
+ attr_accessor :speech_transcription_config
751
+
550
752
  def initialize(**args)
551
753
  update!(**args)
552
754
  end
@@ -557,6 +759,7 @@ module Google
557
759
  @label_detection_config = args[:label_detection_config] if args.key?(:label_detection_config)
558
760
  @segments = args[:segments] if args.key?(:segments)
559
761
  @shot_change_detection_config = args[:shot_change_detection_config] if args.key?(:shot_change_detection_config)
762
+ @speech_transcription_config = args[:speech_transcription_config] if args.key?(:speech_transcription_config)
560
763
  end
561
764
  end
562
765
 
@@ -587,6 +790,65 @@ module Google
587
790
  end
588
791
  end
589
792
 
793
+ # Word-specific information for recognized words. Word information is only
794
+ # included in the response when certain request parameters are set, such
795
+ # as `enable_word_time_offsets`.
796
+ class GoogleCloudVideointelligenceV1WordInfo
797
+ include Google::Apis::Core::Hashable
798
+
799
+ # Output only. The confidence estimate between 0.0 and 1.0. A higher number
800
+ # indicates an estimated greater likelihood that the recognized words are
801
+ # correct. This field is set only for the top alternative.
802
+ # This field is not guaranteed to be accurate and users should not rely on it
803
+ # to be always provided.
804
+ # The default of 0.0 is a sentinel value indicating `confidence` was not set.
805
+ # Corresponds to the JSON property `confidence`
806
+ # @return [Float]
807
+ attr_accessor :confidence
808
+
809
+ # Time offset relative to the beginning of the audio, and
810
+ # corresponding to the end of the spoken word. This field is only set if
811
+ # `enable_word_time_offsets=true` and only in the top hypothesis. This is an
812
+ # experimental feature and the accuracy of the time offset can vary.
813
+ # Corresponds to the JSON property `endTime`
814
+ # @return [String]
815
+ attr_accessor :end_time
816
+
817
+ # Output only. A distinct integer value is assigned for every speaker within
818
+ # the audio. This field specifies which one of those speakers was detected to
819
+ # have spoken this word. Value ranges from 1 up to diarization_speaker_count,
820
+ # and is only set if speaker diarization is enabled.
821
+ # Corresponds to the JSON property `speakerTag`
822
+ # @return [Fixnum]
823
+ attr_accessor :speaker_tag
824
+
825
+ # Time offset relative to the beginning of the audio, and
826
+ # corresponding to the start of the spoken word. This field is only set if
827
+ # `enable_word_time_offsets=true` and only in the top hypothesis. This is an
828
+ # experimental feature and the accuracy of the time offset can vary.
829
+ # Corresponds to the JSON property `startTime`
830
+ # @return [String]
831
+ attr_accessor :start_time
832
+
833
+ # The word corresponding to this set of information.
834
+ # Corresponds to the JSON property `word`
835
+ # @return [String]
836
+ attr_accessor :word
837
+
838
+ def initialize(**args)
839
+ update!(**args)
840
+ end
841
+
842
+ # Update properties of this object
843
+ def update!(**args)
844
+ @confidence = args[:confidence] if args.key?(:confidence)
845
+ @end_time = args[:end_time] if args.key?(:end_time)
846
+ @speaker_tag = args[:speaker_tag] if args.key?(:speaker_tag)
847
+ @start_time = args[:start_time] if args.key?(:start_time)
848
+ @word = args[:word] if args.key?(:word)
849
+ end
850
+ end
851
+
590
852
  # Video annotation progress. Included in the `metadata`
591
853
  # field of the `Operation` returned by the `GetOperation`
592
854
  # call of the `google::longrunning::Operations` service.
@@ -800,6 +1062,73 @@ module Google
800
1062
  end
801
1063
  end
802
1064
 
1065
+ # Alternative hypotheses (a.k.a. n-best list).
1066
+ class GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative
1067
+ include Google::Apis::Core::Hashable
1068
+
1069
+ # The confidence estimate between 0.0 and 1.0. A higher number
1070
+ # indicates an estimated greater likelihood that the recognized words are
1071
+ # correct. This field is typically provided only for the top hypothesis, and
1072
+ # only for `is_final=true` results. Clients should not rely on the
1073
+ # `confidence` field as it is not guaranteed to be accurate or consistent.
1074
+ # The default of 0.0 is a sentinel value indicating `confidence` was not set.
1075
+ # Corresponds to the JSON property `confidence`
1076
+ # @return [Float]
1077
+ attr_accessor :confidence
1078
+
1079
+ # Transcript text representing the words that the user spoke.
1080
+ # Corresponds to the JSON property `transcript`
1081
+ # @return [String]
1082
+ attr_accessor :transcript
1083
+
1084
+ # A list of word-specific information for each recognized word.
1085
+ # Corresponds to the JSON property `words`
1086
+ # @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2WordInfo>]
1087
+ attr_accessor :words
1088
+
1089
+ def initialize(**args)
1090
+ update!(**args)
1091
+ end
1092
+
1093
+ # Update properties of this object
1094
+ def update!(**args)
1095
+ @confidence = args[:confidence] if args.key?(:confidence)
1096
+ @transcript = args[:transcript] if args.key?(:transcript)
1097
+ @words = args[:words] if args.key?(:words)
1098
+ end
1099
+ end
1100
+
1101
+ # A speech recognition result corresponding to a portion of the audio.
1102
+ class GoogleCloudVideointelligenceV1beta2SpeechTranscription
1103
+ include Google::Apis::Core::Hashable
1104
+
1105
+ # May contain one or more recognition hypotheses (up to the maximum specified
1106
+ # in `max_alternatives`). These alternatives are ordered in terms of
1107
+ # accuracy, with the top (first) alternative being the most probable, as
1108
+ # ranked by the recognizer.
1109
+ # Corresponds to the JSON property `alternatives`
1110
+ # @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative>]
1111
+ attr_accessor :alternatives
1112
+
1113
+ # Output only. The
1114
+ # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
1115
+ # language in this result. This language code was detected to have the most
1116
+ # likelihood of being spoken in the audio.
1117
+ # Corresponds to the JSON property `languageCode`
1118
+ # @return [String]
1119
+ attr_accessor :language_code
1120
+
1121
+ def initialize(**args)
1122
+ update!(**args)
1123
+ end
1124
+
1125
+ # Update properties of this object
1126
+ def update!(**args)
1127
+ @alternatives = args[:alternatives] if args.key?(:alternatives)
1128
+ @language_code = args[:language_code] if args.key?(:language_code)
1129
+ end
1130
+ end
1131
+
803
1132
  # Annotation progress for a single video.
804
1133
  class GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress
805
1134
  include Google::Apis::Core::Hashable
@@ -922,6 +1251,11 @@ module Google
922
1251
  # @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2LabelAnnotation>]
923
1252
  attr_accessor :shot_label_annotations
924
1253
 
1254
+ # Speech transcription.
1255
+ # Corresponds to the JSON property `speechTranscriptions`
1256
+ # @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2SpeechTranscription>]
1257
+ attr_accessor :speech_transcriptions
1258
+
925
1259
  def initialize(**args)
926
1260
  update!(**args)
927
1261
  end
@@ -935,6 +1269,7 @@ module Google
935
1269
  @segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)
936
1270
  @shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
937
1271
  @shot_label_annotations = args[:shot_label_annotations] if args.key?(:shot_label_annotations)
1272
+ @speech_transcriptions = args[:speech_transcriptions] if args.key?(:speech_transcriptions)
938
1273
  end
939
1274
  end
940
1275
 
@@ -965,6 +1300,65 @@ module Google
965
1300
  end
966
1301
  end
967
1302
 
1303
+ # Word-specific information for recognized words. Word information is only
1304
+ # included in the response when certain request parameters are set, such
1305
+ # as `enable_word_time_offsets`.
1306
+ class GoogleCloudVideointelligenceV1beta2WordInfo
1307
+ include Google::Apis::Core::Hashable
1308
+
1309
+ # Output only. The confidence estimate between 0.0 and 1.0. A higher number
1310
+ # indicates an estimated greater likelihood that the recognized words are
1311
+ # correct. This field is set only for the top alternative.
1312
+ # This field is not guaranteed to be accurate and users should not rely on it
1313
+ # to be always provided.
1314
+ # The default of 0.0 is a sentinel value indicating `confidence` was not set.
1315
+ # Corresponds to the JSON property `confidence`
1316
+ # @return [Float]
1317
+ attr_accessor :confidence
1318
+
1319
+ # Time offset relative to the beginning of the audio, and
1320
+ # corresponding to the end of the spoken word. This field is only set if
1321
+ # `enable_word_time_offsets=true` and only in the top hypothesis. This is an
1322
+ # experimental feature and the accuracy of the time offset can vary.
1323
+ # Corresponds to the JSON property `endTime`
1324
+ # @return [String]
1325
+ attr_accessor :end_time
1326
+
1327
+ # Output only. A distinct integer value is assigned for every speaker within
1328
+ # the audio. This field specifies which one of those speakers was detected to
1329
+ # have spoken this word. Value ranges from 1 up to diarization_speaker_count,
1330
+ # and is only set if speaker diarization is enabled.
1331
+ # Corresponds to the JSON property `speakerTag`
1332
+ # @return [Fixnum]
1333
+ attr_accessor :speaker_tag
1334
+
1335
+ # Time offset relative to the beginning of the audio, and
1336
+ # corresponding to the start of the spoken word. This field is only set if
1337
+ # `enable_word_time_offsets=true` and only in the top hypothesis. This is an
1338
+ # experimental feature and the accuracy of the time offset can vary.
1339
+ # Corresponds to the JSON property `startTime`
1340
+ # @return [String]
1341
+ attr_accessor :start_time
1342
+
1343
+ # The word corresponding to this set of information.
1344
+ # Corresponds to the JSON property `word`
1345
+ # @return [String]
1346
+ attr_accessor :word
1347
+
1348
+ def initialize(**args)
1349
+ update!(**args)
1350
+ end
1351
+
1352
+ # Update properties of this object
1353
+ def update!(**args)
1354
+ @confidence = args[:confidence] if args.key?(:confidence)
1355
+ @end_time = args[:end_time] if args.key?(:end_time)
1356
+ @speaker_tag = args[:speaker_tag] if args.key?(:speaker_tag)
1357
+ @start_time = args[:start_time] if args.key?(:start_time)
1358
+ @word = args[:word] if args.key?(:word)
1359
+ end
1360
+ end
1361
+
968
1362
  # Video annotation progress. Included in the `metadata`
969
1363
  # field of the `Operation` returned by the `GetOperation`
970
1364
  # call of the `google::longrunning::Operations` service.
@@ -1226,6 +1620,14 @@ module Google
1226
1620
  # @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative>]
1227
1621
  attr_accessor :alternatives
1228
1622
 
1623
+ # Output only. The
1624
+ # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
1625
+ # language in this result. This language code was detected to have the most
1626
+ # likelihood of being spoken in the audio.
1627
+ # Corresponds to the JSON property `languageCode`
1628
+ # @return [String]
1629
+ attr_accessor :language_code
1630
+
1229
1631
  def initialize(**args)
1230
1632
  update!(**args)
1231
1633
  end
@@ -1233,6 +1635,7 @@ module Google
1233
1635
  # Update properties of this object
1234
1636
  def update!(**args)
1235
1637
  @alternatives = args[:alternatives] if args.key?(:alternatives)
1638
+ @language_code = args[:language_code] if args.key?(:language_code)
1236
1639
  end
1237
1640
  end
1238
1641
 
@@ -1843,22 +2246,78 @@ module Google
1843
2246
  end
1844
2247
  end
1845
2248
 
1846
- # Annotations related to one detected OCR text snippet. This will contain the
1847
- # corresponding text, confidence value, and frame level information for each
1848
- # detection.
1849
- class GoogleCloudVideointelligenceV1p2beta1TextAnnotation
2249
+ # Alternative hypotheses (a.k.a. n-best list).
2250
+ class GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative
1850
2251
  include Google::Apis::Core::Hashable
1851
2252
 
1852
- # Confidence for the track of detected text. It is calculated as the highest
1853
- # over all frames where OCR detected text appears.
2253
+ # The confidence estimate between 0.0 and 1.0. A higher number
2254
+ # indicates an estimated greater likelihood that the recognized words are
2255
+ # correct. This field is typically provided only for the top hypothesis, and
2256
+ # only for `is_final=true` results. Clients should not rely on the
2257
+ # `confidence` field as it is not guaranteed to be accurate or consistent.
2258
+ # The default of 0.0 is a sentinel value indicating `confidence` was not set.
1854
2259
  # Corresponds to the JSON property `confidence`
1855
2260
  # @return [Float]
1856
2261
  attr_accessor :confidence
1857
2262
 
1858
- # Information related to the frames where OCR detected text appears.
1859
- # Corresponds to the JSON property `frames`
1860
- # @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1TextFrame>]
1861
- attr_accessor :frames
2263
+ # Transcript text representing the words that the user spoke.
2264
+ # Corresponds to the JSON property `transcript`
2265
+ # @return [String]
2266
+ attr_accessor :transcript
2267
+
2268
+ # A list of word-specific information for each recognized word.
2269
+ # Corresponds to the JSON property `words`
2270
+ # @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1WordInfo>]
2271
+ attr_accessor :words
2272
+
2273
+ def initialize(**args)
2274
+ update!(**args)
2275
+ end
2276
+
2277
+ # Update properties of this object
2278
+ def update!(**args)
2279
+ @confidence = args[:confidence] if args.key?(:confidence)
2280
+ @transcript = args[:transcript] if args.key?(:transcript)
2281
+ @words = args[:words] if args.key?(:words)
2282
+ end
2283
+ end
2284
+
2285
+ # A speech recognition result corresponding to a portion of the audio.
2286
+ class GoogleCloudVideointelligenceV1p2beta1SpeechTranscription
2287
+ include Google::Apis::Core::Hashable
2288
+
2289
+ # May contain one or more recognition hypotheses (up to the maximum specified
2290
+ # in `max_alternatives`). These alternatives are ordered in terms of
2291
+ # accuracy, with the top (first) alternative being the most probable, as
2292
+ # ranked by the recognizer.
2293
+ # Corresponds to the JSON property `alternatives`
2294
+ # @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative>]
2295
+ attr_accessor :alternatives
2296
+
2297
+ # Output only. The
2298
+ # [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the
2299
+ # language in this result. This language code was detected to have the most
2300
+ # likelihood of being spoken in the audio.
2301
+ # Corresponds to the JSON property `languageCode`
2302
+ # @return [String]
2303
+ attr_accessor :language_code
2304
+
2305
+ def initialize(**args)
2306
+ update!(**args)
2307
+ end
2308
+
2309
+ # Update properties of this object
2310
+ def update!(**args)
2311
+ @alternatives = args[:alternatives] if args.key?(:alternatives)
2312
+ @language_code = args[:language_code] if args.key?(:language_code)
2313
+ end
2314
+ end
2315
+
2316
+ # Annotations related to one detected OCR text snippet. This will contain the
2317
+ # corresponding text, confidence value, and frame level information for each
2318
+ # detection.
2319
+ class GoogleCloudVideointelligenceV1p2beta1TextAnnotation
2320
+ include Google::Apis::Core::Hashable
1862
2321
 
1863
2322
  # All video segments where OCR detected text appears.
1864
2323
  # Corresponds to the JSON property `segments`
@@ -1876,8 +2335,6 @@ module Google
1876
2335
 
1877
2336
  # Update properties of this object
1878
2337
  def update!(**args)
1879
- @confidence = args[:confidence] if args.key?(:confidence)
1880
- @frames = args[:frames] if args.key?(:frames)
1881
2338
  @segments = args[:segments] if args.key?(:segments)
1882
2339
  @text = args[:text] if args.key?(:text)
1883
2340
  end
@@ -1928,6 +2385,17 @@ module Google
1928
2385
  class GoogleCloudVideointelligenceV1p2beta1TextSegment
1929
2386
  include Google::Apis::Core::Hashable
1930
2387
 
2388
+ # Confidence for the track of detected text. It is calculated as the highest
2389
+ # over all frames where OCR detected text appears.
2390
+ # Corresponds to the JSON property `confidence`
2391
+ # @return [Float]
2392
+ attr_accessor :confidence
2393
+
2394
+ # Information related to the frames where OCR detected text appears.
2395
+ # Corresponds to the JSON property `frames`
2396
+ # @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1TextFrame>]
2397
+ attr_accessor :frames
2398
+
1931
2399
  # Video segment.
1932
2400
  # Corresponds to the JSON property `segment`
1933
2401
  # @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1VideoSegment]
@@ -1939,6 +2407,8 @@ module Google
1939
2407
 
1940
2408
  # Update properties of this object
1941
2409
  def update!(**args)
2410
+ @confidence = args[:confidence] if args.key?(:confidence)
2411
+ @frames = args[:frames] if args.key?(:frames)
1942
2412
  @segment = args[:segment] if args.key?(:segment)
1943
2413
  end
1944
2414
  end
@@ -2070,6 +2540,11 @@ module Google
2070
2540
  # @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>]
2071
2541
  attr_accessor :shot_label_annotations
2072
2542
 
2543
+ # Speech transcription.
2544
+ # Corresponds to the JSON property `speechTranscriptions`
2545
+ # @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p2beta1SpeechTranscription>]
2546
+ attr_accessor :speech_transcriptions
2547
+
2073
2548
  # OCR text detection and tracking.
2074
2549
  # Annotations for list of detected text snippets. Each will have list of
2075
2550
  # frame information associated with it.
@@ -2091,6 +2566,7 @@ module Google
2091
2566
  @segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)
2092
2567
  @shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
2093
2568
  @shot_label_annotations = args[:shot_label_annotations] if args.key?(:shot_label_annotations)
2569
+ @speech_transcriptions = args[:speech_transcriptions] if args.key?(:speech_transcriptions)
2094
2570
  @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
2095
2571
  end
2096
2572
  end
@@ -2122,6 +2598,65 @@ module Google
2122
2598
  end
2123
2599
  end
2124
2600
 
2601
+ # Word-specific information for recognized words. Word information is only
2602
+ # included in the response when certain request parameters are set, such
2603
+ # as `enable_word_time_offsets`.
2604
+ class GoogleCloudVideointelligenceV1p2beta1WordInfo
2605
+ include Google::Apis::Core::Hashable
2606
+
2607
+ # Output only. The confidence estimate between 0.0 and 1.0. A higher number
2608
+ # indicates an estimated greater likelihood that the recognized words are
2609
+ # correct. This field is set only for the top alternative.
2610
+ # This field is not guaranteed to be accurate and users should not rely on it
2611
+ # to be always provided.
2612
+ # The default of 0.0 is a sentinel value indicating `confidence` was not set.
2613
+ # Corresponds to the JSON property `confidence`
2614
+ # @return [Float]
2615
+ attr_accessor :confidence
2616
+
2617
+ # Time offset relative to the beginning of the audio, and
2618
+ # corresponding to the end of the spoken word. This field is only set if
2619
+ # `enable_word_time_offsets=true` and only in the top hypothesis. This is an
2620
+ # experimental feature and the accuracy of the time offset can vary.
2621
+ # Corresponds to the JSON property `endTime`
2622
+ # @return [String]
2623
+ attr_accessor :end_time
2624
+
2625
+ # Output only. A distinct integer value is assigned for every speaker within
2626
+ # the audio. This field specifies which one of those speakers was detected to
2627
+ # have spoken this word. Value ranges from 1 up to diarization_speaker_count,
2628
+ # and is only set if speaker diarization is enabled.
2629
+ # Corresponds to the JSON property `speakerTag`
2630
+ # @return [Fixnum]
2631
+ attr_accessor :speaker_tag
2632
+
2633
+ # Time offset relative to the beginning of the audio, and
2634
+ # corresponding to the start of the spoken word. This field is only set if
2635
+ # `enable_word_time_offsets=true` and only in the top hypothesis. This is an
2636
+ # experimental feature and the accuracy of the time offset can vary.
2637
+ # Corresponds to the JSON property `startTime`
2638
+ # @return [String]
2639
+ attr_accessor :start_time
2640
+
2641
+ # The word corresponding to this set of information.
2642
+ # Corresponds to the JSON property `word`
2643
+ # @return [String]
2644
+ attr_accessor :word
2645
+
2646
+ def initialize(**args)
2647
+ update!(**args)
2648
+ end
2649
+
2650
+ # Update properties of this object
2651
+ def update!(**args)
2652
+ @confidence = args[:confidence] if args.key?(:confidence)
2653
+ @end_time = args[:end_time] if args.key?(:end_time)
2654
+ @speaker_tag = args[:speaker_tag] if args.key?(:speaker_tag)
2655
+ @start_time = args[:start_time] if args.key?(:start_time)
2656
+ @word = args[:word] if args.key?(:word)
2657
+ end
2658
+ end
2659
+
2125
2660
  # The request message for Operations.CancelOperation.
2126
2661
  class GoogleLongrunningCancelOperationRequest
2127
2662
  include Google::Apis::Core::Hashable