google-api-client 0.20.1 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (451) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +140 -0
  3. data/README.md +3 -12
  4. data/generated/google/apis/abusiveexperiencereport_v1.rb +2 -2
  5. data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +1 -0
  6. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +11 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  10. data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +24 -40
  12. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +66 -110
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +117 -195
  15. data/generated/google/apis/adexchangeseller_v1.rb +1 -1
  16. data/generated/google/apis/adexchangeseller_v1/service.rb +36 -60
  17. data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
  18. data/generated/google/apis/adexchangeseller_v1_1/service.rb +54 -90
  19. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  20. data/generated/google/apis/adexchangeseller_v2_0/service.rb +45 -75
  21. data/generated/google/apis/adexperiencereport_v1.rb +2 -2
  22. data/generated/google/apis/adexperiencereport_v1/classes.rb +1 -0
  23. data/generated/google/apis/adexperiencereport_v1/service.rb +1 -1
  24. data/generated/google/apis/admin_datatransfer_v1/service.rb +18 -30
  25. data/generated/google/apis/admin_directory_v1.rb +3 -3
  26. data/generated/google/apis/admin_directory_v1/classes.rb +18 -0
  27. data/generated/google/apis/admin_directory_v1/representations.rb +3 -0
  28. data/generated/google/apis/admin_directory_v1/service.rb +363 -577
  29. data/generated/google/apis/admin_reports_v1.rb +1 -1
  30. data/generated/google/apis/admin_reports_v1/service.rb +21 -35
  31. data/generated/google/apis/adsense_v1_4.rb +1 -1
  32. data/generated/google/apis/adsense_v1_4/service.rb +117 -195
  33. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  34. data/generated/google/apis/adsensehost_v4_1/service.rb +81 -135
  35. data/generated/google/apis/analytics_v2_4.rb +1 -1
  36. data/generated/google/apis/analytics_v2_4/service.rb +21 -35
  37. data/generated/google/apis/analytics_v3.rb +1 -1
  38. data/generated/google/apis/analytics_v3/classes.rb +32 -60
  39. data/generated/google/apis/analytics_v3/representations.rb +8 -12
  40. data/generated/google/apis/analytics_v3/service.rb +261 -435
  41. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  42. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +2 -1
  43. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  44. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -12
  45. data/generated/google/apis/androidenterprise_v1/service.rb +254 -425
  46. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  47. data/generated/google/apis/androidmanagement_v1/classes.rb +38 -6
  48. data/generated/google/apis/androidmanagement_v1/representations.rb +18 -0
  49. data/generated/google/apis/androidpublisher_v1.rb +1 -1
  50. data/generated/google/apis/androidpublisher_v1/service.rb +9 -15
  51. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  52. data/generated/google/apis/androidpublisher_v1_1/service.rb +12 -20
  53. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  54. data/generated/google/apis/androidpublisher_v2/classes.rb +102 -1
  55. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -0
  56. data/generated/google/apis/androidpublisher_v2/service.rb +255 -286
  57. data/generated/google/apis/androidpublisher_v3.rb +34 -0
  58. data/generated/google/apis/androidpublisher_v3/classes.rb +1899 -0
  59. data/generated/google/apis/androidpublisher_v3/representations.rb +882 -0
  60. data/generated/google/apis/androidpublisher_v3/service.rb +2208 -0
  61. data/generated/google/apis/appsactivity_v1.rb +1 -1
  62. data/generated/google/apis/appsactivity_v1/service.rb +6 -10
  63. data/generated/google/apis/appsmarket_v2/service.rb +12 -20
  64. data/generated/google/apis/appstate_v1.rb +1 -1
  65. data/generated/google/apis/appstate_v1/service.rb +18 -30
  66. data/generated/google/apis/bigquery_v2.rb +1 -1
  67. data/generated/google/apis/bigquery_v2/classes.rb +67 -9
  68. data/generated/google/apis/bigquery_v2/representations.rb +22 -0
  69. data/generated/google/apis/bigquery_v2/service.rb +69 -115
  70. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  71. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +1 -2
  72. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +2 -2
  73. data/generated/google/apis/blogger_v2/service.rb +30 -50
  74. data/generated/google/apis/blogger_v3/service.rb +102 -170
  75. data/generated/google/apis/books_v1.rb +1 -1
  76. data/generated/google/apis/books_v1/service.rb +156 -260
  77. data/generated/google/apis/calendar_v3.rb +1 -1
  78. data/generated/google/apis/calendar_v3/service.rb +114 -190
  79. data/generated/google/apis/chat_v1.rb +1 -1
  80. data/generated/google/apis/chat_v1/classes.rb +6 -0
  81. data/generated/google/apis/chat_v1/representations.rb +1 -0
  82. data/generated/google/apis/civicinfo_v2/service.rb +18 -30
  83. data/generated/google/apis/classroom_v1.rb +1 -1
  84. data/generated/google/apis/classroom_v1/classes.rb +0 -69
  85. data/generated/google/apis/classroom_v1/representations.rb +0 -31
  86. data/generated/google/apis/classroom_v1/service.rb +0 -88
  87. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  88. data/generated/google/apis/cloudbilling_v1/classes.rb +0 -1
  89. data/generated/google/apis/cloudbilling_v1/service.rb +2 -1
  90. data/generated/google/apis/cloudfunctions_v1.rb +3 -4
  91. data/generated/google/apis/cloudfunctions_v1/classes.rb +14 -0
  92. data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
  93. data/generated/google/apis/cloudfunctions_v1/service.rb +3 -4
  94. data/generated/google/apis/cloudfunctions_v1beta2.rb +3 -4
  95. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +14 -0
  96. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +2 -0
  97. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +3 -4
  98. data/generated/google/apis/cloudiot_v1.rb +1 -1
  99. data/generated/google/apis/cloudiot_v1/classes.rb +29 -7
  100. data/generated/google/apis/cloudiot_v1/service.rb +398 -1
  101. data/generated/google/apis/cloudkms_v1.rb +2 -2
  102. data/generated/google/apis/cloudkms_v1/classes.rb +29 -7
  103. data/generated/google/apis/cloudkms_v1/service.rb +1 -1
  104. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  105. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +30 -8
  106. data/generated/google/apis/cloudresourcemanager_v1/service.rb +5 -3
  107. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  108. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +29 -7
  109. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  110. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +29 -7
  111. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  112. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +29 -7
  113. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  114. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +39 -10
  115. data/generated/google/apis/cloudtasks_v2beta2/service.rb +9 -11
  116. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  117. data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
  118. data/generated/google/apis/{dlp_v2beta1.rb → composer_v1beta1.rb} +9 -11
  119. data/generated/google/apis/composer_v1beta1/classes.rb +643 -0
  120. data/generated/google/apis/composer_v1beta1/representations.rb +195 -0
  121. data/generated/google/apis/composer_v1beta1/service.rb +462 -0
  122. data/generated/google/apis/compute_alpha.rb +1 -1
  123. data/generated/google/apis/compute_alpha/classes.rb +3939 -2239
  124. data/generated/google/apis/compute_alpha/representations.rb +1063 -335
  125. data/generated/google/apis/compute_alpha/service.rb +3532 -3368
  126. data/generated/google/apis/compute_beta.rb +1 -1
  127. data/generated/google/apis/compute_beta/classes.rb +150 -53
  128. data/generated/google/apis/compute_beta/representations.rb +23 -0
  129. data/generated/google/apis/compute_beta/service.rb +1269 -2077
  130. data/generated/google/apis/compute_v1.rb +1 -1
  131. data/generated/google/apis/compute_v1/classes.rb +46 -43
  132. data/generated/google/apis/compute_v1/service.rb +1022 -1666
  133. data/generated/google/apis/container_v1.rb +2 -2
  134. data/generated/google/apis/container_v1/classes.rb +20 -15
  135. data/generated/google/apis/container_v1/representations.rb +1 -0
  136. data/generated/google/apis/container_v1/service.rb +33 -31
  137. data/generated/google/apis/container_v1beta1.rb +2 -2
  138. data/generated/google/apis/container_v1beta1/classes.rb +186 -14
  139. data/generated/google/apis/container_v1beta1/representations.rb +77 -0
  140. data/generated/google/apis/container_v1beta1/service.rb +111 -31
  141. data/generated/google/apis/content_v2.rb +1 -1
  142. data/generated/google/apis/content_v2/classes.rb +173 -8
  143. data/generated/google/apis/content_v2/representations.rb +71 -0
  144. data/generated/google/apis/content_v2/service.rb +246 -410
  145. data/generated/google/apis/content_v2sandbox.rb +1 -1
  146. data/generated/google/apis/content_v2sandbox/classes.rb +75 -8
  147. data/generated/google/apis/content_v2sandbox/representations.rb +33 -0
  148. data/generated/google/apis/content_v2sandbox/service.rb +63 -105
  149. data/generated/google/apis/customsearch_v1.rb +1 -1
  150. data/generated/google/apis/customsearch_v1/service.rb +9 -15
  151. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  152. data/generated/google/apis/dataflow_v1b3/classes.rb +15 -0
  153. data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
  154. data/generated/google/apis/dataproc_v1.rb +2 -2
  155. data/generated/google/apis/dataproc_v1/classes.rb +6 -6
  156. data/generated/google/apis/dataproc_v1/service.rb +1 -1
  157. data/generated/google/apis/dataproc_v1beta2.rb +2 -2
  158. data/generated/google/apis/dataproc_v1beta2/classes.rb +48 -13
  159. data/generated/google/apis/dataproc_v1beta2/representations.rb +12 -0
  160. data/generated/google/apis/dataproc_v1beta2/service.rb +1 -1
  161. data/generated/google/apis/datastore_v1.rb +2 -2
  162. data/generated/google/apis/datastore_v1/service.rb +1 -1
  163. data/generated/google/apis/datastore_v1beta1.rb +2 -2
  164. data/generated/google/apis/datastore_v1beta1/service.rb +1 -1
  165. data/generated/google/apis/datastore_v1beta3.rb +2 -2
  166. data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
  167. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  168. data/generated/google/apis/deploymentmanager_alpha/classes.rb +60 -5
  169. data/generated/google/apis/deploymentmanager_alpha/representations.rb +17 -0
  170. data/generated/google/apis/deploymentmanager_alpha/service.rb +118 -194
  171. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  172. data/generated/google/apis/deploymentmanager_v2/classes.rb +60 -5
  173. data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -0
  174. data/generated/google/apis/deploymentmanager_v2/service.rb +61 -99
  175. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  176. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +60 -5
  177. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +17 -0
  178. data/generated/google/apis/deploymentmanager_v2beta/service.rb +103 -169
  179. data/generated/google/apis/dfareporting_v2_8/service.rb +618 -1030
  180. data/generated/google/apis/dfareporting_v3_0/service.rb +615 -1025
  181. data/generated/google/apis/dialogflow_v2.rb +1 -1
  182. data/generated/google/apis/dialogflow_v2/classes.rb +94 -24
  183. data/generated/google/apis/dialogflow_v2/representations.rb +13 -0
  184. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  185. data/generated/google/apis/dialogflow_v2beta1/classes.rb +94 -24
  186. data/generated/google/apis/dialogflow_v2beta1/representations.rb +13 -0
  187. data/generated/google/apis/discovery_v1/service.rb +9 -15
  188. data/generated/google/apis/dlp_v2.rb +1 -1
  189. data/generated/google/apis/dlp_v2/classes.rb +116 -1572
  190. data/generated/google/apis/dlp_v2/representations.rb +673 -1405
  191. data/generated/google/apis/dlp_v2/service.rb +24 -24
  192. data/generated/google/apis/dns_v1.rb +1 -1
  193. data/generated/google/apis/dns_v1/classes.rb +7 -0
  194. data/generated/google/apis/dns_v1/representations.rb +1 -0
  195. data/generated/google/apis/dns_v1/service.rb +49 -81
  196. data/generated/google/apis/dns_v1beta2.rb +1 -1
  197. data/generated/google/apis/dns_v1beta2/classes.rb +7 -0
  198. data/generated/google/apis/dns_v1beta2/representations.rb +1 -0
  199. data/generated/google/apis/dns_v1beta2/service.rb +49 -81
  200. data/generated/google/apis/dns_v2beta1.rb +1 -1
  201. data/generated/google/apis/dns_v2beta1/classes.rb +7 -0
  202. data/generated/google/apis/dns_v2beta1/representations.rb +1 -0
  203. data/generated/google/apis/dns_v2beta1/service.rb +49 -81
  204. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +30 -50
  205. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  206. data/generated/google/apis/doubleclicksearch_v2/service.rb +33 -55
  207. data/generated/google/apis/drive_v2.rb +1 -1
  208. data/generated/google/apis/drive_v2/service.rb +205 -341
  209. data/generated/google/apis/drive_v3.rb +1 -1
  210. data/generated/google/apis/drive_v3/service.rb +120 -200
  211. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  212. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  213. data/generated/google/apis/firestore_v1beta1.rb +2 -2
  214. data/generated/google/apis/firestore_v1beta1/service.rb +1 -1
  215. data/generated/google/apis/fitness_v1/service.rb +45 -75
  216. data/generated/google/apis/fusiontables_v1.rb +1 -1
  217. data/generated/google/apis/fusiontables_v1/service.rb +99 -165
  218. data/generated/google/apis/fusiontables_v2/service.rb +105 -175
  219. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  220. data/generated/google/apis/games_configuration_v1configuration/service.rb +42 -70
  221. data/generated/google/apis/games_management_v1management.rb +1 -1
  222. data/generated/google/apis/games_management_v1management/service.rb +84 -140
  223. data/generated/google/apis/games_v1.rb +1 -1
  224. data/generated/google/apis/games_v1/service.rb +162 -270
  225. data/generated/google/apis/genomics_v1.rb +1 -1
  226. data/generated/google/apis/genomics_v1/classes.rb +41 -7
  227. data/generated/google/apis/genomics_v1/representations.rb +1 -0
  228. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  229. data/generated/google/apis/genomics_v1alpha2/classes.rb +12 -0
  230. data/generated/google/apis/genomics_v1alpha2/representations.rb +1 -0
  231. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  232. data/generated/google/apis/genomics_v2alpha1/classes.rb +70 -0
  233. data/generated/google/apis/genomics_v2alpha1/representations.rb +20 -0
  234. data/generated/google/apis/gmail_v1/service.rb +189 -315
  235. data/generated/google/apis/groupsmigration_v1/service.rb +6 -10
  236. data/generated/google/apis/groupssettings_v1/service.rb +12 -20
  237. data/generated/google/apis/iam_v1.rb +2 -2
  238. data/generated/google/apis/iam_v1/classes.rb +29 -7
  239. data/generated/google/apis/iam_v1/service.rb +1 -1
  240. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  241. data/generated/google/apis/identitytoolkit_v3/service.rb +63 -105
  242. data/generated/google/apis/jobs_v2.rb +38 -0
  243. data/generated/google/apis/jobs_v2/classes.rb +3378 -0
  244. data/generated/google/apis/jobs_v2/representations.rb +1067 -0
  245. data/generated/google/apis/jobs_v2/service.rb +754 -0
  246. data/generated/google/apis/licensing_v1/service.rb +24 -40
  247. data/generated/google/apis/logging_v2.rb +1 -1
  248. data/generated/google/apis/logging_v2/classes.rb +55 -5
  249. data/generated/google/apis/logging_v2/representations.rb +16 -0
  250. data/generated/google/apis/logging_v2/service.rb +6 -4
  251. data/generated/google/apis/logging_v2beta1.rb +1 -1
  252. data/generated/google/apis/logging_v2beta1/classes.rb +55 -5
  253. data/generated/google/apis/logging_v2beta1/representations.rb +16 -0
  254. data/generated/google/apis/logging_v2beta1/service.rb +6 -4
  255. data/generated/google/apis/mirror_v1.rb +1 -1
  256. data/generated/google/apis/mirror_v1/service.rb +75 -125
  257. data/generated/google/apis/ml_v1.rb +1 -1
  258. data/generated/google/apis/ml_v1/classes.rb +65 -28
  259. data/generated/google/apis/ml_v1/representations.rb +1 -0
  260. data/generated/google/apis/ml_v1/service.rb +2 -2
  261. data/generated/google/apis/oauth2_v1.rb +1 -1
  262. data/generated/google/apis/oauth2_v1/service.rb +27 -45
  263. data/generated/google/apis/oauth2_v2.rb +1 -1
  264. data/generated/google/apis/oauth2_v2/service.rb +15 -25
  265. data/generated/google/apis/oslogin_v1.rb +1 -1
  266. data/generated/google/apis/oslogin_v1/classes.rb +6 -0
  267. data/generated/google/apis/oslogin_v1/representations.rb +1 -0
  268. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  269. data/generated/google/apis/oslogin_v1alpha/classes.rb +7 -1
  270. data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
  271. data/generated/google/apis/oslogin_v1alpha/service.rb +4 -1
  272. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  273. data/generated/google/apis/oslogin_v1beta/classes.rb +6 -0
  274. data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
  275. data/generated/google/apis/pagespeedonline_v1.rb +1 -1
  276. data/generated/google/apis/pagespeedonline_v1/service.rb +6 -10
  277. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  278. data/generated/google/apis/pagespeedonline_v2/service.rb +6 -10
  279. data/generated/google/apis/pagespeedonline_v4/service.rb +6 -10
  280. data/generated/google/apis/photoslibrary_v1.rb +49 -0
  281. data/generated/google/apis/photoslibrary_v1/classes.rb +1330 -0
  282. data/generated/google/apis/photoslibrary_v1/representations.rb +625 -0
  283. data/generated/google/apis/photoslibrary_v1/service.rb +399 -0
  284. data/generated/google/apis/playcustomapp_v1/service.rb +6 -10
  285. data/generated/google/apis/plus_domains_v1.rb +1 -1
  286. data/generated/google/apis/plus_domains_v1/service.rb +63 -105
  287. data/generated/google/apis/plus_v1.rb +1 -1
  288. data/generated/google/apis/plus_v1/service.rb +30 -50
  289. data/generated/google/apis/pubsub_v1.rb +2 -2
  290. data/generated/google/apis/pubsub_v1/classes.rb +29 -7
  291. data/generated/google/apis/pubsub_v1/service.rb +1 -1
  292. data/generated/google/apis/pubsub_v1beta1a.rb +2 -2
  293. data/generated/google/apis/pubsub_v1beta1a/service.rb +1 -1
  294. data/generated/google/apis/pubsub_v1beta2.rb +2 -2
  295. data/generated/google/apis/pubsub_v1beta2/classes.rb +29 -7
  296. data/generated/google/apis/pubsub_v1beta2/service.rb +1 -1
  297. data/generated/google/apis/{dlp_v2beta2.rb → redis_v1beta1.rb} +10 -11
  298. data/generated/google/apis/redis_v1beta1/classes.rb +681 -0
  299. data/generated/google/apis/redis_v1beta1/representations.rb +240 -0
  300. data/generated/google/apis/redis_v1beta1/service.rb +426 -0
  301. data/generated/google/apis/replicapool_v1beta1/service.rb +33 -55
  302. data/generated/google/apis/replicapool_v1beta2/service.rb +39 -65
  303. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +33 -55
  304. data/generated/google/apis/reseller_v1/service.rb +54 -90
  305. data/generated/google/apis/resourceviews_v1beta1/service.rb +45 -75
  306. data/generated/google/apis/resourceviews_v1beta2/service.rb +36 -60
  307. data/generated/google/apis/runtimeconfig_v1.rb +2 -2
  308. data/generated/google/apis/runtimeconfig_v1/service.rb +1 -1
  309. data/generated/google/apis/runtimeconfig_v1beta1.rb +2 -2
  310. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +28 -6
  311. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +1 -1
  312. data/generated/google/apis/script_v1.rb +8 -2
  313. data/generated/google/apis/script_v1/classes.rb +3 -3
  314. data/generated/google/apis/script_v1/service.rb +8 -2
  315. data/generated/google/apis/servicebroker_v1.rb +36 -0
  316. data/generated/google/apis/servicebroker_v1/classes.rb +240 -0
  317. data/generated/google/apis/servicebroker_v1/representations.rb +96 -0
  318. data/generated/google/apis/servicebroker_v1/service.rb +168 -0
  319. data/generated/google/apis/servicebroker_v1alpha1.rb +36 -0
  320. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +939 -0
  321. data/generated/google/apis/servicebroker_v1alpha1/representations.rb +348 -0
  322. data/generated/google/apis/servicebroker_v1alpha1/service.rb +728 -0
  323. data/generated/google/apis/servicebroker_v1beta1.rb +36 -0
  324. data/generated/google/apis/servicebroker_v1beta1/classes.rb +1046 -0
  325. data/generated/google/apis/servicebroker_v1beta1/representations.rb +393 -0
  326. data/generated/google/apis/servicebroker_v1beta1/service.rb +917 -0
  327. data/generated/google/apis/servicecontrol_v1.rb +2 -2
  328. data/generated/google/apis/servicecontrol_v1/classes.rb +1 -0
  329. data/generated/google/apis/servicecontrol_v1/service.rb +1 -1
  330. data/generated/google/apis/servicemanagement_v1.rb +2 -2
  331. data/generated/google/apis/servicemanagement_v1/classes.rb +29 -7
  332. data/generated/google/apis/servicemanagement_v1/service.rb +1 -1
  333. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  334. data/generated/google/apis/serviceusage_v1beta1/classes.rb +299 -0
  335. data/generated/google/apis/serviceusage_v1beta1/representations.rb +101 -0
  336. data/generated/google/apis/sheets_v4.rb +1 -1
  337. data/generated/google/apis/sheets_v4/classes.rb +421 -0
  338. data/generated/google/apis/sheets_v4/representations.rb +120 -0
  339. data/generated/google/apis/site_verification_v1/service.rb +24 -40
  340. data/generated/google/apis/slides_v1.rb +1 -1
  341. data/generated/google/apis/slides_v1/classes.rb +6 -2
  342. data/generated/google/apis/spanner_v1.rb +1 -1
  343. data/generated/google/apis/spanner_v1/classes.rb +39 -12
  344. data/generated/google/apis/spanner_v1/service.rb +2 -2
  345. data/generated/google/apis/spectrum_v1explorer.rb +1 -1
  346. data/generated/google/apis/spectrum_v1explorer/service.rb +21 -35
  347. data/generated/google/apis/speech_v1.rb +1 -1
  348. data/generated/google/apis/speech_v1/classes.rb +12 -0
  349. data/generated/google/apis/speech_v1/representations.rb +1 -0
  350. data/generated/google/apis/sqladmin_v1beta3.rb +1 -1
  351. data/generated/google/apis/sqladmin_v1beta3/service.rb +75 -125
  352. data/generated/google/apis/sqladmin_v1beta4/service.rb +126 -210
  353. data/generated/google/apis/storage_v1.rb +1 -1
  354. data/generated/google/apis/storage_v1/classes.rb +3 -6
  355. data/generated/google/apis/storage_v1/service.rb +144 -240
  356. data/generated/google/apis/storage_v1beta1.rb +1 -1
  357. data/generated/google/apis/storage_v1beta1/service.rb +75 -125
  358. data/generated/google/apis/storage_v1beta2.rb +1 -1
  359. data/generated/google/apis/storage_v1beta2/service.rb +105 -175
  360. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  361. data/generated/google/apis/storagetransfer_v1/classes.rb +4 -3
  362. data/generated/google/apis/surveys_v2.rb +1 -1
  363. data/generated/google/apis/surveys_v2/classes.rb +19 -122
  364. data/generated/google/apis/surveys_v2/representations.rb +0 -38
  365. data/generated/google/apis/surveys_v2/service.rb +27 -157
  366. data/generated/google/apis/tagmanager_v1/service.rb +153 -255
  367. data/generated/google/apis/tagmanager_v2/service.rb +222 -370
  368. data/generated/google/apis/tasks_v1/service.rb +45 -75
  369. data/generated/google/apis/texttospeech_v1beta1.rb +2 -2
  370. data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -1
  371. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  372. data/generated/google/apis/toolresults_v1beta3/service.rb +75 -125
  373. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  374. data/generated/google/apis/urlshortener_v1/service.rb +12 -20
  375. data/generated/google/apis/vault_v1.rb +2 -2
  376. data/generated/google/apis/vault_v1/service.rb +1 -1
  377. data/generated/google/apis/videointelligence_v1.rb +34 -0
  378. data/generated/google/apis/videointelligence_v1/classes.rb +2149 -0
  379. data/generated/google/apis/videointelligence_v1/representations.rb +972 -0
  380. data/generated/google/apis/videointelligence_v1/service.rb +246 -0
  381. data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
  382. data/generated/google/apis/videointelligence_v1beta1/classes.rb +18 -18
  383. data/generated/google/apis/{taskqueue_v1beta2.rb → videointelligence_v1beta2.rb} +10 -13
  384. data/generated/google/apis/videointelligence_v1beta2/classes.rb +2092 -0
  385. data/generated/google/apis/videointelligence_v1beta2/representations.rb +933 -0
  386. data/generated/google/apis/videointelligence_v1beta2/service.rb +92 -0
  387. data/generated/google/apis/vision_v1.rb +1 -1
  388. data/generated/google/apis/vision_v1/classes.rb +1441 -62
  389. data/generated/google/apis/vision_v1/representations.rb +582 -0
  390. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  391. data/generated/google/apis/vision_v1p1beta1/classes.rb +1441 -62
  392. data/generated/google/apis/vision_v1p1beta1/representations.rb +582 -0
  393. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  394. data/generated/google/apis/vision_v1p2beta1/classes.rb +63 -3
  395. data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
  396. data/generated/google/apis/webfonts_v1/service.rb +6 -10
  397. data/generated/google/apis/webmasters_v3/service.rb +42 -70
  398. data/generated/google/apis/websecurityscanner_v1alpha.rb +34 -0
  399. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +760 -0
  400. data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +354 -0
  401. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +548 -0
  402. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  403. data/generated/google/apis/youtube_analytics_v1/service.rb +27 -45
  404. data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
  405. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +27 -45
  406. data/generated/google/apis/youtube_analytics_v2.rb +46 -0
  407. data/generated/google/apis/youtube_analytics_v2/classes.rb +532 -0
  408. data/generated/google/apis/youtube_analytics_v2/representations.rb +232 -0
  409. data/generated/google/apis/youtube_analytics_v2/service.rb +478 -0
  410. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  411. data/generated/google/apis/youtube_partner_v1/service.rb +225 -375
  412. data/generated/google/apis/youtube_v3.rb +1 -1
  413. data/generated/google/apis/youtube_v3/classes.rb +0 -168
  414. data/generated/google/apis/youtube_v3/representations.rb +0 -62
  415. data/generated/google/apis/youtube_v3/service.rb +216 -415
  416. data/lib/google/apis/generator/helpers.rb +3 -1
  417. data/lib/google/apis/version.rb +1 -1
  418. metadata +50 -38
  419. data/generated/google/apis/dlp_v2beta1/classes.rb +0 -3820
  420. data/generated/google/apis/dlp_v2beta1/representations.rb +0 -1879
  421. data/generated/google/apis/dlp_v2beta1/service.rb +0 -603
  422. data/generated/google/apis/dlp_v2beta2/classes.rb +0 -6386
  423. data/generated/google/apis/dlp_v2beta2/representations.rb +0 -3085
  424. data/generated/google/apis/dlp_v2beta2/service.rb +0 -1332
  425. data/generated/google/apis/prediction_v1_2.rb +0 -44
  426. data/generated/google/apis/prediction_v1_2/classes.rb +0 -237
  427. data/generated/google/apis/prediction_v1_2/representations.rb +0 -133
  428. data/generated/google/apis/prediction_v1_2/service.rb +0 -287
  429. data/generated/google/apis/prediction_v1_3.rb +0 -44
  430. data/generated/google/apis/prediction_v1_3/classes.rb +0 -286
  431. data/generated/google/apis/prediction_v1_3/representations.rb +0 -139
  432. data/generated/google/apis/prediction_v1_3/service.rb +0 -284
  433. data/generated/google/apis/prediction_v1_4.rb +0 -44
  434. data/generated/google/apis/prediction_v1_4/classes.rb +0 -336
  435. data/generated/google/apis/prediction_v1_4/representations.rb +0 -158
  436. data/generated/google/apis/prediction_v1_4/service.rb +0 -284
  437. data/generated/google/apis/prediction_v1_5.rb +0 -44
  438. data/generated/google/apis/prediction_v1_5/classes.rb +0 -708
  439. data/generated/google/apis/prediction_v1_5/representations.rb +0 -352
  440. data/generated/google/apis/prediction_v1_5/service.rb +0 -357
  441. data/generated/google/apis/prediction_v1_6.rb +0 -47
  442. data/generated/google/apis/prediction_v1_6/classes.rb +0 -751
  443. data/generated/google/apis/prediction_v1_6/representations.rb +0 -369
  444. data/generated/google/apis/prediction_v1_6/service.rb +0 -381
  445. data/generated/google/apis/taskqueue_v1beta1.rb +0 -37
  446. data/generated/google/apis/taskqueue_v1beta1/classes.rb +0 -242
  447. data/generated/google/apis/taskqueue_v1beta1/representations.rb +0 -124
  448. data/generated/google/apis/taskqueue_v1beta1/service.rb +0 -269
  449. data/generated/google/apis/taskqueue_v1beta2/classes.rb +0 -254
  450. data/generated/google/apis/taskqueue_v1beta2/representations.rb +0 -126
  451. data/generated/google/apis/taskqueue_v1beta2/service.rb +0 -409
@@ -0,0 +1,92 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module VideointelligenceV1beta2
23
+ # Cloud Video Intelligence API
24
+ #
25
+ # Cloud Video Intelligence API.
26
+ #
27
+ # @example
28
+ # require 'google/apis/videointelligence_v1beta2'
29
+ #
30
+ # Videointelligence = Google::Apis::VideointelligenceV1beta2 # Alias the module
31
+ # service = Videointelligence::CloudVideoIntelligenceService.new
32
+ #
33
+ # @see https://cloud.google.com/video-intelligence/docs/
34
+ class CloudVideoIntelligenceService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://videointelligence.googleapis.com/', '')
47
+ @batch_path = 'batch'
48
+ end
49
+
50
+ # Performs asynchronous video annotation. Progress and results can be
51
+ # retrieved through the `google.longrunning.Operations` interface.
52
+ # `Operation.metadata` contains `AnnotateVideoProgress` (progress).
53
+ # `Operation.response` contains `AnnotateVideoResponse` (results).
54
+ # @param [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2AnnotateVideoRequest] google_cloud_videointelligence_v1beta2_annotate_video_request_object
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
57
+ # @param [String] quota_user
58
+ # Available to use for quota purposes for server-side applications. Can be any
59
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [Google::Apis::RequestOptions] options
61
+ # Request-specific options
62
+ #
63
+ # @yield [result, err] Result & error if block supplied
64
+ # @yieldparam result [Google::Apis::VideointelligenceV1beta2::GoogleLongrunningOperation] parsed result object
65
+ # @yieldparam err [StandardError] error object if request failed
66
+ #
67
+ # @return [Google::Apis::VideointelligenceV1beta2::GoogleLongrunningOperation]
68
+ #
69
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
72
+ def annotate_video(google_cloud_videointelligence_v1beta2_annotate_video_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:post, 'v1beta2/videos:annotate', options)
74
+ command.request_representation = Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2AnnotateVideoRequest::Representation
75
+ command.request_object = google_cloud_videointelligence_v1beta2_annotate_video_request_object
76
+ command.response_representation = Google::Apis::VideointelligenceV1beta2::GoogleLongrunningOperation::Representation
77
+ command.response_class = Google::Apis::VideointelligenceV1beta2::GoogleLongrunningOperation
78
+ command.query['fields'] = fields unless fields.nil?
79
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
80
+ execute_or_queue_command(command, &block)
81
+ end
82
+
83
+ protected
84
+
85
+ def apply_command_defaults(command)
86
+ command.query['key'] = key unless key.nil?
87
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
88
+ end
89
+ end
90
+ end
91
+ end
92
+ end
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1
29
29
  VERSION = 'V1'
30
- REVISION = '20180327'
30
+ REVISION = '20180416'
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'
@@ -959,6 +959,164 @@ module Google
959
959
  end
960
960
  end
961
961
 
962
+ # Response to a single file annotation request. A file may contain one or more
963
+ # images, which individually have their own responses.
964
+ class GoogleCloudVisionV1p2beta1AnnotateFileResponse
965
+ include Google::Apis::Core::Hashable
966
+
967
+ # The desired input location and metadata.
968
+ # Corresponds to the JSON property `inputConfig`
969
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1InputConfig]
970
+ attr_accessor :input_config
971
+
972
+ # Individual responses to images found within the file.
973
+ # Corresponds to the JSON property `responses`
974
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1AnnotateImageResponse>]
975
+ attr_accessor :responses
976
+
977
+ def initialize(**args)
978
+ update!(**args)
979
+ end
980
+
981
+ # Update properties of this object
982
+ def update!(**args)
983
+ @input_config = args[:input_config] if args.key?(:input_config)
984
+ @responses = args[:responses] if args.key?(:responses)
985
+ end
986
+ end
987
+
988
+ # Response to an image annotation request.
989
+ class GoogleCloudVisionV1p2beta1AnnotateImageResponse
990
+ include Google::Apis::Core::Hashable
991
+
992
+ # If an image was produced from a file (e.g. a PDF), this message gives
993
+ # information about the source of that image.
994
+ # Corresponds to the JSON property `context`
995
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ImageAnnotationContext]
996
+ attr_accessor :context
997
+
998
+ # Set of crop hints that are used to generate new crops when serving images.
999
+ # Corresponds to the JSON property `cropHintsAnnotation`
1000
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1CropHintsAnnotation]
1001
+ attr_accessor :crop_hints_annotation
1002
+
1003
+ # The `Status` type defines a logical error model that is suitable for different
1004
+ # programming environments, including REST APIs and RPC APIs. It is used by
1005
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
1006
+ # - Simple to use and understand for most users
1007
+ # - Flexible enough to meet unexpected needs
1008
+ # # Overview
1009
+ # The `Status` message contains three pieces of data: error code, error message,
1010
+ # and error details. The error code should be an enum value of
1011
+ # google.rpc.Code, but it may accept additional error codes if needed. The
1012
+ # error message should be a developer-facing English message that helps
1013
+ # developers *understand* and *resolve* the error. If a localized user-facing
1014
+ # error message is needed, put the localized message in the error details or
1015
+ # localize it in the client. The optional error details may contain arbitrary
1016
+ # information about the error. There is a predefined set of error detail types
1017
+ # in the package `google.rpc` that can be used for common error conditions.
1018
+ # # Language mapping
1019
+ # The `Status` message is the logical representation of the error model, but it
1020
+ # is not necessarily the actual wire format. When the `Status` message is
1021
+ # exposed in different client libraries and different wire protocols, it can be
1022
+ # mapped differently. For example, it will likely be mapped to some exceptions
1023
+ # in Java, but more likely mapped to some error codes in C.
1024
+ # # Other uses
1025
+ # The error model and the `Status` message can be used in a variety of
1026
+ # environments, either with or without APIs, to provide a
1027
+ # consistent developer experience across different environments.
1028
+ # Example uses of this error model include:
1029
+ # - Partial errors. If a service needs to return partial errors to the client,
1030
+ # it may embed the `Status` in the normal response to indicate the partial
1031
+ # errors.
1032
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
1033
+ # have a `Status` message for error reporting.
1034
+ # - Batch operations. If a client uses batch request and batch response, the
1035
+ # `Status` message should be used directly inside batch response, one for
1036
+ # each error sub-response.
1037
+ # - Asynchronous operations. If an API call embeds asynchronous operation
1038
+ # results in its response, the status of those operations should be
1039
+ # represented directly using the `Status` message.
1040
+ # - Logging. If some API errors are stored in logs, the message `Status` could
1041
+ # be used directly after any stripping needed for security/privacy reasons.
1042
+ # Corresponds to the JSON property `error`
1043
+ # @return [Google::Apis::VisionV1::Status]
1044
+ attr_accessor :error
1045
+
1046
+ # If present, face detection has completed successfully.
1047
+ # Corresponds to the JSON property `faceAnnotations`
1048
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1FaceAnnotation>]
1049
+ attr_accessor :face_annotations
1050
+
1051
+ # TextAnnotation contains a structured representation of OCR extracted text.
1052
+ # The hierarchy of an OCR extracted text structure is like this:
1053
+ # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
1054
+ # Each structural component, starting from Page, may further have their own
1055
+ # properties. Properties describe detected languages, breaks etc.. Please refer
1056
+ # to the TextAnnotation.TextProperty message definition below for more
1057
+ # detail.
1058
+ # Corresponds to the JSON property `fullTextAnnotation`
1059
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotation]
1060
+ attr_accessor :full_text_annotation
1061
+
1062
+ # Stores image properties, such as dominant colors.
1063
+ # Corresponds to the JSON property `imagePropertiesAnnotation`
1064
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ImageProperties]
1065
+ attr_accessor :image_properties_annotation
1066
+
1067
+ # If present, label detection has completed successfully.
1068
+ # Corresponds to the JSON property `labelAnnotations`
1069
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
1070
+ attr_accessor :label_annotations
1071
+
1072
+ # If present, landmark detection has completed successfully.
1073
+ # Corresponds to the JSON property `landmarkAnnotations`
1074
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
1075
+ attr_accessor :landmark_annotations
1076
+
1077
+ # If present, logo detection has completed successfully.
1078
+ # Corresponds to the JSON property `logoAnnotations`
1079
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
1080
+ attr_accessor :logo_annotations
1081
+
1082
+ # Set of features pertaining to the image, computed by computer vision
1083
+ # methods over safe-search verticals (for example, adult, spoof, medical,
1084
+ # violence).
1085
+ # Corresponds to the JSON property `safeSearchAnnotation`
1086
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1SafeSearchAnnotation]
1087
+ attr_accessor :safe_search_annotation
1088
+
1089
+ # If present, text (OCR) detection has completed successfully.
1090
+ # Corresponds to the JSON property `textAnnotations`
1091
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
1092
+ attr_accessor :text_annotations
1093
+
1094
+ # Relevant information for the image from the Internet.
1095
+ # Corresponds to the JSON property `webDetection`
1096
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetection]
1097
+ attr_accessor :web_detection
1098
+
1099
+ def initialize(**args)
1100
+ update!(**args)
1101
+ end
1102
+
1103
+ # Update properties of this object
1104
+ def update!(**args)
1105
+ @context = args[:context] if args.key?(:context)
1106
+ @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
1107
+ @error = args[:error] if args.key?(:error)
1108
+ @face_annotations = args[:face_annotations] if args.key?(:face_annotations)
1109
+ @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
1110
+ @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
1111
+ @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
1112
+ @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
1113
+ @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
1114
+ @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
1115
+ @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
1116
+ @web_detection = args[:web_detection] if args.key?(:web_detection)
1117
+ end
1118
+ end
1119
+
962
1120
  # The response for a single offline file annotation request.
963
1121
  class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse
964
1122
  include Google::Apis::Core::Hashable
@@ -998,25 +1156,34 @@ module Google
998
1156
  end
999
1157
  end
1000
1158
 
1001
- # The Google Cloud Storage location where the output will be written to.
1002
- class GoogleCloudVisionV1p2beta1GcsDestination
1159
+ # Logical element on the page.
1160
+ class GoogleCloudVisionV1p2beta1Block
1003
1161
  include Google::Apis::Core::Hashable
1004
1162
 
1005
- # Google Cloud Storage URI where the results will be stored. Results will
1006
- # be in JSON format and preceded by its corresponding input URI. This field
1007
- # can either represent a single file, or a prefix for multiple outputs.
1008
- # Prefixes must end in a `/`.
1009
- # Examples:
1010
- # * File: gs://bucket-name/filename.json
1011
- # * Prefix: gs://bucket-name/prefix/here/
1012
- # * File: gs://bucket-name/prefix/here
1013
- # If multiple outputs, each response is still AnnotateFileResponse, each of
1014
- # which contains some subset of the full list of AnnotateImageResponse.
1015
- # Multiple outputs can happen if, for example, the output JSON is too large
1016
- # and overflows into multiple sharded files.
1017
- # Corresponds to the JSON property `uri`
1163
+ # Detected block type (text, image etc) for this block.
1164
+ # Corresponds to the JSON property `blockType`
1018
1165
  # @return [String]
1019
- attr_accessor :uri
1166
+ attr_accessor :block_type
1167
+
1168
+ # A bounding polygon for the detected image annotation.
1169
+ # Corresponds to the JSON property `boundingBox`
1170
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
1171
+ attr_accessor :bounding_box
1172
+
1173
+ # Confidence of the OCR results on the block. Range [0, 1].
1174
+ # Corresponds to the JSON property `confidence`
1175
+ # @return [Float]
1176
+ attr_accessor :confidence
1177
+
1178
+ # List of paragraphs in this block (if this blocks is of type text).
1179
+ # Corresponds to the JSON property `paragraphs`
1180
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Paragraph>]
1181
+ attr_accessor :paragraphs
1182
+
1183
+ # Additional information detected on the structural component.
1184
+ # Corresponds to the JSON property `property`
1185
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
1186
+ attr_accessor :property
1020
1187
 
1021
1188
  def initialize(**args)
1022
1189
  update!(**args)
@@ -1024,28 +1191,27 @@ module Google
1024
1191
 
1025
1192
  # Update properties of this object
1026
1193
  def update!(**args)
1027
- @uri = args[:uri] if args.key?(:uri)
1194
+ @block_type = args[:block_type] if args.key?(:block_type)
1195
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
1196
+ @confidence = args[:confidence] if args.key?(:confidence)
1197
+ @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
1198
+ @property = args[:property] if args.key?(:property)
1028
1199
  end
1029
1200
  end
1030
1201
 
1031
- # Contains metadata for the BatchAnnotateImages operation.
1032
- class GoogleCloudVisionV1p2beta1OperationMetadata
1202
+ # A bounding polygon for the detected image annotation.
1203
+ class GoogleCloudVisionV1p2beta1BoundingPoly
1033
1204
  include Google::Apis::Core::Hashable
1034
1205
 
1035
- # The time when the batch request was received.
1036
- # Corresponds to the JSON property `createTime`
1037
- # @return [String]
1038
- attr_accessor :create_time
1039
-
1040
- # Current state of the batch operation.
1041
- # Corresponds to the JSON property `state`
1042
- # @return [String]
1043
- attr_accessor :state
1206
+ # The bounding polygon normalized vertices.
1207
+ # Corresponds to the JSON property `normalizedVertices`
1208
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1NormalizedVertex>]
1209
+ attr_accessor :normalized_vertices
1044
1210
 
1045
- # The time when the operation result was last updated.
1046
- # Corresponds to the JSON property `updateTime`
1047
- # @return [String]
1048
- attr_accessor :update_time
1211
+ # The bounding polygon vertices.
1212
+ # Corresponds to the JSON property `vertices`
1213
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Vertex>]
1214
+ attr_accessor :vertices
1049
1215
 
1050
1216
  def initialize(**args)
1051
1217
  update!(**args)
@@ -1053,41 +1219,1254 @@ module Google
1053
1219
 
1054
1220
  # Update properties of this object
1055
1221
  def update!(**args)
1056
- @create_time = args[:create_time] if args.key?(:create_time)
1057
- @state = args[:state] if args.key?(:state)
1058
- @update_time = args[:update_time] if args.key?(:update_time)
1222
+ @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
1223
+ @vertices = args[:vertices] if args.key?(:vertices)
1059
1224
  end
1060
1225
  end
1061
1226
 
1062
- # The desired output location and metadata.
1063
- class GoogleCloudVisionV1p2beta1OutputConfig
1227
+ # Color information consists of RGB channels, score, and the fraction of
1228
+ # the image that the color occupies in the image.
1229
+ class GoogleCloudVisionV1p2beta1ColorInfo
1064
1230
  include Google::Apis::Core::Hashable
1065
1231
 
1066
- # The max number of response protos to put into each output JSON file on GCS.
1067
- # The valid range is [1, 100]. If not specified, the default value is 20.
1068
- # For example, for one pdf file with 100 pages, 100 response protos will
1069
- # be generated. If `batch_size` = 20, then 5 json files each
1070
- # containing 20 response protos will be written under the prefix
1071
- # `gcs_destination`.`uri`.
1072
- # Currently, batch_size only applies to GcsDestination, with potential future
1073
- # support for other output configurations.
1074
- # Corresponds to the JSON property `batchSize`
1075
- # @return [Fixnum]
1076
- attr_accessor :batch_size
1077
-
1078
- # The Google Cloud Storage location where the output will be written to.
1079
- # Corresponds to the JSON property `gcsDestination`
1080
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1GcsDestination]
1081
- attr_accessor :gcs_destination
1082
-
1083
- def initialize(**args)
1084
- update!(**args)
1085
- end
1086
-
1087
- # Update properties of this object
1088
- def update!(**args)
1089
- @batch_size = args[:batch_size] if args.key?(:batch_size)
1090
- @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
1232
+ # Represents a color in the RGBA color space. This representation is designed
1233
+ # for simplicity of conversion to/from color representations in various
1234
+ # languages over compactness; for example, the fields of this representation
1235
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
1236
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
1237
+ # method in iOS; and, with just a little work, it can be easily formatted into
1238
+ # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
1239
+ # Example (Java):
1240
+ # import com.google.type.Color;
1241
+ # // ...
1242
+ # public static java.awt.Color fromProto(Color protocolor) `
1243
+ # float alpha = protocolor.hasAlpha()
1244
+ # ? protocolor.getAlpha().getValue()
1245
+ # : 1.0;
1246
+ # return new java.awt.Color(
1247
+ # protocolor.getRed(),
1248
+ # protocolor.getGreen(),
1249
+ # protocolor.getBlue(),
1250
+ # alpha);
1251
+ # `
1252
+ # public static Color toProto(java.awt.Color color) `
1253
+ # float red = (float) color.getRed();
1254
+ # float green = (float) color.getGreen();
1255
+ # float blue = (float) color.getBlue();
1256
+ # float denominator = 255.0;
1257
+ # Color.Builder resultBuilder =
1258
+ # Color
1259
+ # .newBuilder()
1260
+ # .setRed(red / denominator)
1261
+ # .setGreen(green / denominator)
1262
+ # .setBlue(blue / denominator);
1263
+ # int alpha = color.getAlpha();
1264
+ # if (alpha != 255) `
1265
+ # result.setAlpha(
1266
+ # FloatValue
1267
+ # .newBuilder()
1268
+ # .setValue(((float) alpha) / denominator)
1269
+ # .build());
1270
+ # `
1271
+ # return resultBuilder.build();
1272
+ # `
1273
+ # // ...
1274
+ # Example (iOS / Obj-C):
1275
+ # // ...
1276
+ # static UIColor* fromProto(Color* protocolor) `
1277
+ # float red = [protocolor red];
1278
+ # float green = [protocolor green];
1279
+ # float blue = [protocolor blue];
1280
+ # FloatValue* alpha_wrapper = [protocolor alpha];
1281
+ # float alpha = 1.0;
1282
+ # if (alpha_wrapper != nil) `
1283
+ # alpha = [alpha_wrapper value];
1284
+ # `
1285
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
1286
+ # `
1287
+ # static Color* toProto(UIColor* color) `
1288
+ # CGFloat red, green, blue, alpha;
1289
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
1290
+ # return nil;
1291
+ # `
1292
+ # Color* result = [Color alloc] init];
1293
+ # [result setRed:red];
1294
+ # [result setGreen:green];
1295
+ # [result setBlue:blue];
1296
+ # if (alpha <= 0.9999) `
1297
+ # [result setAlpha:floatWrapperWithValue(alpha)];
1298
+ # `
1299
+ # [result autorelease];
1300
+ # return result;
1301
+ # `
1302
+ # // ...
1303
+ # Example (JavaScript):
1304
+ # // ...
1305
+ # var protoToCssColor = function(rgb_color) `
1306
+ # var redFrac = rgb_color.red || 0.0;
1307
+ # var greenFrac = rgb_color.green || 0.0;
1308
+ # var blueFrac = rgb_color.blue || 0.0;
1309
+ # var red = Math.floor(redFrac * 255);
1310
+ # var green = Math.floor(greenFrac * 255);
1311
+ # var blue = Math.floor(blueFrac * 255);
1312
+ # if (!('alpha' in rgb_color)) `
1313
+ # return rgbToCssColor_(red, green, blue);
1314
+ # `
1315
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
1316
+ # var rgbParams = [red, green, blue].join(',');
1317
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
1318
+ # `;
1319
+ # var rgbToCssColor_ = function(red, green, blue) `
1320
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
1321
+ # var hexString = rgbNumber.toString(16);
1322
+ # var missingZeros = 6 - hexString.length;
1323
+ # var resultBuilder = ['#'];
1324
+ # for (var i = 0; i < missingZeros; i++) `
1325
+ # resultBuilder.push('0');
1326
+ # `
1327
+ # resultBuilder.push(hexString);
1328
+ # return resultBuilder.join('');
1329
+ # `;
1330
+ # // ...
1331
+ # Corresponds to the JSON property `color`
1332
+ # @return [Google::Apis::VisionV1::Color]
1333
+ attr_accessor :color
1334
+
1335
+ # The fraction of pixels the color occupies in the image.
1336
+ # Value in range [0, 1].
1337
+ # Corresponds to the JSON property `pixelFraction`
1338
+ # @return [Float]
1339
+ attr_accessor :pixel_fraction
1340
+
1341
+ # Image-specific score for this color. Value in range [0, 1].
1342
+ # Corresponds to the JSON property `score`
1343
+ # @return [Float]
1344
+ attr_accessor :score
1345
+
1346
+ def initialize(**args)
1347
+ update!(**args)
1348
+ end
1349
+
1350
+ # Update properties of this object
1351
+ def update!(**args)
1352
+ @color = args[:color] if args.key?(:color)
1353
+ @pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction)
1354
+ @score = args[:score] if args.key?(:score)
1355
+ end
1356
+ end
1357
+
1358
+ # Single crop hint that is used to generate a new crop when serving an image.
1359
+ class GoogleCloudVisionV1p2beta1CropHint
1360
+ include Google::Apis::Core::Hashable
1361
+
1362
+ # A bounding polygon for the detected image annotation.
1363
+ # Corresponds to the JSON property `boundingPoly`
1364
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
1365
+ attr_accessor :bounding_poly
1366
+
1367
+ # Confidence of this being a salient region. Range [0, 1].
1368
+ # Corresponds to the JSON property `confidence`
1369
+ # @return [Float]
1370
+ attr_accessor :confidence
1371
+
1372
+ # Fraction of importance of this salient region with respect to the original
1373
+ # image.
1374
+ # Corresponds to the JSON property `importanceFraction`
1375
+ # @return [Float]
1376
+ attr_accessor :importance_fraction
1377
+
1378
+ def initialize(**args)
1379
+ update!(**args)
1380
+ end
1381
+
1382
+ # Update properties of this object
1383
+ def update!(**args)
1384
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
1385
+ @confidence = args[:confidence] if args.key?(:confidence)
1386
+ @importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction)
1387
+ end
1388
+ end
1389
+
1390
+ # Set of crop hints that are used to generate new crops when serving images.
1391
+ class GoogleCloudVisionV1p2beta1CropHintsAnnotation
1392
+ include Google::Apis::Core::Hashable
1393
+
1394
+ # Crop hint results.
1395
+ # Corresponds to the JSON property `cropHints`
1396
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1CropHint>]
1397
+ attr_accessor :crop_hints
1398
+
1399
+ def initialize(**args)
1400
+ update!(**args)
1401
+ end
1402
+
1403
+ # Update properties of this object
1404
+ def update!(**args)
1405
+ @crop_hints = args[:crop_hints] if args.key?(:crop_hints)
1406
+ end
1407
+ end
1408
+
1409
+ # Set of dominant colors and their corresponding scores.
1410
+ class GoogleCloudVisionV1p2beta1DominantColorsAnnotation
1411
+ include Google::Apis::Core::Hashable
1412
+
1413
+ # RGB color values with their score and pixel fraction.
1414
+ # Corresponds to the JSON property `colors`
1415
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ColorInfo>]
1416
+ attr_accessor :colors
1417
+
1418
+ def initialize(**args)
1419
+ update!(**args)
1420
+ end
1421
+
1422
+ # Update properties of this object
1423
+ def update!(**args)
1424
+ @colors = args[:colors] if args.key?(:colors)
1425
+ end
1426
+ end
1427
+
1428
+ # Set of detected entity features.
1429
+ class GoogleCloudVisionV1p2beta1EntityAnnotation
1430
+ include Google::Apis::Core::Hashable
1431
+
1432
+ # A bounding polygon for the detected image annotation.
1433
+ # Corresponds to the JSON property `boundingPoly`
1434
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
1435
+ attr_accessor :bounding_poly
1436
+
1437
+ # **Deprecated. Use `score` instead.**
1438
+ # The accuracy of the entity detection in an image.
1439
+ # For example, for an image in which the "Eiffel Tower" entity is detected,
1440
+ # this field represents the confidence that there is a tower in the query
1441
+ # image. Range [0, 1].
1442
+ # Corresponds to the JSON property `confidence`
1443
+ # @return [Float]
1444
+ attr_accessor :confidence
1445
+
1446
+ # Entity textual description, expressed in its `locale` language.
1447
+ # Corresponds to the JSON property `description`
1448
+ # @return [String]
1449
+ attr_accessor :description
1450
+
1451
+ # The language code for the locale in which the entity textual
1452
+ # `description` is expressed.
1453
+ # Corresponds to the JSON property `locale`
1454
+ # @return [String]
1455
+ attr_accessor :locale
1456
+
1457
+ # The location information for the detected entity. Multiple
1458
+ # `LocationInfo` elements can be present because one location may
1459
+ # indicate the location of the scene in the image, and another location
1460
+ # may indicate the location of the place where the image was taken.
1461
+ # Location information is usually present for landmarks.
1462
+ # Corresponds to the JSON property `locations`
1463
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1LocationInfo>]
1464
+ attr_accessor :locations
1465
+
1466
+ # Opaque entity ID. Some IDs may be available in
1467
+ # [Google Knowledge Graph Search
1468
+ # API](https://developers.google.com/knowledge-graph/).
1469
+ # Corresponds to the JSON property `mid`
1470
+ # @return [String]
1471
+ attr_accessor :mid
1472
+
1473
+ # Some entities may have optional user-supplied `Property` (name/value)
1474
+ # fields, such a score or string that qualifies the entity.
1475
+ # Corresponds to the JSON property `properties`
1476
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Property>]
1477
+ attr_accessor :properties
1478
+
1479
+ # Overall score of the result. Range [0, 1].
1480
+ # Corresponds to the JSON property `score`
1481
+ # @return [Float]
1482
+ attr_accessor :score
1483
+
1484
+ # The relevancy of the ICA (Image Content Annotation) label to the
1485
+ # image. For example, the relevancy of "tower" is likely higher to an image
1486
+ # containing the detected "Eiffel Tower" than to an image containing a
1487
+ # detected distant towering building, even though the confidence that
1488
+ # there is a tower in each image may be the same. Range [0, 1].
1489
+ # Corresponds to the JSON property `topicality`
1490
+ # @return [Float]
1491
+ attr_accessor :topicality
1492
+
1493
+ def initialize(**args)
1494
+ update!(**args)
1495
+ end
1496
+
1497
+ # Update properties of this object
1498
+ def update!(**args)
1499
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
1500
+ @confidence = args[:confidence] if args.key?(:confidence)
1501
+ @description = args[:description] if args.key?(:description)
1502
+ @locale = args[:locale] if args.key?(:locale)
1503
+ @locations = args[:locations] if args.key?(:locations)
1504
+ @mid = args[:mid] if args.key?(:mid)
1505
+ @properties = args[:properties] if args.key?(:properties)
1506
+ @score = args[:score] if args.key?(:score)
1507
+ @topicality = args[:topicality] if args.key?(:topicality)
1508
+ end
1509
+ end
1510
+
1511
+ # A face annotation object contains the results of face detection.
1512
+ class GoogleCloudVisionV1p2beta1FaceAnnotation
1513
+ include Google::Apis::Core::Hashable
1514
+
1515
+ # Anger likelihood.
1516
+ # Corresponds to the JSON property `angerLikelihood`
1517
+ # @return [String]
1518
+ attr_accessor :anger_likelihood
1519
+
1520
+ # Blurred likelihood.
1521
+ # Corresponds to the JSON property `blurredLikelihood`
1522
+ # @return [String]
1523
+ attr_accessor :blurred_likelihood
1524
+
1525
+ # A bounding polygon for the detected image annotation.
1526
+ # Corresponds to the JSON property `boundingPoly`
1527
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
1528
+ attr_accessor :bounding_poly
1529
+
1530
+ # Detection confidence. Range [0, 1].
1531
+ # Corresponds to the JSON property `detectionConfidence`
1532
+ # @return [Float]
1533
+ attr_accessor :detection_confidence
1534
+
1535
+ # A bounding polygon for the detected image annotation.
1536
+ # Corresponds to the JSON property `fdBoundingPoly`
1537
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
1538
+ attr_accessor :fd_bounding_poly
1539
+
1540
+ # Headwear likelihood.
1541
+ # Corresponds to the JSON property `headwearLikelihood`
1542
+ # @return [String]
1543
+ attr_accessor :headwear_likelihood
1544
+
1545
+ # Joy likelihood.
1546
+ # Corresponds to the JSON property `joyLikelihood`
1547
+ # @return [String]
1548
+ attr_accessor :joy_likelihood
1549
+
1550
+ # Face landmarking confidence. Range [0, 1].
1551
+ # Corresponds to the JSON property `landmarkingConfidence`
1552
+ # @return [Float]
1553
+ attr_accessor :landmarking_confidence
1554
+
1555
+ # Detected face landmarks.
1556
+ # Corresponds to the JSON property `landmarks`
1557
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1FaceAnnotationLandmark>]
1558
+ attr_accessor :landmarks
1559
+
1560
+ # Yaw angle, which indicates the leftward/rightward angle that the face is
1561
+ # pointing relative to the vertical plane perpendicular to the image. Range
1562
+ # [-180,180].
1563
+ # Corresponds to the JSON property `panAngle`
1564
+ # @return [Float]
1565
+ attr_accessor :pan_angle
1566
+
1567
+ # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
1568
+ # of the face relative to the image vertical about the axis perpendicular to
1569
+ # the face. Range [-180,180].
1570
+ # Corresponds to the JSON property `rollAngle`
1571
+ # @return [Float]
1572
+ attr_accessor :roll_angle
1573
+
1574
+ # Sorrow likelihood.
1575
+ # Corresponds to the JSON property `sorrowLikelihood`
1576
+ # @return [String]
1577
+ attr_accessor :sorrow_likelihood
1578
+
1579
+ # Surprise likelihood.
1580
+ # Corresponds to the JSON property `surpriseLikelihood`
1581
+ # @return [String]
1582
+ attr_accessor :surprise_likelihood
1583
+
1584
+ # Pitch angle, which indicates the upwards/downwards angle that the face is
1585
+ # pointing relative to the image's horizontal plane. Range [-180,180].
1586
+ # Corresponds to the JSON property `tiltAngle`
1587
+ # @return [Float]
1588
+ attr_accessor :tilt_angle
1589
+
1590
+ # Under-exposed likelihood.
1591
+ # Corresponds to the JSON property `underExposedLikelihood`
1592
+ # @return [String]
1593
+ attr_accessor :under_exposed_likelihood
1594
+
1595
+ def initialize(**args)
1596
+ update!(**args)
1597
+ end
1598
+
1599
+ # Update properties of this object
1600
+ def update!(**args)
1601
+ @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood)
1602
+ @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood)
1603
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
1604
+ @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence)
1605
+ @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly)
1606
+ @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood)
1607
+ @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood)
1608
+ @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
1609
+ @landmarks = args[:landmarks] if args.key?(:landmarks)
1610
+ @pan_angle = args[:pan_angle] if args.key?(:pan_angle)
1611
+ @roll_angle = args[:roll_angle] if args.key?(:roll_angle)
1612
+ @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood)
1613
+ @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
1614
+ @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle)
1615
+ @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood)
1616
+ end
1617
+ end
1618
+
1619
+ # A face-specific landmark (for example, a face feature).
1620
+ class GoogleCloudVisionV1p2beta1FaceAnnotationLandmark
1621
+ include Google::Apis::Core::Hashable
1622
+
1623
+ # A 3D position in the image, used primarily for Face detection landmarks.
1624
+ # A valid Position must have both x and y coordinates.
1625
+ # The position coordinates are in the same scale as the original image.
1626
+ # Corresponds to the JSON property `position`
1627
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Position]
1628
+ attr_accessor :position
1629
+
1630
+ # Face landmark type.
1631
+ # Corresponds to the JSON property `type`
1632
+ # @return [String]
1633
+ attr_accessor :type
1634
+
1635
+ def initialize(**args)
1636
+ update!(**args)
1637
+ end
1638
+
1639
+ # Update properties of this object
1640
+ def update!(**args)
1641
+ @position = args[:position] if args.key?(:position)
1642
+ @type = args[:type] if args.key?(:type)
1643
+ end
1644
+ end
1645
+
1646
+ # The Google Cloud Storage location where the output will be written to.
1647
+ class GoogleCloudVisionV1p2beta1GcsDestination
1648
+ include Google::Apis::Core::Hashable
1649
+
1650
+ # Google Cloud Storage URI where the results will be stored. Results will
1651
+ # be in JSON format and preceded by its corresponding input URI. This field
1652
+ # can either represent a single file, or a prefix for multiple outputs.
1653
+ # Prefixes must end in a `/`.
1654
+ # Examples:
1655
+ # * File: gs://bucket-name/filename.json
1656
+ # * Prefix: gs://bucket-name/prefix/here/
1657
+ # * File: gs://bucket-name/prefix/here
1658
+ # If multiple outputs, each response is still AnnotateFileResponse, each of
1659
+ # which contains some subset of the full list of AnnotateImageResponse.
1660
+ # Multiple outputs can happen if, for example, the output JSON is too large
1661
+ # and overflows into multiple sharded files.
1662
+ # Corresponds to the JSON property `uri`
1663
+ # @return [String]
1664
+ attr_accessor :uri
1665
+
1666
+ def initialize(**args)
1667
+ update!(**args)
1668
+ end
1669
+
1670
+ # Update properties of this object
1671
+ def update!(**args)
1672
+ @uri = args[:uri] if args.key?(:uri)
1673
+ end
1674
+ end
1675
+
1676
+ # The Google Cloud Storage location where the input will be read from.
1677
+ class GoogleCloudVisionV1p2beta1GcsSource
1678
+ include Google::Apis::Core::Hashable
1679
+
1680
+ # Google Cloud Storage URI for the input file. This must only be a
1681
+ # Google Cloud Storage object. Wildcards are not currently supported.
1682
+ # Corresponds to the JSON property `uri`
1683
+ # @return [String]
1684
+ attr_accessor :uri
1685
+
1686
+ def initialize(**args)
1687
+ update!(**args)
1688
+ end
1689
+
1690
+ # Update properties of this object
1691
+ def update!(**args)
1692
+ @uri = args[:uri] if args.key?(:uri)
1693
+ end
1694
+ end
1695
+
1696
+ # If an image was produced from a file (e.g. a PDF), this message gives
1697
+ # information about the source of that image.
1698
+ class GoogleCloudVisionV1p2beta1ImageAnnotationContext
1699
+ include Google::Apis::Core::Hashable
1700
+
1701
+ # If the file was a PDF or TIFF, this field gives the page number within
1702
+ # the file used to produce the image.
1703
+ # Corresponds to the JSON property `pageNumber`
1704
+ # @return [Fixnum]
1705
+ attr_accessor :page_number
1706
+
1707
+ # The URI of the file used to produce the image.
1708
+ # Corresponds to the JSON property `uri`
1709
+ # @return [String]
1710
+ attr_accessor :uri
1711
+
1712
+ def initialize(**args)
1713
+ update!(**args)
1714
+ end
1715
+
1716
+ # Update properties of this object
1717
+ def update!(**args)
1718
+ @page_number = args[:page_number] if args.key?(:page_number)
1719
+ @uri = args[:uri] if args.key?(:uri)
1720
+ end
1721
+ end
1722
+
1723
+ # Stores image properties, such as dominant colors.
1724
+ class GoogleCloudVisionV1p2beta1ImageProperties
1725
+ include Google::Apis::Core::Hashable
1726
+
1727
+ # Set of dominant colors and their corresponding scores.
1728
+ # Corresponds to the JSON property `dominantColors`
1729
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1DominantColorsAnnotation]
1730
+ attr_accessor :dominant_colors
1731
+
1732
+ def initialize(**args)
1733
+ update!(**args)
1734
+ end
1735
+
1736
+ # Update properties of this object
1737
+ def update!(**args)
1738
+ @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
1739
+ end
1740
+ end
1741
+
1742
+ # The desired input location and metadata.
1743
+ class GoogleCloudVisionV1p2beta1InputConfig
1744
+ include Google::Apis::Core::Hashable
1745
+
1746
+ # The Google Cloud Storage location where the input will be read from.
1747
+ # Corresponds to the JSON property `gcsSource`
1748
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1GcsSource]
1749
+ attr_accessor :gcs_source
1750
+
1751
+ # The type of the file. Currently only "application/pdf" and "image/tiff"
1752
+ # are supported. Wildcards are not supported.
1753
+ # Corresponds to the JSON property `mimeType`
1754
+ # @return [String]
1755
+ attr_accessor :mime_type
1756
+
1757
+ def initialize(**args)
1758
+ update!(**args)
1759
+ end
1760
+
1761
+ # Update properties of this object
1762
+ def update!(**args)
1763
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
1764
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
1765
+ end
1766
+ end
1767
+
1768
+ # Detected entity location information.
1769
+ class GoogleCloudVisionV1p2beta1LocationInfo
1770
+ include Google::Apis::Core::Hashable
1771
+
1772
+ # An object representing a latitude/longitude pair. This is expressed as a pair
1773
+ # of doubles representing degrees latitude and degrees longitude. Unless
1774
+ # specified otherwise, this must conform to the
1775
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
1776
+ # standard</a>. Values must be within normalized ranges.
1777
+ # Corresponds to the JSON property `latLng`
1778
+ # @return [Google::Apis::VisionV1::LatLng]
1779
+ attr_accessor :lat_lng
1780
+
1781
+ def initialize(**args)
1782
+ update!(**args)
1783
+ end
1784
+
1785
+ # Update properties of this object
1786
+ def update!(**args)
1787
+ @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
1788
+ end
1789
+ end
1790
+
1791
+ # A vertex represents a 2D point in the image.
1792
+ # NOTE: the normalized vertex coordinates are relative to the original image
1793
+ # and range from 0 to 1.
1794
+ class GoogleCloudVisionV1p2beta1NormalizedVertex
1795
+ include Google::Apis::Core::Hashable
1796
+
1797
+ # X coordinate.
1798
+ # Corresponds to the JSON property `x`
1799
+ # @return [Float]
1800
+ attr_accessor :x
1801
+
1802
+ # Y coordinate.
1803
+ # Corresponds to the JSON property `y`
1804
+ # @return [Float]
1805
+ attr_accessor :y
1806
+
1807
+ def initialize(**args)
1808
+ update!(**args)
1809
+ end
1810
+
1811
+ # Update properties of this object
1812
+ def update!(**args)
1813
+ @x = args[:x] if args.key?(:x)
1814
+ @y = args[:y] if args.key?(:y)
1815
+ end
1816
+ end
1817
+
1818
+ # Contains metadata for the BatchAnnotateImages operation.
1819
+ class GoogleCloudVisionV1p2beta1OperationMetadata
1820
+ include Google::Apis::Core::Hashable
1821
+
1822
+ # The time when the batch request was received.
1823
+ # Corresponds to the JSON property `createTime`
1824
+ # @return [String]
1825
+ attr_accessor :create_time
1826
+
1827
+ # Current state of the batch operation.
1828
+ # Corresponds to the JSON property `state`
1829
+ # @return [String]
1830
+ attr_accessor :state
1831
+
1832
+ # The time when the operation result was last updated.
1833
+ # Corresponds to the JSON property `updateTime`
1834
+ # @return [String]
1835
+ attr_accessor :update_time
1836
+
1837
+ def initialize(**args)
1838
+ update!(**args)
1839
+ end
1840
+
1841
+ # Update properties of this object
1842
+ def update!(**args)
1843
+ @create_time = args[:create_time] if args.key?(:create_time)
1844
+ @state = args[:state] if args.key?(:state)
1845
+ @update_time = args[:update_time] if args.key?(:update_time)
1846
+ end
1847
+ end
1848
+
1849
+ # The desired output location and metadata.
1850
+ class GoogleCloudVisionV1p2beta1OutputConfig
1851
+ include Google::Apis::Core::Hashable
1852
+
1853
+ # The max number of response protos to put into each output JSON file on
1854
+ # Google Cloud Storage.
1855
+ # The valid range is [1, 100]. If not specified, the default value is 20.
1856
+ # For example, for one pdf file with 100 pages, 100 response protos will
1857
+ # be generated. If `batch_size` = 20, then 5 json files each
1858
+ # containing 20 response protos will be written under the prefix
1859
+ # `gcs_destination`.`uri`.
1860
+ # Currently, batch_size only applies to GcsDestination, with potential future
1861
+ # support for other output configurations.
1862
+ # Corresponds to the JSON property `batchSize`
1863
+ # @return [Fixnum]
1864
+ attr_accessor :batch_size
1865
+
1866
+ # The Google Cloud Storage location where the output will be written to.
1867
+ # Corresponds to the JSON property `gcsDestination`
1868
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1GcsDestination]
1869
+ attr_accessor :gcs_destination
1870
+
1871
+ def initialize(**args)
1872
+ update!(**args)
1873
+ end
1874
+
1875
+ # Update properties of this object
1876
+ def update!(**args)
1877
+ @batch_size = args[:batch_size] if args.key?(:batch_size)
1878
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
1879
+ end
1880
+ end
1881
+
1882
+ # Detected page from OCR.
1883
+ class GoogleCloudVisionV1p2beta1Page
1884
+ include Google::Apis::Core::Hashable
1885
+
1886
+ # List of blocks of text, images etc on this page.
1887
+ # Corresponds to the JSON property `blocks`
1888
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Block>]
1889
+ attr_accessor :blocks
1890
+
1891
+ # Confidence of the OCR results on the page. Range [0, 1].
1892
+ # Corresponds to the JSON property `confidence`
1893
+ # @return [Float]
1894
+ attr_accessor :confidence
1895
+
1896
+ # Page height. For PDFs the unit is points. For images (including
1897
+ # TIFFs) the unit is pixels.
1898
+ # Corresponds to the JSON property `height`
1899
+ # @return [Fixnum]
1900
+ attr_accessor :height
1901
+
1902
+ # Additional information detected on the structural component.
1903
+ # Corresponds to the JSON property `property`
1904
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
1905
+ attr_accessor :property
1906
+
1907
+ # Page width. For PDFs the unit is points. For images (including
1908
+ # TIFFs) the unit is pixels.
1909
+ # Corresponds to the JSON property `width`
1910
+ # @return [Fixnum]
1911
+ attr_accessor :width
1912
+
1913
+ def initialize(**args)
1914
+ update!(**args)
1915
+ end
1916
+
1917
+ # Update properties of this object
1918
+ def update!(**args)
1919
+ @blocks = args[:blocks] if args.key?(:blocks)
1920
+ @confidence = args[:confidence] if args.key?(:confidence)
1921
+ @height = args[:height] if args.key?(:height)
1922
+ @property = args[:property] if args.key?(:property)
1923
+ @width = args[:width] if args.key?(:width)
1924
+ end
1925
+ end
1926
+
1927
+ # Structural unit of text representing a number of words in certain order.
1928
+ class GoogleCloudVisionV1p2beta1Paragraph
1929
+ include Google::Apis::Core::Hashable
1930
+
1931
+ # A bounding polygon for the detected image annotation.
1932
+ # Corresponds to the JSON property `boundingBox`
1933
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
1934
+ attr_accessor :bounding_box
1935
+
1936
+ # Confidence of the OCR results for the paragraph. Range [0, 1].
1937
+ # Corresponds to the JSON property `confidence`
1938
+ # @return [Float]
1939
+ attr_accessor :confidence
1940
+
1941
+ # Additional information detected on the structural component.
1942
+ # Corresponds to the JSON property `property`
1943
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
1944
+ attr_accessor :property
1945
+
1946
+ # List of words in this paragraph.
1947
+ # Corresponds to the JSON property `words`
1948
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Word>]
1949
+ attr_accessor :words
1950
+
1951
+ def initialize(**args)
1952
+ update!(**args)
1953
+ end
1954
+
1955
+ # Update properties of this object
1956
+ def update!(**args)
1957
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
1958
+ @confidence = args[:confidence] if args.key?(:confidence)
1959
+ @property = args[:property] if args.key?(:property)
1960
+ @words = args[:words] if args.key?(:words)
1961
+ end
1962
+ end
1963
+
1964
+ # A 3D position in the image, used primarily for Face detection landmarks.
1965
+ # A valid Position must have both x and y coordinates.
1966
+ # The position coordinates are in the same scale as the original image.
1967
+ class GoogleCloudVisionV1p2beta1Position
1968
+ include Google::Apis::Core::Hashable
1969
+
1970
+ # X coordinate.
1971
+ # Corresponds to the JSON property `x`
1972
+ # @return [Float]
1973
+ attr_accessor :x
1974
+
1975
+ # Y coordinate.
1976
+ # Corresponds to the JSON property `y`
1977
+ # @return [Float]
1978
+ attr_accessor :y
1979
+
1980
+ # Z coordinate (or depth).
1981
+ # Corresponds to the JSON property `z`
1982
+ # @return [Float]
1983
+ attr_accessor :z
1984
+
1985
+ def initialize(**args)
1986
+ update!(**args)
1987
+ end
1988
+
1989
+ # Update properties of this object
1990
+ def update!(**args)
1991
+ @x = args[:x] if args.key?(:x)
1992
+ @y = args[:y] if args.key?(:y)
1993
+ @z = args[:z] if args.key?(:z)
1994
+ end
1995
+ end
1996
+
1997
+ # A `Property` consists of a user-supplied name/value pair.
1998
+ class GoogleCloudVisionV1p2beta1Property
1999
+ include Google::Apis::Core::Hashable
2000
+
2001
+ # Name of the property.
2002
+ # Corresponds to the JSON property `name`
2003
+ # @return [String]
2004
+ attr_accessor :name
2005
+
2006
+ # Value of numeric properties.
2007
+ # Corresponds to the JSON property `uint64Value`
2008
+ # @return [Fixnum]
2009
+ attr_accessor :uint64_value
2010
+
2011
+ # Value of the property.
2012
+ # Corresponds to the JSON property `value`
2013
+ # @return [String]
2014
+ attr_accessor :value
2015
+
2016
+ def initialize(**args)
2017
+ update!(**args)
2018
+ end
2019
+
2020
+ # Update properties of this object
2021
+ def update!(**args)
2022
+ @name = args[:name] if args.key?(:name)
2023
+ @uint64_value = args[:uint64_value] if args.key?(:uint64_value)
2024
+ @value = args[:value] if args.key?(:value)
2025
+ end
2026
+ end
2027
+
2028
+ # Set of features pertaining to the image, computed by computer vision
2029
+ # methods over safe-search verticals (for example, adult, spoof, medical,
2030
+ # violence).
2031
+ class GoogleCloudVisionV1p2beta1SafeSearchAnnotation
2032
+ include Google::Apis::Core::Hashable
2033
+
2034
+ # Represents the adult content likelihood for the image. Adult content may
2035
+ # contain elements such as nudity, pornographic images or cartoons, or
2036
+ # sexual activities.
2037
+ # Corresponds to the JSON property `adult`
2038
+ # @return [String]
2039
+ attr_accessor :adult
2040
+
2041
+ # Likelihood that this is a medical image.
2042
+ # Corresponds to the JSON property `medical`
2043
+ # @return [String]
2044
+ attr_accessor :medical
2045
+
2046
+ # Likelihood that the request image contains racy content. Racy content may
2047
+ # include (but is not limited to) skimpy or sheer clothing, strategically
2048
+ # covered nudity, lewd or provocative poses, or close-ups of sensitive
2049
+ # body areas.
2050
+ # Corresponds to the JSON property `racy`
2051
+ # @return [String]
2052
+ attr_accessor :racy
2053
+
2054
+ # Spoof likelihood. The likelihood that an modification
2055
+ # was made to the image's canonical version to make it appear
2056
+ # funny or offensive.
2057
+ # Corresponds to the JSON property `spoof`
2058
+ # @return [String]
2059
+ attr_accessor :spoof
2060
+
2061
+ # Likelihood that this image contains violent content.
2062
+ # Corresponds to the JSON property `violence`
2063
+ # @return [String]
2064
+ attr_accessor :violence
2065
+
2066
+ def initialize(**args)
2067
+ update!(**args)
2068
+ end
2069
+
2070
+ # Update properties of this object
2071
+ def update!(**args)
2072
+ @adult = args[:adult] if args.key?(:adult)
2073
+ @medical = args[:medical] if args.key?(:medical)
2074
+ @racy = args[:racy] if args.key?(:racy)
2075
+ @spoof = args[:spoof] if args.key?(:spoof)
2076
+ @violence = args[:violence] if args.key?(:violence)
2077
+ end
2078
+ end
2079
+
2080
+ # A single symbol representation.
2081
+ class GoogleCloudVisionV1p2beta1Symbol
2082
+ include Google::Apis::Core::Hashable
2083
+
2084
+ # A bounding polygon for the detected image annotation.
2085
+ # Corresponds to the JSON property `boundingBox`
2086
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
2087
+ attr_accessor :bounding_box
2088
+
2089
+ # Confidence of the OCR results for the symbol. Range [0, 1].
2090
+ # Corresponds to the JSON property `confidence`
2091
+ # @return [Float]
2092
+ attr_accessor :confidence
2093
+
2094
+ # Additional information detected on the structural component.
2095
+ # Corresponds to the JSON property `property`
2096
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
2097
+ attr_accessor :property
2098
+
2099
+ # The actual UTF-8 representation of the symbol.
2100
+ # Corresponds to the JSON property `text`
2101
+ # @return [String]
2102
+ attr_accessor :text
2103
+
2104
+ def initialize(**args)
2105
+ update!(**args)
2106
+ end
2107
+
2108
+ # Update properties of this object
2109
+ def update!(**args)
2110
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
2111
+ @confidence = args[:confidence] if args.key?(:confidence)
2112
+ @property = args[:property] if args.key?(:property)
2113
+ @text = args[:text] if args.key?(:text)
2114
+ end
2115
+ end
2116
+
2117
+ # TextAnnotation contains a structured representation of OCR extracted text.
2118
+ # The hierarchy of an OCR extracted text structure is like this:
2119
+ # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
2120
+ # Each structural component, starting from Page, may further have their own
2121
+ # properties. Properties describe detected languages, breaks etc.. Please refer
2122
+ # to the TextAnnotation.TextProperty message definition below for more
2123
+ # detail.
2124
+ class GoogleCloudVisionV1p2beta1TextAnnotation
2125
+ include Google::Apis::Core::Hashable
2126
+
2127
+ # List of pages detected by OCR.
2128
+ # Corresponds to the JSON property `pages`
2129
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Page>]
2130
+ attr_accessor :pages
2131
+
2132
+ # UTF-8 text detected on the pages.
2133
+ # Corresponds to the JSON property `text`
2134
+ # @return [String]
2135
+ attr_accessor :text
2136
+
2137
+ def initialize(**args)
2138
+ update!(**args)
2139
+ end
2140
+
2141
+ # Update properties of this object
2142
+ def update!(**args)
2143
+ @pages = args[:pages] if args.key?(:pages)
2144
+ @text = args[:text] if args.key?(:text)
2145
+ end
2146
+ end
2147
+
2148
+ # Detected start or end of a structural component.
2149
+ class GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak
2150
+ include Google::Apis::Core::Hashable
2151
+
2152
+ # True if break prepends the element.
2153
+ # Corresponds to the JSON property `isPrefix`
2154
+ # @return [Boolean]
2155
+ attr_accessor :is_prefix
2156
+ alias_method :is_prefix?, :is_prefix
2157
+
2158
+ # Detected break type.
2159
+ # Corresponds to the JSON property `type`
2160
+ # @return [String]
2161
+ attr_accessor :type
2162
+
2163
+ def initialize(**args)
2164
+ update!(**args)
2165
+ end
2166
+
2167
+ # Update properties of this object
2168
+ def update!(**args)
2169
+ @is_prefix = args[:is_prefix] if args.key?(:is_prefix)
2170
+ @type = args[:type] if args.key?(:type)
2171
+ end
2172
+ end
2173
+
2174
+ # Detected language for a structural component.
2175
+ class GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage
2176
+ include Google::Apis::Core::Hashable
2177
+
2178
+ # Confidence of detected language. Range [0, 1].
2179
+ # Corresponds to the JSON property `confidence`
2180
+ # @return [Float]
2181
+ attr_accessor :confidence
2182
+
2183
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
2184
+ # information, see
2185
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2186
+ # Corresponds to the JSON property `languageCode`
2187
+ # @return [String]
2188
+ attr_accessor :language_code
2189
+
2190
+ def initialize(**args)
2191
+ update!(**args)
2192
+ end
2193
+
2194
+ # Update properties of this object
2195
+ def update!(**args)
2196
+ @confidence = args[:confidence] if args.key?(:confidence)
2197
+ @language_code = args[:language_code] if args.key?(:language_code)
2198
+ end
2199
+ end
2200
+
2201
+ # Additional information detected on the structural component.
2202
+ class GoogleCloudVisionV1p2beta1TextAnnotationTextProperty
2203
+ include Google::Apis::Core::Hashable
2204
+
2205
+ # Detected start or end of a structural component.
2206
+ # Corresponds to the JSON property `detectedBreak`
2207
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak]
2208
+ attr_accessor :detected_break
2209
+
2210
+ # A list of detected languages together with confidence.
2211
+ # Corresponds to the JSON property `detectedLanguages`
2212
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage>]
2213
+ attr_accessor :detected_languages
2214
+
2215
+ def initialize(**args)
2216
+ update!(**args)
2217
+ end
2218
+
2219
+ # Update properties of this object
2220
+ def update!(**args)
2221
+ @detected_break = args[:detected_break] if args.key?(:detected_break)
2222
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
2223
+ end
2224
+ end
2225
+
2226
+ # A vertex represents a 2D point in the image.
2227
+ # NOTE: the vertex coordinates are in the same scale as the original image.
2228
+ class GoogleCloudVisionV1p2beta1Vertex
2229
+ include Google::Apis::Core::Hashable
2230
+
2231
+ # X coordinate.
2232
+ # Corresponds to the JSON property `x`
2233
+ # @return [Fixnum]
2234
+ attr_accessor :x
2235
+
2236
+ # Y coordinate.
2237
+ # Corresponds to the JSON property `y`
2238
+ # @return [Fixnum]
2239
+ attr_accessor :y
2240
+
2241
+ def initialize(**args)
2242
+ update!(**args)
2243
+ end
2244
+
2245
+ # Update properties of this object
2246
+ def update!(**args)
2247
+ @x = args[:x] if args.key?(:x)
2248
+ @y = args[:y] if args.key?(:y)
2249
+ end
2250
+ end
2251
+
2252
+ # Relevant information for the image from the Internet.
2253
+ class GoogleCloudVisionV1p2beta1WebDetection
2254
+ include Google::Apis::Core::Hashable
2255
+
2256
+ # Best guess text labels for the request image.
2257
+ # Corresponds to the JSON property `bestGuessLabels`
2258
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebLabel>]
2259
+ attr_accessor :best_guess_labels
2260
+
2261
+ # Fully matching images from the Internet.
2262
+ # Can include resized copies of the query image.
2263
+ # Corresponds to the JSON property `fullMatchingImages`
2264
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
2265
+ attr_accessor :full_matching_images
2266
+
2267
+ # Web pages containing the matching images from the Internet.
2268
+ # Corresponds to the JSON property `pagesWithMatchingImages`
2269
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebPage>]
2270
+ attr_accessor :pages_with_matching_images
2271
+
2272
+ # Partial matching images from the Internet.
2273
+ # Those images are similar enough to share some key-point features. For
2274
+ # example an original image will likely have partial matching for its crops.
2275
+ # Corresponds to the JSON property `partialMatchingImages`
2276
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
2277
+ attr_accessor :partial_matching_images
2278
+
2279
+ # The visually similar image results.
2280
+ # Corresponds to the JSON property `visuallySimilarImages`
2281
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
2282
+ attr_accessor :visually_similar_images
2283
+
2284
+ # Deduced entities from similar images on the Internet.
2285
+ # Corresponds to the JSON property `webEntities`
2286
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebEntity>]
2287
+ attr_accessor :web_entities
2288
+
2289
+ def initialize(**args)
2290
+ update!(**args)
2291
+ end
2292
+
2293
+ # Update properties of this object
2294
+ def update!(**args)
2295
+ @best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
2296
+ @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
2297
+ @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
2298
+ @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
2299
+ @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
2300
+ @web_entities = args[:web_entities] if args.key?(:web_entities)
2301
+ end
2302
+ end
2303
+
2304
+ # Entity deduced from similar images on the Internet.
2305
+ class GoogleCloudVisionV1p2beta1WebDetectionWebEntity
2306
+ include Google::Apis::Core::Hashable
2307
+
2308
+ # Canonical description of the entity, in English.
2309
+ # Corresponds to the JSON property `description`
2310
+ # @return [String]
2311
+ attr_accessor :description
2312
+
2313
+ # Opaque entity ID.
2314
+ # Corresponds to the JSON property `entityId`
2315
+ # @return [String]
2316
+ attr_accessor :entity_id
2317
+
2318
+ # Overall relevancy score for the entity.
2319
+ # Not normalized and not comparable across different image queries.
2320
+ # Corresponds to the JSON property `score`
2321
+ # @return [Float]
2322
+ attr_accessor :score
2323
+
2324
+ def initialize(**args)
2325
+ update!(**args)
2326
+ end
2327
+
2328
+ # Update properties of this object
2329
+ def update!(**args)
2330
+ @description = args[:description] if args.key?(:description)
2331
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
2332
+ @score = args[:score] if args.key?(:score)
2333
+ end
2334
+ end
2335
+
2336
+ # Metadata for online images.
2337
+ class GoogleCloudVisionV1p2beta1WebDetectionWebImage
2338
+ include Google::Apis::Core::Hashable
2339
+
2340
+ # (Deprecated) Overall relevancy score for the image.
2341
+ # Corresponds to the JSON property `score`
2342
+ # @return [Float]
2343
+ attr_accessor :score
2344
+
2345
+ # The result image URL.
2346
+ # Corresponds to the JSON property `url`
2347
+ # @return [String]
2348
+ attr_accessor :url
2349
+
2350
+ def initialize(**args)
2351
+ update!(**args)
2352
+ end
2353
+
2354
+ # Update properties of this object
2355
+ def update!(**args)
2356
+ @score = args[:score] if args.key?(:score)
2357
+ @url = args[:url] if args.key?(:url)
2358
+ end
2359
+ end
2360
+
2361
+ # Label to provide extra metadata for the web detection.
2362
+ class GoogleCloudVisionV1p2beta1WebDetectionWebLabel
2363
+ include Google::Apis::Core::Hashable
2364
+
2365
+ # Label for extra metadata.
2366
+ # Corresponds to the JSON property `label`
2367
+ # @return [String]
2368
+ attr_accessor :label
2369
+
2370
+ # The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
2371
+ # For more information, see
2372
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2373
+ # Corresponds to the JSON property `languageCode`
2374
+ # @return [String]
2375
+ attr_accessor :language_code
2376
+
2377
+ def initialize(**args)
2378
+ update!(**args)
2379
+ end
2380
+
2381
+ # Update properties of this object
2382
+ def update!(**args)
2383
+ @label = args[:label] if args.key?(:label)
2384
+ @language_code = args[:language_code] if args.key?(:language_code)
2385
+ end
2386
+ end
2387
+
2388
+ # Metadata for web pages.
2389
+ class GoogleCloudVisionV1p2beta1WebDetectionWebPage
2390
+ include Google::Apis::Core::Hashable
2391
+
2392
+ # Fully matching images on the page.
2393
+ # Can include resized copies of the query image.
2394
+ # Corresponds to the JSON property `fullMatchingImages`
2395
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
2396
+ attr_accessor :full_matching_images
2397
+
2398
+ # Title for the web page, may contain HTML markups.
2399
+ # Corresponds to the JSON property `pageTitle`
2400
+ # @return [String]
2401
+ attr_accessor :page_title
2402
+
2403
+ # Partial matching images on the page.
2404
+ # Those images are similar enough to share some key-point features. For
2405
+ # example an original image will likely have partial matching for its
2406
+ # crops.
2407
+ # Corresponds to the JSON property `partialMatchingImages`
2408
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
2409
+ attr_accessor :partial_matching_images
2410
+
2411
+ # (Deprecated) Overall relevancy score for the web page.
2412
+ # Corresponds to the JSON property `score`
2413
+ # @return [Float]
2414
+ attr_accessor :score
2415
+
2416
+ # The result web page URL.
2417
+ # Corresponds to the JSON property `url`
2418
+ # @return [String]
2419
+ attr_accessor :url
2420
+
2421
+ def initialize(**args)
2422
+ update!(**args)
2423
+ end
2424
+
2425
+ # Update properties of this object
2426
+ def update!(**args)
2427
+ @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
2428
+ @page_title = args[:page_title] if args.key?(:page_title)
2429
+ @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
2430
+ @score = args[:score] if args.key?(:score)
2431
+ @url = args[:url] if args.key?(:url)
2432
+ end
2433
+ end
2434
+
2435
+ # A word representation.
2436
+ class GoogleCloudVisionV1p2beta1Word
2437
+ include Google::Apis::Core::Hashable
2438
+
2439
+ # A bounding polygon for the detected image annotation.
2440
+ # Corresponds to the JSON property `boundingBox`
2441
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
2442
+ attr_accessor :bounding_box
2443
+
2444
+ # Confidence of the OCR results for the word. Range [0, 1].
2445
+ # Corresponds to the JSON property `confidence`
2446
+ # @return [Float]
2447
+ attr_accessor :confidence
2448
+
2449
+ # Additional information detected on the structural component.
2450
+ # Corresponds to the JSON property `property`
2451
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
2452
+ attr_accessor :property
2453
+
2454
+ # List of symbols in the word.
2455
+ # The order of the symbols follows the natural reading order.
2456
+ # Corresponds to the JSON property `symbols`
2457
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Symbol>]
2458
+ attr_accessor :symbols
2459
+
2460
+ def initialize(**args)
2461
+ update!(**args)
2462
+ end
2463
+
2464
+ # Update properties of this object
2465
+ def update!(**args)
2466
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
2467
+ @confidence = args[:confidence] if args.key?(:confidence)
2468
+ @property = args[:property] if args.key?(:property)
2469
+ @symbols = args[:symbols] if args.key?(:symbols)
1091
2470
  end
1092
2471
  end
1093
2472