google-api-client 0.29.1 → 0.29.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (472) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +102 -0
  3. data/README.md +1 -1
  4. data/bin/generate-api +4 -2
  5. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +2 -2
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -1
  7. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  8. data/generated/google/apis/accessapproval_v1beta1/classes.rb +27 -0
  9. data/generated/google/apis/accessapproval_v1beta1/representations.rb +15 -0
  10. data/generated/google/apis/accessapproval_v1beta1/service.rb +18 -18
  11. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  12. data/generated/google/apis/accesscontextmanager_v1/classes.rb +1 -1
  13. data/generated/google/apis/accesscontextmanager_v1/service.rb +19 -19
  14. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  15. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +1 -1
  16. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +16 -16
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +0 -69
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -32
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +62 -62
  21. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +7 -7
  22. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -21
  23. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +38 -38
  24. data/generated/google/apis/adexperiencereport_v1/service.rb +2 -2
  25. data/generated/google/apis/admin_datatransfer_v1/service.rb +5 -5
  26. data/generated/google/apis/admin_directory_v1/service.rb +113 -113
  27. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  28. data/generated/google/apis/adsense_v1_4/service.rb +39 -39
  29. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -26
  30. data/generated/google/apis/alertcenter_v1beta1/service.rb +8 -8
  31. data/generated/google/apis/analytics_v2_4/service.rb +6 -6
  32. data/generated/google/apis/analytics_v3/service.rb +88 -88
  33. data/generated/google/apis/analyticsreporting_v4/service.rb +2 -2
  34. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  35. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +1 -1
  36. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +26 -26
  37. data/generated/google/apis/androidenterprise_v1/service.rb +85 -85
  38. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  39. data/generated/google/apis/androidmanagement_v1/classes.rb +111 -2
  40. data/generated/google/apis/androidmanagement_v1/representations.rb +48 -0
  41. data/generated/google/apis/androidmanagement_v1/service.rb +26 -26
  42. data/generated/google/apis/androidpublisher_v1/service.rb +2 -2
  43. data/generated/google/apis/androidpublisher_v1_1/service.rb +3 -3
  44. data/generated/google/apis/androidpublisher_v2/service.rb +58 -58
  45. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  46. data/generated/google/apis/androidpublisher_v3/classes.rb +81 -0
  47. data/generated/google/apis/androidpublisher_v3/representations.rb +42 -0
  48. data/generated/google/apis/androidpublisher_v3/service.rb +228 -52
  49. data/generated/google/apis/appengine_v1.rb +1 -1
  50. data/generated/google/apis/appengine_v1/classes.rb +2 -2
  51. data/generated/google/apis/appengine_v1/service.rb +38 -38
  52. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  53. data/generated/google/apis/appengine_v1alpha/classes.rb +2 -2
  54. data/generated/google/apis/appengine_v1alpha/service.rb +15 -15
  55. data/generated/google/apis/appengine_v1beta.rb +1 -1
  56. data/generated/google/apis/appengine_v1beta/classes.rb +2 -2
  57. data/generated/google/apis/appengine_v1beta/service.rb +38 -38
  58. data/generated/google/apis/appengine_v1beta4/service.rb +20 -20
  59. data/generated/google/apis/appengine_v1beta5/service.rb +20 -20
  60. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  61. data/generated/google/apis/appsmarket_v2/service.rb +3 -3
  62. data/generated/google/apis/appstate_v1/service.rb +5 -5
  63. data/generated/google/apis/bigquery_v2.rb +1 -1
  64. data/generated/google/apis/bigquery_v2/classes.rb +934 -0
  65. data/generated/google/apis/bigquery_v2/representations.rb +367 -0
  66. data/generated/google/apis/bigquery_v2/service.rb +184 -22
  67. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +30 -30
  68. data/generated/google/apis/bigtableadmin_v1/service.rb +2 -2
  69. data/generated/google/apis/bigtableadmin_v2/service.rb +34 -34
  70. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  71. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +17 -13
  72. data/generated/google/apis/blogger_v2/service.rb +9 -9
  73. data/generated/google/apis/blogger_v3/service.rb +33 -33
  74. data/generated/google/apis/books_v1/service.rb +51 -51
  75. data/generated/google/apis/calendar_v3/service.rb +37 -37
  76. data/generated/google/apis/chat_v1/service.rb +8 -8
  77. data/generated/google/apis/civicinfo_v2/service.rb +5 -5
  78. data/generated/google/apis/classroom_v1.rb +1 -1
  79. data/generated/google/apis/classroom_v1/service.rb +57 -56
  80. data/generated/google/apis/cloudasset_v1/service.rb +3 -3
  81. data/generated/google/apis/cloudasset_v1beta1/service.rb +8 -8
  82. data/generated/google/apis/cloudbilling_v1/service.rb +12 -12
  83. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  84. data/generated/google/apis/cloudbuild_v1/classes.rb +1 -1
  85. data/generated/google/apis/cloudbuild_v1/service.rb +14 -14
  86. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +5 -5
  87. data/generated/google/apis/clouddebugger_v2/service.rb +8 -8
  88. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +6 -6
  89. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  90. data/generated/google/apis/cloudfunctions_v1/classes.rb +1 -1
  91. data/generated/google/apis/cloudfunctions_v1/service.rb +14 -14
  92. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  93. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +1 -1
  94. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +11 -11
  95. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  96. data/generated/google/apis/cloudidentity_v1/classes.rb +1 -1
  97. data/generated/google/apis/cloudidentity_v1/service.rb +12 -12
  98. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  99. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1 -1
  100. data/generated/google/apis/cloudidentity_v1beta1/service.rb +11 -11
  101. data/generated/google/apis/cloudiot_v1.rb +1 -1
  102. data/generated/google/apis/cloudiot_v1/service.rb +23 -330
  103. data/generated/google/apis/cloudkms_v1/service.rb +30 -30
  104. data/generated/google/apis/cloudprivatecatalog_v1beta1.rb +2 -2
  105. data/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb +10 -10
  106. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +2 -2
  107. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +1 -1
  108. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +30 -30
  109. data/generated/google/apis/cloudprofiler_v2/service.rb +3 -3
  110. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  111. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
  112. data/generated/google/apis/cloudresourcemanager_v1/service.rb +38 -38
  113. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +16 -16
  114. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  115. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +1 -1
  116. data/generated/google/apis/cloudresourcemanager_v2/service.rb +12 -12
  117. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  118. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +1 -1
  119. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +12 -12
  120. data/generated/google/apis/cloudscheduler_v1/service.rb +10 -10
  121. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +10 -10
  122. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  123. data/generated/google/apis/cloudsearch_v1/classes.rb +1 -1
  124. data/generated/google/apis/cloudsearch_v1/service.rb +35 -35
  125. data/generated/google/apis/cloudshell_v1.rb +1 -1
  126. data/generated/google/apis/cloudshell_v1/classes.rb +1 -1
  127. data/generated/google/apis/cloudshell_v1/service.rb +4 -4
  128. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  129. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +1 -1
  130. data/generated/google/apis/cloudshell_v1alpha1/service.rb +6 -6
  131. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  132. data/generated/google/apis/cloudtasks_v2/classes.rb +22 -18
  133. data/generated/google/apis/cloudtasks_v2/service.rb +24 -24
  134. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  135. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +22 -14
  136. data/generated/google/apis/cloudtasks_v2beta2/service.rb +28 -28
  137. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  138. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +266 -18
  139. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +65 -0
  140. data/generated/google/apis/cloudtasks_v2beta3/service.rb +24 -24
  141. data/generated/google/apis/cloudtrace_v1/service.rb +3 -3
  142. data/generated/google/apis/cloudtrace_v2/service.rb +2 -2
  143. data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +2 -2
  144. data/generated/google/apis/composer_v1/service.rb +9 -9
  145. data/generated/google/apis/composer_v1beta1/service.rb +9 -9
  146. data/generated/google/apis/compute_alpha.rb +1 -1
  147. data/generated/google/apis/compute_alpha/classes.rb +29 -0
  148. data/generated/google/apis/compute_alpha/representations.rb +15 -0
  149. data/generated/google/apis/compute_alpha/service.rb +625 -623
  150. data/generated/google/apis/compute_beta.rb +1 -1
  151. data/generated/google/apis/compute_beta/service.rb +504 -503
  152. data/generated/google/apis/compute_v1.rb +1 -1
  153. data/generated/google/apis/compute_v1/service.rb +411 -410
  154. data/generated/google/apis/container_v1.rb +1 -1
  155. data/generated/google/apis/container_v1/classes.rb +2 -1
  156. data/generated/google/apis/container_v1/service.rb +63 -63
  157. data/generated/google/apis/container_v1beta1.rb +1 -1
  158. data/generated/google/apis/container_v1beta1/classes.rb +52 -4
  159. data/generated/google/apis/container_v1beta1/representations.rb +20 -0
  160. data/generated/google/apis/container_v1beta1/service.rb +64 -64
  161. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  162. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +1 -1
  163. data/generated/google/apis/containeranalysis_v1alpha1/service.rb +33 -33
  164. data/generated/google/apis/containeranalysis_v1beta1/service.rb +24 -24
  165. data/generated/google/apis/content_v2.rb +1 -1
  166. data/generated/google/apis/content_v2/classes.rb +9 -3
  167. data/generated/google/apis/content_v2/service.rb +101 -105
  168. data/generated/google/apis/content_v2_1.rb +1 -1
  169. data/generated/google/apis/content_v2_1/classes.rb +9 -3
  170. data/generated/google/apis/content_v2_1/service.rb +89 -93
  171. data/generated/google/apis/customsearch_v1/service.rb +2 -2
  172. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  173. data/generated/google/apis/dataflow_v1b3/classes.rb +22 -1
  174. data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
  175. data/generated/google/apis/dataflow_v1b3/service.rb +38 -38
  176. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  177. data/generated/google/apis/datafusion_v1beta1/classes.rb +1 -1
  178. data/generated/google/apis/datafusion_v1beta1/service.rb +16 -16
  179. data/generated/google/apis/dataproc_v1.rb +1 -1
  180. data/generated/google/apis/dataproc_v1/classes.rb +2 -2
  181. data/generated/google/apis/dataproc_v1/service.rb +261 -45
  182. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  183. data/generated/google/apis/dataproc_v1beta2/classes.rb +2 -2
  184. data/generated/google/apis/dataproc_v1beta2/service.rb +62 -65
  185. data/generated/google/apis/datastore_v1.rb +1 -1
  186. data/generated/google/apis/datastore_v1/service.rb +15 -15
  187. data/generated/google/apis/datastore_v1beta1/service.rb +2 -2
  188. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  189. data/generated/google/apis/datastore_v1beta3/service.rb +7 -7
  190. data/generated/google/apis/deploymentmanager_alpha/service.rb +37 -37
  191. data/generated/google/apis/deploymentmanager_v2/service.rb +18 -18
  192. data/generated/google/apis/deploymentmanager_v2beta/service.rb +32 -32
  193. data/generated/google/apis/dfareporting_v3_1/service.rb +206 -206
  194. data/generated/google/apis/dfareporting_v3_2/service.rb +206 -206
  195. data/generated/google/apis/dfareporting_v3_3/service.rb +204 -204
  196. data/generated/google/apis/dialogflow_v2.rb +1 -1
  197. data/generated/google/apis/dialogflow_v2/classes.rb +5 -5
  198. data/generated/google/apis/dialogflow_v2/service.rb +36 -36
  199. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  200. data/generated/google/apis/dialogflow_v2beta1/classes.rb +9 -9
  201. data/generated/google/apis/dialogflow_v2beta1/service.rb +114 -70
  202. data/generated/google/apis/digitalassetlinks_v1/service.rb +2 -2
  203. data/generated/google/apis/discovery_v1/service.rb +2 -2
  204. data/generated/google/apis/dlp_v2.rb +1 -1
  205. data/generated/google/apis/dlp_v2/classes.rb +8 -2
  206. data/generated/google/apis/dlp_v2/service.rb +51 -46
  207. data/generated/google/apis/dns_v1/service.rb +15 -15
  208. data/generated/google/apis/dns_v1beta2/service.rb +21 -21
  209. data/generated/google/apis/dns_v2beta1/service.rb +15 -15
  210. data/generated/google/apis/docs_v1.rb +1 -1
  211. data/generated/google/apis/docs_v1/classes.rb +137 -0
  212. data/generated/google/apis/docs_v1/representations.rb +57 -0
  213. data/generated/google/apis/docs_v1/service.rb +3 -3
  214. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +9 -9
  215. data/generated/google/apis/doubleclicksearch_v2/service.rb +10 -10
  216. data/generated/google/apis/drive_v2/service.rb +74 -74
  217. data/generated/google/apis/drive_v3/service.rb +46 -46
  218. data/generated/google/apis/driveactivity_v2/service.rb +1 -1
  219. data/generated/google/apis/factchecktools_v1alpha1/service.rb +6 -6
  220. data/generated/google/apis/fcm_v1.rb +35 -0
  221. data/generated/google/apis/fcm_v1/classes.rb +424 -0
  222. data/generated/google/apis/fcm_v1/representations.rb +167 -0
  223. data/generated/google/apis/fcm_v1/service.rb +97 -0
  224. data/generated/google/apis/file_v1.rb +1 -1
  225. data/generated/google/apis/file_v1/classes.rb +52 -1
  226. data/generated/google/apis/file_v1/representations.rb +16 -0
  227. data/generated/google/apis/file_v1/service.rb +11 -11
  228. data/generated/google/apis/file_v1beta1.rb +1 -1
  229. data/generated/google/apis/file_v1beta1/classes.rb +52 -1
  230. data/generated/google/apis/file_v1beta1/representations.rb +16 -0
  231. data/generated/google/apis/file_v1beta1/service.rb +11 -11
  232. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -5
  233. data/generated/google/apis/firebasehosting_v1beta1/service.rb +14 -14
  234. data/generated/google/apis/firebaserules_v1/service.rb +11 -11
  235. data/generated/google/apis/firestore_v1/service.rb +28 -28
  236. data/generated/google/apis/firestore_v1beta1/service.rb +19 -19
  237. data/generated/google/apis/firestore_v1beta2/service.rb +9 -9
  238. data/generated/google/apis/fitness_v1/service.rb +13 -13
  239. data/generated/google/apis/fusiontables_v1/service.rb +32 -32
  240. data/generated/google/apis/fusiontables_v2/service.rb +34 -34
  241. data/generated/google/apis/games_configuration_v1configuration/service.rb +13 -13
  242. data/generated/google/apis/games_management_v1management/service.rb +27 -27
  243. data/generated/google/apis/games_v1/service.rb +53 -53
  244. data/generated/google/apis/genomics_v1.rb +1 -1
  245. data/generated/google/apis/genomics_v1/service.rb +3 -3
  246. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  247. data/generated/google/apis/genomics_v1alpha2/classes.rb +2 -2
  248. data/generated/google/apis/genomics_v1alpha2/service.rb +10 -10
  249. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  250. data/generated/google/apis/genomics_v2alpha1/classes.rb +7 -0
  251. data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -0
  252. data/generated/google/apis/genomics_v2alpha1/service.rb +5 -5
  253. data/generated/google/apis/gmail_v1/service.rb +68 -68
  254. data/generated/google/apis/groupsmigration_v1/service.rb +1 -1
  255. data/generated/google/apis/groupssettings_v1/service.rb +3 -3
  256. data/generated/google/apis/healthcare_v1alpha2.rb +34 -0
  257. data/generated/google/apis/healthcare_v1alpha2/classes.rb +2849 -0
  258. data/generated/google/apis/healthcare_v1alpha2/representations.rb +1260 -0
  259. data/generated/google/apis/healthcare_v1alpha2/service.rb +4011 -0
  260. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  261. data/generated/google/apis/healthcare_v1beta1/classes.rb +4 -2
  262. data/generated/google/apis/healthcare_v1beta1/service.rb +97 -87
  263. data/generated/google/apis/iam_v1/service.rb +36 -36
  264. data/generated/google/apis/iamcredentials_v1/service.rb +5 -5
  265. data/generated/google/apis/iap_v1/service.rb +3 -3
  266. data/generated/google/apis/iap_v1beta1/service.rb +3 -3
  267. data/generated/google/apis/identitytoolkit_v3/service.rb +20 -20
  268. data/generated/google/apis/indexing_v3/service.rb +2 -2
  269. data/generated/google/apis/jobs_v2/service.rb +17 -17
  270. data/generated/google/apis/jobs_v3/service.rb +15 -15
  271. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  272. data/generated/google/apis/jobs_v3p1beta1/classes.rb +2 -2
  273. data/generated/google/apis/jobs_v3p1beta1/service.rb +16 -16
  274. data/generated/google/apis/kgsearch_v1/service.rb +1 -1
  275. data/generated/google/apis/language_v1.rb +1 -1
  276. data/generated/google/apis/language_v1/service.rb +6 -6
  277. data/generated/google/apis/language_v1beta1/service.rb +4 -4
  278. data/generated/google/apis/language_v1beta2.rb +1 -1
  279. data/generated/google/apis/language_v1beta2/service.rb +6 -6
  280. data/generated/google/apis/libraryagent_v1/service.rb +6 -6
  281. data/generated/google/apis/licensing_v1/service.rb +7 -7
  282. data/generated/google/apis/logging_v2.rb +1 -1
  283. data/generated/google/apis/logging_v2/classes.rb +6 -0
  284. data/generated/google/apis/logging_v2/representations.rb +1 -0
  285. data/generated/google/apis/logging_v2/service.rb +72 -72
  286. data/generated/google/apis/manufacturers_v1/service.rb +4 -4
  287. data/generated/google/apis/mirror_v1/service.rb +24 -24
  288. data/generated/google/apis/ml_v1.rb +1 -1
  289. data/generated/google/apis/ml_v1/classes.rb +73 -55
  290. data/generated/google/apis/ml_v1/service.rb +31 -31
  291. data/generated/google/apis/monitoring_v3.rb +1 -1
  292. data/generated/google/apis/monitoring_v3/classes.rb +14 -1
  293. data/generated/google/apis/monitoring_v3/representations.rb +2 -0
  294. data/generated/google/apis/monitoring_v3/service.rb +36 -36
  295. data/generated/google/apis/oauth2_v1/service.rb +3 -3
  296. data/generated/google/apis/oauth2_v2/service.rb +4 -4
  297. data/generated/google/apis/oslogin_v1/service.rb +6 -6
  298. data/generated/google/apis/oslogin_v1alpha/service.rb +6 -6
  299. data/generated/google/apis/oslogin_v1beta/service.rb +6 -6
  300. data/generated/google/apis/pagespeedonline_v1/service.rb +1 -1
  301. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  302. data/generated/google/apis/pagespeedonline_v4/service.rb +1 -1
  303. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  304. data/generated/google/apis/pagespeedonline_v5/classes.rb +43 -0
  305. data/generated/google/apis/pagespeedonline_v5/representations.rb +18 -0
  306. data/generated/google/apis/pagespeedonline_v5/service.rb +1 -1
  307. data/generated/google/apis/people_v1.rb +1 -1
  308. data/generated/google/apis/people_v1/service.rb +13 -13
  309. data/generated/google/apis/playcustomapp_v1/service.rb +1 -1
  310. data/generated/google/apis/plus_domains_v1/service.rb +10 -10
  311. data/generated/google/apis/plus_v1/service.rb +9 -9
  312. data/generated/google/apis/poly_v1/service.rb +4 -4
  313. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +17 -17
  314. data/generated/google/apis/pubsub_v1.rb +1 -1
  315. data/generated/google/apis/pubsub_v1/service.rb +32 -32
  316. data/generated/google/apis/pubsub_v1beta1a/service.rb +15 -15
  317. data/generated/google/apis/pubsub_v1beta2/service.rb +20 -20
  318. data/generated/google/apis/redis_v1.rb +1 -1
  319. data/generated/google/apis/redis_v1/service.rb +19 -19
  320. data/generated/google/apis/redis_v1beta1.rb +1 -1
  321. data/generated/google/apis/redis_v1beta1/classes.rb +1 -1
  322. data/generated/google/apis/redis_v1beta1/service.rb +15 -15
  323. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  324. data/generated/google/apis/remotebuildexecution_v1/classes.rb +1 -1
  325. data/generated/google/apis/remotebuildexecution_v1/service.rb +7 -7
  326. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  327. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
  328. data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +10 -10
  329. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  330. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
  331. data/generated/google/apis/remotebuildexecution_v2/service.rb +9 -9
  332. data/generated/google/apis/replicapool_v1beta1/service.rb +10 -10
  333. data/generated/google/apis/reseller_v1/service.rb +17 -17
  334. data/generated/google/apis/run_v1/service.rb +1 -1
  335. data/generated/google/apis/run_v1alpha1.rb +1 -1
  336. data/generated/google/apis/run_v1alpha1/classes.rb +427 -0
  337. data/generated/google/apis/run_v1alpha1/representations.rb +162 -0
  338. data/generated/google/apis/run_v1alpha1/service.rb +446 -38
  339. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  340. data/generated/google/apis/runtimeconfig_v1/classes.rb +1 -1
  341. data/generated/google/apis/runtimeconfig_v1/service.rb +3 -3
  342. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  343. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +1 -1
  344. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +22 -22
  345. data/generated/google/apis/safebrowsing_v4/service.rb +7 -7
  346. data/generated/google/apis/script_v1.rb +1 -1
  347. data/generated/google/apis/script_v1/classes.rb +167 -0
  348. data/generated/google/apis/script_v1/representations.rb +79 -0
  349. data/generated/google/apis/script_v1/service.rb +16 -16
  350. data/generated/google/apis/searchconsole_v1/service.rb +1 -1
  351. data/generated/google/apis/securitycenter_v1.rb +1 -1
  352. data/generated/google/apis/securitycenter_v1/classes.rb +1 -1
  353. data/generated/google/apis/securitycenter_v1/service.rb +23 -23
  354. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  355. data/generated/google/apis/securitycenter_v1beta1/classes.rb +1 -1
  356. data/generated/google/apis/securitycenter_v1beta1/service.rb +23 -23
  357. data/generated/google/apis/servicebroker_v1/service.rb +3 -3
  358. data/generated/google/apis/servicebroker_v1alpha1/service.rb +16 -16
  359. data/generated/google/apis/servicebroker_v1beta1/service.rb +21 -21
  360. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  361. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +8 -60
  362. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -29
  363. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +14 -14
  364. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  365. data/generated/google/apis/servicecontrol_v1/classes.rb +12 -0
  366. data/generated/google/apis/servicecontrol_v1/representations.rb +2 -0
  367. data/generated/google/apis/servicecontrol_v1/service.rb +3 -3
  368. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  369. data/generated/google/apis/servicemanagement_v1/classes.rb +40 -60
  370. data/generated/google/apis/servicemanagement_v1/representations.rb +13 -26
  371. data/generated/google/apis/servicemanagement_v1/service.rb +24 -24
  372. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  373. data/generated/google/apis/servicenetworking_v1/classes.rb +8 -60
  374. data/generated/google/apis/servicenetworking_v1/representations.rb +1 -29
  375. data/generated/google/apis/servicenetworking_v1/service.rb +9 -9
  376. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  377. data/generated/google/apis/servicenetworking_v1beta/classes.rb +8 -60
  378. data/generated/google/apis/servicenetworking_v1beta/representations.rb +1 -29
  379. data/generated/google/apis/servicenetworking_v1beta/service.rb +6 -6
  380. data/generated/google/apis/serviceusage_v1.rb +1 -1
  381. data/generated/google/apis/serviceusage_v1/classes.rb +8 -60
  382. data/generated/google/apis/serviceusage_v1/representations.rb +1 -29
  383. data/generated/google/apis/serviceusage_v1/service.rb +17 -19
  384. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  385. data/generated/google/apis/serviceusage_v1beta1/classes.rb +8 -60
  386. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -29
  387. data/generated/google/apis/serviceusage_v1beta1/service.rb +7 -7
  388. data/generated/google/apis/sheets_v4.rb +1 -1
  389. data/generated/google/apis/sheets_v4/service.rb +17 -17
  390. data/generated/google/apis/site_verification_v1/service.rb +7 -7
  391. data/generated/google/apis/slides_v1/service.rb +5 -5
  392. data/generated/google/apis/sourcerepo_v1/service.rb +11 -11
  393. data/generated/google/apis/spanner_v1.rb +1 -1
  394. data/generated/google/apis/spanner_v1/classes.rb +3 -3
  395. data/generated/google/apis/spanner_v1/service.rb +41 -41
  396. data/generated/google/apis/speech_v1.rb +1 -1
  397. data/generated/google/apis/speech_v1/classes.rb +2 -2
  398. data/generated/google/apis/speech_v1/service.rb +7 -7
  399. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  400. data/generated/google/apis/speech_v1p1beta1/classes.rb +2 -2
  401. data/generated/google/apis/speech_v1p1beta1/service.rb +7 -7
  402. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  403. data/generated/google/apis/sqladmin_v1beta4/classes.rb +12 -0
  404. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
  405. data/generated/google/apis/sqladmin_v1beta4/service.rb +44 -44
  406. data/generated/google/apis/storage_v1/service.rb +52 -52
  407. data/generated/google/apis/storage_v1beta1/service.rb +24 -24
  408. data/generated/google/apis/storage_v1beta2/service.rb +34 -34
  409. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  410. data/generated/google/apis/storagetransfer_v1/classes.rb +13 -20
  411. data/generated/google/apis/storagetransfer_v1/service.rb +31 -32
  412. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  413. data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
  414. data/generated/google/apis/streetviewpublish_v1/service.rb +9 -9
  415. data/generated/google/apis/surveys_v2/service.rb +8 -8
  416. data/generated/google/apis/tagmanager_v1/service.rb +49 -49
  417. data/generated/google/apis/tagmanager_v2/service.rb +74 -74
  418. data/generated/google/apis/tasks_v1/service.rb +14 -14
  419. data/generated/google/apis/testing_v1.rb +1 -1
  420. data/generated/google/apis/testing_v1/classes.rb +25 -12
  421. data/generated/google/apis/testing_v1/representations.rb +2 -0
  422. data/generated/google/apis/testing_v1/service.rb +5 -5
  423. data/generated/google/apis/texttospeech_v1/service.rb +2 -2
  424. data/generated/google/apis/texttospeech_v1beta1/service.rb +2 -2
  425. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  426. data/generated/google/apis/toolresults_v1beta3/classes.rb +8 -17
  427. data/generated/google/apis/toolresults_v1beta3/service.rb +26 -26
  428. data/generated/google/apis/tpu_v1.rb +1 -1
  429. data/generated/google/apis/tpu_v1/classes.rb +1 -1
  430. data/generated/google/apis/tpu_v1/service.rb +17 -17
  431. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  432. data/generated/google/apis/tpu_v1alpha1/classes.rb +1 -1
  433. data/generated/google/apis/tpu_v1alpha1/service.rb +17 -17
  434. data/generated/google/apis/translate_v2/service.rb +5 -5
  435. data/generated/google/apis/urlshortener_v1/service.rb +3 -3
  436. data/generated/google/apis/vault_v1/service.rb +28 -28
  437. data/generated/google/apis/videointelligence_v1/service.rb +5 -5
  438. data/generated/google/apis/videointelligence_v1beta2/service.rb +1 -1
  439. data/generated/google/apis/videointelligence_v1p1beta1/service.rb +1 -1
  440. data/generated/google/apis/videointelligence_v1p2beta1/service.rb +1 -1
  441. data/generated/google/apis/videointelligence_v1p3beta1/service.rb +1 -1
  442. data/generated/google/apis/vision_v1.rb +1 -1
  443. data/generated/google/apis/vision_v1/classes.rb +2372 -73
  444. data/generated/google/apis/vision_v1/representations.rb +1643 -651
  445. data/generated/google/apis/vision_v1/service.rb +98 -35
  446. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  447. data/generated/google/apis/vision_v1p1beta1/classes.rb +2371 -52
  448. data/generated/google/apis/vision_v1p1beta1/representations.rb +1733 -727
  449. data/generated/google/apis/vision_v1p1beta1/service.rb +73 -2
  450. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  451. data/generated/google/apis/vision_v1p2beta1/classes.rb +2371 -52
  452. data/generated/google/apis/vision_v1p2beta1/representations.rb +1733 -727
  453. data/generated/google/apis/vision_v1p2beta1/service.rb +73 -2
  454. data/generated/google/apis/webfonts_v1/service.rb +1 -1
  455. data/generated/google/apis/webmasters_v3/service.rb +9 -9
  456. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +13 -13
  457. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  458. data/generated/google/apis/websecurityscanner_v1beta/service.rb +13 -13
  459. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  460. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +8 -8
  461. data/generated/google/apis/youtube_analytics_v2/service.rb +8 -8
  462. data/generated/google/apis/youtube_partner_v1/service.rb +74 -74
  463. data/generated/google/apis/youtube_v3.rb +1 -1
  464. data/generated/google/apis/youtube_v3/service.rb +71 -71
  465. data/generated/google/apis/youtubereporting_v1/service.rb +8 -8
  466. data/google-api-client.gemspec +1 -1
  467. data/lib/google/apis/core/json_representation.rb +4 -0
  468. data/lib/google/apis/core/upload.rb +3 -3
  469. data/lib/google/apis/generator/templates/_method.tmpl +3 -3
  470. data/lib/google/apis/version.rb +1 -1
  471. metadata +13 -6
  472. data/samples/web/.env +0 -2
@@ -49,6 +49,41 @@ module Google
49
49
  @batch_path = 'batch'
50
50
  end
51
51
 
52
+ # Service that performs image detection and annotation for a batch of files.
53
+ # Now only "application/pdf", "image/tiff" and "image/gif" are supported.
54
+ # This service will extract at most 5 (customers can specify which 5 in
55
+ # AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each
56
+ # file provided and perform detection and annotation for each image
57
+ # extracted.
58
+ # @param [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1BatchAnnotateFilesRequest] google_cloud_vision_v1p1beta1_batch_annotate_files_request_object
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
+ # @param [String] quota_user
62
+ # Available to use for quota purposes for server-side applications. Can be any
63
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
64
+ # @param [Google::Apis::RequestOptions] options
65
+ # Request-specific options
66
+ #
67
+ # @yield [result, err] Result & error if block supplied
68
+ # @yieldparam result [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1BatchAnnotateFilesResponse] parsed result object
69
+ # @yieldparam err [StandardError] error object if request failed
70
+ #
71
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1BatchAnnotateFilesResponse]
72
+ #
73
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
76
+ def annotate_file(google_cloud_vision_v1p1beta1_batch_annotate_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
77
+ command = make_simple_command(:post, 'v1p1beta1/files:annotate', options)
78
+ command.request_representation = Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1BatchAnnotateFilesRequest::Representation
79
+ command.request_object = google_cloud_vision_v1p1beta1_batch_annotate_files_request_object
80
+ command.response_representation = Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1BatchAnnotateFilesResponse::Representation
81
+ command.response_class = Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1BatchAnnotateFilesResponse
82
+ command.query['fields'] = fields unless fields.nil?
83
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
84
+ execute_or_queue_command(command, &block)
85
+ end
86
+
52
87
  # Run asynchronous image detection and annotation for a list of generic
53
88
  # files, such as PDF files, which may contain multiple pages and multiple
54
89
  # images per page. Progress and results can be retrieved through the
@@ -74,7 +109,7 @@ module Google
74
109
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
110
  # @raise [Google::Apis::AuthorizationError] Authorization is required
76
111
  def async_file_batch_annotate(google_cloud_vision_v1p1beta1_async_batch_annotate_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
77
- command = make_simple_command(:post, 'v1p1beta1/files:asyncBatchAnnotate', options)
112
+ command = make_simple_command(:post, 'v1p1beta1/files:asyncBatchAnnotate', options)
78
113
  command.request_representation = Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest::Representation
79
114
  command.request_object = google_cloud_vision_v1p1beta1_async_batch_annotate_files_request_object
80
115
  command.response_representation = Google::Apis::VisionV1p1beta1::Operation::Representation
@@ -104,7 +139,7 @@ module Google
104
139
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
105
140
  # @raise [Google::Apis::AuthorizationError] Authorization is required
106
141
  def annotate_image(google_cloud_vision_v1p1beta1_batch_annotate_images_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
107
- command = make_simple_command(:post, 'v1p1beta1/images:annotate', options)
142
+ command = make_simple_command(:post, 'v1p1beta1/images:annotate', options)
108
143
  command.request_representation = Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest::Representation
109
144
  command.request_object = google_cloud_vision_v1p1beta1_batch_annotate_images_request_object
110
145
  command.response_representation = Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1BatchAnnotateImagesResponse::Representation
@@ -113,6 +148,42 @@ module Google
113
148
  command.query['quotaUser'] = quota_user unless quota_user.nil?
114
149
  execute_or_queue_command(command, &block)
115
150
  end
151
+
152
+ # Run asynchronous image detection and annotation for a list of images.
153
+ # Progress and results can be retrieved through the
154
+ # `google.longrunning.Operations` interface.
155
+ # `Operation.metadata` contains `OperationMetadata` (metadata).
156
+ # `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results).
157
+ # This service will write image annotation outputs to json files in customer
158
+ # GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
159
+ # @param [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AsyncBatchAnnotateImagesRequest] google_cloud_vision_v1p1beta1_async_batch_annotate_images_request_object
160
+ # @param [String] fields
161
+ # Selector specifying which fields to include in a partial response.
162
+ # @param [String] quota_user
163
+ # Available to use for quota purposes for server-side applications. Can be any
164
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
165
+ # @param [Google::Apis::RequestOptions] options
166
+ # Request-specific options
167
+ #
168
+ # @yield [result, err] Result & error if block supplied
169
+ # @yieldparam result [Google::Apis::VisionV1p1beta1::Operation] parsed result object
170
+ # @yieldparam err [StandardError] error object if request failed
171
+ #
172
+ # @return [Google::Apis::VisionV1p1beta1::Operation]
173
+ #
174
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
175
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
176
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
177
+ def async_image_batch_annotate(google_cloud_vision_v1p1beta1_async_batch_annotate_images_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
178
+ command = make_simple_command(:post, 'v1p1beta1/images:asyncBatchAnnotate', options)
179
+ command.request_representation = Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AsyncBatchAnnotateImagesRequest::Representation
180
+ command.request_object = google_cloud_vision_v1p1beta1_async_batch_annotate_images_request_object
181
+ command.response_representation = Google::Apis::VisionV1p1beta1::Operation::Representation
182
+ command.response_class = Google::Apis::VisionV1p1beta1::Operation
183
+ command.query['fields'] = fields unless fields.nil?
184
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
185
+ execute_or_queue_command(command, &block)
186
+ end
116
187
 
117
188
  protected
118
189
 
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1p2beta1
29
29
  VERSION = 'V1p2beta1'
30
- REVISION = '20190412'
30
+ REVISION = '20190503'
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'
@@ -37,6 +37,11 @@ module Google
37
37
  # @return [Array<Google::Apis::VisionV1p2beta1::AnnotateImageResponse>]
38
38
  attr_accessor :responses
39
39
 
40
+ # This field gives the total number of pages in the file.
41
+ # Corresponds to the JSON property `totalPages`
42
+ # @return [Fixnum]
43
+ attr_accessor :total_pages
44
+
40
45
  def initialize(**args)
41
46
  update!(**args)
42
47
  end
@@ -45,6 +50,7 @@ module Google
45
50
  def update!(**args)
46
51
  @input_config = args[:input_config] if args.key?(:input_config)
47
52
  @responses = args[:responses] if args.key?(:responses)
53
+ @total_pages = args[:total_pages] if args.key?(:total_pages)
48
54
  end
49
55
  end
50
56
 
@@ -232,6 +238,45 @@ module Google
232
238
  end
233
239
  end
234
240
 
241
+ # Response to an async batch image annotation request.
242
+ class AsyncBatchAnnotateImagesResponse
243
+ include Google::Apis::Core::Hashable
244
+
245
+ # The desired output location and metadata.
246
+ # Corresponds to the JSON property `outputConfig`
247
+ # @return [Google::Apis::VisionV1p2beta1::OutputConfig]
248
+ attr_accessor :output_config
249
+
250
+ def initialize(**args)
251
+ update!(**args)
252
+ end
253
+
254
+ # Update properties of this object
255
+ def update!(**args)
256
+ @output_config = args[:output_config] if args.key?(:output_config)
257
+ end
258
+ end
259
+
260
+ # A list of file annotation responses.
261
+ class BatchAnnotateFilesResponse
262
+ include Google::Apis::Core::Hashable
263
+
264
+ # The list of file annotation responses, each response corresponding to each
265
+ # AnnotateFileRequest in BatchAnnotateFilesRequest.
266
+ # Corresponds to the JSON property `responses`
267
+ # @return [Array<Google::Apis::VisionV1p2beta1::AnnotateFileResponse>]
268
+ attr_accessor :responses
269
+
270
+ def initialize(**args)
271
+ update!(**args)
272
+ end
273
+
274
+ # Update properties of this object
275
+ def update!(**args)
276
+ @responses = args[:responses] if args.key?(:responses)
277
+ end
278
+ end
279
+
235
280
  # Metadata for the batch operations such as the current state.
236
281
  # This is included in the `metadata` field of the `Operation` returned by the
237
282
  # `GetOperation` call of the `google::longrunning::Operations` service.
@@ -1001,6 +1046,11 @@ module Google
1001
1046
  # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1AnnotateImageResponse>]
1002
1047
  attr_accessor :responses
1003
1048
 
1049
+ # This field gives the total number of pages in the file.
1050
+ # Corresponds to the JSON property `totalPages`
1051
+ # @return [Fixnum]
1052
+ attr_accessor :total_pages
1053
+
1004
1054
  def initialize(**args)
1005
1055
  update!(**args)
1006
1056
  end
@@ -1009,6 +1059,7 @@ module Google
1009
1059
  def update!(**args)
1010
1060
  @input_config = args[:input_config] if args.key?(:input_config)
1011
1061
  @responses = args[:responses] if args.key?(:responses)
1062
+ @total_pages = args[:total_pages] if args.key?(:total_pages)
1012
1063
  end
1013
1064
  end
1014
1065
 
@@ -1793,6 +1844,16 @@ module Google
1793
1844
  class GoogleCloudVisionV1p1beta1InputConfig
1794
1845
  include Google::Apis::Core::Hashable
1795
1846
 
1847
+ # File content, represented as a stream of bytes.
1848
+ # Note: As with all `bytes` fields, protobuffers use a pure binary
1849
+ # representation, whereas JSON representations use base64.
1850
+ # Currently, this field only works for BatchAnnotateFiles requests. It does
1851
+ # not work for AsyncBatchAnnotateFiles requests.
1852
+ # Corresponds to the JSON property `content`
1853
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1854
+ # @return [String]
1855
+ attr_accessor :content
1856
+
1796
1857
  # The Google Cloud Storage location where the input will be read from.
1797
1858
  # Corresponds to the JSON property `gcsSource`
1798
1859
  # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1GcsSource]
@@ -1810,6 +1871,7 @@ module Google
1810
1871
 
1811
1872
  # Update properties of this object
1812
1873
  def update!(**args)
1874
+ @content = args[:content] if args.key?(:content)
1813
1875
  @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
1814
1876
  @mime_type = args[:mime_type] if args.key?(:mime_type)
1815
1877
  end
@@ -2744,6 +2806,52 @@ module Google
2744
2806
  end
2745
2807
  end
2746
2808
 
2809
+ # A request to annotate one single file, e.g. a PDF, TIFF or GIF file.
2810
+ class GoogleCloudVisionV1p2beta1AnnotateFileRequest
2811
+ include Google::Apis::Core::Hashable
2812
+
2813
+ # Required. Requested features.
2814
+ # Corresponds to the JSON property `features`
2815
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Feature>]
2816
+ attr_accessor :features
2817
+
2818
+ # Image context and/or feature-specific parameters.
2819
+ # Corresponds to the JSON property `imageContext`
2820
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageContext]
2821
+ attr_accessor :image_context
2822
+
2823
+ # The desired input location and metadata.
2824
+ # Corresponds to the JSON property `inputConfig`
2825
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1InputConfig]
2826
+ attr_accessor :input_config
2827
+
2828
+ # Pages of the file to perform image annotation.
2829
+ # Pages starts from 1, we assume the first page of the file is page 1.
2830
+ # At most 5 pages are supported per request. Pages can be negative.
2831
+ # Page 1 means the first page.
2832
+ # Page 2 means the second page.
2833
+ # Page -1 means the last page.
2834
+ # Page -2 means the second to the last page.
2835
+ # If the file is GIF instead of PDF or TIFF, page refers to GIF frames.
2836
+ # If this field is empty, by default the service performs image annotation
2837
+ # for the first 5 pages of the file.
2838
+ # Corresponds to the JSON property `pages`
2839
+ # @return [Array<Fixnum>]
2840
+ attr_accessor :pages
2841
+
2842
+ def initialize(**args)
2843
+ update!(**args)
2844
+ end
2845
+
2846
+ # Update properties of this object
2847
+ def update!(**args)
2848
+ @features = args[:features] if args.key?(:features)
2849
+ @image_context = args[:image_context] if args.key?(:image_context)
2850
+ @input_config = args[:input_config] if args.key?(:input_config)
2851
+ @pages = args[:pages] if args.key?(:pages)
2852
+ end
2853
+ end
2854
+
2747
2855
  # Response to a single file annotation request. A file may contain one or more
2748
2856
  # images, which individually have their own responses.
2749
2857
  class GoogleCloudVisionV1p2beta1AnnotateFileResponse
@@ -2759,6 +2867,11 @@ module Google
2759
2867
  # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AnnotateImageResponse>]
2760
2868
  attr_accessor :responses
2761
2869
 
2870
+ # This field gives the total number of pages in the file.
2871
+ # Corresponds to the JSON property `totalPages`
2872
+ # @return [Fixnum]
2873
+ attr_accessor :total_pages
2874
+
2762
2875
  def initialize(**args)
2763
2876
  update!(**args)
2764
2877
  end
@@ -2767,6 +2880,7 @@ module Google
2767
2880
  def update!(**args)
2768
2881
  @input_config = args[:input_config] if args.key?(:input_config)
2769
2882
  @responses = args[:responses] if args.key?(:responses)
2883
+ @total_pages = args[:total_pages] if args.key?(:total_pages)
2770
2884
  end
2771
2885
  end
2772
2886
 
@@ -3043,6 +3157,71 @@ module Google
3043
3157
  end
3044
3158
  end
3045
3159
 
3160
+ # Request for async image annotation for a list of images.
3161
+ class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateImagesRequest
3162
+ include Google::Apis::Core::Hashable
3163
+
3164
+ # The desired output location and metadata.
3165
+ # Corresponds to the JSON property `outputConfig`
3166
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1OutputConfig]
3167
+ attr_accessor :output_config
3168
+
3169
+ # Individual image annotation requests for this batch.
3170
+ # Corresponds to the JSON property `requests`
3171
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AnnotateImageRequest>]
3172
+ attr_accessor :requests
3173
+
3174
+ def initialize(**args)
3175
+ update!(**args)
3176
+ end
3177
+
3178
+ # Update properties of this object
3179
+ def update!(**args)
3180
+ @output_config = args[:output_config] if args.key?(:output_config)
3181
+ @requests = args[:requests] if args.key?(:requests)
3182
+ end
3183
+ end
3184
+
3185
+ # A list of requests to annotate files using the BatchAnnotateFiles API.
3186
+ class GoogleCloudVisionV1p2beta1BatchAnnotateFilesRequest
3187
+ include Google::Apis::Core::Hashable
3188
+
3189
+ # The list of file annotation requests. Right now we support only one
3190
+ # AnnotateFileRequest in BatchAnnotateFilesRequest.
3191
+ # Corresponds to the JSON property `requests`
3192
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AnnotateFileRequest>]
3193
+ attr_accessor :requests
3194
+
3195
+ def initialize(**args)
3196
+ update!(**args)
3197
+ end
3198
+
3199
+ # Update properties of this object
3200
+ def update!(**args)
3201
+ @requests = args[:requests] if args.key?(:requests)
3202
+ end
3203
+ end
3204
+
3205
+ # A list of file annotation responses.
3206
+ class GoogleCloudVisionV1p2beta1BatchAnnotateFilesResponse
3207
+ include Google::Apis::Core::Hashable
3208
+
3209
+ # The list of file annotation responses, each response corresponding to each
3210
+ # AnnotateFileRequest in BatchAnnotateFilesRequest.
3211
+ # Corresponds to the JSON property `responses`
3212
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AnnotateFileResponse>]
3213
+ attr_accessor :responses
3214
+
3215
+ def initialize(**args)
3216
+ update!(**args)
3217
+ end
3218
+
3219
+ # Update properties of this object
3220
+ def update!(**args)
3221
+ @responses = args[:responses] if args.key?(:responses)
3222
+ end
3223
+ end
3224
+
3046
3225
  # Multiple image annotation requests are batched into a single service call.
3047
3226
  class GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest
3048
3227
  include Google::Apis::Core::Hashable
@@ -3858,6 +4037,16 @@ module Google
3858
4037
  class GoogleCloudVisionV1p2beta1InputConfig
3859
4038
  include Google::Apis::Core::Hashable
3860
4039
 
4040
+ # File content, represented as a stream of bytes.
4041
+ # Note: As with all `bytes` fields, protobuffers use a pure binary
4042
+ # representation, whereas JSON representations use base64.
4043
+ # Currently, this field only works for BatchAnnotateFiles requests. It does
4044
+ # not work for AsyncBatchAnnotateFiles requests.
4045
+ # Corresponds to the JSON property `content`
4046
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
4047
+ # @return [String]
4048
+ attr_accessor :content
4049
+
3861
4050
  # The Google Cloud Storage location where the input will be read from.
3862
4051
  # Corresponds to the JSON property `gcsSource`
3863
4052
  # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1GcsSource]
@@ -3875,6 +4064,7 @@ module Google
3875
4064
 
3876
4065
  # Update properties of this object
3877
4066
  def update!(**args)
4067
+ @content = args[:content] if args.key?(:content)
3878
4068
  @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
3879
4069
  @mime_type = args[:mime_type] if args.key?(:mime_type)
3880
4070
  end
@@ -4924,6 +5114,11 @@ module Google
4924
5114
  # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1AnnotateImageResponse>]
4925
5115
  attr_accessor :responses
4926
5116
 
5117
+ # This field gives the total number of pages in the file.
5118
+ # Corresponds to the JSON property `totalPages`
5119
+ # @return [Fixnum]
5120
+ attr_accessor :total_pages
5121
+
4927
5122
  def initialize(**args)
4928
5123
  update!(**args)
4929
5124
  end
@@ -4932,6 +5127,7 @@ module Google
4932
5127
  def update!(**args)
4933
5128
  @input_config = args[:input_config] if args.key?(:input_config)
4934
5129
  @responses = args[:responses] if args.key?(:responses)
5130
+ @total_pages = args[:total_pages] if args.key?(:total_pages)
4935
5131
  end
4936
5132
  end
4937
5133
 
@@ -5782,6 +5978,16 @@ module Google
5782
5978
  class GoogleCloudVisionV1p3beta1InputConfig
5783
5979
  include Google::Apis::Core::Hashable
5784
5980
 
5981
+ # File content, represented as a stream of bytes.
5982
+ # Note: As with all `bytes` fields, protobuffers use a pure binary
5983
+ # representation, whereas JSON representations use base64.
5984
+ # Currently, this field only works for BatchAnnotateFiles requests. It does
5985
+ # not work for AsyncBatchAnnotateFiles requests.
5986
+ # Corresponds to the JSON property `content`
5987
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
5988
+ # @return [String]
5989
+ attr_accessor :content
5990
+
5785
5991
  # The Google Cloud Storage location where the input will be read from.
5786
5992
  # Corresponds to the JSON property `gcsSource`
5787
5993
  # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1GcsSource]
@@ -5799,6 +6005,7 @@ module Google
5799
6005
 
5800
6006
  # Update properties of this object
5801
6007
  def update!(**args)
6008
+ @content = args[:content] if args.key?(:content)
5802
6009
  @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
5803
6010
  @mime_type = args[:mime_type] if args.key?(:mime_type)
5804
6011
  end
@@ -8701,47 +8908,25 @@ module Google
8701
8908
  end
8702
8909
  end
8703
8910
 
8704
- # Information about the products similar to a single product in a query
8705
- # image.
8706
- class GroupedResult
8911
+ # Response to a single file annotation request. A file may contain one or more
8912
+ # images, which individually have their own responses.
8913
+ class GoogleCloudVisionV1p5beta1AnnotateFileResponse
8707
8914
  include Google::Apis::Core::Hashable
8708
8915
 
8709
- # A bounding polygon for the detected image annotation.
8710
- # Corresponds to the JSON property `boundingPoly`
8711
- # @return [Google::Apis::VisionV1p2beta1::BoundingPoly]
8712
- attr_accessor :bounding_poly
8713
-
8714
- # List of results, one for each product match.
8715
- # Corresponds to the JSON property `results`
8716
- # @return [Array<Google::Apis::VisionV1p2beta1::Result>]
8717
- attr_accessor :results
8718
-
8719
- def initialize(**args)
8720
- update!(**args)
8721
- end
8722
-
8723
- # Update properties of this object
8724
- def update!(**args)
8725
- @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
8726
- @results = args[:results] if args.key?(:results)
8727
- end
8728
- end
8916
+ # The desired input location and metadata.
8917
+ # Corresponds to the JSON property `inputConfig`
8918
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1InputConfig]
8919
+ attr_accessor :input_config
8729
8920
 
8730
- # If an image was produced from a file (e.g. a PDF), this message gives
8731
- # information about the source of that image.
8732
- class ImageAnnotationContext
8733
- include Google::Apis::Core::Hashable
8921
+ # Individual responses to images found within the file.
8922
+ # Corresponds to the JSON property `responses`
8923
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1AnnotateImageResponse>]
8924
+ attr_accessor :responses
8734
8925
 
8735
- # If the file was a PDF or TIFF, this field gives the page number within
8736
- # the file used to produce the image.
8737
- # Corresponds to the JSON property `pageNumber`
8926
+ # This field gives the total number of pages in the file.
8927
+ # Corresponds to the JSON property `totalPages`
8738
8928
  # @return [Fixnum]
8739
- attr_accessor :page_number
8740
-
8741
- # The URI of the file used to produce the image.
8742
- # Corresponds to the JSON property `uri`
8743
- # @return [String]
8744
- attr_accessor :uri
8929
+ attr_accessor :total_pages
8745
8930
 
8746
8931
  def initialize(**args)
8747
8932
  update!(**args)
@@ -8749,28 +8934,2151 @@ module Google
8749
8934
 
8750
8935
  # Update properties of this object
8751
8936
  def update!(**args)
8752
- @page_number = args[:page_number] if args.key?(:page_number)
8753
- @uri = args[:uri] if args.key?(:uri)
8937
+ @input_config = args[:input_config] if args.key?(:input_config)
8938
+ @responses = args[:responses] if args.key?(:responses)
8939
+ @total_pages = args[:total_pages] if args.key?(:total_pages)
8754
8940
  end
8755
8941
  end
8756
8942
 
8757
- # Stores image properties, such as dominant colors.
8758
- class ImageProperties
8943
+ # Response to an image annotation request.
8944
+ class GoogleCloudVisionV1p5beta1AnnotateImageResponse
8759
8945
  include Google::Apis::Core::Hashable
8760
8946
 
8761
- # Set of dominant colors and their corresponding scores.
8762
- # Corresponds to the JSON property `dominantColors`
8763
- # @return [Google::Apis::VisionV1p2beta1::DominantColorsAnnotation]
8764
- attr_accessor :dominant_colors
8947
+ # If an image was produced from a file (e.g. a PDF), this message gives
8948
+ # information about the source of that image.
8949
+ # Corresponds to the JSON property `context`
8950
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ImageAnnotationContext]
8951
+ attr_accessor :context
8765
8952
 
8766
- def initialize(**args)
8767
- update!(**args)
8768
- end
8953
+ # Set of crop hints that are used to generate new crops when serving images.
8954
+ # Corresponds to the JSON property `cropHintsAnnotation`
8955
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1CropHintsAnnotation]
8956
+ attr_accessor :crop_hints_annotation
8769
8957
 
8770
- # Update properties of this object
8771
- def update!(**args)
8772
- @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
8773
- end
8958
+ # The `Status` type defines a logical error model that is suitable for
8959
+ # different programming environments, including REST APIs and RPC APIs. It is
8960
+ # used by [gRPC](https://github.com/grpc). The error model is designed to be:
8961
+ # - Simple to use and understand for most users
8962
+ # - Flexible enough to meet unexpected needs
8963
+ # # Overview
8964
+ # The `Status` message contains three pieces of data: error code, error
8965
+ # message, and error details. The error code should be an enum value of
8966
+ # google.rpc.Code, but it may accept additional error codes if needed. The
8967
+ # error message should be a developer-facing English message that helps
8968
+ # developers *understand* and *resolve* the error. If a localized user-facing
8969
+ # error message is needed, put the localized message in the error details or
8970
+ # localize it in the client. The optional error details may contain arbitrary
8971
+ # information about the error. There is a predefined set of error detail types
8972
+ # in the package `google.rpc` that can be used for common error conditions.
8973
+ # # Language mapping
8974
+ # The `Status` message is the logical representation of the error model, but it
8975
+ # is not necessarily the actual wire format. When the `Status` message is
8976
+ # exposed in different client libraries and different wire protocols, it can be
8977
+ # mapped differently. For example, it will likely be mapped to some exceptions
8978
+ # in Java, but more likely mapped to some error codes in C.
8979
+ # # Other uses
8980
+ # The error model and the `Status` message can be used in a variety of
8981
+ # environments, either with or without APIs, to provide a
8982
+ # consistent developer experience across different environments.
8983
+ # Example uses of this error model include:
8984
+ # - Partial errors. If a service needs to return partial errors to the client,
8985
+ # it may embed the `Status` in the normal response to indicate the partial
8986
+ # errors.
8987
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
8988
+ # have a `Status` message for error reporting.
8989
+ # - Batch operations. If a client uses batch request and batch response, the
8990
+ # `Status` message should be used directly inside batch response, one for
8991
+ # each error sub-response.
8992
+ # - Asynchronous operations. If an API call embeds asynchronous operation
8993
+ # results in its response, the status of those operations should be
8994
+ # represented directly using the `Status` message.
8995
+ # - Logging. If some API errors are stored in logs, the message `Status` could
8996
+ # be used directly after any stripping needed for security/privacy reasons.
8997
+ # Corresponds to the JSON property `error`
8998
+ # @return [Google::Apis::VisionV1p2beta1::Status]
8999
+ attr_accessor :error
9000
+
9001
+ # If present, face detection has completed successfully.
9002
+ # Corresponds to the JSON property `faceAnnotations`
9003
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1FaceAnnotation>]
9004
+ attr_accessor :face_annotations
9005
+
9006
+ # TextAnnotation contains a structured representation of OCR extracted text.
9007
+ # The hierarchy of an OCR extracted text structure is like this:
9008
+ # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
9009
+ # Each structural component, starting from Page, may further have their own
9010
+ # properties. Properties describe detected languages, breaks etc.. Please refer
9011
+ # to the TextAnnotation.TextProperty message definition below for more
9012
+ # detail.
9013
+ # Corresponds to the JSON property `fullTextAnnotation`
9014
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotation]
9015
+ attr_accessor :full_text_annotation
9016
+
9017
+ # Stores image properties, such as dominant colors.
9018
+ # Corresponds to the JSON property `imagePropertiesAnnotation`
9019
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ImageProperties]
9020
+ attr_accessor :image_properties_annotation
9021
+
9022
+ # If present, label detection has completed successfully.
9023
+ # Corresponds to the JSON property `labelAnnotations`
9024
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1EntityAnnotation>]
9025
+ attr_accessor :label_annotations
9026
+
9027
+ # If present, landmark detection has completed successfully.
9028
+ # Corresponds to the JSON property `landmarkAnnotations`
9029
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1EntityAnnotation>]
9030
+ attr_accessor :landmark_annotations
9031
+
9032
+ # If present, localized object detection has completed successfully.
9033
+ # This will be sorted descending by confidence score.
9034
+ # Corresponds to the JSON property `localizedObjectAnnotations`
9035
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation>]
9036
+ attr_accessor :localized_object_annotations
9037
+
9038
+ # If present, logo detection has completed successfully.
9039
+ # Corresponds to the JSON property `logoAnnotations`
9040
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1EntityAnnotation>]
9041
+ attr_accessor :logo_annotations
9042
+
9043
+ # Results for a product search request.
9044
+ # Corresponds to the JSON property `productSearchResults`
9045
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResults]
9046
+ attr_accessor :product_search_results
9047
+
9048
+ # Set of features pertaining to the image, computed by computer vision
9049
+ # methods over safe-search verticals (for example, adult, spoof, medical,
9050
+ # violence).
9051
+ # Corresponds to the JSON property `safeSearchAnnotation`
9052
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1SafeSearchAnnotation]
9053
+ attr_accessor :safe_search_annotation
9054
+
9055
+ # If present, text (OCR) detection has completed successfully.
9056
+ # Corresponds to the JSON property `textAnnotations`
9057
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1EntityAnnotation>]
9058
+ attr_accessor :text_annotations
9059
+
9060
+ # Relevant information for the image from the Internet.
9061
+ # Corresponds to the JSON property `webDetection`
9062
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetection]
9063
+ attr_accessor :web_detection
9064
+
9065
+ def initialize(**args)
9066
+ update!(**args)
9067
+ end
9068
+
9069
+ # Update properties of this object
9070
+ def update!(**args)
9071
+ @context = args[:context] if args.key?(:context)
9072
+ @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
9073
+ @error = args[:error] if args.key?(:error)
9074
+ @face_annotations = args[:face_annotations] if args.key?(:face_annotations)
9075
+ @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
9076
+ @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
9077
+ @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
9078
+ @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
9079
+ @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
9080
+ @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
9081
+ @product_search_results = args[:product_search_results] if args.key?(:product_search_results)
9082
+ @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
9083
+ @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
9084
+ @web_detection = args[:web_detection] if args.key?(:web_detection)
9085
+ end
9086
+ end
9087
+
9088
+ # The response for a single offline file annotation request.
9089
+ class GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse
9090
+ include Google::Apis::Core::Hashable
9091
+
9092
+ # The desired output location and metadata.
9093
+ # Corresponds to the JSON property `outputConfig`
9094
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1OutputConfig]
9095
+ attr_accessor :output_config
9096
+
9097
+ def initialize(**args)
9098
+ update!(**args)
9099
+ end
9100
+
9101
+ # Update properties of this object
9102
+ def update!(**args)
9103
+ @output_config = args[:output_config] if args.key?(:output_config)
9104
+ end
9105
+ end
9106
+
9107
+ # Response to an async batch file annotation request.
9108
+ class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateFilesResponse
9109
+ include Google::Apis::Core::Hashable
9110
+
9111
+ # The list of file annotation responses, one for each request in
9112
+ # AsyncBatchAnnotateFilesRequest.
9113
+ # Corresponds to the JSON property `responses`
9114
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1AsyncAnnotateFileResponse>]
9115
+ attr_accessor :responses
9116
+
9117
+ def initialize(**args)
9118
+ update!(**args)
9119
+ end
9120
+
9121
+ # Update properties of this object
9122
+ def update!(**args)
9123
+ @responses = args[:responses] if args.key?(:responses)
9124
+ end
9125
+ end
9126
+
9127
+ # Response to an async batch image annotation request.
9128
+ class GoogleCloudVisionV1p5beta1AsyncBatchAnnotateImagesResponse
9129
+ include Google::Apis::Core::Hashable
9130
+
9131
+ # The desired output location and metadata.
9132
+ # Corresponds to the JSON property `outputConfig`
9133
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1OutputConfig]
9134
+ attr_accessor :output_config
9135
+
9136
+ def initialize(**args)
9137
+ update!(**args)
9138
+ end
9139
+
9140
+ # Update properties of this object
9141
+ def update!(**args)
9142
+ @output_config = args[:output_config] if args.key?(:output_config)
9143
+ end
9144
+ end
9145
+
9146
+ # A list of file annotation responses.
9147
+ class GoogleCloudVisionV1p5beta1BatchAnnotateFilesResponse
9148
+ include Google::Apis::Core::Hashable
9149
+
9150
+ # The list of file annotation responses, each response corresponding to each
9151
+ # AnnotateFileRequest in BatchAnnotateFilesRequest.
9152
+ # Corresponds to the JSON property `responses`
9153
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1AnnotateFileResponse>]
9154
+ attr_accessor :responses
9155
+
9156
+ def initialize(**args)
9157
+ update!(**args)
9158
+ end
9159
+
9160
+ # Update properties of this object
9161
+ def update!(**args)
9162
+ @responses = args[:responses] if args.key?(:responses)
9163
+ end
9164
+ end
9165
+
9166
+ # Metadata for the batch operations such as the current state.
9167
+ # This is included in the `metadata` field of the `Operation` returned by the
9168
+ # `GetOperation` call of the `google::longrunning::Operations` service.
9169
+ class GoogleCloudVisionV1p5beta1BatchOperationMetadata
9170
+ include Google::Apis::Core::Hashable
9171
+
9172
+ # The time when the batch request is finished and
9173
+ # google.longrunning.Operation.done is set to true.
9174
+ # Corresponds to the JSON property `endTime`
9175
+ # @return [String]
9176
+ attr_accessor :end_time
9177
+
9178
+ # The current state of the batch operation.
9179
+ # Corresponds to the JSON property `state`
9180
+ # @return [String]
9181
+ attr_accessor :state
9182
+
9183
+ # The time when the batch request was submitted to the server.
9184
+ # Corresponds to the JSON property `submitTime`
9185
+ # @return [String]
9186
+ attr_accessor :submit_time
9187
+
9188
+ def initialize(**args)
9189
+ update!(**args)
9190
+ end
9191
+
9192
+ # Update properties of this object
9193
+ def update!(**args)
9194
+ @end_time = args[:end_time] if args.key?(:end_time)
9195
+ @state = args[:state] if args.key?(:state)
9196
+ @submit_time = args[:submit_time] if args.key?(:submit_time)
9197
+ end
9198
+ end
9199
+
9200
+ # Logical element on the page.
9201
+ class GoogleCloudVisionV1p5beta1Block
9202
+ include Google::Apis::Core::Hashable
9203
+
9204
+ # Detected block type (text, image etc) for this block.
9205
+ # Corresponds to the JSON property `blockType`
9206
+ # @return [String]
9207
+ attr_accessor :block_type
9208
+
9209
+ # A bounding polygon for the detected image annotation.
9210
+ # Corresponds to the JSON property `boundingBox`
9211
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
9212
+ attr_accessor :bounding_box
9213
+
9214
+ # Confidence of the OCR results on the block. Range [0, 1].
9215
+ # Corresponds to the JSON property `confidence`
9216
+ # @return [Float]
9217
+ attr_accessor :confidence
9218
+
9219
+ # Proto for a key value pair.
9220
+ # Corresponds to the JSON property `keyValuePair`
9221
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1KeyValuePair]
9222
+ attr_accessor :key_value_pair
9223
+
9224
+ # All UTF-8 text detected in this block. This field is by default not
9225
+ # returned unless specified in TextDetectionParams.block_filter or
9226
+ # DocumentParsingParams.block_filter.
9227
+ # Corresponds to the JSON property `mergedText`
9228
+ # @return [String]
9229
+ attr_accessor :merged_text
9230
+
9231
+ # List of paragraphs in this block (if this blocks is of type text).
9232
+ # Corresponds to the JSON property `paragraphs`
9233
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Paragraph>]
9234
+ attr_accessor :paragraphs
9235
+
9236
+ # Additional information detected on the structural component.
9237
+ # Corresponds to the JSON property `property`
9238
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty]
9239
+ attr_accessor :property
9240
+
9241
+ # A table representation similar to HTML table structure.
9242
+ # Corresponds to the JSON property `table`
9243
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Table]
9244
+ attr_accessor :table
9245
+
9246
+ def initialize(**args)
9247
+ update!(**args)
9248
+ end
9249
+
9250
+ # Update properties of this object
9251
+ def update!(**args)
9252
+ @block_type = args[:block_type] if args.key?(:block_type)
9253
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
9254
+ @confidence = args[:confidence] if args.key?(:confidence)
9255
+ @key_value_pair = args[:key_value_pair] if args.key?(:key_value_pair)
9256
+ @merged_text = args[:merged_text] if args.key?(:merged_text)
9257
+ @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
9258
+ @property = args[:property] if args.key?(:property)
9259
+ @table = args[:table] if args.key?(:table)
9260
+ end
9261
+ end
9262
+
9263
+ # A bounding polygon for the detected image annotation.
9264
+ class GoogleCloudVisionV1p5beta1BoundingPoly
9265
+ include Google::Apis::Core::Hashable
9266
+
9267
+ # The bounding polygon normalized vertices.
9268
+ # Corresponds to the JSON property `normalizedVertices`
9269
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1NormalizedVertex>]
9270
+ attr_accessor :normalized_vertices
9271
+
9272
+ # The bounding polygon vertices.
9273
+ # Corresponds to the JSON property `vertices`
9274
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Vertex>]
9275
+ attr_accessor :vertices
9276
+
9277
+ def initialize(**args)
9278
+ update!(**args)
9279
+ end
9280
+
9281
+ # Update properties of this object
9282
+ def update!(**args)
9283
+ @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
9284
+ @vertices = args[:vertices] if args.key?(:vertices)
9285
+ end
9286
+ end
9287
+
9288
+ # Color information consists of RGB channels, score, and the fraction of
9289
+ # the image that the color occupies in the image.
9290
+ class GoogleCloudVisionV1p5beta1ColorInfo
9291
+ include Google::Apis::Core::Hashable
9292
+
9293
+ # Represents a color in the RGBA color space. This representation is designed
9294
+ # for simplicity of conversion to/from color representations in various
9295
+ # languages over compactness; for example, the fields of this representation
9296
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
9297
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
9298
+ # method in iOS; and, with just a little work, it can be easily formatted into
9299
+ # a CSS "rgba()" string in JavaScript, as well.
9300
+ # Note: this proto does not carry information about the absolute color space
9301
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
9302
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
9303
+ # space.
9304
+ # Example (Java):
9305
+ # import com.google.type.Color;
9306
+ # // ...
9307
+ # public static java.awt.Color fromProto(Color protocolor) `
9308
+ # float alpha = protocolor.hasAlpha()
9309
+ # ? protocolor.getAlpha().getValue()
9310
+ # : 1.0;
9311
+ # return new java.awt.Color(
9312
+ # protocolor.getRed(),
9313
+ # protocolor.getGreen(),
9314
+ # protocolor.getBlue(),
9315
+ # alpha);
9316
+ # `
9317
+ # public static Color toProto(java.awt.Color color) `
9318
+ # float red = (float) color.getRed();
9319
+ # float green = (float) color.getGreen();
9320
+ # float blue = (float) color.getBlue();
9321
+ # float denominator = 255.0;
9322
+ # Color.Builder resultBuilder =
9323
+ # Color
9324
+ # .newBuilder()
9325
+ # .setRed(red / denominator)
9326
+ # .setGreen(green / denominator)
9327
+ # .setBlue(blue / denominator);
9328
+ # int alpha = color.getAlpha();
9329
+ # if (alpha != 255) `
9330
+ # result.setAlpha(
9331
+ # FloatValue
9332
+ # .newBuilder()
9333
+ # .setValue(((float) alpha) / denominator)
9334
+ # .build());
9335
+ # `
9336
+ # return resultBuilder.build();
9337
+ # `
9338
+ # // ...
9339
+ # Example (iOS / Obj-C):
9340
+ # // ...
9341
+ # static UIColor* fromProto(Color* protocolor) `
9342
+ # float red = [protocolor red];
9343
+ # float green = [protocolor green];
9344
+ # float blue = [protocolor blue];
9345
+ # FloatValue* alpha_wrapper = [protocolor alpha];
9346
+ # float alpha = 1.0;
9347
+ # if (alpha_wrapper != nil) `
9348
+ # alpha = [alpha_wrapper value];
9349
+ # `
9350
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
9351
+ # `
9352
+ # static Color* toProto(UIColor* color) `
9353
+ # CGFloat red, green, blue, alpha;
9354
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
9355
+ # return nil;
9356
+ # `
9357
+ # Color* result = [[Color alloc] init];
9358
+ # [result setRed:red];
9359
+ # [result setGreen:green];
9360
+ # [result setBlue:blue];
9361
+ # if (alpha <= 0.9999) `
9362
+ # [result setAlpha:floatWrapperWithValue(alpha)];
9363
+ # `
9364
+ # [result autorelease];
9365
+ # return result;
9366
+ # `
9367
+ # // ...
9368
+ # Example (JavaScript):
9369
+ # // ...
9370
+ # var protoToCssColor = function(rgb_color) `
9371
+ # var redFrac = rgb_color.red || 0.0;
9372
+ # var greenFrac = rgb_color.green || 0.0;
9373
+ # var blueFrac = rgb_color.blue || 0.0;
9374
+ # var red = Math.floor(redFrac * 255);
9375
+ # var green = Math.floor(greenFrac * 255);
9376
+ # var blue = Math.floor(blueFrac * 255);
9377
+ # if (!('alpha' in rgb_color)) `
9378
+ # return rgbToCssColor_(red, green, blue);
9379
+ # `
9380
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
9381
+ # var rgbParams = [red, green, blue].join(',');
9382
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
9383
+ # `;
9384
+ # var rgbToCssColor_ = function(red, green, blue) `
9385
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
9386
+ # var hexString = rgbNumber.toString(16);
9387
+ # var missingZeros = 6 - hexString.length;
9388
+ # var resultBuilder = ['#'];
9389
+ # for (var i = 0; i < missingZeros; i++) `
9390
+ # resultBuilder.push('0');
9391
+ # `
9392
+ # resultBuilder.push(hexString);
9393
+ # return resultBuilder.join('');
9394
+ # `;
9395
+ # // ...
9396
+ # Corresponds to the JSON property `color`
9397
+ # @return [Google::Apis::VisionV1p2beta1::Color]
9398
+ attr_accessor :color
9399
+
9400
+ # The fraction of pixels the color occupies in the image.
9401
+ # Value in range [0, 1].
9402
+ # Corresponds to the JSON property `pixelFraction`
9403
+ # @return [Float]
9404
+ attr_accessor :pixel_fraction
9405
+
9406
+ # Image-specific score for this color. Value in range [0, 1].
9407
+ # Corresponds to the JSON property `score`
9408
+ # @return [Float]
9409
+ attr_accessor :score
9410
+
9411
+ def initialize(**args)
9412
+ update!(**args)
9413
+ end
9414
+
9415
+ # Update properties of this object
9416
+ def update!(**args)
9417
+ @color = args[:color] if args.key?(:color)
9418
+ @pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction)
9419
+ @score = args[:score] if args.key?(:score)
9420
+ end
9421
+ end
9422
+
9423
+ # Single crop hint that is used to generate a new crop when serving an image.
9424
+ class GoogleCloudVisionV1p5beta1CropHint
9425
+ include Google::Apis::Core::Hashable
9426
+
9427
+ # A bounding polygon for the detected image annotation.
9428
+ # Corresponds to the JSON property `boundingPoly`
9429
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
9430
+ attr_accessor :bounding_poly
9431
+
9432
+ # Confidence of this being a salient region. Range [0, 1].
9433
+ # Corresponds to the JSON property `confidence`
9434
+ # @return [Float]
9435
+ attr_accessor :confidence
9436
+
9437
+ # Fraction of importance of this salient region with respect to the original
9438
+ # image.
9439
+ # Corresponds to the JSON property `importanceFraction`
9440
+ # @return [Float]
9441
+ attr_accessor :importance_fraction
9442
+
9443
+ def initialize(**args)
9444
+ update!(**args)
9445
+ end
9446
+
9447
+ # Update properties of this object
9448
+ def update!(**args)
9449
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
9450
+ @confidence = args[:confidence] if args.key?(:confidence)
9451
+ @importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction)
9452
+ end
9453
+ end
9454
+
9455
+ # Set of crop hints that are used to generate new crops when serving images.
9456
+ class GoogleCloudVisionV1p5beta1CropHintsAnnotation
9457
+ include Google::Apis::Core::Hashable
9458
+
9459
+ # Crop hint results.
9460
+ # Corresponds to the JSON property `cropHints`
9461
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1CropHint>]
9462
+ attr_accessor :crop_hints
9463
+
9464
+ def initialize(**args)
9465
+ update!(**args)
9466
+ end
9467
+
9468
+ # Update properties of this object
9469
+ def update!(**args)
9470
+ @crop_hints = args[:crop_hints] if args.key?(:crop_hints)
9471
+ end
9472
+ end
9473
+
9474
+ # Set of dominant colors and their corresponding scores.
9475
+ class GoogleCloudVisionV1p5beta1DominantColorsAnnotation
9476
+ include Google::Apis::Core::Hashable
9477
+
9478
+ # RGB color values with their score and pixel fraction.
9479
+ # Corresponds to the JSON property `colors`
9480
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ColorInfo>]
9481
+ attr_accessor :colors
9482
+
9483
+ def initialize(**args)
9484
+ update!(**args)
9485
+ end
9486
+
9487
+ # Update properties of this object
9488
+ def update!(**args)
9489
+ @colors = args[:colors] if args.key?(:colors)
9490
+ end
9491
+ end
9492
+
9493
+ # Set of detected entity features.
9494
+ class GoogleCloudVisionV1p5beta1EntityAnnotation
9495
+ include Google::Apis::Core::Hashable
9496
+
9497
+ # A bounding polygon for the detected image annotation.
9498
+ # Corresponds to the JSON property `boundingPoly`
9499
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
9500
+ attr_accessor :bounding_poly
9501
+
9502
+ # **Deprecated. Use `score` instead.**
9503
+ # The accuracy of the entity detection in an image.
9504
+ # For example, for an image in which the "Eiffel Tower" entity is detected,
9505
+ # this field represents the confidence that there is a tower in the query
9506
+ # image. Range [0, 1].
9507
+ # Corresponds to the JSON property `confidence`
9508
+ # @return [Float]
9509
+ attr_accessor :confidence
9510
+
9511
+ # Entity textual description, expressed in its `locale` language.
9512
+ # Corresponds to the JSON property `description`
9513
+ # @return [String]
9514
+ attr_accessor :description
9515
+
9516
+ # The language code for the locale in which the entity textual
9517
+ # `description` is expressed.
9518
+ # Corresponds to the JSON property `locale`
9519
+ # @return [String]
9520
+ attr_accessor :locale
9521
+
9522
+ # The location information for the detected entity. Multiple
9523
+ # `LocationInfo` elements can be present because one location may
9524
+ # indicate the location of the scene in the image, and another location
9525
+ # may indicate the location of the place where the image was taken.
9526
+ # Location information is usually present for landmarks.
9527
+ # Corresponds to the JSON property `locations`
9528
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1LocationInfo>]
9529
+ attr_accessor :locations
9530
+
9531
+ # Opaque entity ID. Some IDs may be available in
9532
+ # [Google Knowledge Graph Search
9533
+ # API](https://developers.google.com/knowledge-graph/).
9534
+ # Corresponds to the JSON property `mid`
9535
+ # @return [String]
9536
+ attr_accessor :mid
9537
+
9538
+ # Some entities may have optional user-supplied `Property` (name/value)
9539
+ # fields, such a score or string that qualifies the entity.
9540
+ # Corresponds to the JSON property `properties`
9541
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Property>]
9542
+ attr_accessor :properties
9543
+
9544
+ # Overall score of the result. Range [0, 1].
9545
+ # Corresponds to the JSON property `score`
9546
+ # @return [Float]
9547
+ attr_accessor :score
9548
+
9549
+ # The relevancy of the ICA (Image Content Annotation) label to the
9550
+ # image. For example, the relevancy of "tower" is likely higher to an image
9551
+ # containing the detected "Eiffel Tower" than to an image containing a
9552
+ # detected distant towering building, even though the confidence that
9553
+ # there is a tower in each image may be the same. Range [0, 1].
9554
+ # Corresponds to the JSON property `topicality`
9555
+ # @return [Float]
9556
+ attr_accessor :topicality
9557
+
9558
+ def initialize(**args)
9559
+ update!(**args)
9560
+ end
9561
+
9562
+ # Update properties of this object
9563
+ def update!(**args)
9564
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
9565
+ @confidence = args[:confidence] if args.key?(:confidence)
9566
+ @description = args[:description] if args.key?(:description)
9567
+ @locale = args[:locale] if args.key?(:locale)
9568
+ @locations = args[:locations] if args.key?(:locations)
9569
+ @mid = args[:mid] if args.key?(:mid)
9570
+ @properties = args[:properties] if args.key?(:properties)
9571
+ @score = args[:score] if args.key?(:score)
9572
+ @topicality = args[:topicality] if args.key?(:topicality)
9573
+ end
9574
+ end
9575
+
9576
+ # A face annotation object contains the results of face detection.
9577
+ class GoogleCloudVisionV1p5beta1FaceAnnotation
9578
+ include Google::Apis::Core::Hashable
9579
+
9580
+ # Anger likelihood.
9581
+ # Corresponds to the JSON property `angerLikelihood`
9582
+ # @return [String]
9583
+ attr_accessor :anger_likelihood
9584
+
9585
+ # Blurred likelihood.
9586
+ # Corresponds to the JSON property `blurredLikelihood`
9587
+ # @return [String]
9588
+ attr_accessor :blurred_likelihood
9589
+
9590
+ # A bounding polygon for the detected image annotation.
9591
+ # Corresponds to the JSON property `boundingPoly`
9592
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
9593
+ attr_accessor :bounding_poly
9594
+
9595
+ # Detection confidence. Range [0, 1].
9596
+ # Corresponds to the JSON property `detectionConfidence`
9597
+ # @return [Float]
9598
+ attr_accessor :detection_confidence
9599
+
9600
+ # A bounding polygon for the detected image annotation.
9601
+ # Corresponds to the JSON property `fdBoundingPoly`
9602
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
9603
+ attr_accessor :fd_bounding_poly
9604
+
9605
+ # Headwear likelihood.
9606
+ # Corresponds to the JSON property `headwearLikelihood`
9607
+ # @return [String]
9608
+ attr_accessor :headwear_likelihood
9609
+
9610
+ # Joy likelihood.
9611
+ # Corresponds to the JSON property `joyLikelihood`
9612
+ # @return [String]
9613
+ attr_accessor :joy_likelihood
9614
+
9615
+ # Face landmarking confidence. Range [0, 1].
9616
+ # Corresponds to the JSON property `landmarkingConfidence`
9617
+ # @return [Float]
9618
+ attr_accessor :landmarking_confidence
9619
+
9620
+ # Detected face landmarks.
9621
+ # Corresponds to the JSON property `landmarks`
9622
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1FaceAnnotationLandmark>]
9623
+ attr_accessor :landmarks
9624
+
9625
+ # Yaw angle, which indicates the leftward/rightward angle that the face is
9626
+ # pointing relative to the vertical plane perpendicular to the image. Range
9627
+ # [-180,180].
9628
+ # Corresponds to the JSON property `panAngle`
9629
+ # @return [Float]
9630
+ attr_accessor :pan_angle
9631
+
9632
+ # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
9633
+ # of the face relative to the image vertical about the axis perpendicular to
9634
+ # the face. Range [-180,180].
9635
+ # Corresponds to the JSON property `rollAngle`
9636
+ # @return [Float]
9637
+ attr_accessor :roll_angle
9638
+
9639
+ # Sorrow likelihood.
9640
+ # Corresponds to the JSON property `sorrowLikelihood`
9641
+ # @return [String]
9642
+ attr_accessor :sorrow_likelihood
9643
+
9644
+ # Surprise likelihood.
9645
+ # Corresponds to the JSON property `surpriseLikelihood`
9646
+ # @return [String]
9647
+ attr_accessor :surprise_likelihood
9648
+
9649
+ # Pitch angle, which indicates the upwards/downwards angle that the face is
9650
+ # pointing relative to the image's horizontal plane. Range [-180,180].
9651
+ # Corresponds to the JSON property `tiltAngle`
9652
+ # @return [Float]
9653
+ attr_accessor :tilt_angle
9654
+
9655
+ # Under-exposed likelihood.
9656
+ # Corresponds to the JSON property `underExposedLikelihood`
9657
+ # @return [String]
9658
+ attr_accessor :under_exposed_likelihood
9659
+
9660
+ def initialize(**args)
9661
+ update!(**args)
9662
+ end
9663
+
9664
+ # Update properties of this object
9665
+ def update!(**args)
9666
+ @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood)
9667
+ @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood)
9668
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
9669
+ @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence)
9670
+ @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly)
9671
+ @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood)
9672
+ @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood)
9673
+ @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
9674
+ @landmarks = args[:landmarks] if args.key?(:landmarks)
9675
+ @pan_angle = args[:pan_angle] if args.key?(:pan_angle)
9676
+ @roll_angle = args[:roll_angle] if args.key?(:roll_angle)
9677
+ @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood)
9678
+ @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
9679
+ @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle)
9680
+ @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood)
9681
+ end
9682
+ end
9683
+
9684
+ # A face-specific landmark (for example, a face feature).
9685
+ class GoogleCloudVisionV1p5beta1FaceAnnotationLandmark
9686
+ include Google::Apis::Core::Hashable
9687
+
9688
+ # A 3D position in the image, used primarily for Face detection landmarks.
9689
+ # A valid Position must have both x and y coordinates.
9690
+ # The position coordinates are in the same scale as the original image.
9691
+ # Corresponds to the JSON property `position`
9692
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Position]
9693
+ attr_accessor :position
9694
+
9695
+ # Face landmark type.
9696
+ # Corresponds to the JSON property `type`
9697
+ # @return [String]
9698
+ attr_accessor :type
9699
+
9700
+ def initialize(**args)
9701
+ update!(**args)
9702
+ end
9703
+
9704
+ # Update properties of this object
9705
+ def update!(**args)
9706
+ @position = args[:position] if args.key?(:position)
9707
+ @type = args[:type] if args.key?(:type)
9708
+ end
9709
+ end
9710
+
9711
+ # The Google Cloud Storage location where the output will be written to.
9712
+ class GoogleCloudVisionV1p5beta1GcsDestination
9713
+ include Google::Apis::Core::Hashable
9714
+
9715
+ # Google Cloud Storage URI prefix where the results will be stored. Results
9716
+ # will be in JSON format and preceded by its corresponding input URI prefix.
9717
+ # This field can either represent a gcs file prefix or gcs directory. In
9718
+ # either case, the uri should be unique because in order to get all of the
9719
+ # output files, you will need to do a wildcard gcs search on the uri prefix
9720
+ # you provide.
9721
+ # Examples:
9722
+ # * File Prefix: gs://bucket-name/here/filenameprefix The output files
9723
+ # will be created in gs://bucket-name/here/ and the names of the
9724
+ # output files will begin with "filenameprefix".
9725
+ # * Directory Prefix: gs://bucket-name/some/location/ The output files
9726
+ # will be created in gs://bucket-name/some/location/ and the names of the
9727
+ # output files could be anything because there was no filename prefix
9728
+ # specified.
9729
+ # If multiple outputs, each response is still AnnotateFileResponse, each of
9730
+ # which contains some subset of the full list of AnnotateImageResponse.
9731
+ # Multiple outputs can happen if, for example, the output JSON is too large
9732
+ # and overflows into multiple sharded files.
9733
+ # Corresponds to the JSON property `uri`
9734
+ # @return [String]
9735
+ attr_accessor :uri
9736
+
9737
+ def initialize(**args)
9738
+ update!(**args)
9739
+ end
9740
+
9741
+ # Update properties of this object
9742
+ def update!(**args)
9743
+ @uri = args[:uri] if args.key?(:uri)
9744
+ end
9745
+ end
9746
+
9747
+ # The Google Cloud Storage location where the input will be read from.
9748
+ class GoogleCloudVisionV1p5beta1GcsSource
9749
+ include Google::Apis::Core::Hashable
9750
+
9751
+ # Google Cloud Storage URI for the input file. This must only be a
9752
+ # Google Cloud Storage object. Wildcards are not currently supported.
9753
+ # Corresponds to the JSON property `uri`
9754
+ # @return [String]
9755
+ attr_accessor :uri
9756
+
9757
+ def initialize(**args)
9758
+ update!(**args)
9759
+ end
9760
+
9761
+ # Update properties of this object
9762
+ def update!(**args)
9763
+ @uri = args[:uri] if args.key?(:uri)
9764
+ end
9765
+ end
9766
+
9767
+ # If an image was produced from a file (e.g. a PDF), this message gives
9768
+ # information about the source of that image.
9769
+ class GoogleCloudVisionV1p5beta1ImageAnnotationContext
9770
+ include Google::Apis::Core::Hashable
9771
+
9772
+ # If the file was a PDF or TIFF, this field gives the page number within
9773
+ # the file used to produce the image.
9774
+ # Corresponds to the JSON property `pageNumber`
9775
+ # @return [Fixnum]
9776
+ attr_accessor :page_number
9777
+
9778
+ # The URI of the file used to produce the image.
9779
+ # Corresponds to the JSON property `uri`
9780
+ # @return [String]
9781
+ attr_accessor :uri
9782
+
9783
+ def initialize(**args)
9784
+ update!(**args)
9785
+ end
9786
+
9787
+ # Update properties of this object
9788
+ def update!(**args)
9789
+ @page_number = args[:page_number] if args.key?(:page_number)
9790
+ @uri = args[:uri] if args.key?(:uri)
9791
+ end
9792
+ end
9793
+
9794
+ # Stores image properties, such as dominant colors.
9795
+ class GoogleCloudVisionV1p5beta1ImageProperties
9796
+ include Google::Apis::Core::Hashable
9797
+
9798
+ # Set of dominant colors and their corresponding scores.
9799
+ # Corresponds to the JSON property `dominantColors`
9800
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1DominantColorsAnnotation]
9801
+ attr_accessor :dominant_colors
9802
+
9803
+ def initialize(**args)
9804
+ update!(**args)
9805
+ end
9806
+
9807
+ # Update properties of this object
9808
+ def update!(**args)
9809
+ @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
9810
+ end
9811
+ end
9812
+
9813
+ # Response message for the `ImportProductSets` method.
9814
+ # This message is returned by the
9815
+ # google.longrunning.Operations.GetOperation method in the returned
9816
+ # google.longrunning.Operation.response field.
9817
+ class GoogleCloudVisionV1p5beta1ImportProductSetsResponse
9818
+ include Google::Apis::Core::Hashable
9819
+
9820
+ # The list of reference_images that are imported successfully.
9821
+ # Corresponds to the JSON property `referenceImages`
9822
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ReferenceImage>]
9823
+ attr_accessor :reference_images
9824
+
9825
+ # The rpc status for each ImportProductSet request, including both successes
9826
+ # and errors.
9827
+ # The number of statuses here matches the number of lines in the csv file,
9828
+ # and statuses[i] stores the success or failure status of processing the i-th
9829
+ # line of the csv, starting from line 0.
9830
+ # Corresponds to the JSON property `statuses`
9831
+ # @return [Array<Google::Apis::VisionV1p2beta1::Status>]
9832
+ attr_accessor :statuses
9833
+
9834
+ def initialize(**args)
9835
+ update!(**args)
9836
+ end
9837
+
9838
+ # Update properties of this object
9839
+ def update!(**args)
9840
+ @reference_images = args[:reference_images] if args.key?(:reference_images)
9841
+ @statuses = args[:statuses] if args.key?(:statuses)
9842
+ end
9843
+ end
9844
+
9845
+ # The desired input location and metadata.
9846
+ class GoogleCloudVisionV1p5beta1InputConfig
9847
+ include Google::Apis::Core::Hashable
9848
+
9849
+ # File content, represented as a stream of bytes.
9850
+ # Note: As with all `bytes` fields, protobuffers use a pure binary
9851
+ # representation, whereas JSON representations use base64.
9852
+ # Currently, this field only works for BatchAnnotateFiles requests. It does
9853
+ # not work for AsyncBatchAnnotateFiles requests.
9854
+ # Corresponds to the JSON property `content`
9855
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
9856
+ # @return [String]
9857
+ attr_accessor :content
9858
+
9859
+ # The Google Cloud Storage location where the input will be read from.
9860
+ # Corresponds to the JSON property `gcsSource`
9861
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1GcsSource]
9862
+ attr_accessor :gcs_source
9863
+
9864
+ # The type of the file. Currently only "application/pdf" and "image/tiff"
9865
+ # are supported. Wildcards are not supported.
9866
+ # Corresponds to the JSON property `mimeType`
9867
+ # @return [String]
9868
+ attr_accessor :mime_type
9869
+
9870
+ def initialize(**args)
9871
+ update!(**args)
9872
+ end
9873
+
9874
+ # Update properties of this object
9875
+ def update!(**args)
9876
+ @content = args[:content] if args.key?(:content)
9877
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
9878
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
9879
+ end
9880
+ end
9881
+
9882
+ # Proto for a key value pair.
9883
+ class GoogleCloudVisionV1p5beta1KeyValuePair
9884
+ include Google::Apis::Core::Hashable
9885
+
9886
+ # The key string value.
9887
+ # Corresponds to the JSON property `key`
9888
+ # @return [String]
9889
+ attr_accessor :key
9890
+
9891
+ # Logical element on the page.
9892
+ # Corresponds to the JSON property `keyBlock`
9893
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Block]
9894
+ attr_accessor :key_block
9895
+
9896
+ # Optional. The translation of key text if the text is not in English.
9897
+ # Corresponds to the JSON property `normalizedKey`
9898
+ # @return [String]
9899
+ attr_accessor :normalized_key
9900
+
9901
+ # Logical element on the page.
9902
+ # Corresponds to the JSON property `valueBlock`
9903
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Block]
9904
+ attr_accessor :value_block
9905
+
9906
+ # Type of the value. Valid strings are the following:
9907
+ # "generic" - For generic text that is mapped to a value.
9908
+ # "number" - for numeric types
9909
+ # "id" - for generic identifiers.
9910
+ # "currency" - for currency values.
9911
+ # "date" - for dates.
9912
+ # "time" - for time and duration values.
9913
+ # "date_range" - for date ranges.
9914
+ # "address" - for address values (can be long).
9915
+ # "person" - for names of people or other personal identifiers.
9916
+ # "phone" - for phone numbers.
9917
+ # Corresponds to the JSON property `valueType`
9918
+ # @return [String]
9919
+ attr_accessor :value_type
9920
+
9921
+ def initialize(**args)
9922
+ update!(**args)
9923
+ end
9924
+
9925
+ # Update properties of this object
9926
+ def update!(**args)
9927
+ @key = args[:key] if args.key?(:key)
9928
+ @key_block = args[:key_block] if args.key?(:key_block)
9929
+ @normalized_key = args[:normalized_key] if args.key?(:normalized_key)
9930
+ @value_block = args[:value_block] if args.key?(:value_block)
9931
+ @value_type = args[:value_type] if args.key?(:value_type)
9932
+ end
9933
+ end
9934
+
9935
+ # Set of detected objects with bounding boxes.
9936
+ class GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation
9937
+ include Google::Apis::Core::Hashable
9938
+
9939
+ # A bounding polygon for the detected image annotation.
9940
+ # Corresponds to the JSON property `boundingPoly`
9941
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
9942
+ attr_accessor :bounding_poly
9943
+
9944
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
9945
+ # information, see
9946
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
9947
+ # Corresponds to the JSON property `languageCode`
9948
+ # @return [String]
9949
+ attr_accessor :language_code
9950
+
9951
+ # Object ID that should align with EntityAnnotation mid.
9952
+ # Corresponds to the JSON property `mid`
9953
+ # @return [String]
9954
+ attr_accessor :mid
9955
+
9956
+ # Object name, expressed in its `language_code` language.
9957
+ # Corresponds to the JSON property `name`
9958
+ # @return [String]
9959
+ attr_accessor :name
9960
+
9961
+ # Score of the result. Range [0, 1].
9962
+ # Corresponds to the JSON property `score`
9963
+ # @return [Float]
9964
+ attr_accessor :score
9965
+
9966
+ def initialize(**args)
9967
+ update!(**args)
9968
+ end
9969
+
9970
+ # Update properties of this object
9971
+ def update!(**args)
9972
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
9973
+ @language_code = args[:language_code] if args.key?(:language_code)
9974
+ @mid = args[:mid] if args.key?(:mid)
9975
+ @name = args[:name] if args.key?(:name)
9976
+ @score = args[:score] if args.key?(:score)
9977
+ end
9978
+ end
9979
+
9980
+ # Detected entity location information.
9981
+ class GoogleCloudVisionV1p5beta1LocationInfo
9982
+ include Google::Apis::Core::Hashable
9983
+
9984
+ # An object representing a latitude/longitude pair. This is expressed as a pair
9985
+ # of doubles representing degrees latitude and degrees longitude. Unless
9986
+ # specified otherwise, this must conform to the
9987
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
9988
+ # standard</a>. Values must be within normalized ranges.
9989
+ # Corresponds to the JSON property `latLng`
9990
+ # @return [Google::Apis::VisionV1p2beta1::LatLng]
9991
+ attr_accessor :lat_lng
9992
+
9993
+ def initialize(**args)
9994
+ update!(**args)
9995
+ end
9996
+
9997
+ # Update properties of this object
9998
+ def update!(**args)
9999
+ @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
10000
+ end
10001
+ end
10002
+
10003
+ # A vertex represents a 2D point in the image.
10004
+ # NOTE: the normalized vertex coordinates are relative to the original image
10005
+ # and range from 0 to 1.
10006
+ class GoogleCloudVisionV1p5beta1NormalizedVertex
10007
+ include Google::Apis::Core::Hashable
10008
+
10009
+ # X coordinate.
10010
+ # Corresponds to the JSON property `x`
10011
+ # @return [Float]
10012
+ attr_accessor :x
10013
+
10014
+ # Y coordinate.
10015
+ # Corresponds to the JSON property `y`
10016
+ # @return [Float]
10017
+ attr_accessor :y
10018
+
10019
+ def initialize(**args)
10020
+ update!(**args)
10021
+ end
10022
+
10023
+ # Update properties of this object
10024
+ def update!(**args)
10025
+ @x = args[:x] if args.key?(:x)
10026
+ @y = args[:y] if args.key?(:y)
10027
+ end
10028
+ end
10029
+
10030
+ # Contains metadata for the BatchAnnotateImages operation.
10031
+ class GoogleCloudVisionV1p5beta1OperationMetadata
10032
+ include Google::Apis::Core::Hashable
10033
+
10034
+ # The time when the batch request was received.
10035
+ # Corresponds to the JSON property `createTime`
10036
+ # @return [String]
10037
+ attr_accessor :create_time
10038
+
10039
+ # Current state of the batch operation.
10040
+ # Corresponds to the JSON property `state`
10041
+ # @return [String]
10042
+ attr_accessor :state
10043
+
10044
+ # The time when the operation result was last updated.
10045
+ # Corresponds to the JSON property `updateTime`
10046
+ # @return [String]
10047
+ attr_accessor :update_time
10048
+
10049
+ def initialize(**args)
10050
+ update!(**args)
10051
+ end
10052
+
10053
+ # Update properties of this object
10054
+ def update!(**args)
10055
+ @create_time = args[:create_time] if args.key?(:create_time)
10056
+ @state = args[:state] if args.key?(:state)
10057
+ @update_time = args[:update_time] if args.key?(:update_time)
10058
+ end
10059
+ end
10060
+
10061
+ # The desired output location and metadata.
10062
+ class GoogleCloudVisionV1p5beta1OutputConfig
10063
+ include Google::Apis::Core::Hashable
10064
+
10065
+ # The max number of response protos to put into each output JSON file on
10066
+ # Google Cloud Storage.
10067
+ # The valid range is [1, 100]. If not specified, the default value is 20.
10068
+ # For example, for one pdf file with 100 pages, 100 response protos will
10069
+ # be generated. If `batch_size` = 20, then 5 json files each
10070
+ # containing 20 response protos will be written under the prefix
10071
+ # `gcs_destination`.`uri`.
10072
+ # Currently, batch_size only applies to GcsDestination, with potential future
10073
+ # support for other output configurations.
10074
+ # Corresponds to the JSON property `batchSize`
10075
+ # @return [Fixnum]
10076
+ attr_accessor :batch_size
10077
+
10078
+ # The Google Cloud Storage location where the output will be written to.
10079
+ # Corresponds to the JSON property `gcsDestination`
10080
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1GcsDestination]
10081
+ attr_accessor :gcs_destination
10082
+
10083
+ def initialize(**args)
10084
+ update!(**args)
10085
+ end
10086
+
10087
+ # Update properties of this object
10088
+ def update!(**args)
10089
+ @batch_size = args[:batch_size] if args.key?(:batch_size)
10090
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
10091
+ end
10092
+ end
10093
+
10094
+ # Detected page from OCR.
10095
+ class GoogleCloudVisionV1p5beta1Page
10096
+ include Google::Apis::Core::Hashable
10097
+
10098
+ # List of blocks of text, images etc on this page.
10099
+ # Corresponds to the JSON property `blocks`
10100
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Block>]
10101
+ attr_accessor :blocks
10102
+
10103
+ # Confidence of the OCR results on the page. Range [0, 1].
10104
+ # Corresponds to the JSON property `confidence`
10105
+ # @return [Float]
10106
+ attr_accessor :confidence
10107
+
10108
+ # Page height. For PDFs the unit is points. For images (including
10109
+ # TIFFs) the unit is pixels.
10110
+ # Corresponds to the JSON property `height`
10111
+ # @return [Fixnum]
10112
+ attr_accessor :height
10113
+
10114
+ # All UTF-8 text detected in this page. This field is by default not
10115
+ # returned unless specified in TextDetectionParams.page_filter.
10116
+ # Corresponds to the JSON property `mergedText`
10117
+ # @return [String]
10118
+ attr_accessor :merged_text
10119
+
10120
+ # Additional information detected on the structural component.
10121
+ # Corresponds to the JSON property `property`
10122
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty]
10123
+ attr_accessor :property
10124
+
10125
+ # Page width. For PDFs the unit is points. For images (including
10126
+ # TIFFs) the unit is pixels.
10127
+ # Corresponds to the JSON property `width`
10128
+ # @return [Fixnum]
10129
+ attr_accessor :width
10130
+
10131
+ def initialize(**args)
10132
+ update!(**args)
10133
+ end
10134
+
10135
+ # Update properties of this object
10136
+ def update!(**args)
10137
+ @blocks = args[:blocks] if args.key?(:blocks)
10138
+ @confidence = args[:confidence] if args.key?(:confidence)
10139
+ @height = args[:height] if args.key?(:height)
10140
+ @merged_text = args[:merged_text] if args.key?(:merged_text)
10141
+ @property = args[:property] if args.key?(:property)
10142
+ @width = args[:width] if args.key?(:width)
10143
+ end
10144
+ end
10145
+
10146
+ # Structural unit of text representing a number of words in certain order.
10147
+ class GoogleCloudVisionV1p5beta1Paragraph
10148
+ include Google::Apis::Core::Hashable
10149
+
10150
+ # A bounding polygon for the detected image annotation.
10151
+ # Corresponds to the JSON property `boundingBox`
10152
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
10153
+ attr_accessor :bounding_box
10154
+
10155
+ # Confidence of the OCR results for the paragraph. Range [0, 1].
10156
+ # Corresponds to the JSON property `confidence`
10157
+ # @return [Float]
10158
+ attr_accessor :confidence
10159
+
10160
+ # All UTF-8 text detected in this paragraph. This field is by default not
10161
+ # returned unless specified in
10162
+ # TextDetectionParams.paragraph_filter.
10163
+ # Corresponds to the JSON property `mergedText`
10164
+ # @return [String]
10165
+ attr_accessor :merged_text
10166
+
10167
+ # Additional information detected on the structural component.
10168
+ # Corresponds to the JSON property `property`
10169
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty]
10170
+ attr_accessor :property
10171
+
10172
+ # List of words in this paragraph.
10173
+ # Corresponds to the JSON property `words`
10174
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Word>]
10175
+ attr_accessor :words
10176
+
10177
+ def initialize(**args)
10178
+ update!(**args)
10179
+ end
10180
+
10181
+ # Update properties of this object
10182
+ def update!(**args)
10183
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
10184
+ @confidence = args[:confidence] if args.key?(:confidence)
10185
+ @merged_text = args[:merged_text] if args.key?(:merged_text)
10186
+ @property = args[:property] if args.key?(:property)
10187
+ @words = args[:words] if args.key?(:words)
10188
+ end
10189
+ end
10190
+
10191
+ # A 3D position in the image, used primarily for Face detection landmarks.
10192
+ # A valid Position must have both x and y coordinates.
10193
+ # The position coordinates are in the same scale as the original image.
10194
+ class GoogleCloudVisionV1p5beta1Position
10195
+ include Google::Apis::Core::Hashable
10196
+
10197
+ # X coordinate.
10198
+ # Corresponds to the JSON property `x`
10199
+ # @return [Float]
10200
+ attr_accessor :x
10201
+
10202
+ # Y coordinate.
10203
+ # Corresponds to the JSON property `y`
10204
+ # @return [Float]
10205
+ attr_accessor :y
10206
+
10207
+ # Z coordinate (or depth).
10208
+ # Corresponds to the JSON property `z`
10209
+ # @return [Float]
10210
+ attr_accessor :z
10211
+
10212
+ def initialize(**args)
10213
+ update!(**args)
10214
+ end
10215
+
10216
+ # Update properties of this object
10217
+ def update!(**args)
10218
+ @x = args[:x] if args.key?(:x)
10219
+ @y = args[:y] if args.key?(:y)
10220
+ @z = args[:z] if args.key?(:z)
10221
+ end
10222
+ end
10223
+
10224
+ # A Product contains ReferenceImages.
10225
+ class GoogleCloudVisionV1p5beta1Product
10226
+ include Google::Apis::Core::Hashable
10227
+
10228
+ # User-provided metadata to be stored with this product. Must be at most 4096
10229
+ # characters long.
10230
+ # Corresponds to the JSON property `description`
10231
+ # @return [String]
10232
+ attr_accessor :description
10233
+
10234
+ # The user-provided name for this Product. Must not be empty. Must be at most
10235
+ # 4096 characters long.
10236
+ # Corresponds to the JSON property `displayName`
10237
+ # @return [String]
10238
+ attr_accessor :display_name
10239
+
10240
+ # The resource name of the product.
10241
+ # Format is:
10242
+ # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
10243
+ # This field is ignored when creating a product.
10244
+ # Corresponds to the JSON property `name`
10245
+ # @return [String]
10246
+ attr_accessor :name
10247
+
10248
+ # The category for the product identified by the reference image. This should
10249
+ # be either "homegoods", "apparel", or "toys".
10250
+ # This field is immutable.
10251
+ # Corresponds to the JSON property `productCategory`
10252
+ # @return [String]
10253
+ attr_accessor :product_category
10254
+
10255
+ # Key-value pairs that can be attached to a product. At query time,
10256
+ # constraints can be specified based on the product_labels.
10257
+ # Note that integer values can be provided as strings, e.g. "1199". Only
10258
+ # strings with integer values can match a range-based restriction which is
10259
+ # to be supported soon.
10260
+ # Multiple values can be assigned to the same key. One product may have up to
10261
+ # 100 product_labels.
10262
+ # Corresponds to the JSON property `productLabels`
10263
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductKeyValue>]
10264
+ attr_accessor :product_labels
10265
+
10266
+ def initialize(**args)
10267
+ update!(**args)
10268
+ end
10269
+
10270
+ # Update properties of this object
10271
+ def update!(**args)
10272
+ @description = args[:description] if args.key?(:description)
10273
+ @display_name = args[:display_name] if args.key?(:display_name)
10274
+ @name = args[:name] if args.key?(:name)
10275
+ @product_category = args[:product_category] if args.key?(:product_category)
10276
+ @product_labels = args[:product_labels] if args.key?(:product_labels)
10277
+ end
10278
+ end
10279
+
10280
+ # A product label represented as a key-value pair.
10281
+ class GoogleCloudVisionV1p5beta1ProductKeyValue
10282
+ include Google::Apis::Core::Hashable
10283
+
10284
+ # The key of the label attached to the product. Cannot be empty and cannot
10285
+ # exceed 128 bytes.
10286
+ # Corresponds to the JSON property `key`
10287
+ # @return [String]
10288
+ attr_accessor :key
10289
+
10290
+ # The value of the label attached to the product. Cannot be empty and
10291
+ # cannot exceed 128 bytes.
10292
+ # Corresponds to the JSON property `value`
10293
+ # @return [String]
10294
+ attr_accessor :value
10295
+
10296
+ def initialize(**args)
10297
+ update!(**args)
10298
+ end
10299
+
10300
+ # Update properties of this object
10301
+ def update!(**args)
10302
+ @key = args[:key] if args.key?(:key)
10303
+ @value = args[:value] if args.key?(:value)
10304
+ end
10305
+ end
10306
+
10307
+ # Results for a product search request.
10308
+ class GoogleCloudVisionV1p5beta1ProductSearchResults
10309
+ include Google::Apis::Core::Hashable
10310
+
10311
+ # Timestamp of the index which provided these results. Products added to the
10312
+ # product set and products removed from the product set after this time are
10313
+ # not reflected in the current results.
10314
+ # Corresponds to the JSON property `indexTime`
10315
+ # @return [String]
10316
+ attr_accessor :index_time
10317
+
10318
+ # List of results grouped by products detected in the query image. Each entry
10319
+ # corresponds to one bounding polygon in the query image, and contains the
10320
+ # matching products specific to that region. There may be duplicate product
10321
+ # matches in the union of all the per-product results.
10322
+ # Corresponds to the JSON property `productGroupedResults`
10323
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult>]
10324
+ attr_accessor :product_grouped_results
10325
+
10326
+ # List of results, one for each product match.
10327
+ # Corresponds to the JSON property `results`
10328
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult>]
10329
+ attr_accessor :results
10330
+
10331
+ def initialize(**args)
10332
+ update!(**args)
10333
+ end
10334
+
10335
+ # Update properties of this object
10336
+ def update!(**args)
10337
+ @index_time = args[:index_time] if args.key?(:index_time)
10338
+ @product_grouped_results = args[:product_grouped_results] if args.key?(:product_grouped_results)
10339
+ @results = args[:results] if args.key?(:results)
10340
+ end
10341
+ end
10342
+
10343
+ # Information about the products similar to a single product in a query
10344
+ # image.
10345
+ class GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult
10346
+ include Google::Apis::Core::Hashable
10347
+
10348
+ # A bounding polygon for the detected image annotation.
10349
+ # Corresponds to the JSON property `boundingPoly`
10350
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
10351
+ attr_accessor :bounding_poly
10352
+
10353
+ # List of results, one for each product match.
10354
+ # Corresponds to the JSON property `results`
10355
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult>]
10356
+ attr_accessor :results
10357
+
10358
+ def initialize(**args)
10359
+ update!(**args)
10360
+ end
10361
+
10362
+ # Update properties of this object
10363
+ def update!(**args)
10364
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
10365
+ @results = args[:results] if args.key?(:results)
10366
+ end
10367
+ end
10368
+
10369
+ # Information about a product.
10370
+ class GoogleCloudVisionV1p5beta1ProductSearchResultsResult
10371
+ include Google::Apis::Core::Hashable
10372
+
10373
+ # The resource name of the image from the product that is the closest match
10374
+ # to the query.
10375
+ # Corresponds to the JSON property `image`
10376
+ # @return [String]
10377
+ attr_accessor :image
10378
+
10379
+ # A Product contains ReferenceImages.
10380
+ # Corresponds to the JSON property `product`
10381
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Product]
10382
+ attr_accessor :product
10383
+
10384
+ # A confidence level on the match, ranging from 0 (no confidence) to
10385
+ # 1 (full confidence).
10386
+ # Corresponds to the JSON property `score`
10387
+ # @return [Float]
10388
+ attr_accessor :score
10389
+
10390
+ def initialize(**args)
10391
+ update!(**args)
10392
+ end
10393
+
10394
+ # Update properties of this object
10395
+ def update!(**args)
10396
+ @image = args[:image] if args.key?(:image)
10397
+ @product = args[:product] if args.key?(:product)
10398
+ @score = args[:score] if args.key?(:score)
10399
+ end
10400
+ end
10401
+
10402
+ # A `Property` consists of a user-supplied name/value pair.
10403
+ class GoogleCloudVisionV1p5beta1Property
10404
+ include Google::Apis::Core::Hashable
10405
+
10406
+ # Name of the property.
10407
+ # Corresponds to the JSON property `name`
10408
+ # @return [String]
10409
+ attr_accessor :name
10410
+
10411
+ # Value of numeric properties.
10412
+ # Corresponds to the JSON property `uint64Value`
10413
+ # @return [Fixnum]
10414
+ attr_accessor :uint64_value
10415
+
10416
+ # Value of the property.
10417
+ # Corresponds to the JSON property `value`
10418
+ # @return [String]
10419
+ attr_accessor :value
10420
+
10421
+ def initialize(**args)
10422
+ update!(**args)
10423
+ end
10424
+
10425
+ # Update properties of this object
10426
+ def update!(**args)
10427
+ @name = args[:name] if args.key?(:name)
10428
+ @uint64_value = args[:uint64_value] if args.key?(:uint64_value)
10429
+ @value = args[:value] if args.key?(:value)
10430
+ end
10431
+ end
10432
+
10433
+ # A `ReferenceImage` represents a product image and its associated metadata,
10434
+ # such as bounding boxes.
10435
+ class GoogleCloudVisionV1p5beta1ReferenceImage
10436
+ include Google::Apis::Core::Hashable
10437
+
10438
+ # Bounding polygons around the areas of interest in the reference image.
10439
+ # Optional. If this field is empty, the system will try to detect regions of
10440
+ # interest. At most 10 bounding polygons will be used.
10441
+ # The provided shape is converted into a non-rotated rectangle. Once
10442
+ # converted, the small edge of the rectangle must be greater than or equal
10443
+ # to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5
10444
+ # is not).
10445
+ # Corresponds to the JSON property `boundingPolys`
10446
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly>]
10447
+ attr_accessor :bounding_polys
10448
+
10449
+ # The resource name of the reference image.
10450
+ # Format is:
10451
+ # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/
10452
+ # IMAGE_ID`.
10453
+ # This field is ignored when creating a reference image.
10454
+ # Corresponds to the JSON property `name`
10455
+ # @return [String]
10456
+ attr_accessor :name
10457
+
10458
+ # The Google Cloud Storage URI of the reference image.
10459
+ # The URI must start with `gs://`.
10460
+ # Required.
10461
+ # Corresponds to the JSON property `uri`
10462
+ # @return [String]
10463
+ attr_accessor :uri
10464
+
10465
+ def initialize(**args)
10466
+ update!(**args)
10467
+ end
10468
+
10469
+ # Update properties of this object
10470
+ def update!(**args)
10471
+ @bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys)
10472
+ @name = args[:name] if args.key?(:name)
10473
+ @uri = args[:uri] if args.key?(:uri)
10474
+ end
10475
+ end
10476
+
10477
+ # Set of features pertaining to the image, computed by computer vision
10478
+ # methods over safe-search verticals (for example, adult, spoof, medical,
10479
+ # violence).
10480
+ class GoogleCloudVisionV1p5beta1SafeSearchAnnotation
10481
+ include Google::Apis::Core::Hashable
10482
+
10483
+ # Represents the adult content likelihood for the image. Adult content may
10484
+ # contain elements such as nudity, pornographic images or cartoons, or
10485
+ # sexual activities.
10486
+ # Corresponds to the JSON property `adult`
10487
+ # @return [String]
10488
+ attr_accessor :adult
10489
+
10490
+ # Likelihood that this is a medical image.
10491
+ # Corresponds to the JSON property `medical`
10492
+ # @return [String]
10493
+ attr_accessor :medical
10494
+
10495
+ # Likelihood that the request image contains racy content. Racy content may
10496
+ # include (but is not limited to) skimpy or sheer clothing, strategically
10497
+ # covered nudity, lewd or provocative poses, or close-ups of sensitive
10498
+ # body areas.
10499
+ # Corresponds to the JSON property `racy`
10500
+ # @return [String]
10501
+ attr_accessor :racy
10502
+
10503
+ # Spoof likelihood. The likelihood that an modification
10504
+ # was made to the image's canonical version to make it appear
10505
+ # funny or offensive.
10506
+ # Corresponds to the JSON property `spoof`
10507
+ # @return [String]
10508
+ attr_accessor :spoof
10509
+
10510
+ # Likelihood that this image contains violent content.
10511
+ # Corresponds to the JSON property `violence`
10512
+ # @return [String]
10513
+ attr_accessor :violence
10514
+
10515
+ def initialize(**args)
10516
+ update!(**args)
10517
+ end
10518
+
10519
+ # Update properties of this object
10520
+ def update!(**args)
10521
+ @adult = args[:adult] if args.key?(:adult)
10522
+ @medical = args[:medical] if args.key?(:medical)
10523
+ @racy = args[:racy] if args.key?(:racy)
10524
+ @spoof = args[:spoof] if args.key?(:spoof)
10525
+ @violence = args[:violence] if args.key?(:violence)
10526
+ end
10527
+ end
10528
+
10529
+ # A single symbol representation.
10530
+ class GoogleCloudVisionV1p5beta1Symbol
10531
+ include Google::Apis::Core::Hashable
10532
+
10533
+ # A bounding polygon for the detected image annotation.
10534
+ # Corresponds to the JSON property `boundingBox`
10535
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
10536
+ attr_accessor :bounding_box
10537
+
10538
+ # Confidence of the OCR results for the symbol. Range [0, 1].
10539
+ # Corresponds to the JSON property `confidence`
10540
+ # @return [Float]
10541
+ attr_accessor :confidence
10542
+
10543
+ # Additional information detected on the structural component.
10544
+ # Corresponds to the JSON property `property`
10545
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty]
10546
+ attr_accessor :property
10547
+
10548
+ # The actual UTF-8 representation of the symbol.
10549
+ # Corresponds to the JSON property `text`
10550
+ # @return [String]
10551
+ attr_accessor :text
10552
+
10553
+ def initialize(**args)
10554
+ update!(**args)
10555
+ end
10556
+
10557
+ # Update properties of this object
10558
+ def update!(**args)
10559
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
10560
+ @confidence = args[:confidence] if args.key?(:confidence)
10561
+ @property = args[:property] if args.key?(:property)
10562
+ @text = args[:text] if args.key?(:text)
10563
+ end
10564
+ end
10565
+
10566
+ # A table representation similar to HTML table structure.
10567
+ class GoogleCloudVisionV1p5beta1Table
10568
+ include Google::Apis::Core::Hashable
10569
+
10570
+ # Body rows of the table
10571
+ # Corresponds to the JSON property `bodyRows`
10572
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TableTableRow>]
10573
+ attr_accessor :body_rows
10574
+
10575
+ # Header rows of the table
10576
+ # Corresponds to the JSON property `headerRows`
10577
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TableTableRow>]
10578
+ attr_accessor :header_rows
10579
+
10580
+ def initialize(**args)
10581
+ update!(**args)
10582
+ end
10583
+
10584
+ # Update properties of this object
10585
+ def update!(**args)
10586
+ @body_rows = args[:body_rows] if args.key?(:body_rows)
10587
+ @header_rows = args[:header_rows] if args.key?(:header_rows)
10588
+ end
10589
+ end
10590
+
10591
+ # A cell representation inside of tables.
10592
+ class GoogleCloudVisionV1p5beta1TableTableCell
10593
+ include Google::Apis::Core::Hashable
10594
+
10595
+ # How many columns this cell spans.
10596
+ # Corresponds to the JSON property `colSpan`
10597
+ # @return [Fixnum]
10598
+ attr_accessor :col_span
10599
+
10600
+ # How many rows this cell spans.
10601
+ # Corresponds to the JSON property `rowSpan`
10602
+ # @return [Fixnum]
10603
+ attr_accessor :row_span
10604
+
10605
+ # The merged text value of this cell, omitting any deeper structural
10606
+ # information unlike `text_block`. This is useful for simple cells.
10607
+ # Corresponds to the JSON property `text`
10608
+ # @return [String]
10609
+ attr_accessor :text
10610
+
10611
+ # Logical element on the page.
10612
+ # Corresponds to the JSON property `textBlock`
10613
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Block]
10614
+ attr_accessor :text_block
10615
+
10616
+ def initialize(**args)
10617
+ update!(**args)
10618
+ end
10619
+
10620
+ # Update properties of this object
10621
+ def update!(**args)
10622
+ @col_span = args[:col_span] if args.key?(:col_span)
10623
+ @row_span = args[:row_span] if args.key?(:row_span)
10624
+ @text = args[:text] if args.key?(:text)
10625
+ @text_block = args[:text_block] if args.key?(:text_block)
10626
+ end
10627
+ end
10628
+
10629
+ # A row of table cells.
10630
+ class GoogleCloudVisionV1p5beta1TableTableRow
10631
+ include Google::Apis::Core::Hashable
10632
+
10633
+ # Cells that make up this row.
10634
+ # Corresponds to the JSON property `cells`
10635
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TableTableCell>]
10636
+ attr_accessor :cells
10637
+
10638
+ def initialize(**args)
10639
+ update!(**args)
10640
+ end
10641
+
10642
+ # Update properties of this object
10643
+ def update!(**args)
10644
+ @cells = args[:cells] if args.key?(:cells)
10645
+ end
10646
+ end
10647
+
10648
+ # TextAnnotation contains a structured representation of OCR extracted text.
10649
+ # The hierarchy of an OCR extracted text structure is like this:
10650
+ # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
10651
+ # Each structural component, starting from Page, may further have their own
10652
+ # properties. Properties describe detected languages, breaks etc.. Please refer
10653
+ # to the TextAnnotation.TextProperty message definition below for more
10654
+ # detail.
10655
+ class GoogleCloudVisionV1p5beta1TextAnnotation
10656
+ include Google::Apis::Core::Hashable
10657
+
10658
+ # List of pages detected by OCR.
10659
+ # Corresponds to the JSON property `pages`
10660
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Page>]
10661
+ attr_accessor :pages
10662
+
10663
+ # UTF-8 text detected on the pages.
10664
+ # Corresponds to the JSON property `text`
10665
+ # @return [String]
10666
+ attr_accessor :text
10667
+
10668
+ def initialize(**args)
10669
+ update!(**args)
10670
+ end
10671
+
10672
+ # Update properties of this object
10673
+ def update!(**args)
10674
+ @pages = args[:pages] if args.key?(:pages)
10675
+ @text = args[:text] if args.key?(:text)
10676
+ end
10677
+ end
10678
+
10679
+ # Detected start or end of a structural component.
10680
+ class GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak
10681
+ include Google::Apis::Core::Hashable
10682
+
10683
+ # True if break prepends the element.
10684
+ # Corresponds to the JSON property `isPrefix`
10685
+ # @return [Boolean]
10686
+ attr_accessor :is_prefix
10687
+ alias_method :is_prefix?, :is_prefix
10688
+
10689
+ # Detected break type.
10690
+ # Corresponds to the JSON property `type`
10691
+ # @return [String]
10692
+ attr_accessor :type
10693
+
10694
+ def initialize(**args)
10695
+ update!(**args)
10696
+ end
10697
+
10698
+ # Update properties of this object
10699
+ def update!(**args)
10700
+ @is_prefix = args[:is_prefix] if args.key?(:is_prefix)
10701
+ @type = args[:type] if args.key?(:type)
10702
+ end
10703
+ end
10704
+
10705
+ # Detected language for a structural component.
10706
+ class GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage
10707
+ include Google::Apis::Core::Hashable
10708
+
10709
+ # Confidence of detected language. Range [0, 1].
10710
+ # Corresponds to the JSON property `confidence`
10711
+ # @return [Float]
10712
+ attr_accessor :confidence
10713
+
10714
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
10715
+ # information, see
10716
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
10717
+ # Corresponds to the JSON property `languageCode`
10718
+ # @return [String]
10719
+ attr_accessor :language_code
10720
+
10721
+ def initialize(**args)
10722
+ update!(**args)
10723
+ end
10724
+
10725
+ # Update properties of this object
10726
+ def update!(**args)
10727
+ @confidence = args[:confidence] if args.key?(:confidence)
10728
+ @language_code = args[:language_code] if args.key?(:language_code)
10729
+ end
10730
+ end
10731
+
10732
+ # Additional information detected on the structural component.
10733
+ class GoogleCloudVisionV1p5beta1TextAnnotationTextProperty
10734
+ include Google::Apis::Core::Hashable
10735
+
10736
+ # Detected start or end of a structural component.
10737
+ # Corresponds to the JSON property `detectedBreak`
10738
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak]
10739
+ attr_accessor :detected_break
10740
+
10741
+ # A list of detected languages together with confidence.
10742
+ # Corresponds to the JSON property `detectedLanguages`
10743
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage>]
10744
+ attr_accessor :detected_languages
10745
+
10746
+ def initialize(**args)
10747
+ update!(**args)
10748
+ end
10749
+
10750
+ # Update properties of this object
10751
+ def update!(**args)
10752
+ @detected_break = args[:detected_break] if args.key?(:detected_break)
10753
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
10754
+ end
10755
+ end
10756
+
10757
+ # A vertex represents a 2D point in the image.
10758
+ # NOTE: the vertex coordinates are in the same scale as the original image.
10759
+ class GoogleCloudVisionV1p5beta1Vertex
10760
+ include Google::Apis::Core::Hashable
10761
+
10762
+ # X coordinate.
10763
+ # Corresponds to the JSON property `x`
10764
+ # @return [Fixnum]
10765
+ attr_accessor :x
10766
+
10767
+ # Y coordinate.
10768
+ # Corresponds to the JSON property `y`
10769
+ # @return [Fixnum]
10770
+ attr_accessor :y
10771
+
10772
+ def initialize(**args)
10773
+ update!(**args)
10774
+ end
10775
+
10776
+ # Update properties of this object
10777
+ def update!(**args)
10778
+ @x = args[:x] if args.key?(:x)
10779
+ @y = args[:y] if args.key?(:y)
10780
+ end
10781
+ end
10782
+
10783
+ # Relevant information for the image from the Internet.
10784
+ class GoogleCloudVisionV1p5beta1WebDetection
10785
+ include Google::Apis::Core::Hashable
10786
+
10787
+ # The service's best guess as to the topic of the request image.
10788
+ # Inferred from similar images on the open web.
10789
+ # Corresponds to the JSON property `bestGuessLabels`
10790
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebLabel>]
10791
+ attr_accessor :best_guess_labels
10792
+
10793
+ # Fully matching images from the Internet.
10794
+ # Can include resized copies of the query image.
10795
+ # Corresponds to the JSON property `fullMatchingImages`
10796
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage>]
10797
+ attr_accessor :full_matching_images
10798
+
10799
+ # Web pages containing the matching images from the Internet.
10800
+ # Corresponds to the JSON property `pagesWithMatchingImages`
10801
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebPage>]
10802
+ attr_accessor :pages_with_matching_images
10803
+
10804
+ # Partial matching images from the Internet.
10805
+ # Those images are similar enough to share some key-point features. For
10806
+ # example an original image will likely have partial matching for its crops.
10807
+ # Corresponds to the JSON property `partialMatchingImages`
10808
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage>]
10809
+ attr_accessor :partial_matching_images
10810
+
10811
+ # The visually similar image results.
10812
+ # Corresponds to the JSON property `visuallySimilarImages`
10813
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage>]
10814
+ attr_accessor :visually_similar_images
10815
+
10816
+ # Deduced entities from similar images on the Internet.
10817
+ # Corresponds to the JSON property `webEntities`
10818
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebEntity>]
10819
+ attr_accessor :web_entities
10820
+
10821
+ def initialize(**args)
10822
+ update!(**args)
10823
+ end
10824
+
10825
+ # Update properties of this object
10826
+ def update!(**args)
10827
+ @best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
10828
+ @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
10829
+ @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
10830
+ @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
10831
+ @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
10832
+ @web_entities = args[:web_entities] if args.key?(:web_entities)
10833
+ end
10834
+ end
10835
+
10836
+ # Entity deduced from similar images on the Internet.
10837
+ class GoogleCloudVisionV1p5beta1WebDetectionWebEntity
10838
+ include Google::Apis::Core::Hashable
10839
+
10840
+ # Canonical description of the entity, in English.
10841
+ # Corresponds to the JSON property `description`
10842
+ # @return [String]
10843
+ attr_accessor :description
10844
+
10845
+ # Opaque entity ID.
10846
+ # Corresponds to the JSON property `entityId`
10847
+ # @return [String]
10848
+ attr_accessor :entity_id
10849
+
10850
+ # Overall relevancy score for the entity.
10851
+ # Not normalized and not comparable across different image queries.
10852
+ # Corresponds to the JSON property `score`
10853
+ # @return [Float]
10854
+ attr_accessor :score
10855
+
10856
+ def initialize(**args)
10857
+ update!(**args)
10858
+ end
10859
+
10860
+ # Update properties of this object
10861
+ def update!(**args)
10862
+ @description = args[:description] if args.key?(:description)
10863
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
10864
+ @score = args[:score] if args.key?(:score)
10865
+ end
10866
+ end
10867
+
10868
+ # Metadata for online images.
10869
+ class GoogleCloudVisionV1p5beta1WebDetectionWebImage
10870
+ include Google::Apis::Core::Hashable
10871
+
10872
+ # (Deprecated) Overall relevancy score for the image.
10873
+ # Corresponds to the JSON property `score`
10874
+ # @return [Float]
10875
+ attr_accessor :score
10876
+
10877
+ # The result image URL.
10878
+ # Corresponds to the JSON property `url`
10879
+ # @return [String]
10880
+ attr_accessor :url
10881
+
10882
+ def initialize(**args)
10883
+ update!(**args)
10884
+ end
10885
+
10886
+ # Update properties of this object
10887
+ def update!(**args)
10888
+ @score = args[:score] if args.key?(:score)
10889
+ @url = args[:url] if args.key?(:url)
10890
+ end
10891
+ end
10892
+
10893
+ # Label to provide extra metadata for the web detection.
10894
+ class GoogleCloudVisionV1p5beta1WebDetectionWebLabel
10895
+ include Google::Apis::Core::Hashable
10896
+
10897
+ # Label for extra metadata.
10898
+ # Corresponds to the JSON property `label`
10899
+ # @return [String]
10900
+ attr_accessor :label
10901
+
10902
+ # The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
10903
+ # For more information, see
10904
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
10905
+ # Corresponds to the JSON property `languageCode`
10906
+ # @return [String]
10907
+ attr_accessor :language_code
10908
+
10909
+ def initialize(**args)
10910
+ update!(**args)
10911
+ end
10912
+
10913
+ # Update properties of this object
10914
+ def update!(**args)
10915
+ @label = args[:label] if args.key?(:label)
10916
+ @language_code = args[:language_code] if args.key?(:language_code)
10917
+ end
10918
+ end
10919
+
10920
+ # Metadata for web pages.
10921
+ class GoogleCloudVisionV1p5beta1WebDetectionWebPage
10922
+ include Google::Apis::Core::Hashable
10923
+
10924
+ # Fully matching images on the page.
10925
+ # Can include resized copies of the query image.
10926
+ # Corresponds to the JSON property `fullMatchingImages`
10927
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage>]
10928
+ attr_accessor :full_matching_images
10929
+
10930
+ # Title for the web page, may contain HTML markups.
10931
+ # Corresponds to the JSON property `pageTitle`
10932
+ # @return [String]
10933
+ attr_accessor :page_title
10934
+
10935
+ # Partial matching images on the page.
10936
+ # Those images are similar enough to share some key-point features. For
10937
+ # example an original image will likely have partial matching for its
10938
+ # crops.
10939
+ # Corresponds to the JSON property `partialMatchingImages`
10940
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage>]
10941
+ attr_accessor :partial_matching_images
10942
+
10943
+ # (Deprecated) Overall relevancy score for the web page.
10944
+ # Corresponds to the JSON property `score`
10945
+ # @return [Float]
10946
+ attr_accessor :score
10947
+
10948
+ # The result web page URL.
10949
+ # Corresponds to the JSON property `url`
10950
+ # @return [String]
10951
+ attr_accessor :url
10952
+
10953
+ def initialize(**args)
10954
+ update!(**args)
10955
+ end
10956
+
10957
+ # Update properties of this object
10958
+ def update!(**args)
10959
+ @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
10960
+ @page_title = args[:page_title] if args.key?(:page_title)
10961
+ @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
10962
+ @score = args[:score] if args.key?(:score)
10963
+ @url = args[:url] if args.key?(:url)
10964
+ end
10965
+ end
10966
+
10967
+ # A word representation.
10968
+ class GoogleCloudVisionV1p5beta1Word
10969
+ include Google::Apis::Core::Hashable
10970
+
10971
+ # A bounding polygon for the detected image annotation.
10972
+ # Corresponds to the JSON property `boundingBox`
10973
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
10974
+ attr_accessor :bounding_box
10975
+
10976
+ # Confidence of the OCR results for the word. Range [0, 1].
10977
+ # Corresponds to the JSON property `confidence`
10978
+ # @return [Float]
10979
+ attr_accessor :confidence
10980
+
10981
+ # All UTF-8 text detected in this word. This field is by default not
10982
+ # returned unless specified in TextDetectionParams.word_filter.
10983
+ # Corresponds to the JSON property `mergedText`
10984
+ # @return [String]
10985
+ attr_accessor :merged_text
10986
+
10987
+ # Additional information detected on the structural component.
10988
+ # Corresponds to the JSON property `property`
10989
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty]
10990
+ attr_accessor :property
10991
+
10992
+ # List of symbols in the word.
10993
+ # The order of the symbols follows the natural reading order.
10994
+ # Corresponds to the JSON property `symbols`
10995
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Symbol>]
10996
+ attr_accessor :symbols
10997
+
10998
+ def initialize(**args)
10999
+ update!(**args)
11000
+ end
11001
+
11002
+ # Update properties of this object
11003
+ def update!(**args)
11004
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
11005
+ @confidence = args[:confidence] if args.key?(:confidence)
11006
+ @merged_text = args[:merged_text] if args.key?(:merged_text)
11007
+ @property = args[:property] if args.key?(:property)
11008
+ @symbols = args[:symbols] if args.key?(:symbols)
11009
+ end
11010
+ end
11011
+
11012
+ # Information about the products similar to a single product in a query
11013
+ # image.
11014
+ class GroupedResult
11015
+ include Google::Apis::Core::Hashable
11016
+
11017
+ # A bounding polygon for the detected image annotation.
11018
+ # Corresponds to the JSON property `boundingPoly`
11019
+ # @return [Google::Apis::VisionV1p2beta1::BoundingPoly]
11020
+ attr_accessor :bounding_poly
11021
+
11022
+ # List of results, one for each product match.
11023
+ # Corresponds to the JSON property `results`
11024
+ # @return [Array<Google::Apis::VisionV1p2beta1::Result>]
11025
+ attr_accessor :results
11026
+
11027
+ def initialize(**args)
11028
+ update!(**args)
11029
+ end
11030
+
11031
+ # Update properties of this object
11032
+ def update!(**args)
11033
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
11034
+ @results = args[:results] if args.key?(:results)
11035
+ end
11036
+ end
11037
+
11038
+ # If an image was produced from a file (e.g. a PDF), this message gives
11039
+ # information about the source of that image.
11040
+ class ImageAnnotationContext
11041
+ include Google::Apis::Core::Hashable
11042
+
11043
+ # If the file was a PDF or TIFF, this field gives the page number within
11044
+ # the file used to produce the image.
11045
+ # Corresponds to the JSON property `pageNumber`
11046
+ # @return [Fixnum]
11047
+ attr_accessor :page_number
11048
+
11049
+ # The URI of the file used to produce the image.
11050
+ # Corresponds to the JSON property `uri`
11051
+ # @return [String]
11052
+ attr_accessor :uri
11053
+
11054
+ def initialize(**args)
11055
+ update!(**args)
11056
+ end
11057
+
11058
+ # Update properties of this object
11059
+ def update!(**args)
11060
+ @page_number = args[:page_number] if args.key?(:page_number)
11061
+ @uri = args[:uri] if args.key?(:uri)
11062
+ end
11063
+ end
11064
+
11065
+ # Stores image properties, such as dominant colors.
11066
+ class ImageProperties
11067
+ include Google::Apis::Core::Hashable
11068
+
11069
+ # Set of dominant colors and their corresponding scores.
11070
+ # Corresponds to the JSON property `dominantColors`
11071
+ # @return [Google::Apis::VisionV1p2beta1::DominantColorsAnnotation]
11072
+ attr_accessor :dominant_colors
11073
+
11074
+ def initialize(**args)
11075
+ update!(**args)
11076
+ end
11077
+
11078
+ # Update properties of this object
11079
+ def update!(**args)
11080
+ @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
11081
+ end
8774
11082
  end
8775
11083
 
8776
11084
  # Response message for the `ImportProductSets` method.
@@ -8809,6 +11117,16 @@ module Google
8809
11117
  class InputConfig
8810
11118
  include Google::Apis::Core::Hashable
8811
11119
 
11120
+ # File content, represented as a stream of bytes.
11121
+ # Note: As with all `bytes` fields, protobuffers use a pure binary
11122
+ # representation, whereas JSON representations use base64.
11123
+ # Currently, this field only works for BatchAnnotateFiles requests. It does
11124
+ # not work for AsyncBatchAnnotateFiles requests.
11125
+ # Corresponds to the JSON property `content`
11126
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
11127
+ # @return [String]
11128
+ attr_accessor :content
11129
+
8812
11130
  # The Google Cloud Storage location where the input will be read from.
8813
11131
  # Corresponds to the JSON property `gcsSource`
8814
11132
  # @return [Google::Apis::VisionV1p2beta1::GcsSource]
@@ -8826,6 +11144,7 @@ module Google
8826
11144
 
8827
11145
  # Update properties of this object
8828
11146
  def update!(**args)
11147
+ @content = args[:content] if args.key?(:content)
8829
11148
  @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
8830
11149
  @mime_type = args[:mime_type] if args.key?(:mime_type)
8831
11150
  end
@@ -9075,7 +11394,7 @@ module Google
9075
11394
 
9076
11395
  # The server-assigned name, which is only unique within the same service that
9077
11396
  # originally returns it. If you use the default HTTP mapping, the
9078
- # `name` should have the format of `operations/some/unique/name`.
11397
+ # `name` should be a resource name ending with `operations/`unique_id``.
9079
11398
  # Corresponds to the JSON property `name`
9080
11399
  # @return [String]
9081
11400
  attr_accessor :name