google-api-client 0.20.1 → 0.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (499) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +190 -0
  3. data/README.md +3 -12
  4. data/generated/google/apis/abusiveexperiencereport_v1.rb +2 -2
  5. data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +1 -0
  6. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +11 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  10. data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +24 -40
  12. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +66 -110
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +117 -195
  15. data/generated/google/apis/adexchangeseller_v1.rb +1 -1
  16. data/generated/google/apis/adexchangeseller_v1/service.rb +36 -60
  17. data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
  18. data/generated/google/apis/adexchangeseller_v1_1/service.rb +54 -90
  19. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  20. data/generated/google/apis/adexchangeseller_v2_0/service.rb +45 -75
  21. data/generated/google/apis/adexperiencereport_v1.rb +2 -2
  22. data/generated/google/apis/adexperiencereport_v1/classes.rb +1 -0
  23. data/generated/google/apis/adexperiencereport_v1/service.rb +1 -1
  24. data/generated/google/apis/admin_datatransfer_v1/service.rb +18 -30
  25. data/generated/google/apis/admin_directory_v1.rb +3 -3
  26. data/generated/google/apis/admin_directory_v1/classes.rb +18 -0
  27. data/generated/google/apis/admin_directory_v1/representations.rb +3 -0
  28. data/generated/google/apis/admin_directory_v1/service.rb +363 -577
  29. data/generated/google/apis/admin_reports_v1.rb +1 -1
  30. data/generated/google/apis/admin_reports_v1/service.rb +21 -35
  31. data/generated/google/apis/adsense_v1_4.rb +1 -1
  32. data/generated/google/apis/adsense_v1_4/service.rb +117 -195
  33. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  34. data/generated/google/apis/adsensehost_v4_1/service.rb +81 -135
  35. data/generated/google/apis/analytics_v2_4.rb +1 -1
  36. data/generated/google/apis/analytics_v2_4/service.rb +21 -35
  37. data/generated/google/apis/analytics_v3.rb +4 -1
  38. data/generated/google/apis/analytics_v3/classes.rb +119 -60
  39. data/generated/google/apis/analytics_v3/representations.rb +43 -12
  40. data/generated/google/apis/analytics_v3/service.rb +294 -435
  41. data/generated/google/apis/analyticsreporting_v4.rb +2 -2
  42. data/generated/google/apis/analyticsreporting_v4/classes.rb +1 -1
  43. data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
  44. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  45. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +10 -1
  46. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +1 -0
  47. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  48. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -12
  49. data/generated/google/apis/androidenterprise_v1/service.rb +254 -425
  50. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  51. data/generated/google/apis/androidmanagement_v1/classes.rb +38 -6
  52. data/generated/google/apis/androidmanagement_v1/representations.rb +18 -0
  53. data/generated/google/apis/androidpublisher_v1.rb +1 -1
  54. data/generated/google/apis/androidpublisher_v1/service.rb +9 -15
  55. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  56. data/generated/google/apis/androidpublisher_v1_1/service.rb +12 -20
  57. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  58. data/generated/google/apis/androidpublisher_v2/classes.rb +102 -1
  59. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -0
  60. data/generated/google/apis/androidpublisher_v2/service.rb +297 -286
  61. data/generated/google/apis/androidpublisher_v3.rb +34 -0
  62. data/generated/google/apis/androidpublisher_v3/classes.rb +1899 -0
  63. data/generated/google/apis/androidpublisher_v3/representations.rb +882 -0
  64. data/generated/google/apis/androidpublisher_v3/service.rb +2208 -0
  65. data/generated/google/apis/appengine_v1.rb +1 -1
  66. data/generated/google/apis/appengine_v1/classes.rb +11 -4
  67. data/generated/google/apis/appengine_v1/service.rb +28 -19
  68. data/generated/google/apis/appengine_v1beta.rb +1 -1
  69. data/generated/google/apis/appengine_v1beta/classes.rb +11 -7
  70. data/generated/google/apis/appengine_v1beta/service.rb +28 -19
  71. data/generated/google/apis/appsactivity_v1.rb +1 -1
  72. data/generated/google/apis/appsactivity_v1/service.rb +6 -10
  73. data/generated/google/apis/appsmarket_v2/service.rb +12 -20
  74. data/generated/google/apis/appstate_v1.rb +1 -1
  75. data/generated/google/apis/appstate_v1/service.rb +18 -30
  76. data/generated/google/apis/bigquery_v2.rb +1 -1
  77. data/generated/google/apis/bigquery_v2/classes.rb +76 -15
  78. data/generated/google/apis/bigquery_v2/representations.rb +22 -0
  79. data/generated/google/apis/bigquery_v2/service.rb +69 -115
  80. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  81. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +1 -2
  82. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +2 -2
  83. data/generated/google/apis/blogger_v2/service.rb +30 -50
  84. data/generated/google/apis/blogger_v3/service.rb +102 -170
  85. data/generated/google/apis/books_v1.rb +1 -1
  86. data/generated/google/apis/books_v1/service.rb +156 -260
  87. data/generated/google/apis/calendar_v3.rb +1 -1
  88. data/generated/google/apis/calendar_v3/service.rb +114 -190
  89. data/generated/google/apis/chat_v1.rb +1 -1
  90. data/generated/google/apis/chat_v1/classes.rb +6 -0
  91. data/generated/google/apis/chat_v1/representations.rb +1 -0
  92. data/generated/google/apis/civicinfo_v2/service.rb +18 -30
  93. data/generated/google/apis/classroom_v1.rb +1 -1
  94. data/generated/google/apis/classroom_v1/classes.rb +0 -69
  95. data/generated/google/apis/classroom_v1/representations.rb +0 -31
  96. data/generated/google/apis/classroom_v1/service.rb +0 -88
  97. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  98. data/generated/google/apis/cloudbilling_v1/classes.rb +0 -1
  99. data/generated/google/apis/cloudbilling_v1/service.rb +2 -1
  100. data/generated/google/apis/clouddebugger_v2.rb +2 -2
  101. data/generated/google/apis/clouddebugger_v2/classes.rb +2 -1
  102. data/generated/google/apis/clouddebugger_v2/service.rb +1 -1
  103. data/generated/google/apis/cloudfunctions_v1.rb +3 -4
  104. data/generated/google/apis/cloudfunctions_v1/classes.rb +14 -0
  105. data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
  106. data/generated/google/apis/cloudfunctions_v1/service.rb +3 -4
  107. data/generated/google/apis/cloudfunctions_v1beta2.rb +3 -4
  108. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +14 -0
  109. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +2 -0
  110. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +3 -4
  111. data/generated/google/apis/cloudiot_v1.rb +1 -1
  112. data/generated/google/apis/cloudiot_v1/classes.rb +29 -7
  113. data/generated/google/apis/cloudiot_v1/service.rb +387 -0
  114. data/generated/google/apis/cloudkms_v1.rb +2 -2
  115. data/generated/google/apis/cloudkms_v1/classes.rb +29 -7
  116. data/generated/google/apis/cloudkms_v1/service.rb +1 -1
  117. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  118. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +31 -9
  119. data/generated/google/apis/cloudresourcemanager_v1/service.rb +5 -3
  120. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  121. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +29 -7
  122. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  123. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +29 -7
  124. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  125. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +29 -7
  126. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  127. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +39 -10
  128. data/generated/google/apis/cloudtasks_v2beta2/service.rb +9 -11
  129. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  130. data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
  131. data/generated/google/apis/{dlp_v2beta1.rb → composer_v1beta1.rb} +9 -11
  132. data/generated/google/apis/composer_v1beta1/classes.rb +640 -0
  133. data/generated/google/apis/composer_v1beta1/representations.rb +195 -0
  134. data/generated/google/apis/composer_v1beta1/service.rb +462 -0
  135. data/generated/google/apis/compute_alpha.rb +1 -1
  136. data/generated/google/apis/compute_alpha/classes.rb +4279 -1869
  137. data/generated/google/apis/compute_alpha/representations.rb +1366 -346
  138. data/generated/google/apis/compute_alpha/service.rb +4754 -4134
  139. data/generated/google/apis/compute_beta.rb +1 -1
  140. data/generated/google/apis/compute_beta/classes.rb +211 -55
  141. data/generated/google/apis/compute_beta/representations.rb +41 -0
  142. data/generated/google/apis/compute_beta/service.rb +1273 -2082
  143. data/generated/google/apis/compute_v1.rb +1 -1
  144. data/generated/google/apis/compute_v1/classes.rb +245 -44
  145. data/generated/google/apis/compute_v1/representations.rb +81 -0
  146. data/generated/google/apis/compute_v1/service.rb +1567 -1668
  147. data/generated/google/apis/container_v1.rb +2 -2
  148. data/generated/google/apis/container_v1/classes.rb +20 -15
  149. data/generated/google/apis/container_v1/representations.rb +1 -0
  150. data/generated/google/apis/container_v1/service.rb +51 -49
  151. data/generated/google/apis/container_v1beta1.rb +2 -2
  152. data/generated/google/apis/container_v1beta1/classes.rb +193 -14
  153. data/generated/google/apis/container_v1beta1/representations.rb +78 -0
  154. data/generated/google/apis/container_v1beta1/service.rb +129 -49
  155. data/generated/google/apis/content_v2.rb +1 -1
  156. data/generated/google/apis/content_v2/classes.rb +173 -8
  157. data/generated/google/apis/content_v2/representations.rb +71 -0
  158. data/generated/google/apis/content_v2/service.rb +246 -410
  159. data/generated/google/apis/content_v2sandbox.rb +1 -1
  160. data/generated/google/apis/content_v2sandbox/classes.rb +75 -8
  161. data/generated/google/apis/content_v2sandbox/representations.rb +33 -0
  162. data/generated/google/apis/content_v2sandbox/service.rb +63 -105
  163. data/generated/google/apis/customsearch_v1.rb +1 -1
  164. data/generated/google/apis/customsearch_v1/service.rb +9 -15
  165. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  166. data/generated/google/apis/dataflow_v1b3/classes.rb +15 -0
  167. data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
  168. data/generated/google/apis/dataproc_v1.rb +2 -2
  169. data/generated/google/apis/dataproc_v1/classes.rb +6 -6
  170. data/generated/google/apis/dataproc_v1/service.rb +1 -1
  171. data/generated/google/apis/dataproc_v1beta2.rb +2 -2
  172. data/generated/google/apis/dataproc_v1beta2/classes.rb +48 -13
  173. data/generated/google/apis/dataproc_v1beta2/representations.rb +12 -0
  174. data/generated/google/apis/dataproc_v1beta2/service.rb +1 -1
  175. data/generated/google/apis/datastore_v1.rb +2 -2
  176. data/generated/google/apis/datastore_v1/service.rb +1 -1
  177. data/generated/google/apis/datastore_v1beta1.rb +2 -2
  178. data/generated/google/apis/datastore_v1beta1/service.rb +1 -1
  179. data/generated/google/apis/datastore_v1beta3.rb +2 -2
  180. data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
  181. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  182. data/generated/google/apis/deploymentmanager_alpha/classes.rb +60 -5
  183. data/generated/google/apis/deploymentmanager_alpha/representations.rb +17 -0
  184. data/generated/google/apis/deploymentmanager_alpha/service.rb +118 -194
  185. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  186. data/generated/google/apis/deploymentmanager_v2/classes.rb +60 -5
  187. data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -0
  188. data/generated/google/apis/deploymentmanager_v2/service.rb +61 -99
  189. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  190. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +60 -5
  191. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +17 -0
  192. data/generated/google/apis/deploymentmanager_v2beta/service.rb +103 -169
  193. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  194. data/generated/google/apis/dfareporting_v2_8/classes.rb +5 -5
  195. data/generated/google/apis/dfareporting_v2_8/service.rb +622 -1031
  196. data/generated/google/apis/dfareporting_v3_0.rb +1 -1
  197. data/generated/google/apis/dfareporting_v3_0/classes.rb +5 -5
  198. data/generated/google/apis/dfareporting_v3_0/service.rb +619 -1026
  199. data/generated/google/apis/dfareporting_v3_1.rb +40 -0
  200. data/generated/google/apis/dfareporting_v3_1/classes.rb +12256 -0
  201. data/generated/google/apis/dfareporting_v3_1/representations.rb +4389 -0
  202. data/generated/google/apis/dfareporting_v3_1/service.rb +8790 -0
  203. data/generated/google/apis/dialogflow_v2.rb +1 -1
  204. data/generated/google/apis/dialogflow_v2/classes.rb +94 -24
  205. data/generated/google/apis/dialogflow_v2/representations.rb +13 -0
  206. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  207. data/generated/google/apis/dialogflow_v2beta1/classes.rb +94 -24
  208. data/generated/google/apis/dialogflow_v2beta1/representations.rb +13 -0
  209. data/generated/google/apis/discovery_v1/service.rb +9 -15
  210. data/generated/google/apis/dlp_v2.rb +1 -1
  211. data/generated/google/apis/dlp_v2/classes.rb +136 -1572
  212. data/generated/google/apis/dlp_v2/representations.rb +676 -1405
  213. data/generated/google/apis/dlp_v2/service.rb +24 -24
  214. data/generated/google/apis/dns_v1.rb +1 -1
  215. data/generated/google/apis/dns_v1/classes.rb +7 -0
  216. data/generated/google/apis/dns_v1/representations.rb +1 -0
  217. data/generated/google/apis/dns_v1/service.rb +49 -81
  218. data/generated/google/apis/dns_v1beta2.rb +1 -1
  219. data/generated/google/apis/dns_v1beta2/classes.rb +7 -0
  220. data/generated/google/apis/dns_v1beta2/representations.rb +1 -0
  221. data/generated/google/apis/dns_v1beta2/service.rb +49 -81
  222. data/generated/google/apis/dns_v2beta1.rb +1 -1
  223. data/generated/google/apis/dns_v2beta1/classes.rb +7 -0
  224. data/generated/google/apis/dns_v2beta1/representations.rb +1 -0
  225. data/generated/google/apis/dns_v2beta1/service.rb +49 -81
  226. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +30 -50
  227. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  228. data/generated/google/apis/doubleclicksearch_v2/service.rb +33 -55
  229. data/generated/google/apis/drive_v2.rb +1 -1
  230. data/generated/google/apis/drive_v2/service.rb +205 -341
  231. data/generated/google/apis/drive_v3.rb +1 -1
  232. data/generated/google/apis/drive_v3/service.rb +120 -200
  233. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  234. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  235. data/generated/google/apis/firestore_v1beta1.rb +2 -2
  236. data/generated/google/apis/firestore_v1beta1/service.rb +1 -1
  237. data/generated/google/apis/fitness_v1/service.rb +45 -75
  238. data/generated/google/apis/fusiontables_v1.rb +1 -1
  239. data/generated/google/apis/fusiontables_v1/service.rb +99 -165
  240. data/generated/google/apis/fusiontables_v2/service.rb +105 -175
  241. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  242. data/generated/google/apis/games_configuration_v1configuration/service.rb +42 -70
  243. data/generated/google/apis/games_management_v1management.rb +1 -1
  244. data/generated/google/apis/games_management_v1management/service.rb +84 -140
  245. data/generated/google/apis/games_v1.rb +1 -1
  246. data/generated/google/apis/games_v1/service.rb +162 -270
  247. data/generated/google/apis/genomics_v1.rb +1 -1
  248. data/generated/google/apis/genomics_v1/classes.rb +41 -7
  249. data/generated/google/apis/genomics_v1/representations.rb +1 -0
  250. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  251. data/generated/google/apis/genomics_v1alpha2/classes.rb +12 -0
  252. data/generated/google/apis/genomics_v1alpha2/representations.rb +1 -0
  253. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  254. data/generated/google/apis/genomics_v2alpha1/classes.rb +70 -0
  255. data/generated/google/apis/genomics_v2alpha1/representations.rb +20 -0
  256. data/generated/google/apis/gmail_v1/service.rb +189 -315
  257. data/generated/google/apis/groupsmigration_v1/service.rb +6 -10
  258. data/generated/google/apis/groupssettings_v1/service.rb +12 -20
  259. data/generated/google/apis/iam_v1.rb +2 -2
  260. data/generated/google/apis/iam_v1/classes.rb +29 -7
  261. data/generated/google/apis/iam_v1/service.rb +1 -1
  262. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  263. data/generated/google/apis/identitytoolkit_v3/classes.rb +56 -0
  264. data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
  265. data/generated/google/apis/identitytoolkit_v3/service.rb +63 -105
  266. data/generated/google/apis/jobs_v2.rb +38 -0
  267. data/generated/google/apis/jobs_v2/classes.rb +3374 -0
  268. data/generated/google/apis/jobs_v2/representations.rb +1067 -0
  269. data/generated/google/apis/jobs_v2/service.rb +753 -0
  270. data/generated/google/apis/language_v1.rb +1 -1
  271. data/generated/google/apis/language_v1/classes.rb +1 -0
  272. data/generated/google/apis/language_v1beta1.rb +1 -1
  273. data/generated/google/apis/language_v1beta1/classes.rb +1 -0
  274. data/generated/google/apis/language_v1beta2.rb +1 -1
  275. data/generated/google/apis/language_v1beta2/classes.rb +1 -0
  276. data/generated/google/apis/licensing_v1/service.rb +24 -40
  277. data/generated/google/apis/logging_v2.rb +1 -1
  278. data/generated/google/apis/logging_v2/classes.rb +55 -5
  279. data/generated/google/apis/logging_v2/representations.rb +16 -0
  280. data/generated/google/apis/logging_v2/service.rb +6 -4
  281. data/generated/google/apis/logging_v2beta1.rb +1 -1
  282. data/generated/google/apis/logging_v2beta1/classes.rb +55 -5
  283. data/generated/google/apis/logging_v2beta1/representations.rb +16 -0
  284. data/generated/google/apis/logging_v2beta1/service.rb +6 -4
  285. data/generated/google/apis/mirror_v1.rb +1 -1
  286. data/generated/google/apis/mirror_v1/service.rb +75 -125
  287. data/generated/google/apis/ml_v1.rb +1 -1
  288. data/generated/google/apis/ml_v1/classes.rb +65 -28
  289. data/generated/google/apis/ml_v1/representations.rb +1 -0
  290. data/generated/google/apis/ml_v1/service.rb +2 -2
  291. data/generated/google/apis/monitoring_v3.rb +1 -1
  292. data/generated/google/apis/monitoring_v3/classes.rb +7 -7
  293. data/generated/google/apis/oauth2_v1.rb +1 -1
  294. data/generated/google/apis/oauth2_v1/service.rb +27 -45
  295. data/generated/google/apis/oauth2_v2.rb +1 -1
  296. data/generated/google/apis/oauth2_v2/service.rb +15 -25
  297. data/generated/google/apis/oslogin_v1.rb +1 -1
  298. data/generated/google/apis/oslogin_v1/classes.rb +6 -0
  299. data/generated/google/apis/oslogin_v1/representations.rb +1 -0
  300. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  301. data/generated/google/apis/oslogin_v1alpha/classes.rb +7 -1
  302. data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
  303. data/generated/google/apis/oslogin_v1alpha/service.rb +4 -1
  304. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  305. data/generated/google/apis/oslogin_v1beta/classes.rb +6 -0
  306. data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
  307. data/generated/google/apis/pagespeedonline_v1.rb +1 -1
  308. data/generated/google/apis/pagespeedonline_v1/service.rb +6 -10
  309. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  310. data/generated/google/apis/pagespeedonline_v2/service.rb +6 -10
  311. data/generated/google/apis/pagespeedonline_v4/service.rb +6 -10
  312. data/generated/google/apis/partners_v2.rb +1 -1
  313. data/generated/google/apis/partners_v2/classes.rb +7 -0
  314. data/generated/google/apis/partners_v2/representations.rb +1 -0
  315. data/generated/google/apis/people_v1.rb +1 -1
  316. data/generated/google/apis/people_v1/service.rb +4 -0
  317. data/generated/google/apis/photoslibrary_v1.rb +49 -0
  318. data/generated/google/apis/photoslibrary_v1/classes.rb +1330 -0
  319. data/generated/google/apis/photoslibrary_v1/representations.rb +625 -0
  320. data/generated/google/apis/photoslibrary_v1/service.rb +399 -0
  321. data/generated/google/apis/playcustomapp_v1/service.rb +6 -10
  322. data/generated/google/apis/plus_domains_v1.rb +1 -1
  323. data/generated/google/apis/plus_domains_v1/service.rb +63 -105
  324. data/generated/google/apis/plus_v1.rb +1 -1
  325. data/generated/google/apis/plus_v1/service.rb +30 -50
  326. data/generated/google/apis/pubsub_v1.rb +2 -2
  327. data/generated/google/apis/pubsub_v1/classes.rb +29 -7
  328. data/generated/google/apis/pubsub_v1/service.rb +1 -1
  329. data/generated/google/apis/pubsub_v1beta1a.rb +2 -2
  330. data/generated/google/apis/pubsub_v1beta1a/service.rb +1 -1
  331. data/generated/google/apis/pubsub_v1beta2.rb +2 -2
  332. data/generated/google/apis/pubsub_v1beta2/classes.rb +29 -7
  333. data/generated/google/apis/pubsub_v1beta2/service.rb +1 -1
  334. data/generated/google/apis/{dlp_v2beta2.rb → redis_v1beta1.rb} +10 -11
  335. data/generated/google/apis/redis_v1beta1/classes.rb +681 -0
  336. data/generated/google/apis/redis_v1beta1/representations.rb +240 -0
  337. data/generated/google/apis/redis_v1beta1/service.rb +426 -0
  338. data/generated/google/apis/replicapool_v1beta1/service.rb +33 -55
  339. data/generated/google/apis/replicapool_v1beta2/service.rb +39 -65
  340. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +33 -55
  341. data/generated/google/apis/reseller_v1/service.rb +54 -90
  342. data/generated/google/apis/resourceviews_v1beta1/service.rb +45 -75
  343. data/generated/google/apis/resourceviews_v1beta2/service.rb +36 -60
  344. data/generated/google/apis/runtimeconfig_v1.rb +2 -2
  345. data/generated/google/apis/runtimeconfig_v1/service.rb +1 -1
  346. data/generated/google/apis/runtimeconfig_v1beta1.rb +2 -2
  347. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +29 -7
  348. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +1 -1
  349. data/generated/google/apis/script_v1.rb +8 -2
  350. data/generated/google/apis/script_v1/classes.rb +3 -3
  351. data/generated/google/apis/script_v1/service.rb +8 -2
  352. data/generated/google/apis/servicebroker_v1.rb +36 -0
  353. data/generated/google/apis/servicebroker_v1/classes.rb +240 -0
  354. data/generated/google/apis/servicebroker_v1/representations.rb +96 -0
  355. data/generated/google/apis/servicebroker_v1/service.rb +168 -0
  356. data/generated/google/apis/servicebroker_v1alpha1.rb +36 -0
  357. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +939 -0
  358. data/generated/google/apis/servicebroker_v1alpha1/representations.rb +348 -0
  359. data/generated/google/apis/servicebroker_v1alpha1/service.rb +728 -0
  360. data/generated/google/apis/servicebroker_v1beta1.rb +36 -0
  361. data/generated/google/apis/servicebroker_v1beta1/classes.rb +1046 -0
  362. data/generated/google/apis/servicebroker_v1beta1/representations.rb +393 -0
  363. data/generated/google/apis/servicebroker_v1beta1/service.rb +917 -0
  364. data/generated/google/apis/servicecontrol_v1.rb +2 -2
  365. data/generated/google/apis/servicecontrol_v1/classes.rb +1 -0
  366. data/generated/google/apis/servicecontrol_v1/service.rb +1 -1
  367. data/generated/google/apis/servicemanagement_v1.rb +2 -2
  368. data/generated/google/apis/servicemanagement_v1/classes.rb +29 -7
  369. data/generated/google/apis/servicemanagement_v1/service.rb +1 -1
  370. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  371. data/generated/google/apis/serviceusage_v1beta1/classes.rb +299 -0
  372. data/generated/google/apis/serviceusage_v1beta1/representations.rb +101 -0
  373. data/generated/google/apis/sheets_v4.rb +1 -1
  374. data/generated/google/apis/sheets_v4/classes.rb +421 -0
  375. data/generated/google/apis/sheets_v4/representations.rb +120 -0
  376. data/generated/google/apis/site_verification_v1/service.rb +24 -40
  377. data/generated/google/apis/slides_v1.rb +1 -1
  378. data/generated/google/apis/slides_v1/classes.rb +6 -2
  379. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  380. data/generated/google/apis/sourcerepo_v1/classes.rb +160 -8
  381. data/generated/google/apis/sourcerepo_v1/representations.rb +63 -0
  382. data/generated/google/apis/sourcerepo_v1/service.rb +99 -0
  383. data/generated/google/apis/spanner_v1.rb +1 -1
  384. data/generated/google/apis/spanner_v1/classes.rb +40 -13
  385. data/generated/google/apis/spanner_v1/service.rb +2 -2
  386. data/generated/google/apis/spectrum_v1explorer.rb +1 -1
  387. data/generated/google/apis/spectrum_v1explorer/service.rb +21 -35
  388. data/generated/google/apis/speech_v1.rb +1 -1
  389. data/generated/google/apis/speech_v1/classes.rb +12 -0
  390. data/generated/google/apis/speech_v1/representations.rb +1 -0
  391. data/generated/google/apis/sqladmin_v1beta3.rb +1 -1
  392. data/generated/google/apis/sqladmin_v1beta3/service.rb +75 -125
  393. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  394. data/generated/google/apis/sqladmin_v1beta4/classes.rb +76 -0
  395. data/generated/google/apis/sqladmin_v1beta4/representations.rb +44 -0
  396. data/generated/google/apis/sqladmin_v1beta4/service.rb +246 -210
  397. data/generated/google/apis/storage_v1.rb +1 -1
  398. data/generated/google/apis/storage_v1/classes.rb +3 -6
  399. data/generated/google/apis/storage_v1/service.rb +144 -240
  400. data/generated/google/apis/storage_v1beta1.rb +1 -1
  401. data/generated/google/apis/storage_v1beta1/service.rb +75 -125
  402. data/generated/google/apis/storage_v1beta2.rb +1 -1
  403. data/generated/google/apis/storage_v1beta2/service.rb +105 -175
  404. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  405. data/generated/google/apis/storagetransfer_v1/classes.rb +4 -3
  406. data/generated/google/apis/surveys_v2.rb +1 -1
  407. data/generated/google/apis/surveys_v2/classes.rb +19 -122
  408. data/generated/google/apis/surveys_v2/representations.rb +0 -38
  409. data/generated/google/apis/surveys_v2/service.rb +27 -157
  410. data/generated/google/apis/tagmanager_v1/service.rb +153 -255
  411. data/generated/google/apis/tagmanager_v2/service.rb +222 -370
  412. data/generated/google/apis/tasks_v1/service.rb +45 -75
  413. data/generated/google/apis/testing_v1.rb +1 -1
  414. data/generated/google/apis/texttospeech_v1beta1.rb +2 -2
  415. data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -1
  416. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  417. data/generated/google/apis/toolresults_v1beta3/service.rb +75 -125
  418. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  419. data/generated/google/apis/urlshortener_v1/service.rb +12 -20
  420. data/generated/google/apis/vault_v1.rb +2 -2
  421. data/generated/google/apis/vault_v1/service.rb +1 -1
  422. data/generated/google/apis/videointelligence_v1.rb +34 -0
  423. data/generated/google/apis/videointelligence_v1/classes.rb +2149 -0
  424. data/generated/google/apis/videointelligence_v1/representations.rb +972 -0
  425. data/generated/google/apis/videointelligence_v1/service.rb +246 -0
  426. data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
  427. data/generated/google/apis/videointelligence_v1beta1/classes.rb +18 -18
  428. data/generated/google/apis/{taskqueue_v1beta2.rb → videointelligence_v1beta2.rb} +10 -13
  429. data/generated/google/apis/videointelligence_v1beta2/classes.rb +2092 -0
  430. data/generated/google/apis/videointelligence_v1beta2/representations.rb +933 -0
  431. data/generated/google/apis/videointelligence_v1beta2/service.rb +92 -0
  432. data/generated/google/apis/vision_v1.rb +1 -1
  433. data/generated/google/apis/vision_v1/classes.rb +2001 -105
  434. data/generated/google/apis/vision_v1/representations.rb +1024 -170
  435. data/generated/google/apis/vision_v1/service.rb +35 -0
  436. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  437. data/generated/google/apis/vision_v1p1beta1/classes.rb +4147 -772
  438. data/generated/google/apis/vision_v1p1beta1/representations.rb +1659 -209
  439. data/generated/google/apis/vision_v1p1beta1/service.rb +35 -0
  440. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  441. data/generated/google/apis/vision_v1p2beta1/classes.rb +2603 -844
  442. data/generated/google/apis/vision_v1p2beta1/representations.rb +784 -8
  443. data/generated/google/apis/vision_v1p2beta1/service.rb +3 -3
  444. data/generated/google/apis/webfonts_v1/service.rb +6 -10
  445. data/generated/google/apis/webmasters_v3/service.rb +42 -70
  446. data/generated/google/apis/websecurityscanner_v1alpha.rb +34 -0
  447. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +760 -0
  448. data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +354 -0
  449. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +548 -0
  450. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  451. data/generated/google/apis/youtube_analytics_v1/service.rb +27 -45
  452. data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
  453. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +27 -45
  454. data/generated/google/apis/youtube_analytics_v2.rb +46 -0
  455. data/generated/google/apis/youtube_analytics_v2/classes.rb +532 -0
  456. data/generated/google/apis/youtube_analytics_v2/representations.rb +232 -0
  457. data/generated/google/apis/youtube_analytics_v2/service.rb +478 -0
  458. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  459. data/generated/google/apis/youtube_partner_v1/service.rb +225 -375
  460. data/generated/google/apis/youtube_v3.rb +1 -1
  461. data/generated/google/apis/youtube_v3/classes.rb +0 -168
  462. data/generated/google/apis/youtube_v3/representations.rb +0 -62
  463. data/generated/google/apis/youtube_v3/service.rb +216 -415
  464. data/lib/google/apis/generator/helpers.rb +3 -1
  465. data/lib/google/apis/version.rb +1 -1
  466. metadata +55 -39
  467. data/generated/google/apis/dlp_v2beta1/classes.rb +0 -3820
  468. data/generated/google/apis/dlp_v2beta1/representations.rb +0 -1879
  469. data/generated/google/apis/dlp_v2beta1/service.rb +0 -603
  470. data/generated/google/apis/dlp_v2beta2/classes.rb +0 -6386
  471. data/generated/google/apis/dlp_v2beta2/representations.rb +0 -3085
  472. data/generated/google/apis/dlp_v2beta2/service.rb +0 -1332
  473. data/generated/google/apis/prediction_v1_2.rb +0 -44
  474. data/generated/google/apis/prediction_v1_2/classes.rb +0 -237
  475. data/generated/google/apis/prediction_v1_2/representations.rb +0 -133
  476. data/generated/google/apis/prediction_v1_2/service.rb +0 -287
  477. data/generated/google/apis/prediction_v1_3.rb +0 -44
  478. data/generated/google/apis/prediction_v1_3/classes.rb +0 -286
  479. data/generated/google/apis/prediction_v1_3/representations.rb +0 -139
  480. data/generated/google/apis/prediction_v1_3/service.rb +0 -284
  481. data/generated/google/apis/prediction_v1_4.rb +0 -44
  482. data/generated/google/apis/prediction_v1_4/classes.rb +0 -336
  483. data/generated/google/apis/prediction_v1_4/representations.rb +0 -158
  484. data/generated/google/apis/prediction_v1_4/service.rb +0 -284
  485. data/generated/google/apis/prediction_v1_5.rb +0 -44
  486. data/generated/google/apis/prediction_v1_5/classes.rb +0 -708
  487. data/generated/google/apis/prediction_v1_5/representations.rb +0 -352
  488. data/generated/google/apis/prediction_v1_5/service.rb +0 -357
  489. data/generated/google/apis/prediction_v1_6.rb +0 -47
  490. data/generated/google/apis/prediction_v1_6/classes.rb +0 -751
  491. data/generated/google/apis/prediction_v1_6/representations.rb +0 -369
  492. data/generated/google/apis/prediction_v1_6/service.rb +0 -381
  493. data/generated/google/apis/taskqueue_v1beta1.rb +0 -37
  494. data/generated/google/apis/taskqueue_v1beta1/classes.rb +0 -242
  495. data/generated/google/apis/taskqueue_v1beta1/representations.rb +0 -124
  496. data/generated/google/apis/taskqueue_v1beta1/service.rb +0 -269
  497. data/generated/google/apis/taskqueue_v1beta2/classes.rb +0 -254
  498. data/generated/google/apis/taskqueue_v1beta2/representations.rb +0 -126
  499. data/generated/google/apis/taskqueue_v1beta2/service.rb +0 -409
@@ -0,0 +1,92 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module VideointelligenceV1beta2
23
+ # Cloud Video Intelligence API
24
+ #
25
+ # Cloud Video Intelligence API.
26
+ #
27
+ # @example
28
+ # require 'google/apis/videointelligence_v1beta2'
29
+ #
30
+ # Videointelligence = Google::Apis::VideointelligenceV1beta2 # Alias the module
31
+ # service = Videointelligence::CloudVideoIntelligenceService.new
32
+ #
33
+ # @see https://cloud.google.com/video-intelligence/docs/
34
+ class CloudVideoIntelligenceService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://videointelligence.googleapis.com/', '')
47
+ @batch_path = 'batch'
48
+ end
49
+
50
+ # Performs asynchronous video annotation. Progress and results can be
51
+ # retrieved through the `google.longrunning.Operations` interface.
52
+ # `Operation.metadata` contains `AnnotateVideoProgress` (progress).
53
+ # `Operation.response` contains `AnnotateVideoResponse` (results).
54
+ # @param [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2AnnotateVideoRequest] google_cloud_videointelligence_v1beta2_annotate_video_request_object
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
57
+ # @param [String] quota_user
58
+ # Available to use for quota purposes for server-side applications. Can be any
59
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [Google::Apis::RequestOptions] options
61
+ # Request-specific options
62
+ #
63
+ # @yield [result, err] Result & error if block supplied
64
+ # @yieldparam result [Google::Apis::VideointelligenceV1beta2::GoogleLongrunningOperation] parsed result object
65
+ # @yieldparam err [StandardError] error object if request failed
66
+ #
67
+ # @return [Google::Apis::VideointelligenceV1beta2::GoogleLongrunningOperation]
68
+ #
69
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
72
+ def annotate_video(google_cloud_videointelligence_v1beta2_annotate_video_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:post, 'v1beta2/videos:annotate', options)
74
+ command.request_representation = Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2AnnotateVideoRequest::Representation
75
+ command.request_object = google_cloud_videointelligence_v1beta2_annotate_video_request_object
76
+ command.response_representation = Google::Apis::VideointelligenceV1beta2::GoogleLongrunningOperation::Representation
77
+ command.response_class = Google::Apis::VideointelligenceV1beta2::GoogleLongrunningOperation
78
+ command.query['fields'] = fields unless fields.nil?
79
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
80
+ execute_or_queue_command(command, &block)
81
+ end
82
+
83
+ protected
84
+
85
+ def apply_command_defaults(command)
86
+ command.query['key'] = key unless key.nil?
87
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
88
+ end
89
+ end
90
+ end
91
+ end
92
+ end
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1
29
29
  VERSION = 'V1'
30
- REVISION = '20180327'
30
+ REVISION = '20180515'
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'
@@ -22,6 +22,32 @@ module Google
22
22
  module Apis
23
23
  module VisionV1
24
24
 
25
+ # Response to a single file annotation request. A file may contain one or more
26
+ # images, which individually have their own responses.
27
+ class AnnotateFileResponse
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # The desired input location and metadata.
31
+ # Corresponds to the JSON property `inputConfig`
32
+ # @return [Google::Apis::VisionV1::InputConfig]
33
+ attr_accessor :input_config
34
+
35
+ # Individual responses to images found within the file.
36
+ # Corresponds to the JSON property `responses`
37
+ # @return [Array<Google::Apis::VisionV1::AnnotateImageResponse>]
38
+ attr_accessor :responses
39
+
40
+ def initialize(**args)
41
+ update!(**args)
42
+ end
43
+
44
+ # Update properties of this object
45
+ def update!(**args)
46
+ @input_config = args[:input_config] if args.key?(:input_config)
47
+ @responses = args[:responses] if args.key?(:responses)
48
+ end
49
+ end
50
+
25
51
  # Request for performing Google Cloud Vision API tasks over a user-provided
26
52
  # image, with user-requested features.
27
53
  class AnnotateImageRequest
@@ -58,6 +84,12 @@ module Google
58
84
  class AnnotateImageResponse
59
85
  include Google::Apis::Core::Hashable
60
86
 
87
+ # If an image was produced from a file (e.g. a PDF), this message gives
88
+ # information about the source of that image.
89
+ # Corresponds to the JSON property `context`
90
+ # @return [Google::Apis::VisionV1::ImageAnnotationContext]
91
+ attr_accessor :context
92
+
61
93
  # Set of crop hints that are used to generate new crops when serving images.
62
94
  # Corresponds to the JSON property `cropHintsAnnotation`
63
95
  # @return [Google::Apis::VisionV1::CropHintsAnnotation]
@@ -165,6 +197,7 @@ module Google
165
197
 
166
198
  # Update properties of this object
167
199
  def update!(**args)
200
+ @context = args[:context] if args.key?(:context)
168
201
  @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
169
202
  @error = args[:error] if args.key?(:error)
170
203
  @face_annotations = args[:face_annotations] if args.key?(:face_annotations)
@@ -179,6 +212,102 @@ module Google
179
212
  end
180
213
  end
181
214
 
215
+ # An offline file annotation request.
216
+ class AsyncAnnotateFileRequest
217
+ include Google::Apis::Core::Hashable
218
+
219
+ # Required. Requested features.
220
+ # Corresponds to the JSON property `features`
221
+ # @return [Array<Google::Apis::VisionV1::Feature>]
222
+ attr_accessor :features
223
+
224
+ # Image context and/or feature-specific parameters.
225
+ # Corresponds to the JSON property `imageContext`
226
+ # @return [Google::Apis::VisionV1::ImageContext]
227
+ attr_accessor :image_context
228
+
229
+ # The desired input location and metadata.
230
+ # Corresponds to the JSON property `inputConfig`
231
+ # @return [Google::Apis::VisionV1::InputConfig]
232
+ attr_accessor :input_config
233
+
234
+ # The desired output location and metadata.
235
+ # Corresponds to the JSON property `outputConfig`
236
+ # @return [Google::Apis::VisionV1::OutputConfig]
237
+ attr_accessor :output_config
238
+
239
+ def initialize(**args)
240
+ update!(**args)
241
+ end
242
+
243
+ # Update properties of this object
244
+ def update!(**args)
245
+ @features = args[:features] if args.key?(:features)
246
+ @image_context = args[:image_context] if args.key?(:image_context)
247
+ @input_config = args[:input_config] if args.key?(:input_config)
248
+ @output_config = args[:output_config] if args.key?(:output_config)
249
+ end
250
+ end
251
+
252
+ # The response for a single offline file annotation request.
253
+ class AsyncAnnotateFileResponse
254
+ include Google::Apis::Core::Hashable
255
+
256
+ # The desired output location and metadata.
257
+ # Corresponds to the JSON property `outputConfig`
258
+ # @return [Google::Apis::VisionV1::OutputConfig]
259
+ attr_accessor :output_config
260
+
261
+ def initialize(**args)
262
+ update!(**args)
263
+ end
264
+
265
+ # Update properties of this object
266
+ def update!(**args)
267
+ @output_config = args[:output_config] if args.key?(:output_config)
268
+ end
269
+ end
270
+
271
+ # Multiple async file annotation requests are batched into a single service
272
+ # call.
273
+ class AsyncBatchAnnotateFilesRequest
274
+ include Google::Apis::Core::Hashable
275
+
276
+ # Individual async file annotation requests for this batch.
277
+ # Corresponds to the JSON property `requests`
278
+ # @return [Array<Google::Apis::VisionV1::AsyncAnnotateFileRequest>]
279
+ attr_accessor :requests
280
+
281
+ def initialize(**args)
282
+ update!(**args)
283
+ end
284
+
285
+ # Update properties of this object
286
+ def update!(**args)
287
+ @requests = args[:requests] if args.key?(:requests)
288
+ end
289
+ end
290
+
291
+ # Response to an async batch file annotation request.
292
+ class AsyncBatchAnnotateFilesResponse
293
+ include Google::Apis::Core::Hashable
294
+
295
+ # The list of file annotation responses, one for each request in
296
+ # AsyncBatchAnnotateFilesRequest.
297
+ # Corresponds to the JSON property `responses`
298
+ # @return [Array<Google::Apis::VisionV1::AsyncAnnotateFileResponse>]
299
+ attr_accessor :responses
300
+
301
+ def initialize(**args)
302
+ update!(**args)
303
+ end
304
+
305
+ # Update properties of this object
306
+ def update!(**args)
307
+ @responses = args[:responses] if args.key?(:responses)
308
+ end
309
+ end
310
+
182
311
  # Multiple image annotation requests are batched into a single service call.
183
312
  class BatchAnnotateImagesRequest
184
313
  include Google::Apis::Core::Hashable
@@ -264,6 +393,11 @@ module Google
264
393
  class BoundingPoly
265
394
  include Google::Apis::Core::Hashable
266
395
 
396
+ # The bounding polygon normalized vertices.
397
+ # Corresponds to the JSON property `normalizedVertices`
398
+ # @return [Array<Google::Apis::VisionV1::NormalizedVertex>]
399
+ attr_accessor :normalized_vertices
400
+
267
401
  # The bounding polygon vertices.
268
402
  # Corresponds to the JSON property `vertices`
269
403
  # @return [Array<Google::Apis::VisionV1::Vertex>]
@@ -275,6 +409,7 @@ module Google
275
409
 
276
410
  # Update properties of this object
277
411
  def update!(**args)
412
+ @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
278
413
  @vertices = args[:vertices] if args.key?(:vertices)
279
414
  end
280
415
  end
@@ -959,47 +1094,8 @@ module Google
959
1094
  end
960
1095
  end
961
1096
 
962
- # The response for a single offline file annotation request.
963
- class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse
964
- include Google::Apis::Core::Hashable
965
-
966
- # The desired output location and metadata.
967
- # Corresponds to the JSON property `outputConfig`
968
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1OutputConfig]
969
- attr_accessor :output_config
970
-
971
- def initialize(**args)
972
- update!(**args)
973
- end
974
-
975
- # Update properties of this object
976
- def update!(**args)
977
- @output_config = args[:output_config] if args.key?(:output_config)
978
- end
979
- end
980
-
981
- # Response to an async batch file annotation request.
982
- class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse
983
- include Google::Apis::Core::Hashable
984
-
985
- # The list of file annotation responses, one for each request in
986
- # AsyncBatchAnnotateFilesRequest.
987
- # Corresponds to the JSON property `responses`
988
- # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse>]
989
- attr_accessor :responses
990
-
991
- def initialize(**args)
992
- update!(**args)
993
- end
994
-
995
- # Update properties of this object
996
- def update!(**args)
997
- @responses = args[:responses] if args.key?(:responses)
998
- end
999
- end
1000
-
1001
1097
  # The Google Cloud Storage location where the output will be written to.
1002
- class GoogleCloudVisionV1p2beta1GcsDestination
1098
+ class GcsDestination
1003
1099
  include Google::Apis::Core::Hashable
1004
1100
 
1005
1101
  # Google Cloud Storage URI where the results will be stored. Results will
@@ -1028,24 +1124,15 @@ module Google
1028
1124
  end
1029
1125
  end
1030
1126
 
1031
- # Contains metadata for the BatchAnnotateImages operation.
1032
- class GoogleCloudVisionV1p2beta1OperationMetadata
1127
+ # The Google Cloud Storage location where the input will be read from.
1128
+ class GcsSource
1033
1129
  include Google::Apis::Core::Hashable
1034
1130
 
1035
- # The time when the batch request was received.
1036
- # Corresponds to the JSON property `createTime`
1037
- # @return [String]
1038
- attr_accessor :create_time
1039
-
1040
- # Current state of the batch operation.
1041
- # Corresponds to the JSON property `state`
1042
- # @return [String]
1043
- attr_accessor :state
1044
-
1045
- # The time when the operation result was last updated.
1046
- # Corresponds to the JSON property `updateTime`
1131
+ # Google Cloud Storage URI for the input file. This must only be a
1132
+ # Google Cloud Storage object. Wildcards are not currently supported.
1133
+ # Corresponds to the JSON property `uri`
1047
1134
  # @return [String]
1048
- attr_accessor :update_time
1135
+ attr_accessor :uri
1049
1136
 
1050
1137
  def initialize(**args)
1051
1138
  update!(**args)
@@ -1053,32 +1140,24 @@ module Google
1053
1140
 
1054
1141
  # Update properties of this object
1055
1142
  def update!(**args)
1056
- @create_time = args[:create_time] if args.key?(:create_time)
1057
- @state = args[:state] if args.key?(:state)
1058
- @update_time = args[:update_time] if args.key?(:update_time)
1143
+ @uri = args[:uri] if args.key?(:uri)
1059
1144
  end
1060
1145
  end
1061
1146
 
1062
- # The desired output location and metadata.
1063
- class GoogleCloudVisionV1p2beta1OutputConfig
1147
+ # Response to a single file annotation request. A file may contain one or more
1148
+ # images, which individually have their own responses.
1149
+ class GoogleCloudVisionV1p2beta1AnnotateFileResponse
1064
1150
  include Google::Apis::Core::Hashable
1065
1151
 
1066
- # The max number of response protos to put into each output JSON file on GCS.
1067
- # The valid range is [1, 100]. If not specified, the default value is 20.
1068
- # For example, for one pdf file with 100 pages, 100 response protos will
1069
- # be generated. If `batch_size` = 20, then 5 json files each
1070
- # containing 20 response protos will be written under the prefix
1071
- # `gcs_destination`.`uri`.
1072
- # Currently, batch_size only applies to GcsDestination, with potential future
1073
- # support for other output configurations.
1074
- # Corresponds to the JSON property `batchSize`
1075
- # @return [Fixnum]
1076
- attr_accessor :batch_size
1152
+ # The desired input location and metadata.
1153
+ # Corresponds to the JSON property `inputConfig`
1154
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1InputConfig]
1155
+ attr_accessor :input_config
1077
1156
 
1078
- # The Google Cloud Storage location where the output will be written to.
1079
- # Corresponds to the JSON property `gcsDestination`
1080
- # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1GcsDestination]
1081
- attr_accessor :gcs_destination
1157
+ # Individual responses to images found within the file.
1158
+ # Corresponds to the JSON property `responses`
1159
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1AnnotateImageResponse>]
1160
+ attr_accessor :responses
1082
1161
 
1083
1162
  def initialize(**args)
1084
1163
  update!(**args)
@@ -1086,45 +1165,1745 @@ module Google
1086
1165
 
1087
1166
  # Update properties of this object
1088
1167
  def update!(**args)
1089
- @batch_size = args[:batch_size] if args.key?(:batch_size)
1090
- @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
1168
+ @input_config = args[:input_config] if args.key?(:input_config)
1169
+ @responses = args[:responses] if args.key?(:responses)
1091
1170
  end
1092
1171
  end
1093
1172
 
1094
- # Client image to perform Google Cloud Vision API tasks over.
1095
- class Image
1173
+ # Response to an image annotation request.
1174
+ class GoogleCloudVisionV1p2beta1AnnotateImageResponse
1096
1175
  include Google::Apis::Core::Hashable
1097
1176
 
1098
- # Image content, represented as a stream of bytes.
1099
- # Note: As with all `bytes` fields, protobuffers use a pure binary
1100
- # representation, whereas JSON representations use base64.
1101
- # Corresponds to the JSON property `content`
1102
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
1103
- # @return [String]
1104
- attr_accessor :content
1105
-
1106
- # External image source (Google Cloud Storage or web URL image location).
1107
- # Corresponds to the JSON property `source`
1108
- # @return [Google::Apis::VisionV1::ImageSource]
1109
- attr_accessor :source
1177
+ # If an image was produced from a file (e.g. a PDF), this message gives
1178
+ # information about the source of that image.
1179
+ # Corresponds to the JSON property `context`
1180
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ImageAnnotationContext]
1181
+ attr_accessor :context
1110
1182
 
1111
- def initialize(**args)
1112
- update!(**args)
1113
- end
1183
+ # Set of crop hints that are used to generate new crops when serving images.
1184
+ # Corresponds to the JSON property `cropHintsAnnotation`
1185
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1CropHintsAnnotation]
1186
+ attr_accessor :crop_hints_annotation
1114
1187
 
1115
- # Update properties of this object
1116
- def update!(**args)
1117
- @content = args[:content] if args.key?(:content)
1118
- @source = args[:source] if args.key?(:source)
1119
- end
1120
- end
1188
+ # The `Status` type defines a logical error model that is suitable for different
1189
+ # programming environments, including REST APIs and RPC APIs. It is used by
1190
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
1191
+ # - Simple to use and understand for most users
1192
+ # - Flexible enough to meet unexpected needs
1193
+ # # Overview
1194
+ # The `Status` message contains three pieces of data: error code, error message,
1195
+ # and error details. The error code should be an enum value of
1196
+ # google.rpc.Code, but it may accept additional error codes if needed. The
1197
+ # error message should be a developer-facing English message that helps
1198
+ # developers *understand* and *resolve* the error. If a localized user-facing
1199
+ # error message is needed, put the localized message in the error details or
1200
+ # localize it in the client. The optional error details may contain arbitrary
1201
+ # information about the error. There is a predefined set of error detail types
1202
+ # in the package `google.rpc` that can be used for common error conditions.
1203
+ # # Language mapping
1204
+ # The `Status` message is the logical representation of the error model, but it
1205
+ # is not necessarily the actual wire format. When the `Status` message is
1206
+ # exposed in different client libraries and different wire protocols, it can be
1207
+ # mapped differently. For example, it will likely be mapped to some exceptions
1208
+ # in Java, but more likely mapped to some error codes in C.
1209
+ # # Other uses
1210
+ # The error model and the `Status` message can be used in a variety of
1211
+ # environments, either with or without APIs, to provide a
1212
+ # consistent developer experience across different environments.
1213
+ # Example uses of this error model include:
1214
+ # - Partial errors. If a service needs to return partial errors to the client,
1215
+ # it may embed the `Status` in the normal response to indicate the partial
1216
+ # errors.
1217
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
1218
+ # have a `Status` message for error reporting.
1219
+ # - Batch operations. If a client uses batch request and batch response, the
1220
+ # `Status` message should be used directly inside batch response, one for
1221
+ # each error sub-response.
1222
+ # - Asynchronous operations. If an API call embeds asynchronous operation
1223
+ # results in its response, the status of those operations should be
1224
+ # represented directly using the `Status` message.
1225
+ # - Logging. If some API errors are stored in logs, the message `Status` could
1226
+ # be used directly after any stripping needed for security/privacy reasons.
1227
+ # Corresponds to the JSON property `error`
1228
+ # @return [Google::Apis::VisionV1::Status]
1229
+ attr_accessor :error
1121
1230
 
1122
- # Image context and/or feature-specific parameters.
1123
- class ImageContext
1124
- include Google::Apis::Core::Hashable
1231
+ # If present, face detection has completed successfully.
1232
+ # Corresponds to the JSON property `faceAnnotations`
1233
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1FaceAnnotation>]
1234
+ attr_accessor :face_annotations
1125
1235
 
1126
- # Parameters for crop hints annotation request.
1127
- # Corresponds to the JSON property `cropHintsParams`
1236
+ # TextAnnotation contains a structured representation of OCR extracted text.
1237
+ # The hierarchy of an OCR extracted text structure is like this:
1238
+ # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
1239
+ # Each structural component, starting from Page, may further have their own
1240
+ # properties. Properties describe detected languages, breaks etc.. Please refer
1241
+ # to the TextAnnotation.TextProperty message definition below for more
1242
+ # detail.
1243
+ # Corresponds to the JSON property `fullTextAnnotation`
1244
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotation]
1245
+ attr_accessor :full_text_annotation
1246
+
1247
+ # Stores image properties, such as dominant colors.
1248
+ # Corresponds to the JSON property `imagePropertiesAnnotation`
1249
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ImageProperties]
1250
+ attr_accessor :image_properties_annotation
1251
+
1252
+ # If present, label detection has completed successfully.
1253
+ # Corresponds to the JSON property `labelAnnotations`
1254
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
1255
+ attr_accessor :label_annotations
1256
+
1257
+ # If present, landmark detection has completed successfully.
1258
+ # Corresponds to the JSON property `landmarkAnnotations`
1259
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
1260
+ attr_accessor :landmark_annotations
1261
+
1262
+ # If present, logo detection has completed successfully.
1263
+ # Corresponds to the JSON property `logoAnnotations`
1264
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
1265
+ attr_accessor :logo_annotations
1266
+
1267
+ # Set of features pertaining to the image, computed by computer vision
1268
+ # methods over safe-search verticals (for example, adult, spoof, medical,
1269
+ # violence).
1270
+ # Corresponds to the JSON property `safeSearchAnnotation`
1271
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1SafeSearchAnnotation]
1272
+ attr_accessor :safe_search_annotation
1273
+
1274
+ # If present, text (OCR) detection has completed successfully.
1275
+ # Corresponds to the JSON property `textAnnotations`
1276
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
1277
+ attr_accessor :text_annotations
1278
+
1279
+ # Relevant information for the image from the Internet.
1280
+ # Corresponds to the JSON property `webDetection`
1281
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetection]
1282
+ attr_accessor :web_detection
1283
+
1284
+ def initialize(**args)
1285
+ update!(**args)
1286
+ end
1287
+
1288
+ # Update properties of this object
1289
+ def update!(**args)
1290
+ @context = args[:context] if args.key?(:context)
1291
+ @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
1292
+ @error = args[:error] if args.key?(:error)
1293
+ @face_annotations = args[:face_annotations] if args.key?(:face_annotations)
1294
+ @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
1295
+ @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
1296
+ @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
1297
+ @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
1298
+ @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
1299
+ @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
1300
+ @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
1301
+ @web_detection = args[:web_detection] if args.key?(:web_detection)
1302
+ end
1303
+ end
1304
+
1305
+ # The response for a single offline file annotation request.
1306
+ class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse
1307
+ include Google::Apis::Core::Hashable
1308
+
1309
+ # The desired output location and metadata.
1310
+ # Corresponds to the JSON property `outputConfig`
1311
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1OutputConfig]
1312
+ attr_accessor :output_config
1313
+
1314
+ def initialize(**args)
1315
+ update!(**args)
1316
+ end
1317
+
1318
+ # Update properties of this object
1319
+ def update!(**args)
1320
+ @output_config = args[:output_config] if args.key?(:output_config)
1321
+ end
1322
+ end
1323
+
1324
+ # Response to an async batch file annotation request.
1325
+ class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse
1326
+ include Google::Apis::Core::Hashable
1327
+
1328
+ # The list of file annotation responses, one for each request in
1329
+ # AsyncBatchAnnotateFilesRequest.
1330
+ # Corresponds to the JSON property `responses`
1331
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse>]
1332
+ attr_accessor :responses
1333
+
1334
+ def initialize(**args)
1335
+ update!(**args)
1336
+ end
1337
+
1338
+ # Update properties of this object
1339
+ def update!(**args)
1340
+ @responses = args[:responses] if args.key?(:responses)
1341
+ end
1342
+ end
1343
+
1344
+ # Logical element on the page.
1345
+ class GoogleCloudVisionV1p2beta1Block
1346
+ include Google::Apis::Core::Hashable
1347
+
1348
+ # Detected block type (text, image etc) for this block.
1349
+ # Corresponds to the JSON property `blockType`
1350
+ # @return [String]
1351
+ attr_accessor :block_type
1352
+
1353
+ # A bounding polygon for the detected image annotation.
1354
+ # Corresponds to the JSON property `boundingBox`
1355
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
1356
+ attr_accessor :bounding_box
1357
+
1358
+ # Confidence of the OCR results on the block. Range [0, 1].
1359
+ # Corresponds to the JSON property `confidence`
1360
+ # @return [Float]
1361
+ attr_accessor :confidence
1362
+
1363
+ # List of paragraphs in this block (if this blocks is of type text).
1364
+ # Corresponds to the JSON property `paragraphs`
1365
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Paragraph>]
1366
+ attr_accessor :paragraphs
1367
+
1368
+ # Additional information detected on the structural component.
1369
+ # Corresponds to the JSON property `property`
1370
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
1371
+ attr_accessor :property
1372
+
1373
+ def initialize(**args)
1374
+ update!(**args)
1375
+ end
1376
+
1377
+ # Update properties of this object
1378
+ def update!(**args)
1379
+ @block_type = args[:block_type] if args.key?(:block_type)
1380
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
1381
+ @confidence = args[:confidence] if args.key?(:confidence)
1382
+ @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
1383
+ @property = args[:property] if args.key?(:property)
1384
+ end
1385
+ end
1386
+
1387
+ # A bounding polygon for the detected image annotation.
1388
+ class GoogleCloudVisionV1p2beta1BoundingPoly
1389
+ include Google::Apis::Core::Hashable
1390
+
1391
+ # The bounding polygon normalized vertices.
1392
+ # Corresponds to the JSON property `normalizedVertices`
1393
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1NormalizedVertex>]
1394
+ attr_accessor :normalized_vertices
1395
+
1396
+ # The bounding polygon vertices.
1397
+ # Corresponds to the JSON property `vertices`
1398
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Vertex>]
1399
+ attr_accessor :vertices
1400
+
1401
+ def initialize(**args)
1402
+ update!(**args)
1403
+ end
1404
+
1405
+ # Update properties of this object
1406
+ def update!(**args)
1407
+ @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
1408
+ @vertices = args[:vertices] if args.key?(:vertices)
1409
+ end
1410
+ end
1411
+
1412
+ # Color information consists of RGB channels, score, and the fraction of
1413
+ # the image that the color occupies in the image.
1414
+ class GoogleCloudVisionV1p2beta1ColorInfo
1415
+ include Google::Apis::Core::Hashable
1416
+
1417
+ # Represents a color in the RGBA color space. This representation is designed
1418
+ # for simplicity of conversion to/from color representations in various
1419
+ # languages over compactness; for example, the fields of this representation
1420
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
1421
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
1422
+ # method in iOS; and, with just a little work, it can be easily formatted into
1423
+ # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
1424
+ # Example (Java):
1425
+ # import com.google.type.Color;
1426
+ # // ...
1427
+ # public static java.awt.Color fromProto(Color protocolor) `
1428
+ # float alpha = protocolor.hasAlpha()
1429
+ # ? protocolor.getAlpha().getValue()
1430
+ # : 1.0;
1431
+ # return new java.awt.Color(
1432
+ # protocolor.getRed(),
1433
+ # protocolor.getGreen(),
1434
+ # protocolor.getBlue(),
1435
+ # alpha);
1436
+ # `
1437
+ # public static Color toProto(java.awt.Color color) `
1438
+ # float red = (float) color.getRed();
1439
+ # float green = (float) color.getGreen();
1440
+ # float blue = (float) color.getBlue();
1441
+ # float denominator = 255.0;
1442
+ # Color.Builder resultBuilder =
1443
+ # Color
1444
+ # .newBuilder()
1445
+ # .setRed(red / denominator)
1446
+ # .setGreen(green / denominator)
1447
+ # .setBlue(blue / denominator);
1448
+ # int alpha = color.getAlpha();
1449
+ # if (alpha != 255) `
1450
+ # result.setAlpha(
1451
+ # FloatValue
1452
+ # .newBuilder()
1453
+ # .setValue(((float) alpha) / denominator)
1454
+ # .build());
1455
+ # `
1456
+ # return resultBuilder.build();
1457
+ # `
1458
+ # // ...
1459
+ # Example (iOS / Obj-C):
1460
+ # // ...
1461
+ # static UIColor* fromProto(Color* protocolor) `
1462
+ # float red = [protocolor red];
1463
+ # float green = [protocolor green];
1464
+ # float blue = [protocolor blue];
1465
+ # FloatValue* alpha_wrapper = [protocolor alpha];
1466
+ # float alpha = 1.0;
1467
+ # if (alpha_wrapper != nil) `
1468
+ # alpha = [alpha_wrapper value];
1469
+ # `
1470
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
1471
+ # `
1472
+ # static Color* toProto(UIColor* color) `
1473
+ # CGFloat red, green, blue, alpha;
1474
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
1475
+ # return nil;
1476
+ # `
1477
+ # Color* result = [Color alloc] init];
1478
+ # [result setRed:red];
1479
+ # [result setGreen:green];
1480
+ # [result setBlue:blue];
1481
+ # if (alpha <= 0.9999) `
1482
+ # [result setAlpha:floatWrapperWithValue(alpha)];
1483
+ # `
1484
+ # [result autorelease];
1485
+ # return result;
1486
+ # `
1487
+ # // ...
1488
+ # Example (JavaScript):
1489
+ # // ...
1490
+ # var protoToCssColor = function(rgb_color) `
1491
+ # var redFrac = rgb_color.red || 0.0;
1492
+ # var greenFrac = rgb_color.green || 0.0;
1493
+ # var blueFrac = rgb_color.blue || 0.0;
1494
+ # var red = Math.floor(redFrac * 255);
1495
+ # var green = Math.floor(greenFrac * 255);
1496
+ # var blue = Math.floor(blueFrac * 255);
1497
+ # if (!('alpha' in rgb_color)) `
1498
+ # return rgbToCssColor_(red, green, blue);
1499
+ # `
1500
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
1501
+ # var rgbParams = [red, green, blue].join(',');
1502
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
1503
+ # `;
1504
+ # var rgbToCssColor_ = function(red, green, blue) `
1505
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
1506
+ # var hexString = rgbNumber.toString(16);
1507
+ # var missingZeros = 6 - hexString.length;
1508
+ # var resultBuilder = ['#'];
1509
+ # for (var i = 0; i < missingZeros; i++) `
1510
+ # resultBuilder.push('0');
1511
+ # `
1512
+ # resultBuilder.push(hexString);
1513
+ # return resultBuilder.join('');
1514
+ # `;
1515
+ # // ...
1516
+ # Corresponds to the JSON property `color`
1517
+ # @return [Google::Apis::VisionV1::Color]
1518
+ attr_accessor :color
1519
+
1520
+ # The fraction of pixels the color occupies in the image.
1521
+ # Value in range [0, 1].
1522
+ # Corresponds to the JSON property `pixelFraction`
1523
+ # @return [Float]
1524
+ attr_accessor :pixel_fraction
1525
+
1526
+ # Image-specific score for this color. Value in range [0, 1].
1527
+ # Corresponds to the JSON property `score`
1528
+ # @return [Float]
1529
+ attr_accessor :score
1530
+
1531
+ def initialize(**args)
1532
+ update!(**args)
1533
+ end
1534
+
1535
+ # Update properties of this object
1536
+ def update!(**args)
1537
+ @color = args[:color] if args.key?(:color)
1538
+ @pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction)
1539
+ @score = args[:score] if args.key?(:score)
1540
+ end
1541
+ end
1542
+
1543
+ # Single crop hint that is used to generate a new crop when serving an image.
1544
+ class GoogleCloudVisionV1p2beta1CropHint
1545
+ include Google::Apis::Core::Hashable
1546
+
1547
+ # A bounding polygon for the detected image annotation.
1548
+ # Corresponds to the JSON property `boundingPoly`
1549
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
1550
+ attr_accessor :bounding_poly
1551
+
1552
+ # Confidence of this being a salient region. Range [0, 1].
1553
+ # Corresponds to the JSON property `confidence`
1554
+ # @return [Float]
1555
+ attr_accessor :confidence
1556
+
1557
+ # Fraction of importance of this salient region with respect to the original
1558
+ # image.
1559
+ # Corresponds to the JSON property `importanceFraction`
1560
+ # @return [Float]
1561
+ attr_accessor :importance_fraction
1562
+
1563
+ def initialize(**args)
1564
+ update!(**args)
1565
+ end
1566
+
1567
+ # Update properties of this object
1568
+ def update!(**args)
1569
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
1570
+ @confidence = args[:confidence] if args.key?(:confidence)
1571
+ @importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction)
1572
+ end
1573
+ end
1574
+
1575
+ # Set of crop hints that are used to generate new crops when serving images.
1576
+ class GoogleCloudVisionV1p2beta1CropHintsAnnotation
1577
+ include Google::Apis::Core::Hashable
1578
+
1579
+ # Crop hint results.
1580
+ # Corresponds to the JSON property `cropHints`
1581
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1CropHint>]
1582
+ attr_accessor :crop_hints
1583
+
1584
+ def initialize(**args)
1585
+ update!(**args)
1586
+ end
1587
+
1588
+ # Update properties of this object
1589
+ def update!(**args)
1590
+ @crop_hints = args[:crop_hints] if args.key?(:crop_hints)
1591
+ end
1592
+ end
1593
+
1594
+ # Set of dominant colors and their corresponding scores.
1595
+ class GoogleCloudVisionV1p2beta1DominantColorsAnnotation
1596
+ include Google::Apis::Core::Hashable
1597
+
1598
+ # RGB color values with their score and pixel fraction.
1599
+ # Corresponds to the JSON property `colors`
1600
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ColorInfo>]
1601
+ attr_accessor :colors
1602
+
1603
+ def initialize(**args)
1604
+ update!(**args)
1605
+ end
1606
+
1607
+ # Update properties of this object
1608
+ def update!(**args)
1609
+ @colors = args[:colors] if args.key?(:colors)
1610
+ end
1611
+ end
1612
+
1613
+ # Set of detected entity features.
1614
+ class GoogleCloudVisionV1p2beta1EntityAnnotation
1615
+ include Google::Apis::Core::Hashable
1616
+
1617
+ # A bounding polygon for the detected image annotation.
1618
+ # Corresponds to the JSON property `boundingPoly`
1619
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
1620
+ attr_accessor :bounding_poly
1621
+
1622
+ # **Deprecated. Use `score` instead.**
1623
+ # The accuracy of the entity detection in an image.
1624
+ # For example, for an image in which the "Eiffel Tower" entity is detected,
1625
+ # this field represents the confidence that there is a tower in the query
1626
+ # image. Range [0, 1].
1627
+ # Corresponds to the JSON property `confidence`
1628
+ # @return [Float]
1629
+ attr_accessor :confidence
1630
+
1631
+ # Entity textual description, expressed in its `locale` language.
1632
+ # Corresponds to the JSON property `description`
1633
+ # @return [String]
1634
+ attr_accessor :description
1635
+
1636
+ # The language code for the locale in which the entity textual
1637
+ # `description` is expressed.
1638
+ # Corresponds to the JSON property `locale`
1639
+ # @return [String]
1640
+ attr_accessor :locale
1641
+
1642
+ # The location information for the detected entity. Multiple
1643
+ # `LocationInfo` elements can be present because one location may
1644
+ # indicate the location of the scene in the image, and another location
1645
+ # may indicate the location of the place where the image was taken.
1646
+ # Location information is usually present for landmarks.
1647
+ # Corresponds to the JSON property `locations`
1648
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1LocationInfo>]
1649
+ attr_accessor :locations
1650
+
1651
+ # Opaque entity ID. Some IDs may be available in
1652
+ # [Google Knowledge Graph Search
1653
+ # API](https://developers.google.com/knowledge-graph/).
1654
+ # Corresponds to the JSON property `mid`
1655
+ # @return [String]
1656
+ attr_accessor :mid
1657
+
1658
+ # Some entities may have optional user-supplied `Property` (name/value)
1659
+ # fields, such a score or string that qualifies the entity.
1660
+ # Corresponds to the JSON property `properties`
1661
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Property>]
1662
+ attr_accessor :properties
1663
+
1664
+ # Overall score of the result. Range [0, 1].
1665
+ # Corresponds to the JSON property `score`
1666
+ # @return [Float]
1667
+ attr_accessor :score
1668
+
1669
+ # The relevancy of the ICA (Image Content Annotation) label to the
1670
+ # image. For example, the relevancy of "tower" is likely higher to an image
1671
+ # containing the detected "Eiffel Tower" than to an image containing a
1672
+ # detected distant towering building, even though the confidence that
1673
+ # there is a tower in each image may be the same. Range [0, 1].
1674
+ # Corresponds to the JSON property `topicality`
1675
+ # @return [Float]
1676
+ attr_accessor :topicality
1677
+
1678
+ def initialize(**args)
1679
+ update!(**args)
1680
+ end
1681
+
1682
+ # Update properties of this object
1683
+ def update!(**args)
1684
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
1685
+ @confidence = args[:confidence] if args.key?(:confidence)
1686
+ @description = args[:description] if args.key?(:description)
1687
+ @locale = args[:locale] if args.key?(:locale)
1688
+ @locations = args[:locations] if args.key?(:locations)
1689
+ @mid = args[:mid] if args.key?(:mid)
1690
+ @properties = args[:properties] if args.key?(:properties)
1691
+ @score = args[:score] if args.key?(:score)
1692
+ @topicality = args[:topicality] if args.key?(:topicality)
1693
+ end
1694
+ end
1695
+
1696
+ # A face annotation object contains the results of face detection.
1697
+ class GoogleCloudVisionV1p2beta1FaceAnnotation
1698
+ include Google::Apis::Core::Hashable
1699
+
1700
+ # Anger likelihood.
1701
+ # Corresponds to the JSON property `angerLikelihood`
1702
+ # @return [String]
1703
+ attr_accessor :anger_likelihood
1704
+
1705
+ # Blurred likelihood.
1706
+ # Corresponds to the JSON property `blurredLikelihood`
1707
+ # @return [String]
1708
+ attr_accessor :blurred_likelihood
1709
+
1710
+ # A bounding polygon for the detected image annotation.
1711
+ # Corresponds to the JSON property `boundingPoly`
1712
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
1713
+ attr_accessor :bounding_poly
1714
+
1715
+ # Detection confidence. Range [0, 1].
1716
+ # Corresponds to the JSON property `detectionConfidence`
1717
+ # @return [Float]
1718
+ attr_accessor :detection_confidence
1719
+
1720
+ # A bounding polygon for the detected image annotation.
1721
+ # Corresponds to the JSON property `fdBoundingPoly`
1722
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
1723
+ attr_accessor :fd_bounding_poly
1724
+
1725
+ # Headwear likelihood.
1726
+ # Corresponds to the JSON property `headwearLikelihood`
1727
+ # @return [String]
1728
+ attr_accessor :headwear_likelihood
1729
+
1730
+ # Joy likelihood.
1731
+ # Corresponds to the JSON property `joyLikelihood`
1732
+ # @return [String]
1733
+ attr_accessor :joy_likelihood
1734
+
1735
+ # Face landmarking confidence. Range [0, 1].
1736
+ # Corresponds to the JSON property `landmarkingConfidence`
1737
+ # @return [Float]
1738
+ attr_accessor :landmarking_confidence
1739
+
1740
+ # Detected face landmarks.
1741
+ # Corresponds to the JSON property `landmarks`
1742
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1FaceAnnotationLandmark>]
1743
+ attr_accessor :landmarks
1744
+
1745
+ # Yaw angle, which indicates the leftward/rightward angle that the face is
1746
+ # pointing relative to the vertical plane perpendicular to the image. Range
1747
+ # [-180,180].
1748
+ # Corresponds to the JSON property `panAngle`
1749
+ # @return [Float]
1750
+ attr_accessor :pan_angle
1751
+
1752
+ # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
1753
+ # of the face relative to the image vertical about the axis perpendicular to
1754
+ # the face. Range [-180,180].
1755
+ # Corresponds to the JSON property `rollAngle`
1756
+ # @return [Float]
1757
+ attr_accessor :roll_angle
1758
+
1759
+ # Sorrow likelihood.
1760
+ # Corresponds to the JSON property `sorrowLikelihood`
1761
+ # @return [String]
1762
+ attr_accessor :sorrow_likelihood
1763
+
1764
+ # Surprise likelihood.
1765
+ # Corresponds to the JSON property `surpriseLikelihood`
1766
+ # @return [String]
1767
+ attr_accessor :surprise_likelihood
1768
+
1769
+ # Pitch angle, which indicates the upwards/downwards angle that the face is
1770
+ # pointing relative to the image's horizontal plane. Range [-180,180].
1771
+ # Corresponds to the JSON property `tiltAngle`
1772
+ # @return [Float]
1773
+ attr_accessor :tilt_angle
1774
+
1775
+ # Under-exposed likelihood.
1776
+ # Corresponds to the JSON property `underExposedLikelihood`
1777
+ # @return [String]
1778
+ attr_accessor :under_exposed_likelihood
1779
+
1780
+ def initialize(**args)
1781
+ update!(**args)
1782
+ end
1783
+
1784
+ # Update properties of this object
1785
+ def update!(**args)
1786
+ @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood)
1787
+ @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood)
1788
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
1789
+ @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence)
1790
+ @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly)
1791
+ @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood)
1792
+ @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood)
1793
+ @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
1794
+ @landmarks = args[:landmarks] if args.key?(:landmarks)
1795
+ @pan_angle = args[:pan_angle] if args.key?(:pan_angle)
1796
+ @roll_angle = args[:roll_angle] if args.key?(:roll_angle)
1797
+ @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood)
1798
+ @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
1799
+ @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle)
1800
+ @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood)
1801
+ end
1802
+ end
1803
+
1804
+ # A face-specific landmark (for example, a face feature).
1805
+ class GoogleCloudVisionV1p2beta1FaceAnnotationLandmark
1806
+ include Google::Apis::Core::Hashable
1807
+
1808
+ # A 3D position in the image, used primarily for Face detection landmarks.
1809
+ # A valid Position must have both x and y coordinates.
1810
+ # The position coordinates are in the same scale as the original image.
1811
+ # Corresponds to the JSON property `position`
1812
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Position]
1813
+ attr_accessor :position
1814
+
1815
+ # Face landmark type.
1816
+ # Corresponds to the JSON property `type`
1817
+ # @return [String]
1818
+ attr_accessor :type
1819
+
1820
+ def initialize(**args)
1821
+ update!(**args)
1822
+ end
1823
+
1824
+ # Update properties of this object
1825
+ def update!(**args)
1826
+ @position = args[:position] if args.key?(:position)
1827
+ @type = args[:type] if args.key?(:type)
1828
+ end
1829
+ end
1830
+
1831
+ # The Google Cloud Storage location where the output will be written to.
1832
+ class GoogleCloudVisionV1p2beta1GcsDestination
1833
+ include Google::Apis::Core::Hashable
1834
+
1835
+ # Google Cloud Storage URI where the results will be stored. Results will
1836
+ # be in JSON format and preceded by its corresponding input URI. This field
1837
+ # can either represent a single file, or a prefix for multiple outputs.
1838
+ # Prefixes must end in a `/`.
1839
+ # Examples:
1840
+ # * File: gs://bucket-name/filename.json
1841
+ # * Prefix: gs://bucket-name/prefix/here/
1842
+ # * File: gs://bucket-name/prefix/here
1843
+ # If multiple outputs, each response is still AnnotateFileResponse, each of
1844
+ # which contains some subset of the full list of AnnotateImageResponse.
1845
+ # Multiple outputs can happen if, for example, the output JSON is too large
1846
+ # and overflows into multiple sharded files.
1847
+ # Corresponds to the JSON property `uri`
1848
+ # @return [String]
1849
+ attr_accessor :uri
1850
+
1851
+ def initialize(**args)
1852
+ update!(**args)
1853
+ end
1854
+
1855
+ # Update properties of this object
1856
+ def update!(**args)
1857
+ @uri = args[:uri] if args.key?(:uri)
1858
+ end
1859
+ end
1860
+
1861
+ # The Google Cloud Storage location where the input will be read from.
1862
+ class GoogleCloudVisionV1p2beta1GcsSource
1863
+ include Google::Apis::Core::Hashable
1864
+
1865
+ # Google Cloud Storage URI for the input file. This must only be a
1866
+ # Google Cloud Storage object. Wildcards are not currently supported.
1867
+ # Corresponds to the JSON property `uri`
1868
+ # @return [String]
1869
+ attr_accessor :uri
1870
+
1871
+ def initialize(**args)
1872
+ update!(**args)
1873
+ end
1874
+
1875
+ # Update properties of this object
1876
+ def update!(**args)
1877
+ @uri = args[:uri] if args.key?(:uri)
1878
+ end
1879
+ end
1880
+
1881
+ # If an image was produced from a file (e.g. a PDF), this message gives
1882
+ # information about the source of that image.
1883
+ class GoogleCloudVisionV1p2beta1ImageAnnotationContext
1884
+ include Google::Apis::Core::Hashable
1885
+
1886
+ # If the file was a PDF or TIFF, this field gives the page number within
1887
+ # the file used to produce the image.
1888
+ # Corresponds to the JSON property `pageNumber`
1889
+ # @return [Fixnum]
1890
+ attr_accessor :page_number
1891
+
1892
+ # The URI of the file used to produce the image.
1893
+ # Corresponds to the JSON property `uri`
1894
+ # @return [String]
1895
+ attr_accessor :uri
1896
+
1897
+ def initialize(**args)
1898
+ update!(**args)
1899
+ end
1900
+
1901
+ # Update properties of this object
1902
+ def update!(**args)
1903
+ @page_number = args[:page_number] if args.key?(:page_number)
1904
+ @uri = args[:uri] if args.key?(:uri)
1905
+ end
1906
+ end
1907
+
1908
+ # Stores image properties, such as dominant colors.
1909
+ class GoogleCloudVisionV1p2beta1ImageProperties
1910
+ include Google::Apis::Core::Hashable
1911
+
1912
+ # Set of dominant colors and their corresponding scores.
1913
+ # Corresponds to the JSON property `dominantColors`
1914
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1DominantColorsAnnotation]
1915
+ attr_accessor :dominant_colors
1916
+
1917
+ def initialize(**args)
1918
+ update!(**args)
1919
+ end
1920
+
1921
+ # Update properties of this object
1922
+ def update!(**args)
1923
+ @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
1924
+ end
1925
+ end
1926
+
1927
+ # The desired input location and metadata.
1928
+ class GoogleCloudVisionV1p2beta1InputConfig
1929
+ include Google::Apis::Core::Hashable
1930
+
1931
+ # The Google Cloud Storage location where the input will be read from.
1932
+ # Corresponds to the JSON property `gcsSource`
1933
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1GcsSource]
1934
+ attr_accessor :gcs_source
1935
+
1936
+ # The type of the file. Currently only "application/pdf" and "image/tiff"
1937
+ # are supported. Wildcards are not supported.
1938
+ # Corresponds to the JSON property `mimeType`
1939
+ # @return [String]
1940
+ attr_accessor :mime_type
1941
+
1942
+ def initialize(**args)
1943
+ update!(**args)
1944
+ end
1945
+
1946
+ # Update properties of this object
1947
+ def update!(**args)
1948
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
1949
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
1950
+ end
1951
+ end
1952
+
1953
+ # Detected entity location information.
1954
+ class GoogleCloudVisionV1p2beta1LocationInfo
1955
+ include Google::Apis::Core::Hashable
1956
+
1957
+ # An object representing a latitude/longitude pair. This is expressed as a pair
1958
+ # of doubles representing degrees latitude and degrees longitude. Unless
1959
+ # specified otherwise, this must conform to the
1960
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
1961
+ # standard</a>. Values must be within normalized ranges.
1962
+ # Corresponds to the JSON property `latLng`
1963
+ # @return [Google::Apis::VisionV1::LatLng]
1964
+ attr_accessor :lat_lng
1965
+
1966
+ def initialize(**args)
1967
+ update!(**args)
1968
+ end
1969
+
1970
+ # Update properties of this object
1971
+ def update!(**args)
1972
+ @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
1973
+ end
1974
+ end
1975
+
1976
+ # A vertex represents a 2D point in the image.
1977
+ # NOTE: the normalized vertex coordinates are relative to the original image
1978
+ # and range from 0 to 1.
1979
+ class GoogleCloudVisionV1p2beta1NormalizedVertex
1980
+ include Google::Apis::Core::Hashable
1981
+
1982
+ # X coordinate.
1983
+ # Corresponds to the JSON property `x`
1984
+ # @return [Float]
1985
+ attr_accessor :x
1986
+
1987
+ # Y coordinate.
1988
+ # Corresponds to the JSON property `y`
1989
+ # @return [Float]
1990
+ attr_accessor :y
1991
+
1992
+ def initialize(**args)
1993
+ update!(**args)
1994
+ end
1995
+
1996
+ # Update properties of this object
1997
+ def update!(**args)
1998
+ @x = args[:x] if args.key?(:x)
1999
+ @y = args[:y] if args.key?(:y)
2000
+ end
2001
+ end
2002
+
2003
+ # Contains metadata for the BatchAnnotateImages operation.
2004
+ class GoogleCloudVisionV1p2beta1OperationMetadata
2005
+ include Google::Apis::Core::Hashable
2006
+
2007
+ # The time when the batch request was received.
2008
+ # Corresponds to the JSON property `createTime`
2009
+ # @return [String]
2010
+ attr_accessor :create_time
2011
+
2012
+ # Current state of the batch operation.
2013
+ # Corresponds to the JSON property `state`
2014
+ # @return [String]
2015
+ attr_accessor :state
2016
+
2017
+ # The time when the operation result was last updated.
2018
+ # Corresponds to the JSON property `updateTime`
2019
+ # @return [String]
2020
+ attr_accessor :update_time
2021
+
2022
+ def initialize(**args)
2023
+ update!(**args)
2024
+ end
2025
+
2026
+ # Update properties of this object
2027
+ def update!(**args)
2028
+ @create_time = args[:create_time] if args.key?(:create_time)
2029
+ @state = args[:state] if args.key?(:state)
2030
+ @update_time = args[:update_time] if args.key?(:update_time)
2031
+ end
2032
+ end
2033
+
2034
+ # The desired output location and metadata.
2035
+ class GoogleCloudVisionV1p2beta1OutputConfig
2036
+ include Google::Apis::Core::Hashable
2037
+
2038
+ # The max number of response protos to put into each output JSON file on
2039
+ # Google Cloud Storage.
2040
+ # The valid range is [1, 100]. If not specified, the default value is 20.
2041
+ # For example, for one pdf file with 100 pages, 100 response protos will
2042
+ # be generated. If `batch_size` = 20, then 5 json files each
2043
+ # containing 20 response protos will be written under the prefix
2044
+ # `gcs_destination`.`uri`.
2045
+ # Currently, batch_size only applies to GcsDestination, with potential future
2046
+ # support for other output configurations.
2047
+ # Corresponds to the JSON property `batchSize`
2048
+ # @return [Fixnum]
2049
+ attr_accessor :batch_size
2050
+
2051
+ # The Google Cloud Storage location where the output will be written to.
2052
+ # Corresponds to the JSON property `gcsDestination`
2053
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1GcsDestination]
2054
+ attr_accessor :gcs_destination
2055
+
2056
+ def initialize(**args)
2057
+ update!(**args)
2058
+ end
2059
+
2060
+ # Update properties of this object
2061
+ def update!(**args)
2062
+ @batch_size = args[:batch_size] if args.key?(:batch_size)
2063
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
2064
+ end
2065
+ end
2066
+
2067
+ # Detected page from OCR.
2068
+ class GoogleCloudVisionV1p2beta1Page
2069
+ include Google::Apis::Core::Hashable
2070
+
2071
+ # List of blocks of text, images etc on this page.
2072
+ # Corresponds to the JSON property `blocks`
2073
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Block>]
2074
+ attr_accessor :blocks
2075
+
2076
+ # Confidence of the OCR results on the page. Range [0, 1].
2077
+ # Corresponds to the JSON property `confidence`
2078
+ # @return [Float]
2079
+ attr_accessor :confidence
2080
+
2081
+ # Page height. For PDFs the unit is points. For images (including
2082
+ # TIFFs) the unit is pixels.
2083
+ # Corresponds to the JSON property `height`
2084
+ # @return [Fixnum]
2085
+ attr_accessor :height
2086
+
2087
+ # Additional information detected on the structural component.
2088
+ # Corresponds to the JSON property `property`
2089
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
2090
+ attr_accessor :property
2091
+
2092
+ # Page width. For PDFs the unit is points. For images (including
2093
+ # TIFFs) the unit is pixels.
2094
+ # Corresponds to the JSON property `width`
2095
+ # @return [Fixnum]
2096
+ attr_accessor :width
2097
+
2098
+ def initialize(**args)
2099
+ update!(**args)
2100
+ end
2101
+
2102
+ # Update properties of this object
2103
+ def update!(**args)
2104
+ @blocks = args[:blocks] if args.key?(:blocks)
2105
+ @confidence = args[:confidence] if args.key?(:confidence)
2106
+ @height = args[:height] if args.key?(:height)
2107
+ @property = args[:property] if args.key?(:property)
2108
+ @width = args[:width] if args.key?(:width)
2109
+ end
2110
+ end
2111
+
2112
+ # Structural unit of text representing a number of words in certain order.
2113
+ class GoogleCloudVisionV1p2beta1Paragraph
2114
+ include Google::Apis::Core::Hashable
2115
+
2116
+ # A bounding polygon for the detected image annotation.
2117
+ # Corresponds to the JSON property `boundingBox`
2118
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
2119
+ attr_accessor :bounding_box
2120
+
2121
+ # Confidence of the OCR results for the paragraph. Range [0, 1].
2122
+ # Corresponds to the JSON property `confidence`
2123
+ # @return [Float]
2124
+ attr_accessor :confidence
2125
+
2126
+ # Additional information detected on the structural component.
2127
+ # Corresponds to the JSON property `property`
2128
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
2129
+ attr_accessor :property
2130
+
2131
+ # List of words in this paragraph.
2132
+ # Corresponds to the JSON property `words`
2133
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Word>]
2134
+ attr_accessor :words
2135
+
2136
+ def initialize(**args)
2137
+ update!(**args)
2138
+ end
2139
+
2140
+ # Update properties of this object
2141
+ def update!(**args)
2142
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
2143
+ @confidence = args[:confidence] if args.key?(:confidence)
2144
+ @property = args[:property] if args.key?(:property)
2145
+ @words = args[:words] if args.key?(:words)
2146
+ end
2147
+ end
2148
+
2149
+ # A 3D position in the image, used primarily for Face detection landmarks.
2150
+ # A valid Position must have both x and y coordinates.
2151
+ # The position coordinates are in the same scale as the original image.
2152
+ class GoogleCloudVisionV1p2beta1Position
2153
+ include Google::Apis::Core::Hashable
2154
+
2155
+ # X coordinate.
2156
+ # Corresponds to the JSON property `x`
2157
+ # @return [Float]
2158
+ attr_accessor :x
2159
+
2160
+ # Y coordinate.
2161
+ # Corresponds to the JSON property `y`
2162
+ # @return [Float]
2163
+ attr_accessor :y
2164
+
2165
+ # Z coordinate (or depth).
2166
+ # Corresponds to the JSON property `z`
2167
+ # @return [Float]
2168
+ attr_accessor :z
2169
+
2170
+ def initialize(**args)
2171
+ update!(**args)
2172
+ end
2173
+
2174
+ # Update properties of this object
2175
+ def update!(**args)
2176
+ @x = args[:x] if args.key?(:x)
2177
+ @y = args[:y] if args.key?(:y)
2178
+ @z = args[:z] if args.key?(:z)
2179
+ end
2180
+ end
2181
+
2182
+ # A `Property` consists of a user-supplied name/value pair.
2183
+ class GoogleCloudVisionV1p2beta1Property
2184
+ include Google::Apis::Core::Hashable
2185
+
2186
+ # Name of the property.
2187
+ # Corresponds to the JSON property `name`
2188
+ # @return [String]
2189
+ attr_accessor :name
2190
+
2191
+ # Value of numeric properties.
2192
+ # Corresponds to the JSON property `uint64Value`
2193
+ # @return [Fixnum]
2194
+ attr_accessor :uint64_value
2195
+
2196
+ # Value of the property.
2197
+ # Corresponds to the JSON property `value`
2198
+ # @return [String]
2199
+ attr_accessor :value
2200
+
2201
+ def initialize(**args)
2202
+ update!(**args)
2203
+ end
2204
+
2205
+ # Update properties of this object
2206
+ def update!(**args)
2207
+ @name = args[:name] if args.key?(:name)
2208
+ @uint64_value = args[:uint64_value] if args.key?(:uint64_value)
2209
+ @value = args[:value] if args.key?(:value)
2210
+ end
2211
+ end
2212
+
2213
+ # Set of features pertaining to the image, computed by computer vision
2214
+ # methods over safe-search verticals (for example, adult, spoof, medical,
2215
+ # violence).
2216
+ class GoogleCloudVisionV1p2beta1SafeSearchAnnotation
2217
+ include Google::Apis::Core::Hashable
2218
+
2219
+ # Represents the adult content likelihood for the image. Adult content may
2220
+ # contain elements such as nudity, pornographic images or cartoons, or
2221
+ # sexual activities.
2222
+ # Corresponds to the JSON property `adult`
2223
+ # @return [String]
2224
+ attr_accessor :adult
2225
+
2226
+ # Likelihood that this is a medical image.
2227
+ # Corresponds to the JSON property `medical`
2228
+ # @return [String]
2229
+ attr_accessor :medical
2230
+
2231
+ # Likelihood that the request image contains racy content. Racy content may
2232
+ # include (but is not limited to) skimpy or sheer clothing, strategically
2233
+ # covered nudity, lewd or provocative poses, or close-ups of sensitive
2234
+ # body areas.
2235
+ # Corresponds to the JSON property `racy`
2236
+ # @return [String]
2237
+ attr_accessor :racy
2238
+
2239
+ # Spoof likelihood. The likelihood that an modification
2240
+ # was made to the image's canonical version to make it appear
2241
+ # funny or offensive.
2242
+ # Corresponds to the JSON property `spoof`
2243
+ # @return [String]
2244
+ attr_accessor :spoof
2245
+
2246
+ # Likelihood that this image contains violent content.
2247
+ # Corresponds to the JSON property `violence`
2248
+ # @return [String]
2249
+ attr_accessor :violence
2250
+
2251
+ def initialize(**args)
2252
+ update!(**args)
2253
+ end
2254
+
2255
+ # Update properties of this object
2256
+ def update!(**args)
2257
+ @adult = args[:adult] if args.key?(:adult)
2258
+ @medical = args[:medical] if args.key?(:medical)
2259
+ @racy = args[:racy] if args.key?(:racy)
2260
+ @spoof = args[:spoof] if args.key?(:spoof)
2261
+ @violence = args[:violence] if args.key?(:violence)
2262
+ end
2263
+ end
2264
+
2265
+ # A single symbol representation.
2266
+ class GoogleCloudVisionV1p2beta1Symbol
2267
+ include Google::Apis::Core::Hashable
2268
+
2269
+ # A bounding polygon for the detected image annotation.
2270
+ # Corresponds to the JSON property `boundingBox`
2271
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
2272
+ attr_accessor :bounding_box
2273
+
2274
+ # Confidence of the OCR results for the symbol. Range [0, 1].
2275
+ # Corresponds to the JSON property `confidence`
2276
+ # @return [Float]
2277
+ attr_accessor :confidence
2278
+
2279
+ # Additional information detected on the structural component.
2280
+ # Corresponds to the JSON property `property`
2281
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
2282
+ attr_accessor :property
2283
+
2284
+ # The actual UTF-8 representation of the symbol.
2285
+ # Corresponds to the JSON property `text`
2286
+ # @return [String]
2287
+ attr_accessor :text
2288
+
2289
+ def initialize(**args)
2290
+ update!(**args)
2291
+ end
2292
+
2293
+ # Update properties of this object
2294
+ def update!(**args)
2295
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
2296
+ @confidence = args[:confidence] if args.key?(:confidence)
2297
+ @property = args[:property] if args.key?(:property)
2298
+ @text = args[:text] if args.key?(:text)
2299
+ end
2300
+ end
2301
+
2302
+ # TextAnnotation contains a structured representation of OCR extracted text.
2303
+ # The hierarchy of an OCR extracted text structure is like this:
2304
+ # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
2305
+ # Each structural component, starting from Page, may further have their own
2306
+ # properties. Properties describe detected languages, breaks etc.. Please refer
2307
+ # to the TextAnnotation.TextProperty message definition below for more
2308
+ # detail.
2309
+ class GoogleCloudVisionV1p2beta1TextAnnotation
2310
+ include Google::Apis::Core::Hashable
2311
+
2312
+ # List of pages detected by OCR.
2313
+ # Corresponds to the JSON property `pages`
2314
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Page>]
2315
+ attr_accessor :pages
2316
+
2317
+ # UTF-8 text detected on the pages.
2318
+ # Corresponds to the JSON property `text`
2319
+ # @return [String]
2320
+ attr_accessor :text
2321
+
2322
+ def initialize(**args)
2323
+ update!(**args)
2324
+ end
2325
+
2326
+ # Update properties of this object
2327
+ def update!(**args)
2328
+ @pages = args[:pages] if args.key?(:pages)
2329
+ @text = args[:text] if args.key?(:text)
2330
+ end
2331
+ end
2332
+
2333
+ # Detected start or end of a structural component.
2334
+ class GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak
2335
+ include Google::Apis::Core::Hashable
2336
+
2337
+ # True if break prepends the element.
2338
+ # Corresponds to the JSON property `isPrefix`
2339
+ # @return [Boolean]
2340
+ attr_accessor :is_prefix
2341
+ alias_method :is_prefix?, :is_prefix
2342
+
2343
+ # Detected break type.
2344
+ # Corresponds to the JSON property `type`
2345
+ # @return [String]
2346
+ attr_accessor :type
2347
+
2348
+ def initialize(**args)
2349
+ update!(**args)
2350
+ end
2351
+
2352
+ # Update properties of this object
2353
+ def update!(**args)
2354
+ @is_prefix = args[:is_prefix] if args.key?(:is_prefix)
2355
+ @type = args[:type] if args.key?(:type)
2356
+ end
2357
+ end
2358
+
2359
+ # Detected language for a structural component.
2360
+ class GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage
2361
+ include Google::Apis::Core::Hashable
2362
+
2363
+ # Confidence of detected language. Range [0, 1].
2364
+ # Corresponds to the JSON property `confidence`
2365
+ # @return [Float]
2366
+ attr_accessor :confidence
2367
+
2368
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
2369
+ # information, see
2370
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2371
+ # Corresponds to the JSON property `languageCode`
2372
+ # @return [String]
2373
+ attr_accessor :language_code
2374
+
2375
+ def initialize(**args)
2376
+ update!(**args)
2377
+ end
2378
+
2379
+ # Update properties of this object
2380
+ def update!(**args)
2381
+ @confidence = args[:confidence] if args.key?(:confidence)
2382
+ @language_code = args[:language_code] if args.key?(:language_code)
2383
+ end
2384
+ end
2385
+
2386
+ # Additional information detected on the structural component.
2387
+ class GoogleCloudVisionV1p2beta1TextAnnotationTextProperty
2388
+ include Google::Apis::Core::Hashable
2389
+
2390
+ # Detected start or end of a structural component.
2391
+ # Corresponds to the JSON property `detectedBreak`
2392
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak]
2393
+ attr_accessor :detected_break
2394
+
2395
+ # A list of detected languages together with confidence.
2396
+ # Corresponds to the JSON property `detectedLanguages`
2397
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage>]
2398
+ attr_accessor :detected_languages
2399
+
2400
+ def initialize(**args)
2401
+ update!(**args)
2402
+ end
2403
+
2404
+ # Update properties of this object
2405
+ def update!(**args)
2406
+ @detected_break = args[:detected_break] if args.key?(:detected_break)
2407
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
2408
+ end
2409
+ end
2410
+
2411
+ # A vertex represents a 2D point in the image.
2412
+ # NOTE: the vertex coordinates are in the same scale as the original image.
2413
+ class GoogleCloudVisionV1p2beta1Vertex
2414
+ include Google::Apis::Core::Hashable
2415
+
2416
+ # X coordinate.
2417
+ # Corresponds to the JSON property `x`
2418
+ # @return [Fixnum]
2419
+ attr_accessor :x
2420
+
2421
+ # Y coordinate.
2422
+ # Corresponds to the JSON property `y`
2423
+ # @return [Fixnum]
2424
+ attr_accessor :y
2425
+
2426
+ def initialize(**args)
2427
+ update!(**args)
2428
+ end
2429
+
2430
+ # Update properties of this object
2431
+ def update!(**args)
2432
+ @x = args[:x] if args.key?(:x)
2433
+ @y = args[:y] if args.key?(:y)
2434
+ end
2435
+ end
2436
+
2437
+ # Relevant information for the image from the Internet.
2438
+ class GoogleCloudVisionV1p2beta1WebDetection
2439
+ include Google::Apis::Core::Hashable
2440
+
2441
+ # Best guess text labels for the request image.
2442
+ # Corresponds to the JSON property `bestGuessLabels`
2443
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebLabel>]
2444
+ attr_accessor :best_guess_labels
2445
+
2446
+ # Fully matching images from the Internet.
2447
+ # Can include resized copies of the query image.
2448
+ # Corresponds to the JSON property `fullMatchingImages`
2449
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
2450
+ attr_accessor :full_matching_images
2451
+
2452
+ # Web pages containing the matching images from the Internet.
2453
+ # Corresponds to the JSON property `pagesWithMatchingImages`
2454
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebPage>]
2455
+ attr_accessor :pages_with_matching_images
2456
+
2457
+ # Partial matching images from the Internet.
2458
+ # Those images are similar enough to share some key-point features. For
2459
+ # example an original image will likely have partial matching for its crops.
2460
+ # Corresponds to the JSON property `partialMatchingImages`
2461
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
2462
+ attr_accessor :partial_matching_images
2463
+
2464
+ # The visually similar image results.
2465
+ # Corresponds to the JSON property `visuallySimilarImages`
2466
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
2467
+ attr_accessor :visually_similar_images
2468
+
2469
+ # Deduced entities from similar images on the Internet.
2470
+ # Corresponds to the JSON property `webEntities`
2471
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebEntity>]
2472
+ attr_accessor :web_entities
2473
+
2474
+ def initialize(**args)
2475
+ update!(**args)
2476
+ end
2477
+
2478
+ # Update properties of this object
2479
+ def update!(**args)
2480
+ @best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
2481
+ @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
2482
+ @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
2483
+ @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
2484
+ @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
2485
+ @web_entities = args[:web_entities] if args.key?(:web_entities)
2486
+ end
2487
+ end
2488
+
2489
+ # Entity deduced from similar images on the Internet.
2490
+ class GoogleCloudVisionV1p2beta1WebDetectionWebEntity
2491
+ include Google::Apis::Core::Hashable
2492
+
2493
+ # Canonical description of the entity, in English.
2494
+ # Corresponds to the JSON property `description`
2495
+ # @return [String]
2496
+ attr_accessor :description
2497
+
2498
+ # Opaque entity ID.
2499
+ # Corresponds to the JSON property `entityId`
2500
+ # @return [String]
2501
+ attr_accessor :entity_id
2502
+
2503
+ # Overall relevancy score for the entity.
2504
+ # Not normalized and not comparable across different image queries.
2505
+ # Corresponds to the JSON property `score`
2506
+ # @return [Float]
2507
+ attr_accessor :score
2508
+
2509
+ def initialize(**args)
2510
+ update!(**args)
2511
+ end
2512
+
2513
+ # Update properties of this object
2514
+ def update!(**args)
2515
+ @description = args[:description] if args.key?(:description)
2516
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
2517
+ @score = args[:score] if args.key?(:score)
2518
+ end
2519
+ end
2520
+
2521
+ # Metadata for online images.
2522
+ class GoogleCloudVisionV1p2beta1WebDetectionWebImage
2523
+ include Google::Apis::Core::Hashable
2524
+
2525
+ # (Deprecated) Overall relevancy score for the image.
2526
+ # Corresponds to the JSON property `score`
2527
+ # @return [Float]
2528
+ attr_accessor :score
2529
+
2530
+ # The result image URL.
2531
+ # Corresponds to the JSON property `url`
2532
+ # @return [String]
2533
+ attr_accessor :url
2534
+
2535
+ def initialize(**args)
2536
+ update!(**args)
2537
+ end
2538
+
2539
+ # Update properties of this object
2540
+ def update!(**args)
2541
+ @score = args[:score] if args.key?(:score)
2542
+ @url = args[:url] if args.key?(:url)
2543
+ end
2544
+ end
2545
+
2546
+ # Label to provide extra metadata for the web detection.
2547
+ class GoogleCloudVisionV1p2beta1WebDetectionWebLabel
2548
+ include Google::Apis::Core::Hashable
2549
+
2550
+ # Label for extra metadata.
2551
+ # Corresponds to the JSON property `label`
2552
+ # @return [String]
2553
+ attr_accessor :label
2554
+
2555
+ # The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
2556
+ # For more information, see
2557
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2558
+ # Corresponds to the JSON property `languageCode`
2559
+ # @return [String]
2560
+ attr_accessor :language_code
2561
+
2562
+ def initialize(**args)
2563
+ update!(**args)
2564
+ end
2565
+
2566
+ # Update properties of this object
2567
+ def update!(**args)
2568
+ @label = args[:label] if args.key?(:label)
2569
+ @language_code = args[:language_code] if args.key?(:language_code)
2570
+ end
2571
+ end
2572
+
2573
+ # Metadata for web pages.
2574
+ class GoogleCloudVisionV1p2beta1WebDetectionWebPage
2575
+ include Google::Apis::Core::Hashable
2576
+
2577
+ # Fully matching images on the page.
2578
+ # Can include resized copies of the query image.
2579
+ # Corresponds to the JSON property `fullMatchingImages`
2580
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
2581
+ attr_accessor :full_matching_images
2582
+
2583
+ # Title for the web page, may contain HTML markups.
2584
+ # Corresponds to the JSON property `pageTitle`
2585
+ # @return [String]
2586
+ attr_accessor :page_title
2587
+
2588
+ # Partial matching images on the page.
2589
+ # Those images are similar enough to share some key-point features. For
2590
+ # example an original image will likely have partial matching for its
2591
+ # crops.
2592
+ # Corresponds to the JSON property `partialMatchingImages`
2593
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
2594
+ attr_accessor :partial_matching_images
2595
+
2596
+ # (Deprecated) Overall relevancy score for the web page.
2597
+ # Corresponds to the JSON property `score`
2598
+ # @return [Float]
2599
+ attr_accessor :score
2600
+
2601
+ # The result web page URL.
2602
+ # Corresponds to the JSON property `url`
2603
+ # @return [String]
2604
+ attr_accessor :url
2605
+
2606
+ def initialize(**args)
2607
+ update!(**args)
2608
+ end
2609
+
2610
+ # Update properties of this object
2611
+ def update!(**args)
2612
+ @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
2613
+ @page_title = args[:page_title] if args.key?(:page_title)
2614
+ @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
2615
+ @score = args[:score] if args.key?(:score)
2616
+ @url = args[:url] if args.key?(:url)
2617
+ end
2618
+ end
2619
+
2620
+ # A word representation.
2621
+ class GoogleCloudVisionV1p2beta1Word
2622
+ include Google::Apis::Core::Hashable
2623
+
2624
+ # A bounding polygon for the detected image annotation.
2625
+ # Corresponds to the JSON property `boundingBox`
2626
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
2627
+ attr_accessor :bounding_box
2628
+
2629
+ # Confidence of the OCR results for the word. Range [0, 1].
2630
+ # Corresponds to the JSON property `confidence`
2631
+ # @return [Float]
2632
+ attr_accessor :confidence
2633
+
2634
+ # Additional information detected on the structural component.
2635
+ # Corresponds to the JSON property `property`
2636
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
2637
+ attr_accessor :property
2638
+
2639
+ # List of symbols in the word.
2640
+ # The order of the symbols follows the natural reading order.
2641
+ # Corresponds to the JSON property `symbols`
2642
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Symbol>]
2643
+ attr_accessor :symbols
2644
+
2645
+ def initialize(**args)
2646
+ update!(**args)
2647
+ end
2648
+
2649
+ # Update properties of this object
2650
+ def update!(**args)
2651
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
2652
+ @confidence = args[:confidence] if args.key?(:confidence)
2653
+ @property = args[:property] if args.key?(:property)
2654
+ @symbols = args[:symbols] if args.key?(:symbols)
2655
+ end
2656
+ end
2657
+
2658
+ # Metadata for the batch operations such as the current state.
2659
+ # This is included in the `metadata` field of the `Operation` returned by the
2660
+ # `GetOperation` call of the `google::longrunning::Operations` service.
2661
+ class GoogleCloudVisionV1p3beta1BatchOperationMetadata
2662
+ include Google::Apis::Core::Hashable
2663
+
2664
+ # The time when the batch request is finished and
2665
+ # google.longrunning.Operation.done is set to true.
2666
+ # Corresponds to the JSON property `endTime`
2667
+ # @return [String]
2668
+ attr_accessor :end_time
2669
+
2670
+ # The current state of the batch operation.
2671
+ # Corresponds to the JSON property `state`
2672
+ # @return [String]
2673
+ attr_accessor :state
2674
+
2675
+ # The time when the batch request was submitted to the server.
2676
+ # Corresponds to the JSON property `submitTime`
2677
+ # @return [String]
2678
+ attr_accessor :submit_time
2679
+
2680
+ def initialize(**args)
2681
+ update!(**args)
2682
+ end
2683
+
2684
+ # Update properties of this object
2685
+ def update!(**args)
2686
+ @end_time = args[:end_time] if args.key?(:end_time)
2687
+ @state = args[:state] if args.key?(:state)
2688
+ @submit_time = args[:submit_time] if args.key?(:submit_time)
2689
+ end
2690
+ end
2691
+
2692
+ # A bounding polygon for the detected image annotation.
2693
+ class GoogleCloudVisionV1p3beta1BoundingPoly
2694
+ include Google::Apis::Core::Hashable
2695
+
2696
+ # The bounding polygon normalized vertices.
2697
+ # Corresponds to the JSON property `normalizedVertices`
2698
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1NormalizedVertex>]
2699
+ attr_accessor :normalized_vertices
2700
+
2701
+ # The bounding polygon vertices.
2702
+ # Corresponds to the JSON property `vertices`
2703
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Vertex>]
2704
+ attr_accessor :vertices
2705
+
2706
+ def initialize(**args)
2707
+ update!(**args)
2708
+ end
2709
+
2710
+ # Update properties of this object
2711
+ def update!(**args)
2712
+ @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
2713
+ @vertices = args[:vertices] if args.key?(:vertices)
2714
+ end
2715
+ end
2716
+
2717
+ # Response message for the `ImportProductSets` method.
2718
+ # This message is returned by the
2719
+ # google.longrunning.Operations.GetOperation method in the returned
2720
+ # google.longrunning.Operation.response field.
2721
+ class GoogleCloudVisionV1p3beta1ImportProductSetsResponse
2722
+ include Google::Apis::Core::Hashable
2723
+
2724
+ # The list of reference_images that are imported successfully.
2725
+ # Corresponds to the JSON property `referenceImages`
2726
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ReferenceImage>]
2727
+ attr_accessor :reference_images
2728
+
2729
+ # The rpc status for each ImportProductSet request, including both successes
2730
+ # and errors.
2731
+ # The number of statuses here matches the number of lines in the csv file,
2732
+ # and statuses[i] stores the success or failure status of processing the i-th
2733
+ # line of the csv, starting from line 0.
2734
+ # Corresponds to the JSON property `statuses`
2735
+ # @return [Array<Google::Apis::VisionV1::Status>]
2736
+ attr_accessor :statuses
2737
+
2738
+ def initialize(**args)
2739
+ update!(**args)
2740
+ end
2741
+
2742
+ # Update properties of this object
2743
+ def update!(**args)
2744
+ @reference_images = args[:reference_images] if args.key?(:reference_images)
2745
+ @statuses = args[:statuses] if args.key?(:statuses)
2746
+ end
2747
+ end
2748
+
2749
+ # A vertex represents a 2D point in the image.
2750
+ # NOTE: the normalized vertex coordinates are relative to the original image
2751
+ # and range from 0 to 1.
2752
+ class GoogleCloudVisionV1p3beta1NormalizedVertex
2753
+ include Google::Apis::Core::Hashable
2754
+
2755
+ # X coordinate.
2756
+ # Corresponds to the JSON property `x`
2757
+ # @return [Float]
2758
+ attr_accessor :x
2759
+
2760
+ # Y coordinate.
2761
+ # Corresponds to the JSON property `y`
2762
+ # @return [Float]
2763
+ attr_accessor :y
2764
+
2765
+ def initialize(**args)
2766
+ update!(**args)
2767
+ end
2768
+
2769
+ # Update properties of this object
2770
+ def update!(**args)
2771
+ @x = args[:x] if args.key?(:x)
2772
+ @y = args[:y] if args.key?(:y)
2773
+ end
2774
+ end
2775
+
2776
+ # A `ReferenceImage` represents a product image and its associated metadata,
2777
+ # such as bounding boxes.
2778
+ class GoogleCloudVisionV1p3beta1ReferenceImage
2779
+ include Google::Apis::Core::Hashable
2780
+
2781
+ # Bounding polygons around the areas of interest in the reference image.
2782
+ # Optional. If this field is empty, the system will try to detect regions of
2783
+ # interest. At most 10 bounding polygons will be used.
2784
+ # The provided shape is converted into a non-rotated rectangle. Once
2785
+ # converted, the small edge of the rectangle must be greater than or equal
2786
+ # to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5
2787
+ # is not).
2788
+ # Corresponds to the JSON property `boundingPolys`
2789
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly>]
2790
+ attr_accessor :bounding_polys
2791
+
2792
+ # The resource name of the reference image.
2793
+ # Format is:
2794
+ # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/
2795
+ # IMAGE_ID`.
2796
+ # This field is ignored when creating a reference image.
2797
+ # Corresponds to the JSON property `name`
2798
+ # @return [String]
2799
+ attr_accessor :name
2800
+
2801
+ # The Google Cloud Storage URI of the reference image.
2802
+ # The URI must start with `gs://`.
2803
+ # Required.
2804
+ # Corresponds to the JSON property `uri`
2805
+ # @return [String]
2806
+ attr_accessor :uri
2807
+
2808
+ def initialize(**args)
2809
+ update!(**args)
2810
+ end
2811
+
2812
+ # Update properties of this object
2813
+ def update!(**args)
2814
+ @bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys)
2815
+ @name = args[:name] if args.key?(:name)
2816
+ @uri = args[:uri] if args.key?(:uri)
2817
+ end
2818
+ end
2819
+
2820
+ # A vertex represents a 2D point in the image.
2821
+ # NOTE: the vertex coordinates are in the same scale as the original image.
2822
+ class GoogleCloudVisionV1p3beta1Vertex
2823
+ include Google::Apis::Core::Hashable
2824
+
2825
+ # X coordinate.
2826
+ # Corresponds to the JSON property `x`
2827
+ # @return [Fixnum]
2828
+ attr_accessor :x
2829
+
2830
+ # Y coordinate.
2831
+ # Corresponds to the JSON property `y`
2832
+ # @return [Fixnum]
2833
+ attr_accessor :y
2834
+
2835
+ def initialize(**args)
2836
+ update!(**args)
2837
+ end
2838
+
2839
+ # Update properties of this object
2840
+ def update!(**args)
2841
+ @x = args[:x] if args.key?(:x)
2842
+ @y = args[:y] if args.key?(:y)
2843
+ end
2844
+ end
2845
+
2846
+ # Client image to perform Google Cloud Vision API tasks over.
2847
+ class Image
2848
+ include Google::Apis::Core::Hashable
2849
+
2850
+ # Image content, represented as a stream of bytes.
2851
+ # Note: As with all `bytes` fields, protobuffers use a pure binary
2852
+ # representation, whereas JSON representations use base64.
2853
+ # Corresponds to the JSON property `content`
2854
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2855
+ # @return [String]
2856
+ attr_accessor :content
2857
+
2858
+ # External image source (Google Cloud Storage or web URL image location).
2859
+ # Corresponds to the JSON property `source`
2860
+ # @return [Google::Apis::VisionV1::ImageSource]
2861
+ attr_accessor :source
2862
+
2863
+ def initialize(**args)
2864
+ update!(**args)
2865
+ end
2866
+
2867
+ # Update properties of this object
2868
+ def update!(**args)
2869
+ @content = args[:content] if args.key?(:content)
2870
+ @source = args[:source] if args.key?(:source)
2871
+ end
2872
+ end
2873
+
2874
+ # If an image was produced from a file (e.g. a PDF), this message gives
2875
+ # information about the source of that image.
2876
+ class ImageAnnotationContext
2877
+ include Google::Apis::Core::Hashable
2878
+
2879
+ # If the file was a PDF or TIFF, this field gives the page number within
2880
+ # the file used to produce the image.
2881
+ # Corresponds to the JSON property `pageNumber`
2882
+ # @return [Fixnum]
2883
+ attr_accessor :page_number
2884
+
2885
+ # The URI of the file used to produce the image.
2886
+ # Corresponds to the JSON property `uri`
2887
+ # @return [String]
2888
+ attr_accessor :uri
2889
+
2890
+ def initialize(**args)
2891
+ update!(**args)
2892
+ end
2893
+
2894
+ # Update properties of this object
2895
+ def update!(**args)
2896
+ @page_number = args[:page_number] if args.key?(:page_number)
2897
+ @uri = args[:uri] if args.key?(:uri)
2898
+ end
2899
+ end
2900
+
2901
+ # Image context and/or feature-specific parameters.
2902
+ class ImageContext
2903
+ include Google::Apis::Core::Hashable
2904
+
2905
+ # Parameters for crop hints annotation request.
2906
+ # Corresponds to the JSON property `cropHintsParams`
1128
2907
  # @return [Google::Apis::VisionV1::CropHintsParams]
1129
2908
  attr_accessor :crop_hints_params
1130
2909
 
@@ -1224,6 +3003,32 @@ module Google
1224
3003
  end
1225
3004
  end
1226
3005
 
3006
+ # The desired input location and metadata.
3007
+ class InputConfig
3008
+ include Google::Apis::Core::Hashable
3009
+
3010
+ # The Google Cloud Storage location where the input will be read from.
3011
+ # Corresponds to the JSON property `gcsSource`
3012
+ # @return [Google::Apis::VisionV1::GcsSource]
3013
+ attr_accessor :gcs_source
3014
+
3015
+ # The type of the file. Currently only "application/pdf" and "image/tiff"
3016
+ # are supported. Wildcards are not supported.
3017
+ # Corresponds to the JSON property `mimeType`
3018
+ # @return [String]
3019
+ attr_accessor :mime_type
3020
+
3021
+ def initialize(**args)
3022
+ update!(**args)
3023
+ end
3024
+
3025
+ # Update properties of this object
3026
+ def update!(**args)
3027
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
3028
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
3029
+ end
3030
+ end
3031
+
1227
3032
  # A face-specific landmark (for example, a face feature).
1228
3033
  class Landmark
1229
3034
  include Google::Apis::Core::Hashable
@@ -1361,6 +3166,33 @@ module Google
1361
3166
  end
1362
3167
  end
1363
3168
 
3169
+ # A vertex represents a 2D point in the image.
3170
+ # NOTE: the normalized vertex coordinates are relative to the original image
3171
+ # and range from 0 to 1.
3172
+ class NormalizedVertex
3173
+ include Google::Apis::Core::Hashable
3174
+
3175
+ # X coordinate.
3176
+ # Corresponds to the JSON property `x`
3177
+ # @return [Float]
3178
+ attr_accessor :x
3179
+
3180
+ # Y coordinate.
3181
+ # Corresponds to the JSON property `y`
3182
+ # @return [Float]
3183
+ attr_accessor :y
3184
+
3185
+ def initialize(**args)
3186
+ update!(**args)
3187
+ end
3188
+
3189
+ # Update properties of this object
3190
+ def update!(**args)
3191
+ @x = args[:x] if args.key?(:x)
3192
+ @y = args[:y] if args.key?(:y)
3193
+ end
3194
+ end
3195
+
1364
3196
  # This resource represents a long-running operation that is the result of a
1365
3197
  # network API call.
1366
3198
  class Operation
@@ -1458,6 +3290,70 @@ module Google
1458
3290
  end
1459
3291
  end
1460
3292
 
3293
+ # Contains metadata for the BatchAnnotateImages operation.
3294
+ class OperationMetadata
3295
+ include Google::Apis::Core::Hashable
3296
+
3297
+ # The time when the batch request was received.
3298
+ # Corresponds to the JSON property `createTime`
3299
+ # @return [String]
3300
+ attr_accessor :create_time
3301
+
3302
+ # Current state of the batch operation.
3303
+ # Corresponds to the JSON property `state`
3304
+ # @return [String]
3305
+ attr_accessor :state
3306
+
3307
+ # The time when the operation result was last updated.
3308
+ # Corresponds to the JSON property `updateTime`
3309
+ # @return [String]
3310
+ attr_accessor :update_time
3311
+
3312
+ def initialize(**args)
3313
+ update!(**args)
3314
+ end
3315
+
3316
+ # Update properties of this object
3317
+ def update!(**args)
3318
+ @create_time = args[:create_time] if args.key?(:create_time)
3319
+ @state = args[:state] if args.key?(:state)
3320
+ @update_time = args[:update_time] if args.key?(:update_time)
3321
+ end
3322
+ end
3323
+
3324
+ # The desired output location and metadata.
3325
+ class OutputConfig
3326
+ include Google::Apis::Core::Hashable
3327
+
3328
+ # The max number of response protos to put into each output JSON file on
3329
+ # Google Cloud Storage.
3330
+ # The valid range is [1, 100]. If not specified, the default value is 20.
3331
+ # For example, for one pdf file with 100 pages, 100 response protos will
3332
+ # be generated. If `batch_size` = 20, then 5 json files each
3333
+ # containing 20 response protos will be written under the prefix
3334
+ # `gcs_destination`.`uri`.
3335
+ # Currently, batch_size only applies to GcsDestination, with potential future
3336
+ # support for other output configurations.
3337
+ # Corresponds to the JSON property `batchSize`
3338
+ # @return [Fixnum]
3339
+ attr_accessor :batch_size
3340
+
3341
+ # The Google Cloud Storage location where the output will be written to.
3342
+ # Corresponds to the JSON property `gcsDestination`
3343
+ # @return [Google::Apis::VisionV1::GcsDestination]
3344
+ attr_accessor :gcs_destination
3345
+
3346
+ def initialize(**args)
3347
+ update!(**args)
3348
+ end
3349
+
3350
+ # Update properties of this object
3351
+ def update!(**args)
3352
+ @batch_size = args[:batch_size] if args.key?(:batch_size)
3353
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
3354
+ end
3355
+ end
3356
+
1461
3357
  # Detected page from OCR.
1462
3358
  class Page
1463
3359
  include Google::Apis::Core::Hashable