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
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1p1beta1
29
29
  VERSION = 'V1p1beta1'
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'
@@ -1701,6 +1701,164 @@ module Google
1701
1701
  end
1702
1702
  end
1703
1703
 
1704
+ # Response to a single file annotation request. A file may contain one or more
1705
+ # images, which individually have their own responses.
1706
+ class GoogleCloudVisionV1p2beta1AnnotateFileResponse
1707
+ include Google::Apis::Core::Hashable
1708
+
1709
+ # The desired input location and metadata.
1710
+ # Corresponds to the JSON property `inputConfig`
1711
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1InputConfig]
1712
+ attr_accessor :input_config
1713
+
1714
+ # Individual responses to images found within the file.
1715
+ # Corresponds to the JSON property `responses`
1716
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1AnnotateImageResponse>]
1717
+ attr_accessor :responses
1718
+
1719
+ def initialize(**args)
1720
+ update!(**args)
1721
+ end
1722
+
1723
+ # Update properties of this object
1724
+ def update!(**args)
1725
+ @input_config = args[:input_config] if args.key?(:input_config)
1726
+ @responses = args[:responses] if args.key?(:responses)
1727
+ end
1728
+ end
1729
+
1730
+ # Response to an image annotation request.
1731
+ class GoogleCloudVisionV1p2beta1AnnotateImageResponse
1732
+ include Google::Apis::Core::Hashable
1733
+
1734
+ # If an image was produced from a file (e.g. a PDF), this message gives
1735
+ # information about the source of that image.
1736
+ # Corresponds to the JSON property `context`
1737
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ImageAnnotationContext]
1738
+ attr_accessor :context
1739
+
1740
+ # Set of crop hints that are used to generate new crops when serving images.
1741
+ # Corresponds to the JSON property `cropHintsAnnotation`
1742
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1CropHintsAnnotation]
1743
+ attr_accessor :crop_hints_annotation
1744
+
1745
+ # The `Status` type defines a logical error model that is suitable for different
1746
+ # programming environments, including REST APIs and RPC APIs. It is used by
1747
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
1748
+ # - Simple to use and understand for most users
1749
+ # - Flexible enough to meet unexpected needs
1750
+ # # Overview
1751
+ # The `Status` message contains three pieces of data: error code, error message,
1752
+ # and error details. The error code should be an enum value of
1753
+ # google.rpc.Code, but it may accept additional error codes if needed. The
1754
+ # error message should be a developer-facing English message that helps
1755
+ # developers *understand* and *resolve* the error. If a localized user-facing
1756
+ # error message is needed, put the localized message in the error details or
1757
+ # localize it in the client. The optional error details may contain arbitrary
1758
+ # information about the error. There is a predefined set of error detail types
1759
+ # in the package `google.rpc` that can be used for common error conditions.
1760
+ # # Language mapping
1761
+ # The `Status` message is the logical representation of the error model, but it
1762
+ # is not necessarily the actual wire format. When the `Status` message is
1763
+ # exposed in different client libraries and different wire protocols, it can be
1764
+ # mapped differently. For example, it will likely be mapped to some exceptions
1765
+ # in Java, but more likely mapped to some error codes in C.
1766
+ # # Other uses
1767
+ # The error model and the `Status` message can be used in a variety of
1768
+ # environments, either with or without APIs, to provide a
1769
+ # consistent developer experience across different environments.
1770
+ # Example uses of this error model include:
1771
+ # - Partial errors. If a service needs to return partial errors to the client,
1772
+ # it may embed the `Status` in the normal response to indicate the partial
1773
+ # errors.
1774
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
1775
+ # have a `Status` message for error reporting.
1776
+ # - Batch operations. If a client uses batch request and batch response, the
1777
+ # `Status` message should be used directly inside batch response, one for
1778
+ # each error sub-response.
1779
+ # - Asynchronous operations. If an API call embeds asynchronous operation
1780
+ # results in its response, the status of those operations should be
1781
+ # represented directly using the `Status` message.
1782
+ # - Logging. If some API errors are stored in logs, the message `Status` could
1783
+ # be used directly after any stripping needed for security/privacy reasons.
1784
+ # Corresponds to the JSON property `error`
1785
+ # @return [Google::Apis::VisionV1p1beta1::Status]
1786
+ attr_accessor :error
1787
+
1788
+ # If present, face detection has completed successfully.
1789
+ # Corresponds to the JSON property `faceAnnotations`
1790
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1FaceAnnotation>]
1791
+ attr_accessor :face_annotations
1792
+
1793
+ # TextAnnotation contains a structured representation of OCR extracted text.
1794
+ # The hierarchy of an OCR extracted text structure is like this:
1795
+ # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
1796
+ # Each structural component, starting from Page, may further have their own
1797
+ # properties. Properties describe detected languages, breaks etc.. Please refer
1798
+ # to the TextAnnotation.TextProperty message definition below for more
1799
+ # detail.
1800
+ # Corresponds to the JSON property `fullTextAnnotation`
1801
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotation]
1802
+ attr_accessor :full_text_annotation
1803
+
1804
+ # Stores image properties, such as dominant colors.
1805
+ # Corresponds to the JSON property `imagePropertiesAnnotation`
1806
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ImageProperties]
1807
+ attr_accessor :image_properties_annotation
1808
+
1809
+ # If present, label detection has completed successfully.
1810
+ # Corresponds to the JSON property `labelAnnotations`
1811
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
1812
+ attr_accessor :label_annotations
1813
+
1814
+ # If present, landmark detection has completed successfully.
1815
+ # Corresponds to the JSON property `landmarkAnnotations`
1816
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
1817
+ attr_accessor :landmark_annotations
1818
+
1819
+ # If present, logo detection has completed successfully.
1820
+ # Corresponds to the JSON property `logoAnnotations`
1821
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
1822
+ attr_accessor :logo_annotations
1823
+
1824
+ # Set of features pertaining to the image, computed by computer vision
1825
+ # methods over safe-search verticals (for example, adult, spoof, medical,
1826
+ # violence).
1827
+ # Corresponds to the JSON property `safeSearchAnnotation`
1828
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1SafeSearchAnnotation]
1829
+ attr_accessor :safe_search_annotation
1830
+
1831
+ # If present, text (OCR) detection has completed successfully.
1832
+ # Corresponds to the JSON property `textAnnotations`
1833
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
1834
+ attr_accessor :text_annotations
1835
+
1836
+ # Relevant information for the image from the Internet.
1837
+ # Corresponds to the JSON property `webDetection`
1838
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetection]
1839
+ attr_accessor :web_detection
1840
+
1841
+ def initialize(**args)
1842
+ update!(**args)
1843
+ end
1844
+
1845
+ # Update properties of this object
1846
+ def update!(**args)
1847
+ @context = args[:context] if args.key?(:context)
1848
+ @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
1849
+ @error = args[:error] if args.key?(:error)
1850
+ @face_annotations = args[:face_annotations] if args.key?(:face_annotations)
1851
+ @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
1852
+ @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
1853
+ @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
1854
+ @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
1855
+ @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
1856
+ @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
1857
+ @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
1858
+ @web_detection = args[:web_detection] if args.key?(:web_detection)
1859
+ end
1860
+ end
1861
+
1704
1862
  # The response for a single offline file annotation request.
1705
1863
  class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse
1706
1864
  include Google::Apis::Core::Hashable
@@ -1740,25 +1898,34 @@ module Google
1740
1898
  end
1741
1899
  end
1742
1900
 
1743
- # The Google Cloud Storage location where the output will be written to.
1744
- class GoogleCloudVisionV1p2beta1GcsDestination
1901
+ # Logical element on the page.
1902
+ class GoogleCloudVisionV1p2beta1Block
1745
1903
  include Google::Apis::Core::Hashable
1746
1904
 
1747
- # Google Cloud Storage URI where the results will be stored. Results will
1748
- # be in JSON format and preceded by its corresponding input URI. This field
1749
- # can either represent a single file, or a prefix for multiple outputs.
1750
- # Prefixes must end in a `/`.
1751
- # Examples:
1752
- # * File: gs://bucket-name/filename.json
1753
- # * Prefix: gs://bucket-name/prefix/here/
1754
- # * File: gs://bucket-name/prefix/here
1755
- # If multiple outputs, each response is still AnnotateFileResponse, each of
1756
- # which contains some subset of the full list of AnnotateImageResponse.
1757
- # Multiple outputs can happen if, for example, the output JSON is too large
1758
- # and overflows into multiple sharded files.
1759
- # Corresponds to the JSON property `uri`
1905
+ # Detected block type (text, image etc) for this block.
1906
+ # Corresponds to the JSON property `blockType`
1760
1907
  # @return [String]
1761
- attr_accessor :uri
1908
+ attr_accessor :block_type
1909
+
1910
+ # A bounding polygon for the detected image annotation.
1911
+ # Corresponds to the JSON property `boundingBox`
1912
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
1913
+ attr_accessor :bounding_box
1914
+
1915
+ # Confidence of the OCR results on the block. Range [0, 1].
1916
+ # Corresponds to the JSON property `confidence`
1917
+ # @return [Float]
1918
+ attr_accessor :confidence
1919
+
1920
+ # List of paragraphs in this block (if this blocks is of type text).
1921
+ # Corresponds to the JSON property `paragraphs`
1922
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Paragraph>]
1923
+ attr_accessor :paragraphs
1924
+
1925
+ # Additional information detected on the structural component.
1926
+ # Corresponds to the JSON property `property`
1927
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
1928
+ attr_accessor :property
1762
1929
 
1763
1930
  def initialize(**args)
1764
1931
  update!(**args)
@@ -1766,28 +1933,27 @@ module Google
1766
1933
 
1767
1934
  # Update properties of this object
1768
1935
  def update!(**args)
1769
- @uri = args[:uri] if args.key?(:uri)
1936
+ @block_type = args[:block_type] if args.key?(:block_type)
1937
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
1938
+ @confidence = args[:confidence] if args.key?(:confidence)
1939
+ @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
1940
+ @property = args[:property] if args.key?(:property)
1770
1941
  end
1771
1942
  end
1772
1943
 
1773
- # Contains metadata for the BatchAnnotateImages operation.
1774
- class GoogleCloudVisionV1p2beta1OperationMetadata
1944
+ # A bounding polygon for the detected image annotation.
1945
+ class GoogleCloudVisionV1p2beta1BoundingPoly
1775
1946
  include Google::Apis::Core::Hashable
1776
1947
 
1777
- # The time when the batch request was received.
1778
- # Corresponds to the JSON property `createTime`
1779
- # @return [String]
1780
- attr_accessor :create_time
1781
-
1782
- # Current state of the batch operation.
1783
- # Corresponds to the JSON property `state`
1784
- # @return [String]
1785
- attr_accessor :state
1948
+ # The bounding polygon normalized vertices.
1949
+ # Corresponds to the JSON property `normalizedVertices`
1950
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1NormalizedVertex>]
1951
+ attr_accessor :normalized_vertices
1786
1952
 
1787
- # The time when the operation result was last updated.
1788
- # Corresponds to the JSON property `updateTime`
1789
- # @return [String]
1790
- attr_accessor :update_time
1953
+ # The bounding polygon vertices.
1954
+ # Corresponds to the JSON property `vertices`
1955
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Vertex>]
1956
+ attr_accessor :vertices
1791
1957
 
1792
1958
  def initialize(**args)
1793
1959
  update!(**args)
@@ -1795,41 +1961,1254 @@ module Google
1795
1961
 
1796
1962
  # Update properties of this object
1797
1963
  def update!(**args)
1798
- @create_time = args[:create_time] if args.key?(:create_time)
1799
- @state = args[:state] if args.key?(:state)
1800
- @update_time = args[:update_time] if args.key?(:update_time)
1964
+ @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
1965
+ @vertices = args[:vertices] if args.key?(:vertices)
1801
1966
  end
1802
1967
  end
1803
1968
 
1804
- # The desired output location and metadata.
1805
- class GoogleCloudVisionV1p2beta1OutputConfig
1969
+ # Color information consists of RGB channels, score, and the fraction of
1970
+ # the image that the color occupies in the image.
1971
+ class GoogleCloudVisionV1p2beta1ColorInfo
1806
1972
  include Google::Apis::Core::Hashable
1807
1973
 
1808
- # The max number of response protos to put into each output JSON file on GCS.
1809
- # The valid range is [1, 100]. If not specified, the default value is 20.
1810
- # For example, for one pdf file with 100 pages, 100 response protos will
1811
- # be generated. If `batch_size` = 20, then 5 json files each
1812
- # containing 20 response protos will be written under the prefix
1813
- # `gcs_destination`.`uri`.
1814
- # Currently, batch_size only applies to GcsDestination, with potential future
1815
- # support for other output configurations.
1816
- # Corresponds to the JSON property `batchSize`
1817
- # @return [Fixnum]
1818
- attr_accessor :batch_size
1819
-
1820
- # The Google Cloud Storage location where the output will be written to.
1821
- # Corresponds to the JSON property `gcsDestination`
1822
- # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1GcsDestination]
1823
- attr_accessor :gcs_destination
1824
-
1825
- def initialize(**args)
1826
- update!(**args)
1827
- end
1828
-
1829
- # Update properties of this object
1830
- def update!(**args)
1831
- @batch_size = args[:batch_size] if args.key?(:batch_size)
1832
- @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
1974
+ # Represents a color in the RGBA color space. This representation is designed
1975
+ # for simplicity of conversion to/from color representations in various
1976
+ # languages over compactness; for example, the fields of this representation
1977
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
1978
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
1979
+ # method in iOS; and, with just a little work, it can be easily formatted into
1980
+ # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
1981
+ # Example (Java):
1982
+ # import com.google.type.Color;
1983
+ # // ...
1984
+ # public static java.awt.Color fromProto(Color protocolor) `
1985
+ # float alpha = protocolor.hasAlpha()
1986
+ # ? protocolor.getAlpha().getValue()
1987
+ # : 1.0;
1988
+ # return new java.awt.Color(
1989
+ # protocolor.getRed(),
1990
+ # protocolor.getGreen(),
1991
+ # protocolor.getBlue(),
1992
+ # alpha);
1993
+ # `
1994
+ # public static Color toProto(java.awt.Color color) `
1995
+ # float red = (float) color.getRed();
1996
+ # float green = (float) color.getGreen();
1997
+ # float blue = (float) color.getBlue();
1998
+ # float denominator = 255.0;
1999
+ # Color.Builder resultBuilder =
2000
+ # Color
2001
+ # .newBuilder()
2002
+ # .setRed(red / denominator)
2003
+ # .setGreen(green / denominator)
2004
+ # .setBlue(blue / denominator);
2005
+ # int alpha = color.getAlpha();
2006
+ # if (alpha != 255) `
2007
+ # result.setAlpha(
2008
+ # FloatValue
2009
+ # .newBuilder()
2010
+ # .setValue(((float) alpha) / denominator)
2011
+ # .build());
2012
+ # `
2013
+ # return resultBuilder.build();
2014
+ # `
2015
+ # // ...
2016
+ # Example (iOS / Obj-C):
2017
+ # // ...
2018
+ # static UIColor* fromProto(Color* protocolor) `
2019
+ # float red = [protocolor red];
2020
+ # float green = [protocolor green];
2021
+ # float blue = [protocolor blue];
2022
+ # FloatValue* alpha_wrapper = [protocolor alpha];
2023
+ # float alpha = 1.0;
2024
+ # if (alpha_wrapper != nil) `
2025
+ # alpha = [alpha_wrapper value];
2026
+ # `
2027
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
2028
+ # `
2029
+ # static Color* toProto(UIColor* color) `
2030
+ # CGFloat red, green, blue, alpha;
2031
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
2032
+ # return nil;
2033
+ # `
2034
+ # Color* result = [Color alloc] init];
2035
+ # [result setRed:red];
2036
+ # [result setGreen:green];
2037
+ # [result setBlue:blue];
2038
+ # if (alpha <= 0.9999) `
2039
+ # [result setAlpha:floatWrapperWithValue(alpha)];
2040
+ # `
2041
+ # [result autorelease];
2042
+ # return result;
2043
+ # `
2044
+ # // ...
2045
+ # Example (JavaScript):
2046
+ # // ...
2047
+ # var protoToCssColor = function(rgb_color) `
2048
+ # var redFrac = rgb_color.red || 0.0;
2049
+ # var greenFrac = rgb_color.green || 0.0;
2050
+ # var blueFrac = rgb_color.blue || 0.0;
2051
+ # var red = Math.floor(redFrac * 255);
2052
+ # var green = Math.floor(greenFrac * 255);
2053
+ # var blue = Math.floor(blueFrac * 255);
2054
+ # if (!('alpha' in rgb_color)) `
2055
+ # return rgbToCssColor_(red, green, blue);
2056
+ # `
2057
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
2058
+ # var rgbParams = [red, green, blue].join(',');
2059
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
2060
+ # `;
2061
+ # var rgbToCssColor_ = function(red, green, blue) `
2062
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
2063
+ # var hexString = rgbNumber.toString(16);
2064
+ # var missingZeros = 6 - hexString.length;
2065
+ # var resultBuilder = ['#'];
2066
+ # for (var i = 0; i < missingZeros; i++) `
2067
+ # resultBuilder.push('0');
2068
+ # `
2069
+ # resultBuilder.push(hexString);
2070
+ # return resultBuilder.join('');
2071
+ # `;
2072
+ # // ...
2073
+ # Corresponds to the JSON property `color`
2074
+ # @return [Google::Apis::VisionV1p1beta1::Color]
2075
+ attr_accessor :color
2076
+
2077
+ # The fraction of pixels the color occupies in the image.
2078
+ # Value in range [0, 1].
2079
+ # Corresponds to the JSON property `pixelFraction`
2080
+ # @return [Float]
2081
+ attr_accessor :pixel_fraction
2082
+
2083
+ # Image-specific score for this color. Value in range [0, 1].
2084
+ # Corresponds to the JSON property `score`
2085
+ # @return [Float]
2086
+ attr_accessor :score
2087
+
2088
+ def initialize(**args)
2089
+ update!(**args)
2090
+ end
2091
+
2092
+ # Update properties of this object
2093
+ def update!(**args)
2094
+ @color = args[:color] if args.key?(:color)
2095
+ @pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction)
2096
+ @score = args[:score] if args.key?(:score)
2097
+ end
2098
+ end
2099
+
2100
+ # Single crop hint that is used to generate a new crop when serving an image.
2101
+ class GoogleCloudVisionV1p2beta1CropHint
2102
+ include Google::Apis::Core::Hashable
2103
+
2104
+ # A bounding polygon for the detected image annotation.
2105
+ # Corresponds to the JSON property `boundingPoly`
2106
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
2107
+ attr_accessor :bounding_poly
2108
+
2109
+ # Confidence of this being a salient region. Range [0, 1].
2110
+ # Corresponds to the JSON property `confidence`
2111
+ # @return [Float]
2112
+ attr_accessor :confidence
2113
+
2114
+ # Fraction of importance of this salient region with respect to the original
2115
+ # image.
2116
+ # Corresponds to the JSON property `importanceFraction`
2117
+ # @return [Float]
2118
+ attr_accessor :importance_fraction
2119
+
2120
+ def initialize(**args)
2121
+ update!(**args)
2122
+ end
2123
+
2124
+ # Update properties of this object
2125
+ def update!(**args)
2126
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
2127
+ @confidence = args[:confidence] if args.key?(:confidence)
2128
+ @importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction)
2129
+ end
2130
+ end
2131
+
2132
+ # Set of crop hints that are used to generate new crops when serving images.
2133
+ class GoogleCloudVisionV1p2beta1CropHintsAnnotation
2134
+ include Google::Apis::Core::Hashable
2135
+
2136
+ # Crop hint results.
2137
+ # Corresponds to the JSON property `cropHints`
2138
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1CropHint>]
2139
+ attr_accessor :crop_hints
2140
+
2141
+ def initialize(**args)
2142
+ update!(**args)
2143
+ end
2144
+
2145
+ # Update properties of this object
2146
+ def update!(**args)
2147
+ @crop_hints = args[:crop_hints] if args.key?(:crop_hints)
2148
+ end
2149
+ end
2150
+
2151
+ # Set of dominant colors and their corresponding scores.
2152
+ class GoogleCloudVisionV1p2beta1DominantColorsAnnotation
2153
+ include Google::Apis::Core::Hashable
2154
+
2155
+ # RGB color values with their score and pixel fraction.
2156
+ # Corresponds to the JSON property `colors`
2157
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ColorInfo>]
2158
+ attr_accessor :colors
2159
+
2160
+ def initialize(**args)
2161
+ update!(**args)
2162
+ end
2163
+
2164
+ # Update properties of this object
2165
+ def update!(**args)
2166
+ @colors = args[:colors] if args.key?(:colors)
2167
+ end
2168
+ end
2169
+
2170
+ # Set of detected entity features.
2171
+ class GoogleCloudVisionV1p2beta1EntityAnnotation
2172
+ include Google::Apis::Core::Hashable
2173
+
2174
+ # A bounding polygon for the detected image annotation.
2175
+ # Corresponds to the JSON property `boundingPoly`
2176
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
2177
+ attr_accessor :bounding_poly
2178
+
2179
+ # **Deprecated. Use `score` instead.**
2180
+ # The accuracy of the entity detection in an image.
2181
+ # For example, for an image in which the "Eiffel Tower" entity is detected,
2182
+ # this field represents the confidence that there is a tower in the query
2183
+ # image. Range [0, 1].
2184
+ # Corresponds to the JSON property `confidence`
2185
+ # @return [Float]
2186
+ attr_accessor :confidence
2187
+
2188
+ # Entity textual description, expressed in its `locale` language.
2189
+ # Corresponds to the JSON property `description`
2190
+ # @return [String]
2191
+ attr_accessor :description
2192
+
2193
+ # The language code for the locale in which the entity textual
2194
+ # `description` is expressed.
2195
+ # Corresponds to the JSON property `locale`
2196
+ # @return [String]
2197
+ attr_accessor :locale
2198
+
2199
+ # The location information for the detected entity. Multiple
2200
+ # `LocationInfo` elements can be present because one location may
2201
+ # indicate the location of the scene in the image, and another location
2202
+ # may indicate the location of the place where the image was taken.
2203
+ # Location information is usually present for landmarks.
2204
+ # Corresponds to the JSON property `locations`
2205
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1LocationInfo>]
2206
+ attr_accessor :locations
2207
+
2208
+ # Opaque entity ID. Some IDs may be available in
2209
+ # [Google Knowledge Graph Search
2210
+ # API](https://developers.google.com/knowledge-graph/).
2211
+ # Corresponds to the JSON property `mid`
2212
+ # @return [String]
2213
+ attr_accessor :mid
2214
+
2215
+ # Some entities may have optional user-supplied `Property` (name/value)
2216
+ # fields, such a score or string that qualifies the entity.
2217
+ # Corresponds to the JSON property `properties`
2218
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Property>]
2219
+ attr_accessor :properties
2220
+
2221
+ # Overall score of the result. Range [0, 1].
2222
+ # Corresponds to the JSON property `score`
2223
+ # @return [Float]
2224
+ attr_accessor :score
2225
+
2226
+ # The relevancy of the ICA (Image Content Annotation) label to the
2227
+ # image. For example, the relevancy of "tower" is likely higher to an image
2228
+ # containing the detected "Eiffel Tower" than to an image containing a
2229
+ # detected distant towering building, even though the confidence that
2230
+ # there is a tower in each image may be the same. Range [0, 1].
2231
+ # Corresponds to the JSON property `topicality`
2232
+ # @return [Float]
2233
+ attr_accessor :topicality
2234
+
2235
+ def initialize(**args)
2236
+ update!(**args)
2237
+ end
2238
+
2239
+ # Update properties of this object
2240
+ def update!(**args)
2241
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
2242
+ @confidence = args[:confidence] if args.key?(:confidence)
2243
+ @description = args[:description] if args.key?(:description)
2244
+ @locale = args[:locale] if args.key?(:locale)
2245
+ @locations = args[:locations] if args.key?(:locations)
2246
+ @mid = args[:mid] if args.key?(:mid)
2247
+ @properties = args[:properties] if args.key?(:properties)
2248
+ @score = args[:score] if args.key?(:score)
2249
+ @topicality = args[:topicality] if args.key?(:topicality)
2250
+ end
2251
+ end
2252
+
2253
+ # A face annotation object contains the results of face detection.
2254
+ class GoogleCloudVisionV1p2beta1FaceAnnotation
2255
+ include Google::Apis::Core::Hashable
2256
+
2257
+ # Anger likelihood.
2258
+ # Corresponds to the JSON property `angerLikelihood`
2259
+ # @return [String]
2260
+ attr_accessor :anger_likelihood
2261
+
2262
+ # Blurred likelihood.
2263
+ # Corresponds to the JSON property `blurredLikelihood`
2264
+ # @return [String]
2265
+ attr_accessor :blurred_likelihood
2266
+
2267
+ # A bounding polygon for the detected image annotation.
2268
+ # Corresponds to the JSON property `boundingPoly`
2269
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
2270
+ attr_accessor :bounding_poly
2271
+
2272
+ # Detection confidence. Range [0, 1].
2273
+ # Corresponds to the JSON property `detectionConfidence`
2274
+ # @return [Float]
2275
+ attr_accessor :detection_confidence
2276
+
2277
+ # A bounding polygon for the detected image annotation.
2278
+ # Corresponds to the JSON property `fdBoundingPoly`
2279
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
2280
+ attr_accessor :fd_bounding_poly
2281
+
2282
+ # Headwear likelihood.
2283
+ # Corresponds to the JSON property `headwearLikelihood`
2284
+ # @return [String]
2285
+ attr_accessor :headwear_likelihood
2286
+
2287
+ # Joy likelihood.
2288
+ # Corresponds to the JSON property `joyLikelihood`
2289
+ # @return [String]
2290
+ attr_accessor :joy_likelihood
2291
+
2292
+ # Face landmarking confidence. Range [0, 1].
2293
+ # Corresponds to the JSON property `landmarkingConfidence`
2294
+ # @return [Float]
2295
+ attr_accessor :landmarking_confidence
2296
+
2297
+ # Detected face landmarks.
2298
+ # Corresponds to the JSON property `landmarks`
2299
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1FaceAnnotationLandmark>]
2300
+ attr_accessor :landmarks
2301
+
2302
+ # Yaw angle, which indicates the leftward/rightward angle that the face is
2303
+ # pointing relative to the vertical plane perpendicular to the image. Range
2304
+ # [-180,180].
2305
+ # Corresponds to the JSON property `panAngle`
2306
+ # @return [Float]
2307
+ attr_accessor :pan_angle
2308
+
2309
+ # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
2310
+ # of the face relative to the image vertical about the axis perpendicular to
2311
+ # the face. Range [-180,180].
2312
+ # Corresponds to the JSON property `rollAngle`
2313
+ # @return [Float]
2314
+ attr_accessor :roll_angle
2315
+
2316
+ # Sorrow likelihood.
2317
+ # Corresponds to the JSON property `sorrowLikelihood`
2318
+ # @return [String]
2319
+ attr_accessor :sorrow_likelihood
2320
+
2321
+ # Surprise likelihood.
2322
+ # Corresponds to the JSON property `surpriseLikelihood`
2323
+ # @return [String]
2324
+ attr_accessor :surprise_likelihood
2325
+
2326
+ # Pitch angle, which indicates the upwards/downwards angle that the face is
2327
+ # pointing relative to the image's horizontal plane. Range [-180,180].
2328
+ # Corresponds to the JSON property `tiltAngle`
2329
+ # @return [Float]
2330
+ attr_accessor :tilt_angle
2331
+
2332
+ # Under-exposed likelihood.
2333
+ # Corresponds to the JSON property `underExposedLikelihood`
2334
+ # @return [String]
2335
+ attr_accessor :under_exposed_likelihood
2336
+
2337
+ def initialize(**args)
2338
+ update!(**args)
2339
+ end
2340
+
2341
+ # Update properties of this object
2342
+ def update!(**args)
2343
+ @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood)
2344
+ @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood)
2345
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
2346
+ @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence)
2347
+ @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly)
2348
+ @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood)
2349
+ @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood)
2350
+ @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
2351
+ @landmarks = args[:landmarks] if args.key?(:landmarks)
2352
+ @pan_angle = args[:pan_angle] if args.key?(:pan_angle)
2353
+ @roll_angle = args[:roll_angle] if args.key?(:roll_angle)
2354
+ @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood)
2355
+ @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
2356
+ @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle)
2357
+ @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood)
2358
+ end
2359
+ end
2360
+
2361
+ # A face-specific landmark (for example, a face feature).
2362
+ class GoogleCloudVisionV1p2beta1FaceAnnotationLandmark
2363
+ include Google::Apis::Core::Hashable
2364
+
2365
+ # A 3D position in the image, used primarily for Face detection landmarks.
2366
+ # A valid Position must have both x and y coordinates.
2367
+ # The position coordinates are in the same scale as the original image.
2368
+ # Corresponds to the JSON property `position`
2369
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Position]
2370
+ attr_accessor :position
2371
+
2372
+ # Face landmark type.
2373
+ # Corresponds to the JSON property `type`
2374
+ # @return [String]
2375
+ attr_accessor :type
2376
+
2377
+ def initialize(**args)
2378
+ update!(**args)
2379
+ end
2380
+
2381
+ # Update properties of this object
2382
+ def update!(**args)
2383
+ @position = args[:position] if args.key?(:position)
2384
+ @type = args[:type] if args.key?(:type)
2385
+ end
2386
+ end
2387
+
2388
+ # The Google Cloud Storage location where the output will be written to.
2389
+ class GoogleCloudVisionV1p2beta1GcsDestination
2390
+ include Google::Apis::Core::Hashable
2391
+
2392
+ # Google Cloud Storage URI where the results will be stored. Results will
2393
+ # be in JSON format and preceded by its corresponding input URI. This field
2394
+ # can either represent a single file, or a prefix for multiple outputs.
2395
+ # Prefixes must end in a `/`.
2396
+ # Examples:
2397
+ # * File: gs://bucket-name/filename.json
2398
+ # * Prefix: gs://bucket-name/prefix/here/
2399
+ # * File: gs://bucket-name/prefix/here
2400
+ # If multiple outputs, each response is still AnnotateFileResponse, each of
2401
+ # which contains some subset of the full list of AnnotateImageResponse.
2402
+ # Multiple outputs can happen if, for example, the output JSON is too large
2403
+ # and overflows into multiple sharded files.
2404
+ # Corresponds to the JSON property `uri`
2405
+ # @return [String]
2406
+ attr_accessor :uri
2407
+
2408
+ def initialize(**args)
2409
+ update!(**args)
2410
+ end
2411
+
2412
+ # Update properties of this object
2413
+ def update!(**args)
2414
+ @uri = args[:uri] if args.key?(:uri)
2415
+ end
2416
+ end
2417
+
2418
+ # The Google Cloud Storage location where the input will be read from.
2419
+ class GoogleCloudVisionV1p2beta1GcsSource
2420
+ include Google::Apis::Core::Hashable
2421
+
2422
+ # Google Cloud Storage URI for the input file. This must only be a
2423
+ # Google Cloud Storage object. Wildcards are not currently supported.
2424
+ # Corresponds to the JSON property `uri`
2425
+ # @return [String]
2426
+ attr_accessor :uri
2427
+
2428
+ def initialize(**args)
2429
+ update!(**args)
2430
+ end
2431
+
2432
+ # Update properties of this object
2433
+ def update!(**args)
2434
+ @uri = args[:uri] if args.key?(:uri)
2435
+ end
2436
+ end
2437
+
2438
+ # If an image was produced from a file (e.g. a PDF), this message gives
2439
+ # information about the source of that image.
2440
+ class GoogleCloudVisionV1p2beta1ImageAnnotationContext
2441
+ include Google::Apis::Core::Hashable
2442
+
2443
+ # If the file was a PDF or TIFF, this field gives the page number within
2444
+ # the file used to produce the image.
2445
+ # Corresponds to the JSON property `pageNumber`
2446
+ # @return [Fixnum]
2447
+ attr_accessor :page_number
2448
+
2449
+ # The URI of the file used to produce the image.
2450
+ # Corresponds to the JSON property `uri`
2451
+ # @return [String]
2452
+ attr_accessor :uri
2453
+
2454
+ def initialize(**args)
2455
+ update!(**args)
2456
+ end
2457
+
2458
+ # Update properties of this object
2459
+ def update!(**args)
2460
+ @page_number = args[:page_number] if args.key?(:page_number)
2461
+ @uri = args[:uri] if args.key?(:uri)
2462
+ end
2463
+ end
2464
+
2465
+ # Stores image properties, such as dominant colors.
2466
+ class GoogleCloudVisionV1p2beta1ImageProperties
2467
+ include Google::Apis::Core::Hashable
2468
+
2469
+ # Set of dominant colors and their corresponding scores.
2470
+ # Corresponds to the JSON property `dominantColors`
2471
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1DominantColorsAnnotation]
2472
+ attr_accessor :dominant_colors
2473
+
2474
+ def initialize(**args)
2475
+ update!(**args)
2476
+ end
2477
+
2478
+ # Update properties of this object
2479
+ def update!(**args)
2480
+ @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
2481
+ end
2482
+ end
2483
+
2484
+ # The desired input location and metadata.
2485
+ class GoogleCloudVisionV1p2beta1InputConfig
2486
+ include Google::Apis::Core::Hashable
2487
+
2488
+ # The Google Cloud Storage location where the input will be read from.
2489
+ # Corresponds to the JSON property `gcsSource`
2490
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1GcsSource]
2491
+ attr_accessor :gcs_source
2492
+
2493
+ # The type of the file. Currently only "application/pdf" and "image/tiff"
2494
+ # are supported. Wildcards are not supported.
2495
+ # Corresponds to the JSON property `mimeType`
2496
+ # @return [String]
2497
+ attr_accessor :mime_type
2498
+
2499
+ def initialize(**args)
2500
+ update!(**args)
2501
+ end
2502
+
2503
+ # Update properties of this object
2504
+ def update!(**args)
2505
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
2506
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
2507
+ end
2508
+ end
2509
+
2510
+ # Detected entity location information.
2511
+ class GoogleCloudVisionV1p2beta1LocationInfo
2512
+ include Google::Apis::Core::Hashable
2513
+
2514
+ # An object representing a latitude/longitude pair. This is expressed as a pair
2515
+ # of doubles representing degrees latitude and degrees longitude. Unless
2516
+ # specified otherwise, this must conform to the
2517
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
2518
+ # standard</a>. Values must be within normalized ranges.
2519
+ # Corresponds to the JSON property `latLng`
2520
+ # @return [Google::Apis::VisionV1p1beta1::LatLng]
2521
+ attr_accessor :lat_lng
2522
+
2523
+ def initialize(**args)
2524
+ update!(**args)
2525
+ end
2526
+
2527
+ # Update properties of this object
2528
+ def update!(**args)
2529
+ @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
2530
+ end
2531
+ end
2532
+
2533
+ # A vertex represents a 2D point in the image.
2534
+ # NOTE: the normalized vertex coordinates are relative to the original image
2535
+ # and range from 0 to 1.
2536
+ class GoogleCloudVisionV1p2beta1NormalizedVertex
2537
+ include Google::Apis::Core::Hashable
2538
+
2539
+ # X coordinate.
2540
+ # Corresponds to the JSON property `x`
2541
+ # @return [Float]
2542
+ attr_accessor :x
2543
+
2544
+ # Y coordinate.
2545
+ # Corresponds to the JSON property `y`
2546
+ # @return [Float]
2547
+ attr_accessor :y
2548
+
2549
+ def initialize(**args)
2550
+ update!(**args)
2551
+ end
2552
+
2553
+ # Update properties of this object
2554
+ def update!(**args)
2555
+ @x = args[:x] if args.key?(:x)
2556
+ @y = args[:y] if args.key?(:y)
2557
+ end
2558
+ end
2559
+
2560
+ # Contains metadata for the BatchAnnotateImages operation.
2561
+ class GoogleCloudVisionV1p2beta1OperationMetadata
2562
+ include Google::Apis::Core::Hashable
2563
+
2564
+ # The time when the batch request was received.
2565
+ # Corresponds to the JSON property `createTime`
2566
+ # @return [String]
2567
+ attr_accessor :create_time
2568
+
2569
+ # Current state of the batch operation.
2570
+ # Corresponds to the JSON property `state`
2571
+ # @return [String]
2572
+ attr_accessor :state
2573
+
2574
+ # The time when the operation result was last updated.
2575
+ # Corresponds to the JSON property `updateTime`
2576
+ # @return [String]
2577
+ attr_accessor :update_time
2578
+
2579
+ def initialize(**args)
2580
+ update!(**args)
2581
+ end
2582
+
2583
+ # Update properties of this object
2584
+ def update!(**args)
2585
+ @create_time = args[:create_time] if args.key?(:create_time)
2586
+ @state = args[:state] if args.key?(:state)
2587
+ @update_time = args[:update_time] if args.key?(:update_time)
2588
+ end
2589
+ end
2590
+
2591
+ # The desired output location and metadata.
2592
+ class GoogleCloudVisionV1p2beta1OutputConfig
2593
+ include Google::Apis::Core::Hashable
2594
+
2595
+ # The max number of response protos to put into each output JSON file on
2596
+ # Google Cloud Storage.
2597
+ # The valid range is [1, 100]. If not specified, the default value is 20.
2598
+ # For example, for one pdf file with 100 pages, 100 response protos will
2599
+ # be generated. If `batch_size` = 20, then 5 json files each
2600
+ # containing 20 response protos will be written under the prefix
2601
+ # `gcs_destination`.`uri`.
2602
+ # Currently, batch_size only applies to GcsDestination, with potential future
2603
+ # support for other output configurations.
2604
+ # Corresponds to the JSON property `batchSize`
2605
+ # @return [Fixnum]
2606
+ attr_accessor :batch_size
2607
+
2608
+ # The Google Cloud Storage location where the output will be written to.
2609
+ # Corresponds to the JSON property `gcsDestination`
2610
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1GcsDestination]
2611
+ attr_accessor :gcs_destination
2612
+
2613
+ def initialize(**args)
2614
+ update!(**args)
2615
+ end
2616
+
2617
+ # Update properties of this object
2618
+ def update!(**args)
2619
+ @batch_size = args[:batch_size] if args.key?(:batch_size)
2620
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
2621
+ end
2622
+ end
2623
+
2624
+ # Detected page from OCR.
2625
+ class GoogleCloudVisionV1p2beta1Page
2626
+ include Google::Apis::Core::Hashable
2627
+
2628
+ # List of blocks of text, images etc on this page.
2629
+ # Corresponds to the JSON property `blocks`
2630
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Block>]
2631
+ attr_accessor :blocks
2632
+
2633
+ # Confidence of the OCR results on the page. Range [0, 1].
2634
+ # Corresponds to the JSON property `confidence`
2635
+ # @return [Float]
2636
+ attr_accessor :confidence
2637
+
2638
+ # Page height. For PDFs the unit is points. For images (including
2639
+ # TIFFs) the unit is pixels.
2640
+ # Corresponds to the JSON property `height`
2641
+ # @return [Fixnum]
2642
+ attr_accessor :height
2643
+
2644
+ # Additional information detected on the structural component.
2645
+ # Corresponds to the JSON property `property`
2646
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
2647
+ attr_accessor :property
2648
+
2649
+ # Page width. For PDFs the unit is points. For images (including
2650
+ # TIFFs) the unit is pixels.
2651
+ # Corresponds to the JSON property `width`
2652
+ # @return [Fixnum]
2653
+ attr_accessor :width
2654
+
2655
+ def initialize(**args)
2656
+ update!(**args)
2657
+ end
2658
+
2659
+ # Update properties of this object
2660
+ def update!(**args)
2661
+ @blocks = args[:blocks] if args.key?(:blocks)
2662
+ @confidence = args[:confidence] if args.key?(:confidence)
2663
+ @height = args[:height] if args.key?(:height)
2664
+ @property = args[:property] if args.key?(:property)
2665
+ @width = args[:width] if args.key?(:width)
2666
+ end
2667
+ end
2668
+
2669
+ # Structural unit of text representing a number of words in certain order.
2670
+ class GoogleCloudVisionV1p2beta1Paragraph
2671
+ include Google::Apis::Core::Hashable
2672
+
2673
+ # A bounding polygon for the detected image annotation.
2674
+ # Corresponds to the JSON property `boundingBox`
2675
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
2676
+ attr_accessor :bounding_box
2677
+
2678
+ # Confidence of the OCR results for the paragraph. Range [0, 1].
2679
+ # Corresponds to the JSON property `confidence`
2680
+ # @return [Float]
2681
+ attr_accessor :confidence
2682
+
2683
+ # Additional information detected on the structural component.
2684
+ # Corresponds to the JSON property `property`
2685
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
2686
+ attr_accessor :property
2687
+
2688
+ # List of words in this paragraph.
2689
+ # Corresponds to the JSON property `words`
2690
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Word>]
2691
+ attr_accessor :words
2692
+
2693
+ def initialize(**args)
2694
+ update!(**args)
2695
+ end
2696
+
2697
+ # Update properties of this object
2698
+ def update!(**args)
2699
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
2700
+ @confidence = args[:confidence] if args.key?(:confidence)
2701
+ @property = args[:property] if args.key?(:property)
2702
+ @words = args[:words] if args.key?(:words)
2703
+ end
2704
+ end
2705
+
2706
+ # A 3D position in the image, used primarily for Face detection landmarks.
2707
+ # A valid Position must have both x and y coordinates.
2708
+ # The position coordinates are in the same scale as the original image.
2709
+ class GoogleCloudVisionV1p2beta1Position
2710
+ include Google::Apis::Core::Hashable
2711
+
2712
+ # X coordinate.
2713
+ # Corresponds to the JSON property `x`
2714
+ # @return [Float]
2715
+ attr_accessor :x
2716
+
2717
+ # Y coordinate.
2718
+ # Corresponds to the JSON property `y`
2719
+ # @return [Float]
2720
+ attr_accessor :y
2721
+
2722
+ # Z coordinate (or depth).
2723
+ # Corresponds to the JSON property `z`
2724
+ # @return [Float]
2725
+ attr_accessor :z
2726
+
2727
+ def initialize(**args)
2728
+ update!(**args)
2729
+ end
2730
+
2731
+ # Update properties of this object
2732
+ def update!(**args)
2733
+ @x = args[:x] if args.key?(:x)
2734
+ @y = args[:y] if args.key?(:y)
2735
+ @z = args[:z] if args.key?(:z)
2736
+ end
2737
+ end
2738
+
2739
+ # A `Property` consists of a user-supplied name/value pair.
2740
+ class GoogleCloudVisionV1p2beta1Property
2741
+ include Google::Apis::Core::Hashable
2742
+
2743
+ # Name of the property.
2744
+ # Corresponds to the JSON property `name`
2745
+ # @return [String]
2746
+ attr_accessor :name
2747
+
2748
+ # Value of numeric properties.
2749
+ # Corresponds to the JSON property `uint64Value`
2750
+ # @return [Fixnum]
2751
+ attr_accessor :uint64_value
2752
+
2753
+ # Value of the property.
2754
+ # Corresponds to the JSON property `value`
2755
+ # @return [String]
2756
+ attr_accessor :value
2757
+
2758
+ def initialize(**args)
2759
+ update!(**args)
2760
+ end
2761
+
2762
+ # Update properties of this object
2763
+ def update!(**args)
2764
+ @name = args[:name] if args.key?(:name)
2765
+ @uint64_value = args[:uint64_value] if args.key?(:uint64_value)
2766
+ @value = args[:value] if args.key?(:value)
2767
+ end
2768
+ end
2769
+
2770
+ # Set of features pertaining to the image, computed by computer vision
2771
+ # methods over safe-search verticals (for example, adult, spoof, medical,
2772
+ # violence).
2773
+ class GoogleCloudVisionV1p2beta1SafeSearchAnnotation
2774
+ include Google::Apis::Core::Hashable
2775
+
2776
+ # Represents the adult content likelihood for the image. Adult content may
2777
+ # contain elements such as nudity, pornographic images or cartoons, or
2778
+ # sexual activities.
2779
+ # Corresponds to the JSON property `adult`
2780
+ # @return [String]
2781
+ attr_accessor :adult
2782
+
2783
+ # Likelihood that this is a medical image.
2784
+ # Corresponds to the JSON property `medical`
2785
+ # @return [String]
2786
+ attr_accessor :medical
2787
+
2788
+ # Likelihood that the request image contains racy content. Racy content may
2789
+ # include (but is not limited to) skimpy or sheer clothing, strategically
2790
+ # covered nudity, lewd or provocative poses, or close-ups of sensitive
2791
+ # body areas.
2792
+ # Corresponds to the JSON property `racy`
2793
+ # @return [String]
2794
+ attr_accessor :racy
2795
+
2796
+ # Spoof likelihood. The likelihood that an modification
2797
+ # was made to the image's canonical version to make it appear
2798
+ # funny or offensive.
2799
+ # Corresponds to the JSON property `spoof`
2800
+ # @return [String]
2801
+ attr_accessor :spoof
2802
+
2803
+ # Likelihood that this image contains violent content.
2804
+ # Corresponds to the JSON property `violence`
2805
+ # @return [String]
2806
+ attr_accessor :violence
2807
+
2808
+ def initialize(**args)
2809
+ update!(**args)
2810
+ end
2811
+
2812
+ # Update properties of this object
2813
+ def update!(**args)
2814
+ @adult = args[:adult] if args.key?(:adult)
2815
+ @medical = args[:medical] if args.key?(:medical)
2816
+ @racy = args[:racy] if args.key?(:racy)
2817
+ @spoof = args[:spoof] if args.key?(:spoof)
2818
+ @violence = args[:violence] if args.key?(:violence)
2819
+ end
2820
+ end
2821
+
2822
+ # A single symbol representation.
2823
+ class GoogleCloudVisionV1p2beta1Symbol
2824
+ include Google::Apis::Core::Hashable
2825
+
2826
+ # A bounding polygon for the detected image annotation.
2827
+ # Corresponds to the JSON property `boundingBox`
2828
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
2829
+ attr_accessor :bounding_box
2830
+
2831
+ # Confidence of the OCR results for the symbol. Range [0, 1].
2832
+ # Corresponds to the JSON property `confidence`
2833
+ # @return [Float]
2834
+ attr_accessor :confidence
2835
+
2836
+ # Additional information detected on the structural component.
2837
+ # Corresponds to the JSON property `property`
2838
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
2839
+ attr_accessor :property
2840
+
2841
+ # The actual UTF-8 representation of the symbol.
2842
+ # Corresponds to the JSON property `text`
2843
+ # @return [String]
2844
+ attr_accessor :text
2845
+
2846
+ def initialize(**args)
2847
+ update!(**args)
2848
+ end
2849
+
2850
+ # Update properties of this object
2851
+ def update!(**args)
2852
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
2853
+ @confidence = args[:confidence] if args.key?(:confidence)
2854
+ @property = args[:property] if args.key?(:property)
2855
+ @text = args[:text] if args.key?(:text)
2856
+ end
2857
+ end
2858
+
2859
+ # TextAnnotation contains a structured representation of OCR extracted text.
2860
+ # The hierarchy of an OCR extracted text structure is like this:
2861
+ # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
2862
+ # Each structural component, starting from Page, may further have their own
2863
+ # properties. Properties describe detected languages, breaks etc.. Please refer
2864
+ # to the TextAnnotation.TextProperty message definition below for more
2865
+ # detail.
2866
+ class GoogleCloudVisionV1p2beta1TextAnnotation
2867
+ include Google::Apis::Core::Hashable
2868
+
2869
+ # List of pages detected by OCR.
2870
+ # Corresponds to the JSON property `pages`
2871
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Page>]
2872
+ attr_accessor :pages
2873
+
2874
+ # UTF-8 text detected on the pages.
2875
+ # Corresponds to the JSON property `text`
2876
+ # @return [String]
2877
+ attr_accessor :text
2878
+
2879
+ def initialize(**args)
2880
+ update!(**args)
2881
+ end
2882
+
2883
+ # Update properties of this object
2884
+ def update!(**args)
2885
+ @pages = args[:pages] if args.key?(:pages)
2886
+ @text = args[:text] if args.key?(:text)
2887
+ end
2888
+ end
2889
+
2890
+ # Detected start or end of a structural component.
2891
+ class GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak
2892
+ include Google::Apis::Core::Hashable
2893
+
2894
+ # True if break prepends the element.
2895
+ # Corresponds to the JSON property `isPrefix`
2896
+ # @return [Boolean]
2897
+ attr_accessor :is_prefix
2898
+ alias_method :is_prefix?, :is_prefix
2899
+
2900
+ # Detected break type.
2901
+ # Corresponds to the JSON property `type`
2902
+ # @return [String]
2903
+ attr_accessor :type
2904
+
2905
+ def initialize(**args)
2906
+ update!(**args)
2907
+ end
2908
+
2909
+ # Update properties of this object
2910
+ def update!(**args)
2911
+ @is_prefix = args[:is_prefix] if args.key?(:is_prefix)
2912
+ @type = args[:type] if args.key?(:type)
2913
+ end
2914
+ end
2915
+
2916
+ # Detected language for a structural component.
2917
+ class GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage
2918
+ include Google::Apis::Core::Hashable
2919
+
2920
+ # Confidence of detected language. Range [0, 1].
2921
+ # Corresponds to the JSON property `confidence`
2922
+ # @return [Float]
2923
+ attr_accessor :confidence
2924
+
2925
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
2926
+ # information, see
2927
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2928
+ # Corresponds to the JSON property `languageCode`
2929
+ # @return [String]
2930
+ attr_accessor :language_code
2931
+
2932
+ def initialize(**args)
2933
+ update!(**args)
2934
+ end
2935
+
2936
+ # Update properties of this object
2937
+ def update!(**args)
2938
+ @confidence = args[:confidence] if args.key?(:confidence)
2939
+ @language_code = args[:language_code] if args.key?(:language_code)
2940
+ end
2941
+ end
2942
+
2943
+ # Additional information detected on the structural component.
2944
+ class GoogleCloudVisionV1p2beta1TextAnnotationTextProperty
2945
+ include Google::Apis::Core::Hashable
2946
+
2947
+ # Detected start or end of a structural component.
2948
+ # Corresponds to the JSON property `detectedBreak`
2949
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak]
2950
+ attr_accessor :detected_break
2951
+
2952
+ # A list of detected languages together with confidence.
2953
+ # Corresponds to the JSON property `detectedLanguages`
2954
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage>]
2955
+ attr_accessor :detected_languages
2956
+
2957
+ def initialize(**args)
2958
+ update!(**args)
2959
+ end
2960
+
2961
+ # Update properties of this object
2962
+ def update!(**args)
2963
+ @detected_break = args[:detected_break] if args.key?(:detected_break)
2964
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
2965
+ end
2966
+ end
2967
+
2968
+ # A vertex represents a 2D point in the image.
2969
+ # NOTE: the vertex coordinates are in the same scale as the original image.
2970
+ class GoogleCloudVisionV1p2beta1Vertex
2971
+ include Google::Apis::Core::Hashable
2972
+
2973
+ # X coordinate.
2974
+ # Corresponds to the JSON property `x`
2975
+ # @return [Fixnum]
2976
+ attr_accessor :x
2977
+
2978
+ # Y coordinate.
2979
+ # Corresponds to the JSON property `y`
2980
+ # @return [Fixnum]
2981
+ attr_accessor :y
2982
+
2983
+ def initialize(**args)
2984
+ update!(**args)
2985
+ end
2986
+
2987
+ # Update properties of this object
2988
+ def update!(**args)
2989
+ @x = args[:x] if args.key?(:x)
2990
+ @y = args[:y] if args.key?(:y)
2991
+ end
2992
+ end
2993
+
2994
+ # Relevant information for the image from the Internet.
2995
+ class GoogleCloudVisionV1p2beta1WebDetection
2996
+ include Google::Apis::Core::Hashable
2997
+
2998
+ # Best guess text labels for the request image.
2999
+ # Corresponds to the JSON property `bestGuessLabels`
3000
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebLabel>]
3001
+ attr_accessor :best_guess_labels
3002
+
3003
+ # Fully matching images from the Internet.
3004
+ # Can include resized copies of the query image.
3005
+ # Corresponds to the JSON property `fullMatchingImages`
3006
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
3007
+ attr_accessor :full_matching_images
3008
+
3009
+ # Web pages containing the matching images from the Internet.
3010
+ # Corresponds to the JSON property `pagesWithMatchingImages`
3011
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebPage>]
3012
+ attr_accessor :pages_with_matching_images
3013
+
3014
+ # Partial matching images from the Internet.
3015
+ # Those images are similar enough to share some key-point features. For
3016
+ # example an original image will likely have partial matching for its crops.
3017
+ # Corresponds to the JSON property `partialMatchingImages`
3018
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
3019
+ attr_accessor :partial_matching_images
3020
+
3021
+ # The visually similar image results.
3022
+ # Corresponds to the JSON property `visuallySimilarImages`
3023
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
3024
+ attr_accessor :visually_similar_images
3025
+
3026
+ # Deduced entities from similar images on the Internet.
3027
+ # Corresponds to the JSON property `webEntities`
3028
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebEntity>]
3029
+ attr_accessor :web_entities
3030
+
3031
+ def initialize(**args)
3032
+ update!(**args)
3033
+ end
3034
+
3035
+ # Update properties of this object
3036
+ def update!(**args)
3037
+ @best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
3038
+ @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
3039
+ @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
3040
+ @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
3041
+ @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
3042
+ @web_entities = args[:web_entities] if args.key?(:web_entities)
3043
+ end
3044
+ end
3045
+
3046
+ # Entity deduced from similar images on the Internet.
3047
+ class GoogleCloudVisionV1p2beta1WebDetectionWebEntity
3048
+ include Google::Apis::Core::Hashable
3049
+
3050
+ # Canonical description of the entity, in English.
3051
+ # Corresponds to the JSON property `description`
3052
+ # @return [String]
3053
+ attr_accessor :description
3054
+
3055
+ # Opaque entity ID.
3056
+ # Corresponds to the JSON property `entityId`
3057
+ # @return [String]
3058
+ attr_accessor :entity_id
3059
+
3060
+ # Overall relevancy score for the entity.
3061
+ # Not normalized and not comparable across different image queries.
3062
+ # Corresponds to the JSON property `score`
3063
+ # @return [Float]
3064
+ attr_accessor :score
3065
+
3066
+ def initialize(**args)
3067
+ update!(**args)
3068
+ end
3069
+
3070
+ # Update properties of this object
3071
+ def update!(**args)
3072
+ @description = args[:description] if args.key?(:description)
3073
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
3074
+ @score = args[:score] if args.key?(:score)
3075
+ end
3076
+ end
3077
+
3078
+ # Metadata for online images.
3079
+ class GoogleCloudVisionV1p2beta1WebDetectionWebImage
3080
+ include Google::Apis::Core::Hashable
3081
+
3082
+ # (Deprecated) Overall relevancy score for the image.
3083
+ # Corresponds to the JSON property `score`
3084
+ # @return [Float]
3085
+ attr_accessor :score
3086
+
3087
+ # The result image URL.
3088
+ # Corresponds to the JSON property `url`
3089
+ # @return [String]
3090
+ attr_accessor :url
3091
+
3092
+ def initialize(**args)
3093
+ update!(**args)
3094
+ end
3095
+
3096
+ # Update properties of this object
3097
+ def update!(**args)
3098
+ @score = args[:score] if args.key?(:score)
3099
+ @url = args[:url] if args.key?(:url)
3100
+ end
3101
+ end
3102
+
3103
+ # Label to provide extra metadata for the web detection.
3104
+ class GoogleCloudVisionV1p2beta1WebDetectionWebLabel
3105
+ include Google::Apis::Core::Hashable
3106
+
3107
+ # Label for extra metadata.
3108
+ # Corresponds to the JSON property `label`
3109
+ # @return [String]
3110
+ attr_accessor :label
3111
+
3112
+ # The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
3113
+ # For more information, see
3114
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
3115
+ # Corresponds to the JSON property `languageCode`
3116
+ # @return [String]
3117
+ attr_accessor :language_code
3118
+
3119
+ def initialize(**args)
3120
+ update!(**args)
3121
+ end
3122
+
3123
+ # Update properties of this object
3124
+ def update!(**args)
3125
+ @label = args[:label] if args.key?(:label)
3126
+ @language_code = args[:language_code] if args.key?(:language_code)
3127
+ end
3128
+ end
3129
+
3130
+ # Metadata for web pages.
3131
+ class GoogleCloudVisionV1p2beta1WebDetectionWebPage
3132
+ include Google::Apis::Core::Hashable
3133
+
3134
+ # Fully matching images on the page.
3135
+ # Can include resized copies of the query image.
3136
+ # Corresponds to the JSON property `fullMatchingImages`
3137
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
3138
+ attr_accessor :full_matching_images
3139
+
3140
+ # Title for the web page, may contain HTML markups.
3141
+ # Corresponds to the JSON property `pageTitle`
3142
+ # @return [String]
3143
+ attr_accessor :page_title
3144
+
3145
+ # Partial matching images on the page.
3146
+ # Those images are similar enough to share some key-point features. For
3147
+ # example an original image will likely have partial matching for its
3148
+ # crops.
3149
+ # Corresponds to the JSON property `partialMatchingImages`
3150
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
3151
+ attr_accessor :partial_matching_images
3152
+
3153
+ # (Deprecated) Overall relevancy score for the web page.
3154
+ # Corresponds to the JSON property `score`
3155
+ # @return [Float]
3156
+ attr_accessor :score
3157
+
3158
+ # The result web page URL.
3159
+ # Corresponds to the JSON property `url`
3160
+ # @return [String]
3161
+ attr_accessor :url
3162
+
3163
+ def initialize(**args)
3164
+ update!(**args)
3165
+ end
3166
+
3167
+ # Update properties of this object
3168
+ def update!(**args)
3169
+ @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
3170
+ @page_title = args[:page_title] if args.key?(:page_title)
3171
+ @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
3172
+ @score = args[:score] if args.key?(:score)
3173
+ @url = args[:url] if args.key?(:url)
3174
+ end
3175
+ end
3176
+
3177
+ # A word representation.
3178
+ class GoogleCloudVisionV1p2beta1Word
3179
+ include Google::Apis::Core::Hashable
3180
+
3181
+ # A bounding polygon for the detected image annotation.
3182
+ # Corresponds to the JSON property `boundingBox`
3183
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
3184
+ attr_accessor :bounding_box
3185
+
3186
+ # Confidence of the OCR results for the word. Range [0, 1].
3187
+ # Corresponds to the JSON property `confidence`
3188
+ # @return [Float]
3189
+ attr_accessor :confidence
3190
+
3191
+ # Additional information detected on the structural component.
3192
+ # Corresponds to the JSON property `property`
3193
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
3194
+ attr_accessor :property
3195
+
3196
+ # List of symbols in the word.
3197
+ # The order of the symbols follows the natural reading order.
3198
+ # Corresponds to the JSON property `symbols`
3199
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Symbol>]
3200
+ attr_accessor :symbols
3201
+
3202
+ def initialize(**args)
3203
+ update!(**args)
3204
+ end
3205
+
3206
+ # Update properties of this object
3207
+ def update!(**args)
3208
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
3209
+ @confidence = args[:confidence] if args.key?(:confidence)
3210
+ @property = args[:property] if args.key?(:property)
3211
+ @symbols = args[:symbols] if args.key?(:symbols)
1833
3212
  end
1834
3213
  end
1835
3214