google-api-client 0.28.4 → 0.28.5

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 (426) hide show
  1. checksums.yaml +5 -5
  2. data/.kokoro/build.sh +3 -5
  3. data/.kokoro/continuous/linux.cfg +1 -1
  4. data/.kokoro/presubmit/linux.cfg +1 -1
  5. data/CHANGELOG.md +147 -0
  6. data/generated/google/apis/accesscontextmanager_v1.rb +34 -0
  7. data/generated/google/apis/accesscontextmanager_v1/classes.rb +755 -0
  8. data/generated/google/apis/accesscontextmanager_v1/representations.rb +282 -0
  9. data/generated/google/apis/accesscontextmanager_v1/service.rb +788 -0
  10. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  11. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +46 -30
  12. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +4 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +2 -2
  15. data/generated/google/apis/admin_directory_v1.rb +1 -1
  16. data/generated/google/apis/admin_directory_v1/classes.rb +5 -50
  17. data/generated/google/apis/admin_directory_v1/representations.rb +0 -2
  18. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  19. data/generated/google/apis/alertcenter_v1beta1/classes.rb +3 -2
  20. data/generated/google/apis/alertcenter_v1beta1/service.rb +7 -7
  21. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  22. data/generated/google/apis/analyticsreporting_v4/classes.rb +638 -0
  23. data/generated/google/apis/analyticsreporting_v4/representations.rb +248 -0
  24. data/generated/google/apis/analyticsreporting_v4/service.rb +30 -0
  25. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  26. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +10 -10
  27. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  28. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -0
  29. data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
  30. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  31. data/generated/google/apis/androidmanagement_v1/classes.rb +59 -2
  32. data/generated/google/apis/androidmanagement_v1/representations.rb +33 -0
  33. data/generated/google/apis/appengine_v1.rb +1 -1
  34. data/generated/google/apis/appengine_v1/classes.rb +43 -98
  35. data/generated/google/apis/appengine_v1/representations.rb +17 -35
  36. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  37. data/generated/google/apis/appengine_v1alpha/classes.rb +0 -97
  38. data/generated/google/apis/appengine_v1alpha/representations.rb +0 -35
  39. data/generated/google/apis/appengine_v1beta.rb +1 -1
  40. data/generated/google/apis/appengine_v1beta/classes.rb +3 -99
  41. data/generated/google/apis/appengine_v1beta/representations.rb +0 -35
  42. data/generated/google/apis/bigquery_v2.rb +1 -1
  43. data/generated/google/apis/bigquery_v2/classes.rb +244 -173
  44. data/generated/google/apis/bigquery_v2/representations.rb +79 -58
  45. data/generated/google/apis/bigquerydatatransfer_v1.rb +3 -3
  46. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +10 -10
  47. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +38 -6
  48. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  49. data/generated/google/apis/bigtableadmin_v2/classes.rb +4 -4
  50. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  51. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +66 -6
  52. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +17 -0
  53. data/generated/google/apis/cloudasset_v1.rb +34 -0
  54. data/generated/google/apis/cloudasset_v1/classes.rb +805 -0
  55. data/generated/google/apis/cloudasset_v1/representations.rb +263 -0
  56. data/generated/google/apis/cloudasset_v1/service.rb +190 -0
  57. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudasset_v1beta1/classes.rb +20 -18
  59. data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
  60. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  61. data/generated/google/apis/cloudbilling_v1/classes.rb +1 -1
  62. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  63. data/generated/google/apis/cloudbuild_v1/classes.rb +149 -10
  64. data/generated/google/apis/cloudbuild_v1/representations.rb +65 -0
  65. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +6 -0
  67. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +2 -0
  68. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +1 -1
  69. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  70. data/generated/google/apis/cloudfunctions_v1/classes.rb +11 -4
  71. data/generated/google/apis/cloudfunctions_v1/service.rb +8 -2
  72. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  73. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +2 -1
  74. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +6 -0
  75. data/generated/google/apis/cloudidentity_v1.rb +7 -1
  76. data/generated/google/apis/cloudidentity_v1/classes.rb +13 -13
  77. data/generated/google/apis/cloudidentity_v1/service.rb +6 -15
  78. data/generated/google/apis/cloudidentity_v1beta1.rb +7 -1
  79. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +10 -10
  80. data/generated/google/apis/cloudidentity_v1beta1/service.rb +4 -10
  81. data/generated/google/apis/cloudiot_v1.rb +1 -1
  82. data/generated/google/apis/cloudiot_v1/classes.rb +11 -11
  83. data/generated/google/apis/cloudkms_v1.rb +1 -1
  84. data/generated/google/apis/cloudkms_v1/classes.rb +7 -3
  85. data/generated/google/apis/cloudprivatecatalog_v1beta1.rb +35 -0
  86. data/generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb +358 -0
  87. data/generated/google/apis/cloudprivatecatalog_v1beta1/representations.rb +123 -0
  88. data/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb +486 -0
  89. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +35 -0
  90. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +1212 -0
  91. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb +399 -0
  92. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +1073 -0
  93. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  94. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +17 -16
  95. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  96. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +3 -3
  97. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  98. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +14 -15
  99. data/generated/google/apis/cloudresourcemanager_v2/service.rb +1 -1
  100. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  101. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +14 -15
  102. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +1 -1
  103. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  104. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +60 -44
  105. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +5 -2
  106. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  107. data/generated/google/apis/cloudsearch_v1/classes.rb +220 -48
  108. data/generated/google/apis/cloudsearch_v1/representations.rb +91 -0
  109. data/generated/google/apis/cloudsearch_v1/service.rb +15 -13
  110. data/generated/google/apis/cloudshell_v1.rb +1 -1
  111. data/generated/google/apis/cloudshell_v1/classes.rb +10 -10
  112. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  113. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +17 -10
  114. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +1 -0
  115. data/generated/google/apis/{partners_v2.rb → cloudtasks_v2.rb} +11 -9
  116. data/generated/google/apis/cloudtasks_v2/classes.rb +1432 -0
  117. data/generated/google/apis/cloudtasks_v2/representations.rb +408 -0
  118. data/generated/google/apis/cloudtasks_v2/service.rb +856 -0
  119. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  120. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +119 -88
  121. data/generated/google/apis/cloudtasks_v2beta2/service.rb +3 -2
  122. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  123. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +122 -90
  124. data/generated/google/apis/cloudtasks_v2beta3/service.rb +3 -2
  125. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  126. data/generated/google/apis/cloudtrace_v2/classes.rb +10 -10
  127. data/generated/google/apis/composer_v1.rb +1 -1
  128. data/generated/google/apis/composer_v1/classes.rb +21 -15
  129. data/generated/google/apis/composer_v1beta1.rb +1 -1
  130. data/generated/google/apis/composer_v1beta1/classes.rb +165 -29
  131. data/generated/google/apis/composer_v1beta1/representations.rb +50 -0
  132. data/generated/google/apis/compute_alpha.rb +1 -1
  133. data/generated/google/apis/compute_alpha/classes.rb +7147 -4656
  134. data/generated/google/apis/compute_alpha/representations.rb +1205 -236
  135. data/generated/google/apis/compute_alpha/service.rb +4338 -3274
  136. data/generated/google/apis/compute_beta.rb +1 -1
  137. data/generated/google/apis/compute_beta/classes.rb +5974 -4567
  138. data/generated/google/apis/compute_beta/representations.rb +846 -283
  139. data/generated/google/apis/compute_beta/service.rb +4274 -3153
  140. data/generated/google/apis/compute_v1.rb +1 -1
  141. data/generated/google/apis/compute_v1/classes.rb +325 -50
  142. data/generated/google/apis/compute_v1/representations.rb +104 -1
  143. data/generated/google/apis/compute_v1/service.rb +153 -2
  144. data/generated/google/apis/container_v1.rb +1 -1
  145. data/generated/google/apis/container_v1/classes.rb +1 -0
  146. data/generated/google/apis/container_v1/service.rb +4 -4
  147. data/generated/google/apis/container_v1beta1.rb +1 -1
  148. data/generated/google/apis/container_v1beta1/classes.rb +7 -0
  149. data/generated/google/apis/container_v1beta1/representations.rb +2 -0
  150. data/generated/google/apis/container_v1beta1/service.rb +4 -4
  151. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  152. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +25 -17
  153. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
  154. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  155. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +137 -12
  156. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +33 -0
  157. data/generated/google/apis/content_v2.rb +1 -1
  158. data/generated/google/apis/content_v2/classes.rb +204 -93
  159. data/generated/google/apis/content_v2/representations.rb +49 -0
  160. data/generated/google/apis/content_v2/service.rb +82 -41
  161. data/generated/google/apis/content_v2_1.rb +1 -1
  162. data/generated/google/apis/content_v2_1/classes.rb +360 -209
  163. data/generated/google/apis/content_v2_1/representations.rb +129 -56
  164. data/generated/google/apis/content_v2_1/service.rb +97 -10
  165. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  166. data/generated/google/apis/dataflow_v1b3/classes.rb +51 -19
  167. data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
  168. data/generated/google/apis/dataflow_v1b3/service.rb +133 -25
  169. data/generated/google/apis/dataproc_v1.rb +1 -1
  170. data/generated/google/apis/dataproc_v1/classes.rb +20 -15
  171. data/generated/google/apis/dataproc_v1/representations.rb +1 -0
  172. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  173. data/generated/google/apis/dataproc_v1beta2/classes.rb +516 -45
  174. data/generated/google/apis/dataproc_v1beta2/representations.rb +185 -7
  175. data/generated/google/apis/dataproc_v1beta2/service.rb +575 -6
  176. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  177. data/generated/google/apis/dfareporting_v3_3/classes.rb +3 -3
  178. data/generated/google/apis/dialogflow_v2.rb +1 -1
  179. data/generated/google/apis/dialogflow_v2/classes.rb +126 -77
  180. data/generated/google/apis/dialogflow_v2/service.rb +40 -24
  181. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  182. data/generated/google/apis/dialogflow_v2beta1/classes.rb +126 -77
  183. data/generated/google/apis/dialogflow_v2beta1/service.rb +40 -24
  184. data/generated/google/apis/dlp_v2.rb +1 -1
  185. data/generated/google/apis/dlp_v2/classes.rb +44 -41
  186. data/generated/google/apis/dlp_v2/representations.rb +12 -0
  187. data/generated/google/apis/dlp_v2/service.rb +35 -0
  188. data/generated/google/apis/dns_v1.rb +1 -1
  189. data/generated/google/apis/dns_v1/classes.rb +163 -190
  190. data/generated/google/apis/dns_v1/representations.rb +34 -0
  191. data/generated/google/apis/dns_v1/service.rb +15 -110
  192. data/generated/google/apis/dns_v1beta2.rb +1 -1
  193. data/generated/google/apis/dns_v1beta2/classes.rb +117 -248
  194. data/generated/google/apis/dns_v1beta2/service.rb +21 -141
  195. data/generated/google/apis/dns_v2beta1.rb +1 -1
  196. data/generated/google/apis/dns_v2beta1/classes.rb +163 -190
  197. data/generated/google/apis/dns_v2beta1/representations.rb +34 -0
  198. data/generated/google/apis/dns_v2beta1/service.rb +15 -110
  199. data/generated/google/apis/docs_v1.rb +1 -1
  200. data/generated/google/apis/docs_v1/classes.rb +118 -47
  201. data/generated/google/apis/docs_v1/representations.rb +39 -0
  202. data/generated/google/apis/drive_v2.rb +1 -1
  203. data/generated/google/apis/drive_v2/service.rb +3 -1
  204. data/generated/google/apis/drive_v3.rb +1 -1
  205. data/generated/google/apis/drive_v3/service.rb +3 -2
  206. data/generated/google/apis/factchecktools_v1alpha1.rb +34 -0
  207. data/generated/google/apis/factchecktools_v1alpha1/classes.rb +459 -0
  208. data/generated/google/apis/factchecktools_v1alpha1/representations.rb +207 -0
  209. data/generated/google/apis/factchecktools_v1alpha1/service.rb +300 -0
  210. data/generated/google/apis/file_v1.rb +1 -1
  211. data/generated/google/apis/file_v1/classes.rb +203 -10
  212. data/generated/google/apis/file_v1/representations.rb +70 -0
  213. data/generated/google/apis/file_v1/service.rb +190 -0
  214. data/generated/google/apis/file_v1beta1.rb +1 -1
  215. data/generated/google/apis/file_v1beta1/classes.rb +10 -10
  216. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  217. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +13 -10
  218. data/generated/google/apis/firebaserules_v1.rb +1 -1
  219. data/generated/google/apis/firebaserules_v1/service.rb +1 -1
  220. data/generated/google/apis/fitness_v1.rb +1 -1
  221. data/generated/google/apis/fitness_v1/classes.rb +3 -0
  222. data/generated/google/apis/fitness_v1/service.rb +1 -45
  223. data/generated/google/apis/games_management_v1management.rb +2 -2
  224. data/generated/google/apis/games_v1.rb +2 -2
  225. data/generated/google/apis/genomics_v1.rb +1 -10
  226. data/generated/google/apis/genomics_v1/classes.rb +190 -3321
  227. data/generated/google/apis/genomics_v1/representations.rb +128 -1265
  228. data/generated/google/apis/genomics_v1/service.rb +75 -1982
  229. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  230. data/generated/google/apis/genomics_v1alpha2/classes.rb +11 -51
  231. data/generated/google/apis/genomics_v1alpha2/representations.rb +0 -26
  232. data/generated/google/apis/genomics_v1alpha2/service.rb +1 -2
  233. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  234. data/generated/google/apis/genomics_v2alpha1/classes.rb +19 -58
  235. data/generated/google/apis/genomics_v2alpha1/representations.rb +0 -26
  236. data/generated/google/apis/genomics_v2alpha1/service.rb +1 -2
  237. data/generated/google/apis/groupssettings_v1.rb +2 -2
  238. data/generated/google/apis/groupssettings_v1/classes.rb +126 -1
  239. data/generated/google/apis/groupssettings_v1/representations.rb +18 -0
  240. data/generated/google/apis/groupssettings_v1/service.rb +1 -1
  241. data/generated/google/apis/iam_v1.rb +1 -1
  242. data/generated/google/apis/iam_v1/classes.rb +123 -1
  243. data/generated/google/apis/iam_v1/representations.rb +67 -0
  244. data/generated/google/apis/iam_v1/service.rb +198 -5
  245. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  246. data/generated/google/apis/iamcredentials_v1/classes.rb +8 -4
  247. data/generated/google/apis/iamcredentials_v1/service.rb +10 -5
  248. data/generated/google/apis/iap_v1.rb +1 -1
  249. data/generated/google/apis/iap_v1/classes.rb +1 -1
  250. data/generated/google/apis/iap_v1beta1.rb +1 -1
  251. data/generated/google/apis/iap_v1beta1/classes.rb +1 -1
  252. data/generated/google/apis/jobs_v2.rb +1 -1
  253. data/generated/google/apis/jobs_v2/classes.rb +7 -9
  254. data/generated/google/apis/jobs_v3.rb +1 -1
  255. data/generated/google/apis/jobs_v3/classes.rb +1 -1
  256. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  257. data/generated/google/apis/jobs_v3p1beta1/classes.rb +11 -11
  258. data/generated/google/apis/language_v1.rb +1 -1
  259. data/generated/google/apis/language_v1/classes.rb +5 -5
  260. data/generated/google/apis/language_v1beta1.rb +1 -1
  261. data/generated/google/apis/language_v1beta1/classes.rb +5 -5
  262. data/generated/google/apis/language_v1beta2.rb +1 -1
  263. data/generated/google/apis/language_v1beta2/classes.rb +5 -5
  264. data/generated/google/apis/logging_v2.rb +1 -1
  265. data/generated/google/apis/logging_v2/classes.rb +2 -3
  266. data/generated/google/apis/logging_v2beta1.rb +1 -1
  267. data/generated/google/apis/logging_v2beta1/classes.rb +2 -3
  268. data/generated/google/apis/ml_v1.rb +1 -1
  269. data/generated/google/apis/ml_v1/classes.rb +158 -36
  270. data/generated/google/apis/ml_v1/representations.rb +23 -2
  271. data/generated/google/apis/monitoring_v3.rb +1 -1
  272. data/generated/google/apis/monitoring_v3/classes.rb +8 -7
  273. data/generated/google/apis/monitoring_v3/service.rb +6 -1
  274. data/generated/google/apis/oauth2_v1.rb +2 -5
  275. data/generated/google/apis/oauth2_v1/classes.rb +0 -124
  276. data/generated/google/apis/oauth2_v1/representations.rb +0 -62
  277. data/generated/google/apis/oauth2_v1/service.rb +0 -159
  278. data/generated/google/apis/oauth2_v2.rb +2 -5
  279. data/generated/google/apis/people_v1.rb +3 -3
  280. data/generated/google/apis/people_v1/classes.rb +19 -18
  281. data/generated/google/apis/people_v1/service.rb +4 -0
  282. data/generated/google/apis/plus_domains_v1.rb +3 -3
  283. data/generated/google/apis/plus_v1.rb +3 -3
  284. data/generated/google/apis/poly_v1.rb +1 -1
  285. data/generated/google/apis/poly_v1/classes.rb +5 -4
  286. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  287. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +8 -6
  288. data/generated/google/apis/pubsub_v1.rb +1 -1
  289. data/generated/google/apis/pubsub_v1/classes.rb +53 -38
  290. data/generated/google/apis/pubsub_v1/representations.rb +16 -0
  291. data/generated/google/apis/pubsub_v1/service.rb +6 -29
  292. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  293. data/generated/google/apis/pubsub_v1beta2/classes.rb +45 -1
  294. data/generated/google/apis/pubsub_v1beta2/representations.rb +16 -0
  295. data/generated/google/apis/redis_v1.rb +1 -1
  296. data/generated/google/apis/redis_v1beta1.rb +1 -1
  297. data/generated/google/apis/redis_v1beta1/classes.rb +0 -10
  298. data/generated/google/apis/redis_v1beta1/representations.rb +0 -1
  299. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  300. data/generated/google/apis/remotebuildexecution_v1/classes.rb +42 -28
  301. data/generated/google/apis/remotebuildexecution_v1/representations.rb +2 -0
  302. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  303. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +42 -28
  304. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +2 -0
  305. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  306. data/generated/google/apis/remotebuildexecution_v2/classes.rb +52 -38
  307. data/generated/google/apis/remotebuildexecution_v2/representations.rb +2 -0
  308. data/generated/google/apis/reseller_v1.rb +1 -1
  309. data/generated/google/apis/reseller_v1/classes.rb +32 -39
  310. data/generated/google/apis/reseller_v1/service.rb +1 -1
  311. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  312. data/generated/google/apis/runtimeconfig_v1/classes.rb +10 -10
  313. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  314. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +25 -24
  315. data/generated/google/apis/script_v1.rb +1 -1
  316. data/generated/google/apis/script_v1/classes.rb +0 -6
  317. data/generated/google/apis/script_v1/representations.rb +0 -1
  318. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  319. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +73 -151
  320. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +48 -50
  321. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  322. data/generated/google/apis/servicecontrol_v1/classes.rb +108 -24
  323. data/generated/google/apis/servicecontrol_v1/representations.rb +45 -0
  324. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  325. data/generated/google/apis/servicemanagement_v1/classes.rb +35 -113
  326. data/generated/google/apis/servicemanagement_v1/service.rb +6 -3
  327. data/generated/google/apis/servicenetworking_v1.rb +38 -0
  328. data/generated/google/apis/servicenetworking_v1/classes.rb +3591 -0
  329. data/generated/google/apis/servicenetworking_v1/representations.rb +1082 -0
  330. data/generated/google/apis/servicenetworking_v1/service.rb +440 -0
  331. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  332. data/generated/google/apis/servicenetworking_v1beta/classes.rb +32 -110
  333. data/generated/google/apis/serviceusage_v1.rb +1 -1
  334. data/generated/google/apis/serviceusage_v1/classes.rb +33 -150
  335. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  336. data/generated/google/apis/serviceusage_v1beta1/classes.rb +34 -190
  337. data/generated/google/apis/sheets_v4.rb +1 -1
  338. data/generated/google/apis/sheets_v4/classes.rb +115 -26
  339. data/generated/google/apis/slides_v1.rb +1 -1
  340. data/generated/google/apis/slides_v1/classes.rb +2 -2
  341. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  342. data/generated/google/apis/sourcerepo_v1/classes.rb +1 -1
  343. data/generated/google/apis/spanner_v1.rb +1 -1
  344. data/generated/google/apis/spanner_v1/classes.rb +171 -0
  345. data/generated/google/apis/spanner_v1/representations.rb +49 -0
  346. data/generated/google/apis/spanner_v1/service.rb +51 -1
  347. data/generated/google/apis/speech_v1.rb +1 -1
  348. data/generated/google/apis/speech_v1/classes.rb +107 -10
  349. data/generated/google/apis/speech_v1/representations.rb +24 -0
  350. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  351. data/generated/google/apis/speech_v1p1beta1/classes.rb +16 -10
  352. data/generated/google/apis/speech_v1p1beta1/representations.rb +1 -0
  353. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  354. data/generated/google/apis/sqladmin_v1beta4/classes.rb +11 -15
  355. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  356. data/generated/google/apis/storage_v1.rb +1 -1
  357. data/generated/google/apis/storage_v1/classes.rb +57 -4
  358. data/generated/google/apis/storage_v1/representations.rb +19 -1
  359. data/generated/google/apis/storagetransfer_v1.rb +2 -2
  360. data/generated/google/apis/storagetransfer_v1/classes.rb +28 -21
  361. data/generated/google/apis/storagetransfer_v1/service.rb +4 -4
  362. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  363. data/generated/google/apis/streetviewpublish_v1/classes.rb +26 -26
  364. data/generated/google/apis/streetviewpublish_v1/service.rb +27 -31
  365. data/generated/google/apis/tagmanager_v1.rb +1 -1
  366. data/generated/google/apis/tagmanager_v1/service.rb +0 -46
  367. data/generated/google/apis/tagmanager_v2.rb +1 -1
  368. data/generated/google/apis/tagmanager_v2/classes.rb +197 -292
  369. data/generated/google/apis/tagmanager_v2/representations.rb +62 -103
  370. data/generated/google/apis/tagmanager_v2/service.rb +219 -181
  371. data/generated/google/apis/tasks_v1.rb +2 -2
  372. data/generated/google/apis/tasks_v1/service.rb +5 -5
  373. data/generated/google/apis/testing_v1.rb +1 -1
  374. data/generated/google/apis/testing_v1/classes.rb +13 -13
  375. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  376. data/generated/google/apis/toolresults_v1beta3/classes.rb +92 -0
  377. data/generated/google/apis/toolresults_v1beta3/representations.rb +47 -0
  378. data/generated/google/apis/tpu_v1.rb +1 -1
  379. data/generated/google/apis/tpu_v1/classes.rb +10 -10
  380. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  381. data/generated/google/apis/tpu_v1alpha1/classes.rb +10 -10
  382. data/generated/google/apis/vault_v1.rb +1 -1
  383. data/generated/google/apis/vault_v1/classes.rb +7 -0
  384. data/generated/google/apis/vault_v1/representations.rb +1 -0
  385. data/generated/google/apis/videointelligence_v1.rb +3 -2
  386. data/generated/google/apis/videointelligence_v1/classes.rb +2193 -350
  387. data/generated/google/apis/videointelligence_v1/representations.rb +805 -6
  388. data/generated/google/apis/videointelligence_v1/service.rb +2 -1
  389. data/generated/google/apis/videointelligence_v1beta2.rb +3 -2
  390. data/generated/google/apis/videointelligence_v1beta2/classes.rb +2448 -605
  391. data/generated/google/apis/videointelligence_v1beta2/representations.rb +806 -7
  392. data/generated/google/apis/videointelligence_v1beta2/service.rb +2 -1
  393. data/generated/google/apis/videointelligence_v1p1beta1.rb +3 -2
  394. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +2422 -579
  395. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +806 -7
  396. data/generated/google/apis/videointelligence_v1p1beta1/service.rb +2 -1
  397. data/generated/google/apis/videointelligence_v1p2beta1.rb +3 -2
  398. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +2645 -830
  399. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +796 -12
  400. data/generated/google/apis/videointelligence_v1p2beta1/service.rb +2 -1
  401. data/generated/google/apis/videointelligence_v1p3beta1.rb +36 -0
  402. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +4687 -0
  403. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +2005 -0
  404. data/generated/google/apis/videointelligence_v1p3beta1/service.rb +94 -0
  405. data/generated/google/apis/vision_v1.rb +1 -1
  406. data/generated/google/apis/vision_v1/classes.rb +1977 -40
  407. data/generated/google/apis/vision_v1/representations.rb +833 -0
  408. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  409. data/generated/google/apis/vision_v1p1beta1/classes.rb +1972 -35
  410. data/generated/google/apis/vision_v1p1beta1/representations.rb +833 -0
  411. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  412. data/generated/google/apis/vision_v1p2beta1/classes.rb +1972 -35
  413. data/generated/google/apis/vision_v1p2beta1/representations.rb +833 -0
  414. data/generated/google/apis/websecurityscanner_v1beta.rb +34 -0
  415. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +973 -0
  416. data/generated/google/apis/websecurityscanner_v1beta/representations.rb +452 -0
  417. data/generated/google/apis/websecurityscanner_v1beta/service.rb +548 -0
  418. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  419. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  420. data/lib/google/apis/core/http_command.rb +1 -0
  421. data/lib/google/apis/generator/model.rb +1 -1
  422. data/lib/google/apis/version.rb +1 -1
  423. metadata +39 -8
  424. data/generated/google/apis/partners_v2/classes.rb +0 -2260
  425. data/generated/google/apis/partners_v2/representations.rb +0 -905
  426. data/generated/google/apis/partners_v2/service.rb +0 -1077
@@ -0,0 +1,94 @@
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 VideointelligenceV1p3beta1
23
+ # Cloud Video Intelligence API
24
+ #
25
+ # Detects objects, explicit content, and scene changes in videos. It also
26
+ # specifies the region for annotation and transcribes speech to text. Supports
27
+ # both asynchronous API and streaming API.
28
+ #
29
+ # @example
30
+ # require 'google/apis/videointelligence_v1p3beta1'
31
+ #
32
+ # Videointelligence = Google::Apis::VideointelligenceV1p3beta1 # Alias the module
33
+ # service = Videointelligence::CloudVideoIntelligenceService.new
34
+ #
35
+ # @see https://cloud.google.com/video-intelligence/docs/
36
+ class CloudVideoIntelligenceService < Google::Apis::Core::BaseService
37
+ # @return [String]
38
+ # API key. Your API key identifies your project and provides you with API access,
39
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
40
+ attr_accessor :key
41
+
42
+ # @return [String]
43
+ # Available to use for quota purposes for server-side applications. Can be any
44
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
45
+ attr_accessor :quota_user
46
+
47
+ def initialize
48
+ super('https://videointelligence.googleapis.com/', '')
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Performs asynchronous video annotation. Progress and results can be
53
+ # retrieved through the `google.longrunning.Operations` interface.
54
+ # `Operation.metadata` contains `AnnotateVideoProgress` (progress).
55
+ # `Operation.response` contains `AnnotateVideoResponse` (results).
56
+ # @param [Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1AnnotateVideoRequest] google_cloud_videointelligence_v1p3beta1_annotate_video_request_object
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [String] quota_user
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # @param [Google::Apis::RequestOptions] options
63
+ # Request-specific options
64
+ #
65
+ # @yield [result, err] Result & error if block supplied
66
+ # @yieldparam result [Google::Apis::VideointelligenceV1p3beta1::GoogleLongrunningOperation] parsed result object
67
+ # @yieldparam err [StandardError] error object if request failed
68
+ #
69
+ # @return [Google::Apis::VideointelligenceV1p3beta1::GoogleLongrunningOperation]
70
+ #
71
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
74
+ def annotate_video(google_cloud_videointelligence_v1p3beta1_annotate_video_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:post, 'v1p3beta1/videos:annotate', options)
76
+ command.request_representation = Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1AnnotateVideoRequest::Representation
77
+ command.request_object = google_cloud_videointelligence_v1p3beta1_annotate_video_request_object
78
+ command.response_representation = Google::Apis::VideointelligenceV1p3beta1::GoogleLongrunningOperation::Representation
79
+ command.response_class = Google::Apis::VideointelligenceV1p3beta1::GoogleLongrunningOperation
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ protected
86
+
87
+ def apply_command_defaults(command)
88
+ command.query['key'] = key unless key.nil?
89
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
90
+ end
91
+ end
92
+ end
93
+ end
94
+ 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 = '20190125'
30
+ REVISION = '20190309'
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'
@@ -116,14 +116,14 @@ module Google
116
116
  # @return [Google::Apis::VisionV1::CropHintsAnnotation]
117
117
  attr_accessor :crop_hints_annotation
118
118
 
119
- # The `Status` type defines a logical error model that is suitable for different
120
- # programming environments, including REST APIs and RPC APIs. It is used by
121
- # [gRPC](https://github.com/grpc). The error model is designed to be:
119
+ # The `Status` type defines a logical error model that is suitable for
120
+ # different programming environments, including REST APIs and RPC APIs. It is
121
+ # used by [gRPC](https://github.com/grpc). The error model is designed to be:
122
122
  # - Simple to use and understand for most users
123
123
  # - Flexible enough to meet unexpected needs
124
124
  # # Overview
125
- # The `Status` message contains three pieces of data: error code, error message,
126
- # and error details. The error code should be an enum value of
125
+ # The `Status` message contains three pieces of data: error code, error
126
+ # message, and error details. The error code should be an enum value of
127
127
  # google.rpc.Code, but it may accept additional error codes if needed. The
128
128
  # error message should be a developer-facing English message that helps
129
129
  # developers *understand* and *resolve* the error. If a localized user-facing
@@ -501,7 +501,11 @@ module Google
501
501
  # can be trivially provided to the constructor of "java.awt.Color" in Java; it
502
502
  # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
503
503
  # method in iOS; and, with just a little work, it can be easily formatted into
504
- # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
504
+ # a CSS "rgba()" string in JavaScript, as well.
505
+ # Note: this proto does not carry information about the absolute color space
506
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
507
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
508
+ # space.
505
509
  # Example (Java):
506
510
  # import com.google.type.Color;
507
511
  # // ...
@@ -649,7 +653,11 @@ module Google
649
653
  # can be trivially provided to the constructor of "java.awt.Color" in Java; it
650
654
  # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
651
655
  # method in iOS; and, with just a little work, it can be easily formatted into
652
- # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
656
+ # a CSS "rgba()" string in JavaScript, as well.
657
+ # Note: this proto does not carry information about the absolute color space
658
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
659
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
660
+ # space.
653
661
  # Example (Java):
654
662
  # import com.google.type.Color;
655
663
  # // ...
@@ -1253,14 +1261,14 @@ module Google
1253
1261
  # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1CropHintsAnnotation]
1254
1262
  attr_accessor :crop_hints_annotation
1255
1263
 
1256
- # The `Status` type defines a logical error model that is suitable for different
1257
- # programming environments, including REST APIs and RPC APIs. It is used by
1258
- # [gRPC](https://github.com/grpc). The error model is designed to be:
1264
+ # The `Status` type defines a logical error model that is suitable for
1265
+ # different programming environments, including REST APIs and RPC APIs. It is
1266
+ # used by [gRPC](https://github.com/grpc). The error model is designed to be:
1259
1267
  # - Simple to use and understand for most users
1260
1268
  # - Flexible enough to meet unexpected needs
1261
1269
  # # Overview
1262
- # The `Status` message contains three pieces of data: error code, error message,
1263
- # and error details. The error code should be an enum value of
1270
+ # The `Status` message contains three pieces of data: error code, error
1271
+ # message, and error details. The error code should be an enum value of
1264
1272
  # google.rpc.Code, but it may accept additional error codes if needed. The
1265
1273
  # error message should be a developer-facing English message that helps
1266
1274
  # developers *understand* and *resolve* the error. If a localized user-facing
@@ -1501,7 +1509,11 @@ module Google
1501
1509
  # can be trivially provided to the constructor of "java.awt.Color" in Java; it
1502
1510
  # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
1503
1511
  # method in iOS; and, with just a little work, it can be easily formatted into
1504
- # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
1512
+ # a CSS "rgba()" string in JavaScript, as well.
1513
+ # Note: this proto does not carry information about the absolute color space
1514
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
1515
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
1516
+ # space.
1505
1517
  # Example (Java):
1506
1518
  # import com.google.type.Color;
1507
1519
  # // ...
@@ -3000,14 +3012,14 @@ module Google
3000
3012
  # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1CropHintsAnnotation]
3001
3013
  attr_accessor :crop_hints_annotation
3002
3014
 
3003
- # The `Status` type defines a logical error model that is suitable for different
3004
- # programming environments, including REST APIs and RPC APIs. It is used by
3005
- # [gRPC](https://github.com/grpc). The error model is designed to be:
3015
+ # The `Status` type defines a logical error model that is suitable for
3016
+ # different programming environments, including REST APIs and RPC APIs. It is
3017
+ # used by [gRPC](https://github.com/grpc). The error model is designed to be:
3006
3018
  # - Simple to use and understand for most users
3007
3019
  # - Flexible enough to meet unexpected needs
3008
3020
  # # Overview
3009
- # The `Status` message contains three pieces of data: error code, error message,
3010
- # and error details. The error code should be an enum value of
3021
+ # The `Status` message contains three pieces of data: error code, error
3022
+ # message, and error details. The error code should be an enum value of
3011
3023
  # google.rpc.Code, but it may accept additional error codes if needed. The
3012
3024
  # error message should be a developer-facing English message that helps
3013
3025
  # developers *understand* and *resolve* the error. If a localized user-facing
@@ -3248,7 +3260,11 @@ module Google
3248
3260
  # can be trivially provided to the constructor of "java.awt.Color" in Java; it
3249
3261
  # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
3250
3262
  # method in iOS; and, with just a little work, it can be easily formatted into
3251
- # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
3263
+ # a CSS "rgba()" string in JavaScript, as well.
3264
+ # Note: this proto does not carry information about the absolute color space
3265
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
3266
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
3267
+ # space.
3252
3268
  # Example (Java):
3253
3269
  # import com.google.type.Color;
3254
3270
  # // ...
@@ -4747,14 +4763,14 @@ module Google
4747
4763
  # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1CropHintsAnnotation]
4748
4764
  attr_accessor :crop_hints_annotation
4749
4765
 
4750
- # The `Status` type defines a logical error model that is suitable for different
4751
- # programming environments, including REST APIs and RPC APIs. It is used by
4752
- # [gRPC](https://github.com/grpc). The error model is designed to be:
4766
+ # The `Status` type defines a logical error model that is suitable for
4767
+ # different programming environments, including REST APIs and RPC APIs. It is
4768
+ # used by [gRPC](https://github.com/grpc). The error model is designed to be:
4753
4769
  # - Simple to use and understand for most users
4754
4770
  # - Flexible enough to meet unexpected needs
4755
4771
  # # Overview
4756
- # The `Status` message contains three pieces of data: error code, error message,
4757
- # and error details. The error code should be an enum value of
4772
+ # The `Status` message contains three pieces of data: error code, error
4773
+ # message, and error details. The error code should be an enum value of
4758
4774
  # google.rpc.Code, but it may accept additional error codes if needed. The
4759
4775
  # error message should be a developer-facing English message that helps
4760
4776
  # developers *understand* and *resolve* the error. If a localized user-facing
@@ -5029,7 +5045,11 @@ module Google
5029
5045
  # can be trivially provided to the constructor of "java.awt.Color" in Java; it
5030
5046
  # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
5031
5047
  # method in iOS; and, with just a little work, it can be easily formatted into
5032
- # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
5048
+ # a CSS "rgba()" string in JavaScript, as well.
5049
+ # Note: this proto does not carry information about the absolute color space
5050
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
5051
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
5052
+ # space.
5033
5053
  # Example (Java):
5034
5054
  # import com.google.type.Color;
5035
5055
  # // ...
@@ -6563,6 +6583,1923 @@ module Google
6563
6583
  end
6564
6584
  end
6565
6585
 
6586
+ # Response to a single file annotation request. A file may contain one or more
6587
+ # images, which individually have their own responses.
6588
+ class GoogleCloudVisionV1p4beta1AnnotateFileResponse
6589
+ include Google::Apis::Core::Hashable
6590
+
6591
+ # The desired input location and metadata.
6592
+ # Corresponds to the JSON property `inputConfig`
6593
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1InputConfig]
6594
+ attr_accessor :input_config
6595
+
6596
+ # Individual responses to images found within the file.
6597
+ # Corresponds to the JSON property `responses`
6598
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1AnnotateImageResponse>]
6599
+ attr_accessor :responses
6600
+
6601
+ # This field gives the total number of pages in the file.
6602
+ # Corresponds to the JSON property `totalPages`
6603
+ # @return [Fixnum]
6604
+ attr_accessor :total_pages
6605
+
6606
+ def initialize(**args)
6607
+ update!(**args)
6608
+ end
6609
+
6610
+ # Update properties of this object
6611
+ def update!(**args)
6612
+ @input_config = args[:input_config] if args.key?(:input_config)
6613
+ @responses = args[:responses] if args.key?(:responses)
6614
+ @total_pages = args[:total_pages] if args.key?(:total_pages)
6615
+ end
6616
+ end
6617
+
6618
+ # Response to an image annotation request.
6619
+ class GoogleCloudVisionV1p4beta1AnnotateImageResponse
6620
+ include Google::Apis::Core::Hashable
6621
+
6622
+ # If an image was produced from a file (e.g. a PDF), this message gives
6623
+ # information about the source of that image.
6624
+ # Corresponds to the JSON property `context`
6625
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ImageAnnotationContext]
6626
+ attr_accessor :context
6627
+
6628
+ # Set of crop hints that are used to generate new crops when serving images.
6629
+ # Corresponds to the JSON property `cropHintsAnnotation`
6630
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1CropHintsAnnotation]
6631
+ attr_accessor :crop_hints_annotation
6632
+
6633
+ # The `Status` type defines a logical error model that is suitable for
6634
+ # different programming environments, including REST APIs and RPC APIs. It is
6635
+ # used by [gRPC](https://github.com/grpc). The error model is designed to be:
6636
+ # - Simple to use and understand for most users
6637
+ # - Flexible enough to meet unexpected needs
6638
+ # # Overview
6639
+ # The `Status` message contains three pieces of data: error code, error
6640
+ # message, and error details. The error code should be an enum value of
6641
+ # google.rpc.Code, but it may accept additional error codes if needed. The
6642
+ # error message should be a developer-facing English message that helps
6643
+ # developers *understand* and *resolve* the error. If a localized user-facing
6644
+ # error message is needed, put the localized message in the error details or
6645
+ # localize it in the client. The optional error details may contain arbitrary
6646
+ # information about the error. There is a predefined set of error detail types
6647
+ # in the package `google.rpc` that can be used for common error conditions.
6648
+ # # Language mapping
6649
+ # The `Status` message is the logical representation of the error model, but it
6650
+ # is not necessarily the actual wire format. When the `Status` message is
6651
+ # exposed in different client libraries and different wire protocols, it can be
6652
+ # mapped differently. For example, it will likely be mapped to some exceptions
6653
+ # in Java, but more likely mapped to some error codes in C.
6654
+ # # Other uses
6655
+ # The error model and the `Status` message can be used in a variety of
6656
+ # environments, either with or without APIs, to provide a
6657
+ # consistent developer experience across different environments.
6658
+ # Example uses of this error model include:
6659
+ # - Partial errors. If a service needs to return partial errors to the client,
6660
+ # it may embed the `Status` in the normal response to indicate the partial
6661
+ # errors.
6662
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
6663
+ # have a `Status` message for error reporting.
6664
+ # - Batch operations. If a client uses batch request and batch response, the
6665
+ # `Status` message should be used directly inside batch response, one for
6666
+ # each error sub-response.
6667
+ # - Asynchronous operations. If an API call embeds asynchronous operation
6668
+ # results in its response, the status of those operations should be
6669
+ # represented directly using the `Status` message.
6670
+ # - Logging. If some API errors are stored in logs, the message `Status` could
6671
+ # be used directly after any stripping needed for security/privacy reasons.
6672
+ # Corresponds to the JSON property `error`
6673
+ # @return [Google::Apis::VisionV1::Status]
6674
+ attr_accessor :error
6675
+
6676
+ # If present, face detection has completed successfully.
6677
+ # Corresponds to the JSON property `faceAnnotations`
6678
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1FaceAnnotation>]
6679
+ attr_accessor :face_annotations
6680
+
6681
+ # TextAnnotation contains a structured representation of OCR extracted text.
6682
+ # The hierarchy of an OCR extracted text structure is like this:
6683
+ # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
6684
+ # Each structural component, starting from Page, may further have their own
6685
+ # properties. Properties describe detected languages, breaks etc.. Please refer
6686
+ # to the TextAnnotation.TextProperty message definition below for more
6687
+ # detail.
6688
+ # Corresponds to the JSON property `fullTextAnnotation`
6689
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotation]
6690
+ attr_accessor :full_text_annotation
6691
+
6692
+ # Stores image properties, such as dominant colors.
6693
+ # Corresponds to the JSON property `imagePropertiesAnnotation`
6694
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ImageProperties]
6695
+ attr_accessor :image_properties_annotation
6696
+
6697
+ # If present, label detection has completed successfully.
6698
+ # Corresponds to the JSON property `labelAnnotations`
6699
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
6700
+ attr_accessor :label_annotations
6701
+
6702
+ # If present, landmark detection has completed successfully.
6703
+ # Corresponds to the JSON property `landmarkAnnotations`
6704
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
6705
+ attr_accessor :landmark_annotations
6706
+
6707
+ # If present, localized object detection has completed successfully.
6708
+ # This will be sorted descending by confidence score.
6709
+ # Corresponds to the JSON property `localizedObjectAnnotations`
6710
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation>]
6711
+ attr_accessor :localized_object_annotations
6712
+
6713
+ # If present, logo detection has completed successfully.
6714
+ # Corresponds to the JSON property `logoAnnotations`
6715
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
6716
+ attr_accessor :logo_annotations
6717
+
6718
+ # Results for a product search request.
6719
+ # Corresponds to the JSON property `productSearchResults`
6720
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResults]
6721
+ attr_accessor :product_search_results
6722
+
6723
+ # Set of features pertaining to the image, computed by computer vision
6724
+ # methods over safe-search verticals (for example, adult, spoof, medical,
6725
+ # violence).
6726
+ # Corresponds to the JSON property `safeSearchAnnotation`
6727
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1SafeSearchAnnotation]
6728
+ attr_accessor :safe_search_annotation
6729
+
6730
+ # If present, text (OCR) detection has completed successfully.
6731
+ # Corresponds to the JSON property `textAnnotations`
6732
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
6733
+ attr_accessor :text_annotations
6734
+
6735
+ # Relevant information for the image from the Internet.
6736
+ # Corresponds to the JSON property `webDetection`
6737
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetection]
6738
+ attr_accessor :web_detection
6739
+
6740
+ def initialize(**args)
6741
+ update!(**args)
6742
+ end
6743
+
6744
+ # Update properties of this object
6745
+ def update!(**args)
6746
+ @context = args[:context] if args.key?(:context)
6747
+ @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
6748
+ @error = args[:error] if args.key?(:error)
6749
+ @face_annotations = args[:face_annotations] if args.key?(:face_annotations)
6750
+ @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
6751
+ @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
6752
+ @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
6753
+ @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
6754
+ @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
6755
+ @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
6756
+ @product_search_results = args[:product_search_results] if args.key?(:product_search_results)
6757
+ @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
6758
+ @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
6759
+ @web_detection = args[:web_detection] if args.key?(:web_detection)
6760
+ end
6761
+ end
6762
+
6763
+ # The response for a single offline file annotation request.
6764
+ class GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse
6765
+ include Google::Apis::Core::Hashable
6766
+
6767
+ # The desired output location and metadata.
6768
+ # Corresponds to the JSON property `outputConfig`
6769
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1OutputConfig]
6770
+ attr_accessor :output_config
6771
+
6772
+ def initialize(**args)
6773
+ update!(**args)
6774
+ end
6775
+
6776
+ # Update properties of this object
6777
+ def update!(**args)
6778
+ @output_config = args[:output_config] if args.key?(:output_config)
6779
+ end
6780
+ end
6781
+
6782
+ # Response to an async batch file annotation request.
6783
+ class GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse
6784
+ include Google::Apis::Core::Hashable
6785
+
6786
+ # The list of file annotation responses, one for each request in
6787
+ # AsyncBatchAnnotateFilesRequest.
6788
+ # Corresponds to the JSON property `responses`
6789
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse>]
6790
+ attr_accessor :responses
6791
+
6792
+ def initialize(**args)
6793
+ update!(**args)
6794
+ end
6795
+
6796
+ # Update properties of this object
6797
+ def update!(**args)
6798
+ @responses = args[:responses] if args.key?(:responses)
6799
+ end
6800
+ end
6801
+
6802
+ # Response to an async batch image annotation request.
6803
+ class GoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse
6804
+ include Google::Apis::Core::Hashable
6805
+
6806
+ # The desired output location and metadata.
6807
+ # Corresponds to the JSON property `outputConfig`
6808
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1OutputConfig]
6809
+ attr_accessor :output_config
6810
+
6811
+ def initialize(**args)
6812
+ update!(**args)
6813
+ end
6814
+
6815
+ # Update properties of this object
6816
+ def update!(**args)
6817
+ @output_config = args[:output_config] if args.key?(:output_config)
6818
+ end
6819
+ end
6820
+
6821
+ # A list of file annotation responses.
6822
+ class GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse
6823
+ include Google::Apis::Core::Hashable
6824
+
6825
+ # The list of file annotation responses, each response corresponding to each
6826
+ # AnnotateFileRequest in BatchAnnotateFilesRequest.
6827
+ # Corresponds to the JSON property `responses`
6828
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1AnnotateFileResponse>]
6829
+ attr_accessor :responses
6830
+
6831
+ def initialize(**args)
6832
+ update!(**args)
6833
+ end
6834
+
6835
+ # Update properties of this object
6836
+ def update!(**args)
6837
+ @responses = args[:responses] if args.key?(:responses)
6838
+ end
6839
+ end
6840
+
6841
+ # Metadata for the batch operations such as the current state.
6842
+ # This is included in the `metadata` field of the `Operation` returned by the
6843
+ # `GetOperation` call of the `google::longrunning::Operations` service.
6844
+ class GoogleCloudVisionV1p4beta1BatchOperationMetadata
6845
+ include Google::Apis::Core::Hashable
6846
+
6847
+ # The time when the batch request is finished and
6848
+ # google.longrunning.Operation.done is set to true.
6849
+ # Corresponds to the JSON property `endTime`
6850
+ # @return [String]
6851
+ attr_accessor :end_time
6852
+
6853
+ # The current state of the batch operation.
6854
+ # Corresponds to the JSON property `state`
6855
+ # @return [String]
6856
+ attr_accessor :state
6857
+
6858
+ # The time when the batch request was submitted to the server.
6859
+ # Corresponds to the JSON property `submitTime`
6860
+ # @return [String]
6861
+ attr_accessor :submit_time
6862
+
6863
+ def initialize(**args)
6864
+ update!(**args)
6865
+ end
6866
+
6867
+ # Update properties of this object
6868
+ def update!(**args)
6869
+ @end_time = args[:end_time] if args.key?(:end_time)
6870
+ @state = args[:state] if args.key?(:state)
6871
+ @submit_time = args[:submit_time] if args.key?(:submit_time)
6872
+ end
6873
+ end
6874
+
6875
+ # Logical element on the page.
6876
+ class GoogleCloudVisionV1p4beta1Block
6877
+ include Google::Apis::Core::Hashable
6878
+
6879
+ # Detected block type (text, image etc) for this block.
6880
+ # Corresponds to the JSON property `blockType`
6881
+ # @return [String]
6882
+ attr_accessor :block_type
6883
+
6884
+ # A bounding polygon for the detected image annotation.
6885
+ # Corresponds to the JSON property `boundingBox`
6886
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
6887
+ attr_accessor :bounding_box
6888
+
6889
+ # Confidence of the OCR results on the block. Range [0, 1].
6890
+ # Corresponds to the JSON property `confidence`
6891
+ # @return [Float]
6892
+ attr_accessor :confidence
6893
+
6894
+ # List of paragraphs in this block (if this blocks is of type text).
6895
+ # Corresponds to the JSON property `paragraphs`
6896
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Paragraph>]
6897
+ attr_accessor :paragraphs
6898
+
6899
+ # Additional information detected on the structural component.
6900
+ # Corresponds to the JSON property `property`
6901
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
6902
+ attr_accessor :property
6903
+
6904
+ def initialize(**args)
6905
+ update!(**args)
6906
+ end
6907
+
6908
+ # Update properties of this object
6909
+ def update!(**args)
6910
+ @block_type = args[:block_type] if args.key?(:block_type)
6911
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
6912
+ @confidence = args[:confidence] if args.key?(:confidence)
6913
+ @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
6914
+ @property = args[:property] if args.key?(:property)
6915
+ end
6916
+ end
6917
+
6918
+ # A bounding polygon for the detected image annotation.
6919
+ class GoogleCloudVisionV1p4beta1BoundingPoly
6920
+ include Google::Apis::Core::Hashable
6921
+
6922
+ # The bounding polygon normalized vertices.
6923
+ # Corresponds to the JSON property `normalizedVertices`
6924
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1NormalizedVertex>]
6925
+ attr_accessor :normalized_vertices
6926
+
6927
+ # The bounding polygon vertices.
6928
+ # Corresponds to the JSON property `vertices`
6929
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Vertex>]
6930
+ attr_accessor :vertices
6931
+
6932
+ def initialize(**args)
6933
+ update!(**args)
6934
+ end
6935
+
6936
+ # Update properties of this object
6937
+ def update!(**args)
6938
+ @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
6939
+ @vertices = args[:vertices] if args.key?(:vertices)
6940
+ end
6941
+ end
6942
+
6943
+ # Color information consists of RGB channels, score, and the fraction of
6944
+ # the image that the color occupies in the image.
6945
+ class GoogleCloudVisionV1p4beta1ColorInfo
6946
+ include Google::Apis::Core::Hashable
6947
+
6948
+ # Represents a color in the RGBA color space. This representation is designed
6949
+ # for simplicity of conversion to/from color representations in various
6950
+ # languages over compactness; for example, the fields of this representation
6951
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
6952
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
6953
+ # method in iOS; and, with just a little work, it can be easily formatted into
6954
+ # a CSS "rgba()" string in JavaScript, as well.
6955
+ # Note: this proto does not carry information about the absolute color space
6956
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
6957
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
6958
+ # space.
6959
+ # Example (Java):
6960
+ # import com.google.type.Color;
6961
+ # // ...
6962
+ # public static java.awt.Color fromProto(Color protocolor) `
6963
+ # float alpha = protocolor.hasAlpha()
6964
+ # ? protocolor.getAlpha().getValue()
6965
+ # : 1.0;
6966
+ # return new java.awt.Color(
6967
+ # protocolor.getRed(),
6968
+ # protocolor.getGreen(),
6969
+ # protocolor.getBlue(),
6970
+ # alpha);
6971
+ # `
6972
+ # public static Color toProto(java.awt.Color color) `
6973
+ # float red = (float) color.getRed();
6974
+ # float green = (float) color.getGreen();
6975
+ # float blue = (float) color.getBlue();
6976
+ # float denominator = 255.0;
6977
+ # Color.Builder resultBuilder =
6978
+ # Color
6979
+ # .newBuilder()
6980
+ # .setRed(red / denominator)
6981
+ # .setGreen(green / denominator)
6982
+ # .setBlue(blue / denominator);
6983
+ # int alpha = color.getAlpha();
6984
+ # if (alpha != 255) `
6985
+ # result.setAlpha(
6986
+ # FloatValue
6987
+ # .newBuilder()
6988
+ # .setValue(((float) alpha) / denominator)
6989
+ # .build());
6990
+ # `
6991
+ # return resultBuilder.build();
6992
+ # `
6993
+ # // ...
6994
+ # Example (iOS / Obj-C):
6995
+ # // ...
6996
+ # static UIColor* fromProto(Color* protocolor) `
6997
+ # float red = [protocolor red];
6998
+ # float green = [protocolor green];
6999
+ # float blue = [protocolor blue];
7000
+ # FloatValue* alpha_wrapper = [protocolor alpha];
7001
+ # float alpha = 1.0;
7002
+ # if (alpha_wrapper != nil) `
7003
+ # alpha = [alpha_wrapper value];
7004
+ # `
7005
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
7006
+ # `
7007
+ # static Color* toProto(UIColor* color) `
7008
+ # CGFloat red, green, blue, alpha;
7009
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
7010
+ # return nil;
7011
+ # `
7012
+ # Color* result = [[Color alloc] init];
7013
+ # [result setRed:red];
7014
+ # [result setGreen:green];
7015
+ # [result setBlue:blue];
7016
+ # if (alpha <= 0.9999) `
7017
+ # [result setAlpha:floatWrapperWithValue(alpha)];
7018
+ # `
7019
+ # [result autorelease];
7020
+ # return result;
7021
+ # `
7022
+ # // ...
7023
+ # Example (JavaScript):
7024
+ # // ...
7025
+ # var protoToCssColor = function(rgb_color) `
7026
+ # var redFrac = rgb_color.red || 0.0;
7027
+ # var greenFrac = rgb_color.green || 0.0;
7028
+ # var blueFrac = rgb_color.blue || 0.0;
7029
+ # var red = Math.floor(redFrac * 255);
7030
+ # var green = Math.floor(greenFrac * 255);
7031
+ # var blue = Math.floor(blueFrac * 255);
7032
+ # if (!('alpha' in rgb_color)) `
7033
+ # return rgbToCssColor_(red, green, blue);
7034
+ # `
7035
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
7036
+ # var rgbParams = [red, green, blue].join(',');
7037
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
7038
+ # `;
7039
+ # var rgbToCssColor_ = function(red, green, blue) `
7040
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
7041
+ # var hexString = rgbNumber.toString(16);
7042
+ # var missingZeros = 6 - hexString.length;
7043
+ # var resultBuilder = ['#'];
7044
+ # for (var i = 0; i < missingZeros; i++) `
7045
+ # resultBuilder.push('0');
7046
+ # `
7047
+ # resultBuilder.push(hexString);
7048
+ # return resultBuilder.join('');
7049
+ # `;
7050
+ # // ...
7051
+ # Corresponds to the JSON property `color`
7052
+ # @return [Google::Apis::VisionV1::Color]
7053
+ attr_accessor :color
7054
+
7055
+ # The fraction of pixels the color occupies in the image.
7056
+ # Value in range [0, 1].
7057
+ # Corresponds to the JSON property `pixelFraction`
7058
+ # @return [Float]
7059
+ attr_accessor :pixel_fraction
7060
+
7061
+ # Image-specific score for this color. Value in range [0, 1].
7062
+ # Corresponds to the JSON property `score`
7063
+ # @return [Float]
7064
+ attr_accessor :score
7065
+
7066
+ def initialize(**args)
7067
+ update!(**args)
7068
+ end
7069
+
7070
+ # Update properties of this object
7071
+ def update!(**args)
7072
+ @color = args[:color] if args.key?(:color)
7073
+ @pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction)
7074
+ @score = args[:score] if args.key?(:score)
7075
+ end
7076
+ end
7077
+
7078
+ # Single crop hint that is used to generate a new crop when serving an image.
7079
+ class GoogleCloudVisionV1p4beta1CropHint
7080
+ include Google::Apis::Core::Hashable
7081
+
7082
+ # A bounding polygon for the detected image annotation.
7083
+ # Corresponds to the JSON property `boundingPoly`
7084
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
7085
+ attr_accessor :bounding_poly
7086
+
7087
+ # Confidence of this being a salient region. Range [0, 1].
7088
+ # Corresponds to the JSON property `confidence`
7089
+ # @return [Float]
7090
+ attr_accessor :confidence
7091
+
7092
+ # Fraction of importance of this salient region with respect to the original
7093
+ # image.
7094
+ # Corresponds to the JSON property `importanceFraction`
7095
+ # @return [Float]
7096
+ attr_accessor :importance_fraction
7097
+
7098
+ def initialize(**args)
7099
+ update!(**args)
7100
+ end
7101
+
7102
+ # Update properties of this object
7103
+ def update!(**args)
7104
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
7105
+ @confidence = args[:confidence] if args.key?(:confidence)
7106
+ @importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction)
7107
+ end
7108
+ end
7109
+
7110
+ # Set of crop hints that are used to generate new crops when serving images.
7111
+ class GoogleCloudVisionV1p4beta1CropHintsAnnotation
7112
+ include Google::Apis::Core::Hashable
7113
+
7114
+ # Crop hint results.
7115
+ # Corresponds to the JSON property `cropHints`
7116
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1CropHint>]
7117
+ attr_accessor :crop_hints
7118
+
7119
+ def initialize(**args)
7120
+ update!(**args)
7121
+ end
7122
+
7123
+ # Update properties of this object
7124
+ def update!(**args)
7125
+ @crop_hints = args[:crop_hints] if args.key?(:crop_hints)
7126
+ end
7127
+ end
7128
+
7129
+ # Set of dominant colors and their corresponding scores.
7130
+ class GoogleCloudVisionV1p4beta1DominantColorsAnnotation
7131
+ include Google::Apis::Core::Hashable
7132
+
7133
+ # RGB color values with their score and pixel fraction.
7134
+ # Corresponds to the JSON property `colors`
7135
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ColorInfo>]
7136
+ attr_accessor :colors
7137
+
7138
+ def initialize(**args)
7139
+ update!(**args)
7140
+ end
7141
+
7142
+ # Update properties of this object
7143
+ def update!(**args)
7144
+ @colors = args[:colors] if args.key?(:colors)
7145
+ end
7146
+ end
7147
+
7148
+ # Set of detected entity features.
7149
+ class GoogleCloudVisionV1p4beta1EntityAnnotation
7150
+ include Google::Apis::Core::Hashable
7151
+
7152
+ # A bounding polygon for the detected image annotation.
7153
+ # Corresponds to the JSON property `boundingPoly`
7154
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
7155
+ attr_accessor :bounding_poly
7156
+
7157
+ # **Deprecated. Use `score` instead.**
7158
+ # The accuracy of the entity detection in an image.
7159
+ # For example, for an image in which the "Eiffel Tower" entity is detected,
7160
+ # this field represents the confidence that there is a tower in the query
7161
+ # image. Range [0, 1].
7162
+ # Corresponds to the JSON property `confidence`
7163
+ # @return [Float]
7164
+ attr_accessor :confidence
7165
+
7166
+ # Entity textual description, expressed in its `locale` language.
7167
+ # Corresponds to the JSON property `description`
7168
+ # @return [String]
7169
+ attr_accessor :description
7170
+
7171
+ # The language code for the locale in which the entity textual
7172
+ # `description` is expressed.
7173
+ # Corresponds to the JSON property `locale`
7174
+ # @return [String]
7175
+ attr_accessor :locale
7176
+
7177
+ # The location information for the detected entity. Multiple
7178
+ # `LocationInfo` elements can be present because one location may
7179
+ # indicate the location of the scene in the image, and another location
7180
+ # may indicate the location of the place where the image was taken.
7181
+ # Location information is usually present for landmarks.
7182
+ # Corresponds to the JSON property `locations`
7183
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1LocationInfo>]
7184
+ attr_accessor :locations
7185
+
7186
+ # Opaque entity ID. Some IDs may be available in
7187
+ # [Google Knowledge Graph Search
7188
+ # API](https://developers.google.com/knowledge-graph/).
7189
+ # Corresponds to the JSON property `mid`
7190
+ # @return [String]
7191
+ attr_accessor :mid
7192
+
7193
+ # Some entities may have optional user-supplied `Property` (name/value)
7194
+ # fields, such a score or string that qualifies the entity.
7195
+ # Corresponds to the JSON property `properties`
7196
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Property>]
7197
+ attr_accessor :properties
7198
+
7199
+ # Overall score of the result. Range [0, 1].
7200
+ # Corresponds to the JSON property `score`
7201
+ # @return [Float]
7202
+ attr_accessor :score
7203
+
7204
+ # The relevancy of the ICA (Image Content Annotation) label to the
7205
+ # image. For example, the relevancy of "tower" is likely higher to an image
7206
+ # containing the detected "Eiffel Tower" than to an image containing a
7207
+ # detected distant towering building, even though the confidence that
7208
+ # there is a tower in each image may be the same. Range [0, 1].
7209
+ # Corresponds to the JSON property `topicality`
7210
+ # @return [Float]
7211
+ attr_accessor :topicality
7212
+
7213
+ def initialize(**args)
7214
+ update!(**args)
7215
+ end
7216
+
7217
+ # Update properties of this object
7218
+ def update!(**args)
7219
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
7220
+ @confidence = args[:confidence] if args.key?(:confidence)
7221
+ @description = args[:description] if args.key?(:description)
7222
+ @locale = args[:locale] if args.key?(:locale)
7223
+ @locations = args[:locations] if args.key?(:locations)
7224
+ @mid = args[:mid] if args.key?(:mid)
7225
+ @properties = args[:properties] if args.key?(:properties)
7226
+ @score = args[:score] if args.key?(:score)
7227
+ @topicality = args[:topicality] if args.key?(:topicality)
7228
+ end
7229
+ end
7230
+
7231
+ # A face annotation object contains the results of face detection.
7232
+ class GoogleCloudVisionV1p4beta1FaceAnnotation
7233
+ include Google::Apis::Core::Hashable
7234
+
7235
+ # Anger likelihood.
7236
+ # Corresponds to the JSON property `angerLikelihood`
7237
+ # @return [String]
7238
+ attr_accessor :anger_likelihood
7239
+
7240
+ # Blurred likelihood.
7241
+ # Corresponds to the JSON property `blurredLikelihood`
7242
+ # @return [String]
7243
+ attr_accessor :blurred_likelihood
7244
+
7245
+ # A bounding polygon for the detected image annotation.
7246
+ # Corresponds to the JSON property `boundingPoly`
7247
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
7248
+ attr_accessor :bounding_poly
7249
+
7250
+ # Detection confidence. Range [0, 1].
7251
+ # Corresponds to the JSON property `detectionConfidence`
7252
+ # @return [Float]
7253
+ attr_accessor :detection_confidence
7254
+
7255
+ # A bounding polygon for the detected image annotation.
7256
+ # Corresponds to the JSON property `fdBoundingPoly`
7257
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
7258
+ attr_accessor :fd_bounding_poly
7259
+
7260
+ # Headwear likelihood.
7261
+ # Corresponds to the JSON property `headwearLikelihood`
7262
+ # @return [String]
7263
+ attr_accessor :headwear_likelihood
7264
+
7265
+ # Joy likelihood.
7266
+ # Corresponds to the JSON property `joyLikelihood`
7267
+ # @return [String]
7268
+ attr_accessor :joy_likelihood
7269
+
7270
+ # Face landmarking confidence. Range [0, 1].
7271
+ # Corresponds to the JSON property `landmarkingConfidence`
7272
+ # @return [Float]
7273
+ attr_accessor :landmarking_confidence
7274
+
7275
+ # Detected face landmarks.
7276
+ # Corresponds to the JSON property `landmarks`
7277
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1FaceAnnotationLandmark>]
7278
+ attr_accessor :landmarks
7279
+
7280
+ # Yaw angle, which indicates the leftward/rightward angle that the face is
7281
+ # pointing relative to the vertical plane perpendicular to the image. Range
7282
+ # [-180,180].
7283
+ # Corresponds to the JSON property `panAngle`
7284
+ # @return [Float]
7285
+ attr_accessor :pan_angle
7286
+
7287
+ # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
7288
+ # of the face relative to the image vertical about the axis perpendicular to
7289
+ # the face. Range [-180,180].
7290
+ # Corresponds to the JSON property `rollAngle`
7291
+ # @return [Float]
7292
+ attr_accessor :roll_angle
7293
+
7294
+ # Sorrow likelihood.
7295
+ # Corresponds to the JSON property `sorrowLikelihood`
7296
+ # @return [String]
7297
+ attr_accessor :sorrow_likelihood
7298
+
7299
+ # Surprise likelihood.
7300
+ # Corresponds to the JSON property `surpriseLikelihood`
7301
+ # @return [String]
7302
+ attr_accessor :surprise_likelihood
7303
+
7304
+ # Pitch angle, which indicates the upwards/downwards angle that the face is
7305
+ # pointing relative to the image's horizontal plane. Range [-180,180].
7306
+ # Corresponds to the JSON property `tiltAngle`
7307
+ # @return [Float]
7308
+ attr_accessor :tilt_angle
7309
+
7310
+ # Under-exposed likelihood.
7311
+ # Corresponds to the JSON property `underExposedLikelihood`
7312
+ # @return [String]
7313
+ attr_accessor :under_exposed_likelihood
7314
+
7315
+ def initialize(**args)
7316
+ update!(**args)
7317
+ end
7318
+
7319
+ # Update properties of this object
7320
+ def update!(**args)
7321
+ @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood)
7322
+ @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood)
7323
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
7324
+ @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence)
7325
+ @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly)
7326
+ @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood)
7327
+ @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood)
7328
+ @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
7329
+ @landmarks = args[:landmarks] if args.key?(:landmarks)
7330
+ @pan_angle = args[:pan_angle] if args.key?(:pan_angle)
7331
+ @roll_angle = args[:roll_angle] if args.key?(:roll_angle)
7332
+ @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood)
7333
+ @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
7334
+ @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle)
7335
+ @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood)
7336
+ end
7337
+ end
7338
+
7339
+ # A face-specific landmark (for example, a face feature).
7340
+ class GoogleCloudVisionV1p4beta1FaceAnnotationLandmark
7341
+ include Google::Apis::Core::Hashable
7342
+
7343
+ # A 3D position in the image, used primarily for Face detection landmarks.
7344
+ # A valid Position must have both x and y coordinates.
7345
+ # The position coordinates are in the same scale as the original image.
7346
+ # Corresponds to the JSON property `position`
7347
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Position]
7348
+ attr_accessor :position
7349
+
7350
+ # Face landmark type.
7351
+ # Corresponds to the JSON property `type`
7352
+ # @return [String]
7353
+ attr_accessor :type
7354
+
7355
+ def initialize(**args)
7356
+ update!(**args)
7357
+ end
7358
+
7359
+ # Update properties of this object
7360
+ def update!(**args)
7361
+ @position = args[:position] if args.key?(:position)
7362
+ @type = args[:type] if args.key?(:type)
7363
+ end
7364
+ end
7365
+
7366
+ # The Google Cloud Storage location where the output will be written to.
7367
+ class GoogleCloudVisionV1p4beta1GcsDestination
7368
+ include Google::Apis::Core::Hashable
7369
+
7370
+ # Google Cloud Storage URI where the results will be stored. Results will
7371
+ # be in JSON format and preceded by its corresponding input URI. This field
7372
+ # can either represent a single file, or a prefix for multiple outputs.
7373
+ # Prefixes must end in a `/`.
7374
+ # Examples:
7375
+ # * File: gs://bucket-name/filename.json
7376
+ # * Prefix: gs://bucket-name/prefix/here/
7377
+ # * File: gs://bucket-name/prefix/here
7378
+ # If multiple outputs, each response is still AnnotateFileResponse, each of
7379
+ # which contains some subset of the full list of AnnotateImageResponse.
7380
+ # Multiple outputs can happen if, for example, the output JSON is too large
7381
+ # and overflows into multiple sharded files.
7382
+ # Corresponds to the JSON property `uri`
7383
+ # @return [String]
7384
+ attr_accessor :uri
7385
+
7386
+ def initialize(**args)
7387
+ update!(**args)
7388
+ end
7389
+
7390
+ # Update properties of this object
7391
+ def update!(**args)
7392
+ @uri = args[:uri] if args.key?(:uri)
7393
+ end
7394
+ end
7395
+
7396
+ # The Google Cloud Storage location where the input will be read from.
7397
+ class GoogleCloudVisionV1p4beta1GcsSource
7398
+ include Google::Apis::Core::Hashable
7399
+
7400
+ # Google Cloud Storage URI for the input file. This must only be a
7401
+ # Google Cloud Storage object. Wildcards are not currently supported.
7402
+ # Corresponds to the JSON property `uri`
7403
+ # @return [String]
7404
+ attr_accessor :uri
7405
+
7406
+ def initialize(**args)
7407
+ update!(**args)
7408
+ end
7409
+
7410
+ # Update properties of this object
7411
+ def update!(**args)
7412
+ @uri = args[:uri] if args.key?(:uri)
7413
+ end
7414
+ end
7415
+
7416
+ # If an image was produced from a file (e.g. a PDF), this message gives
7417
+ # information about the source of that image.
7418
+ class GoogleCloudVisionV1p4beta1ImageAnnotationContext
7419
+ include Google::Apis::Core::Hashable
7420
+
7421
+ # If the file was a PDF or TIFF, this field gives the page number within
7422
+ # the file used to produce the image.
7423
+ # Corresponds to the JSON property `pageNumber`
7424
+ # @return [Fixnum]
7425
+ attr_accessor :page_number
7426
+
7427
+ # The URI of the file used to produce the image.
7428
+ # Corresponds to the JSON property `uri`
7429
+ # @return [String]
7430
+ attr_accessor :uri
7431
+
7432
+ def initialize(**args)
7433
+ update!(**args)
7434
+ end
7435
+
7436
+ # Update properties of this object
7437
+ def update!(**args)
7438
+ @page_number = args[:page_number] if args.key?(:page_number)
7439
+ @uri = args[:uri] if args.key?(:uri)
7440
+ end
7441
+ end
7442
+
7443
+ # Stores image properties, such as dominant colors.
7444
+ class GoogleCloudVisionV1p4beta1ImageProperties
7445
+ include Google::Apis::Core::Hashable
7446
+
7447
+ # Set of dominant colors and their corresponding scores.
7448
+ # Corresponds to the JSON property `dominantColors`
7449
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1DominantColorsAnnotation]
7450
+ attr_accessor :dominant_colors
7451
+
7452
+ def initialize(**args)
7453
+ update!(**args)
7454
+ end
7455
+
7456
+ # Update properties of this object
7457
+ def update!(**args)
7458
+ @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
7459
+ end
7460
+ end
7461
+
7462
+ # Response message for the `ImportProductSets` method.
7463
+ # This message is returned by the
7464
+ # google.longrunning.Operations.GetOperation method in the returned
7465
+ # google.longrunning.Operation.response field.
7466
+ class GoogleCloudVisionV1p4beta1ImportProductSetsResponse
7467
+ include Google::Apis::Core::Hashable
7468
+
7469
+ # The list of reference_images that are imported successfully.
7470
+ # Corresponds to the JSON property `referenceImages`
7471
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ReferenceImage>]
7472
+ attr_accessor :reference_images
7473
+
7474
+ # The rpc status for each ImportProductSet request, including both successes
7475
+ # and errors.
7476
+ # The number of statuses here matches the number of lines in the csv file,
7477
+ # and statuses[i] stores the success or failure status of processing the i-th
7478
+ # line of the csv, starting from line 0.
7479
+ # Corresponds to the JSON property `statuses`
7480
+ # @return [Array<Google::Apis::VisionV1::Status>]
7481
+ attr_accessor :statuses
7482
+
7483
+ def initialize(**args)
7484
+ update!(**args)
7485
+ end
7486
+
7487
+ # Update properties of this object
7488
+ def update!(**args)
7489
+ @reference_images = args[:reference_images] if args.key?(:reference_images)
7490
+ @statuses = args[:statuses] if args.key?(:statuses)
7491
+ end
7492
+ end
7493
+
7494
+ # The desired input location and metadata.
7495
+ class GoogleCloudVisionV1p4beta1InputConfig
7496
+ include Google::Apis::Core::Hashable
7497
+
7498
+ # File content, represented as a stream of bytes.
7499
+ # Note: As with all `bytes` fields, protobuffers use a pure binary
7500
+ # representation, whereas JSON representations use base64.
7501
+ # Currently, this field only works for BatchAnnotateFiles requests. It does
7502
+ # not work for AsyncBatchAnnotateFiles requests.
7503
+ # Corresponds to the JSON property `content`
7504
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
7505
+ # @return [String]
7506
+ attr_accessor :content
7507
+
7508
+ # The Google Cloud Storage location where the input will be read from.
7509
+ # Corresponds to the JSON property `gcsSource`
7510
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1GcsSource]
7511
+ attr_accessor :gcs_source
7512
+
7513
+ # The type of the file. Currently only "application/pdf" and "image/tiff"
7514
+ # are supported. Wildcards are not supported.
7515
+ # Corresponds to the JSON property `mimeType`
7516
+ # @return [String]
7517
+ attr_accessor :mime_type
7518
+
7519
+ def initialize(**args)
7520
+ update!(**args)
7521
+ end
7522
+
7523
+ # Update properties of this object
7524
+ def update!(**args)
7525
+ @content = args[:content] if args.key?(:content)
7526
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
7527
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
7528
+ end
7529
+ end
7530
+
7531
+ # Set of detected objects with bounding boxes.
7532
+ class GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation
7533
+ include Google::Apis::Core::Hashable
7534
+
7535
+ # A bounding polygon for the detected image annotation.
7536
+ # Corresponds to the JSON property `boundingPoly`
7537
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
7538
+ attr_accessor :bounding_poly
7539
+
7540
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
7541
+ # information, see
7542
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
7543
+ # Corresponds to the JSON property `languageCode`
7544
+ # @return [String]
7545
+ attr_accessor :language_code
7546
+
7547
+ # Object ID that should align with EntityAnnotation mid.
7548
+ # Corresponds to the JSON property `mid`
7549
+ # @return [String]
7550
+ attr_accessor :mid
7551
+
7552
+ # Object name, expressed in its `language_code` language.
7553
+ # Corresponds to the JSON property `name`
7554
+ # @return [String]
7555
+ attr_accessor :name
7556
+
7557
+ # Score of the result. Range [0, 1].
7558
+ # Corresponds to the JSON property `score`
7559
+ # @return [Float]
7560
+ attr_accessor :score
7561
+
7562
+ def initialize(**args)
7563
+ update!(**args)
7564
+ end
7565
+
7566
+ # Update properties of this object
7567
+ def update!(**args)
7568
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
7569
+ @language_code = args[:language_code] if args.key?(:language_code)
7570
+ @mid = args[:mid] if args.key?(:mid)
7571
+ @name = args[:name] if args.key?(:name)
7572
+ @score = args[:score] if args.key?(:score)
7573
+ end
7574
+ end
7575
+
7576
+ # Detected entity location information.
7577
+ class GoogleCloudVisionV1p4beta1LocationInfo
7578
+ include Google::Apis::Core::Hashable
7579
+
7580
+ # An object representing a latitude/longitude pair. This is expressed as a pair
7581
+ # of doubles representing degrees latitude and degrees longitude. Unless
7582
+ # specified otherwise, this must conform to the
7583
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
7584
+ # standard</a>. Values must be within normalized ranges.
7585
+ # Corresponds to the JSON property `latLng`
7586
+ # @return [Google::Apis::VisionV1::LatLng]
7587
+ attr_accessor :lat_lng
7588
+
7589
+ def initialize(**args)
7590
+ update!(**args)
7591
+ end
7592
+
7593
+ # Update properties of this object
7594
+ def update!(**args)
7595
+ @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
7596
+ end
7597
+ end
7598
+
7599
+ # A vertex represents a 2D point in the image.
7600
+ # NOTE: the normalized vertex coordinates are relative to the original image
7601
+ # and range from 0 to 1.
7602
+ class GoogleCloudVisionV1p4beta1NormalizedVertex
7603
+ include Google::Apis::Core::Hashable
7604
+
7605
+ # X coordinate.
7606
+ # Corresponds to the JSON property `x`
7607
+ # @return [Float]
7608
+ attr_accessor :x
7609
+
7610
+ # Y coordinate.
7611
+ # Corresponds to the JSON property `y`
7612
+ # @return [Float]
7613
+ attr_accessor :y
7614
+
7615
+ def initialize(**args)
7616
+ update!(**args)
7617
+ end
7618
+
7619
+ # Update properties of this object
7620
+ def update!(**args)
7621
+ @x = args[:x] if args.key?(:x)
7622
+ @y = args[:y] if args.key?(:y)
7623
+ end
7624
+ end
7625
+
7626
+ # Contains metadata for the BatchAnnotateImages operation.
7627
+ class GoogleCloudVisionV1p4beta1OperationMetadata
7628
+ include Google::Apis::Core::Hashable
7629
+
7630
+ # The time when the batch request was received.
7631
+ # Corresponds to the JSON property `createTime`
7632
+ # @return [String]
7633
+ attr_accessor :create_time
7634
+
7635
+ # Current state of the batch operation.
7636
+ # Corresponds to the JSON property `state`
7637
+ # @return [String]
7638
+ attr_accessor :state
7639
+
7640
+ # The time when the operation result was last updated.
7641
+ # Corresponds to the JSON property `updateTime`
7642
+ # @return [String]
7643
+ attr_accessor :update_time
7644
+
7645
+ def initialize(**args)
7646
+ update!(**args)
7647
+ end
7648
+
7649
+ # Update properties of this object
7650
+ def update!(**args)
7651
+ @create_time = args[:create_time] if args.key?(:create_time)
7652
+ @state = args[:state] if args.key?(:state)
7653
+ @update_time = args[:update_time] if args.key?(:update_time)
7654
+ end
7655
+ end
7656
+
7657
+ # The desired output location and metadata.
7658
+ class GoogleCloudVisionV1p4beta1OutputConfig
7659
+ include Google::Apis::Core::Hashable
7660
+
7661
+ # The max number of response protos to put into each output JSON file on
7662
+ # Google Cloud Storage.
7663
+ # The valid range is [1, 100]. If not specified, the default value is 20.
7664
+ # For example, for one pdf file with 100 pages, 100 response protos will
7665
+ # be generated. If `batch_size` = 20, then 5 json files each
7666
+ # containing 20 response protos will be written under the prefix
7667
+ # `gcs_destination`.`uri`.
7668
+ # Currently, batch_size only applies to GcsDestination, with potential future
7669
+ # support for other output configurations.
7670
+ # Corresponds to the JSON property `batchSize`
7671
+ # @return [Fixnum]
7672
+ attr_accessor :batch_size
7673
+
7674
+ # The Google Cloud Storage location where the output will be written to.
7675
+ # Corresponds to the JSON property `gcsDestination`
7676
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1GcsDestination]
7677
+ attr_accessor :gcs_destination
7678
+
7679
+ def initialize(**args)
7680
+ update!(**args)
7681
+ end
7682
+
7683
+ # Update properties of this object
7684
+ def update!(**args)
7685
+ @batch_size = args[:batch_size] if args.key?(:batch_size)
7686
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
7687
+ end
7688
+ end
7689
+
7690
+ # Detected page from OCR.
7691
+ class GoogleCloudVisionV1p4beta1Page
7692
+ include Google::Apis::Core::Hashable
7693
+
7694
+ # List of blocks of text, images etc on this page.
7695
+ # Corresponds to the JSON property `blocks`
7696
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Block>]
7697
+ attr_accessor :blocks
7698
+
7699
+ # Confidence of the OCR results on the page. Range [0, 1].
7700
+ # Corresponds to the JSON property `confidence`
7701
+ # @return [Float]
7702
+ attr_accessor :confidence
7703
+
7704
+ # Page height. For PDFs the unit is points. For images (including
7705
+ # TIFFs) the unit is pixels.
7706
+ # Corresponds to the JSON property `height`
7707
+ # @return [Fixnum]
7708
+ attr_accessor :height
7709
+
7710
+ # Additional information detected on the structural component.
7711
+ # Corresponds to the JSON property `property`
7712
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
7713
+ attr_accessor :property
7714
+
7715
+ # Page width. For PDFs the unit is points. For images (including
7716
+ # TIFFs) the unit is pixels.
7717
+ # Corresponds to the JSON property `width`
7718
+ # @return [Fixnum]
7719
+ attr_accessor :width
7720
+
7721
+ def initialize(**args)
7722
+ update!(**args)
7723
+ end
7724
+
7725
+ # Update properties of this object
7726
+ def update!(**args)
7727
+ @blocks = args[:blocks] if args.key?(:blocks)
7728
+ @confidence = args[:confidence] if args.key?(:confidence)
7729
+ @height = args[:height] if args.key?(:height)
7730
+ @property = args[:property] if args.key?(:property)
7731
+ @width = args[:width] if args.key?(:width)
7732
+ end
7733
+ end
7734
+
7735
+ # Structural unit of text representing a number of words in certain order.
7736
+ class GoogleCloudVisionV1p4beta1Paragraph
7737
+ include Google::Apis::Core::Hashable
7738
+
7739
+ # A bounding polygon for the detected image annotation.
7740
+ # Corresponds to the JSON property `boundingBox`
7741
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
7742
+ attr_accessor :bounding_box
7743
+
7744
+ # Confidence of the OCR results for the paragraph. Range [0, 1].
7745
+ # Corresponds to the JSON property `confidence`
7746
+ # @return [Float]
7747
+ attr_accessor :confidence
7748
+
7749
+ # Additional information detected on the structural component.
7750
+ # Corresponds to the JSON property `property`
7751
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
7752
+ attr_accessor :property
7753
+
7754
+ # List of words in this paragraph.
7755
+ # Corresponds to the JSON property `words`
7756
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Word>]
7757
+ attr_accessor :words
7758
+
7759
+ def initialize(**args)
7760
+ update!(**args)
7761
+ end
7762
+
7763
+ # Update properties of this object
7764
+ def update!(**args)
7765
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
7766
+ @confidence = args[:confidence] if args.key?(:confidence)
7767
+ @property = args[:property] if args.key?(:property)
7768
+ @words = args[:words] if args.key?(:words)
7769
+ end
7770
+ end
7771
+
7772
+ # A 3D position in the image, used primarily for Face detection landmarks.
7773
+ # A valid Position must have both x and y coordinates.
7774
+ # The position coordinates are in the same scale as the original image.
7775
+ class GoogleCloudVisionV1p4beta1Position
7776
+ include Google::Apis::Core::Hashable
7777
+
7778
+ # X coordinate.
7779
+ # Corresponds to the JSON property `x`
7780
+ # @return [Float]
7781
+ attr_accessor :x
7782
+
7783
+ # Y coordinate.
7784
+ # Corresponds to the JSON property `y`
7785
+ # @return [Float]
7786
+ attr_accessor :y
7787
+
7788
+ # Z coordinate (or depth).
7789
+ # Corresponds to the JSON property `z`
7790
+ # @return [Float]
7791
+ attr_accessor :z
7792
+
7793
+ def initialize(**args)
7794
+ update!(**args)
7795
+ end
7796
+
7797
+ # Update properties of this object
7798
+ def update!(**args)
7799
+ @x = args[:x] if args.key?(:x)
7800
+ @y = args[:y] if args.key?(:y)
7801
+ @z = args[:z] if args.key?(:z)
7802
+ end
7803
+ end
7804
+
7805
+ # A Product contains ReferenceImages.
7806
+ class GoogleCloudVisionV1p4beta1Product
7807
+ include Google::Apis::Core::Hashable
7808
+
7809
+ # User-provided metadata to be stored with this product. Must be at most 4096
7810
+ # characters long.
7811
+ # Corresponds to the JSON property `description`
7812
+ # @return [String]
7813
+ attr_accessor :description
7814
+
7815
+ # The user-provided name for this Product. Must not be empty. Must be at most
7816
+ # 4096 characters long.
7817
+ # Corresponds to the JSON property `displayName`
7818
+ # @return [String]
7819
+ attr_accessor :display_name
7820
+
7821
+ # The resource name of the product.
7822
+ # Format is:
7823
+ # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
7824
+ # This field is ignored when creating a product.
7825
+ # Corresponds to the JSON property `name`
7826
+ # @return [String]
7827
+ attr_accessor :name
7828
+
7829
+ # The category for the product identified by the reference image. This should
7830
+ # be either "homegoods", "apparel", or "toys".
7831
+ # This field is immutable.
7832
+ # Corresponds to the JSON property `productCategory`
7833
+ # @return [String]
7834
+ attr_accessor :product_category
7835
+
7836
+ # Key-value pairs that can be attached to a product. At query time,
7837
+ # constraints can be specified based on the product_labels.
7838
+ # Note that integer values can be provided as strings, e.g. "1199". Only
7839
+ # strings with integer values can match a range-based restriction which is
7840
+ # to be supported soon.
7841
+ # Multiple values can be assigned to the same key. One product may have up to
7842
+ # 100 product_labels.
7843
+ # Corresponds to the JSON property `productLabels`
7844
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductKeyValue>]
7845
+ attr_accessor :product_labels
7846
+
7847
+ def initialize(**args)
7848
+ update!(**args)
7849
+ end
7850
+
7851
+ # Update properties of this object
7852
+ def update!(**args)
7853
+ @description = args[:description] if args.key?(:description)
7854
+ @display_name = args[:display_name] if args.key?(:display_name)
7855
+ @name = args[:name] if args.key?(:name)
7856
+ @product_category = args[:product_category] if args.key?(:product_category)
7857
+ @product_labels = args[:product_labels] if args.key?(:product_labels)
7858
+ end
7859
+ end
7860
+
7861
+ # A product label represented as a key-value pair.
7862
+ class GoogleCloudVisionV1p4beta1ProductKeyValue
7863
+ include Google::Apis::Core::Hashable
7864
+
7865
+ # The key of the label attached to the product. Cannot be empty and cannot
7866
+ # exceed 128 bytes.
7867
+ # Corresponds to the JSON property `key`
7868
+ # @return [String]
7869
+ attr_accessor :key
7870
+
7871
+ # The value of the label attached to the product. Cannot be empty and
7872
+ # cannot exceed 128 bytes.
7873
+ # Corresponds to the JSON property `value`
7874
+ # @return [String]
7875
+ attr_accessor :value
7876
+
7877
+ def initialize(**args)
7878
+ update!(**args)
7879
+ end
7880
+
7881
+ # Update properties of this object
7882
+ def update!(**args)
7883
+ @key = args[:key] if args.key?(:key)
7884
+ @value = args[:value] if args.key?(:value)
7885
+ end
7886
+ end
7887
+
7888
+ # Results for a product search request.
7889
+ class GoogleCloudVisionV1p4beta1ProductSearchResults
7890
+ include Google::Apis::Core::Hashable
7891
+
7892
+ # Timestamp of the index which provided these results. Changes made after
7893
+ # this time are not reflected in the current results.
7894
+ # Corresponds to the JSON property `indexTime`
7895
+ # @return [String]
7896
+ attr_accessor :index_time
7897
+
7898
+ # List of results grouped by products detected in the query image. Each entry
7899
+ # corresponds to one bounding polygon in the query image, and contains the
7900
+ # matching products specific to that region. There may be duplicate product
7901
+ # matches in the union of all the per-product results.
7902
+ # Corresponds to the JSON property `productGroupedResults`
7903
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult>]
7904
+ attr_accessor :product_grouped_results
7905
+
7906
+ # List of results, one for each product match.
7907
+ # Corresponds to the JSON property `results`
7908
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult>]
7909
+ attr_accessor :results
7910
+
7911
+ def initialize(**args)
7912
+ update!(**args)
7913
+ end
7914
+
7915
+ # Update properties of this object
7916
+ def update!(**args)
7917
+ @index_time = args[:index_time] if args.key?(:index_time)
7918
+ @product_grouped_results = args[:product_grouped_results] if args.key?(:product_grouped_results)
7919
+ @results = args[:results] if args.key?(:results)
7920
+ end
7921
+ end
7922
+
7923
+ # Information about the products similar to a single product in a query
7924
+ # image.
7925
+ class GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult
7926
+ include Google::Apis::Core::Hashable
7927
+
7928
+ # A bounding polygon for the detected image annotation.
7929
+ # Corresponds to the JSON property `boundingPoly`
7930
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
7931
+ attr_accessor :bounding_poly
7932
+
7933
+ # List of results, one for each product match.
7934
+ # Corresponds to the JSON property `results`
7935
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult>]
7936
+ attr_accessor :results
7937
+
7938
+ def initialize(**args)
7939
+ update!(**args)
7940
+ end
7941
+
7942
+ # Update properties of this object
7943
+ def update!(**args)
7944
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
7945
+ @results = args[:results] if args.key?(:results)
7946
+ end
7947
+ end
7948
+
7949
+ # Information about a product.
7950
+ class GoogleCloudVisionV1p4beta1ProductSearchResultsResult
7951
+ include Google::Apis::Core::Hashable
7952
+
7953
+ # The resource name of the image from the product that is the closest match
7954
+ # to the query.
7955
+ # Corresponds to the JSON property `image`
7956
+ # @return [String]
7957
+ attr_accessor :image
7958
+
7959
+ # A Product contains ReferenceImages.
7960
+ # Corresponds to the JSON property `product`
7961
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Product]
7962
+ attr_accessor :product
7963
+
7964
+ # A confidence level on the match, ranging from 0 (no confidence) to
7965
+ # 1 (full confidence).
7966
+ # Corresponds to the JSON property `score`
7967
+ # @return [Float]
7968
+ attr_accessor :score
7969
+
7970
+ def initialize(**args)
7971
+ update!(**args)
7972
+ end
7973
+
7974
+ # Update properties of this object
7975
+ def update!(**args)
7976
+ @image = args[:image] if args.key?(:image)
7977
+ @product = args[:product] if args.key?(:product)
7978
+ @score = args[:score] if args.key?(:score)
7979
+ end
7980
+ end
7981
+
7982
+ # A `Property` consists of a user-supplied name/value pair.
7983
+ class GoogleCloudVisionV1p4beta1Property
7984
+ include Google::Apis::Core::Hashable
7985
+
7986
+ # Name of the property.
7987
+ # Corresponds to the JSON property `name`
7988
+ # @return [String]
7989
+ attr_accessor :name
7990
+
7991
+ # Value of numeric properties.
7992
+ # Corresponds to the JSON property `uint64Value`
7993
+ # @return [Fixnum]
7994
+ attr_accessor :uint64_value
7995
+
7996
+ # Value of the property.
7997
+ # Corresponds to the JSON property `value`
7998
+ # @return [String]
7999
+ attr_accessor :value
8000
+
8001
+ def initialize(**args)
8002
+ update!(**args)
8003
+ end
8004
+
8005
+ # Update properties of this object
8006
+ def update!(**args)
8007
+ @name = args[:name] if args.key?(:name)
8008
+ @uint64_value = args[:uint64_value] if args.key?(:uint64_value)
8009
+ @value = args[:value] if args.key?(:value)
8010
+ end
8011
+ end
8012
+
8013
+ # A `ReferenceImage` represents a product image and its associated metadata,
8014
+ # such as bounding boxes.
8015
+ class GoogleCloudVisionV1p4beta1ReferenceImage
8016
+ include Google::Apis::Core::Hashable
8017
+
8018
+ # Bounding polygons around the areas of interest in the reference image.
8019
+ # Optional. If this field is empty, the system will try to detect regions of
8020
+ # interest. At most 10 bounding polygons will be used.
8021
+ # The provided shape is converted into a non-rotated rectangle. Once
8022
+ # converted, the small edge of the rectangle must be greater than or equal
8023
+ # to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5
8024
+ # is not).
8025
+ # Corresponds to the JSON property `boundingPolys`
8026
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly>]
8027
+ attr_accessor :bounding_polys
8028
+
8029
+ # The resource name of the reference image.
8030
+ # Format is:
8031
+ # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/
8032
+ # IMAGE_ID`.
8033
+ # This field is ignored when creating a reference image.
8034
+ # Corresponds to the JSON property `name`
8035
+ # @return [String]
8036
+ attr_accessor :name
8037
+
8038
+ # The Google Cloud Storage URI of the reference image.
8039
+ # The URI must start with `gs://`.
8040
+ # Required.
8041
+ # Corresponds to the JSON property `uri`
8042
+ # @return [String]
8043
+ attr_accessor :uri
8044
+
8045
+ def initialize(**args)
8046
+ update!(**args)
8047
+ end
8048
+
8049
+ # Update properties of this object
8050
+ def update!(**args)
8051
+ @bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys)
8052
+ @name = args[:name] if args.key?(:name)
8053
+ @uri = args[:uri] if args.key?(:uri)
8054
+ end
8055
+ end
8056
+
8057
+ # Set of features pertaining to the image, computed by computer vision
8058
+ # methods over safe-search verticals (for example, adult, spoof, medical,
8059
+ # violence).
8060
+ class GoogleCloudVisionV1p4beta1SafeSearchAnnotation
8061
+ include Google::Apis::Core::Hashable
8062
+
8063
+ # Represents the adult content likelihood for the image. Adult content may
8064
+ # contain elements such as nudity, pornographic images or cartoons, or
8065
+ # sexual activities.
8066
+ # Corresponds to the JSON property `adult`
8067
+ # @return [String]
8068
+ attr_accessor :adult
8069
+
8070
+ # Likelihood that this is a medical image.
8071
+ # Corresponds to the JSON property `medical`
8072
+ # @return [String]
8073
+ attr_accessor :medical
8074
+
8075
+ # Likelihood that the request image contains racy content. Racy content may
8076
+ # include (but is not limited to) skimpy or sheer clothing, strategically
8077
+ # covered nudity, lewd or provocative poses, or close-ups of sensitive
8078
+ # body areas.
8079
+ # Corresponds to the JSON property `racy`
8080
+ # @return [String]
8081
+ attr_accessor :racy
8082
+
8083
+ # Spoof likelihood. The likelihood that an modification
8084
+ # was made to the image's canonical version to make it appear
8085
+ # funny or offensive.
8086
+ # Corresponds to the JSON property `spoof`
8087
+ # @return [String]
8088
+ attr_accessor :spoof
8089
+
8090
+ # Likelihood that this image contains violent content.
8091
+ # Corresponds to the JSON property `violence`
8092
+ # @return [String]
8093
+ attr_accessor :violence
8094
+
8095
+ def initialize(**args)
8096
+ update!(**args)
8097
+ end
8098
+
8099
+ # Update properties of this object
8100
+ def update!(**args)
8101
+ @adult = args[:adult] if args.key?(:adult)
8102
+ @medical = args[:medical] if args.key?(:medical)
8103
+ @racy = args[:racy] if args.key?(:racy)
8104
+ @spoof = args[:spoof] if args.key?(:spoof)
8105
+ @violence = args[:violence] if args.key?(:violence)
8106
+ end
8107
+ end
8108
+
8109
+ # A single symbol representation.
8110
+ class GoogleCloudVisionV1p4beta1Symbol
8111
+ include Google::Apis::Core::Hashable
8112
+
8113
+ # A bounding polygon for the detected image annotation.
8114
+ # Corresponds to the JSON property `boundingBox`
8115
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
8116
+ attr_accessor :bounding_box
8117
+
8118
+ # Confidence of the OCR results for the symbol. Range [0, 1].
8119
+ # Corresponds to the JSON property `confidence`
8120
+ # @return [Float]
8121
+ attr_accessor :confidence
8122
+
8123
+ # Additional information detected on the structural component.
8124
+ # Corresponds to the JSON property `property`
8125
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
8126
+ attr_accessor :property
8127
+
8128
+ # The actual UTF-8 representation of the symbol.
8129
+ # Corresponds to the JSON property `text`
8130
+ # @return [String]
8131
+ attr_accessor :text
8132
+
8133
+ def initialize(**args)
8134
+ update!(**args)
8135
+ end
8136
+
8137
+ # Update properties of this object
8138
+ def update!(**args)
8139
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
8140
+ @confidence = args[:confidence] if args.key?(:confidence)
8141
+ @property = args[:property] if args.key?(:property)
8142
+ @text = args[:text] if args.key?(:text)
8143
+ end
8144
+ end
8145
+
8146
+ # TextAnnotation contains a structured representation of OCR extracted text.
8147
+ # The hierarchy of an OCR extracted text structure is like this:
8148
+ # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
8149
+ # Each structural component, starting from Page, may further have their own
8150
+ # properties. Properties describe detected languages, breaks etc.. Please refer
8151
+ # to the TextAnnotation.TextProperty message definition below for more
8152
+ # detail.
8153
+ class GoogleCloudVisionV1p4beta1TextAnnotation
8154
+ include Google::Apis::Core::Hashable
8155
+
8156
+ # List of pages detected by OCR.
8157
+ # Corresponds to the JSON property `pages`
8158
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Page>]
8159
+ attr_accessor :pages
8160
+
8161
+ # UTF-8 text detected on the pages.
8162
+ # Corresponds to the JSON property `text`
8163
+ # @return [String]
8164
+ attr_accessor :text
8165
+
8166
+ def initialize(**args)
8167
+ update!(**args)
8168
+ end
8169
+
8170
+ # Update properties of this object
8171
+ def update!(**args)
8172
+ @pages = args[:pages] if args.key?(:pages)
8173
+ @text = args[:text] if args.key?(:text)
8174
+ end
8175
+ end
8176
+
8177
+ # Detected start or end of a structural component.
8178
+ class GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak
8179
+ include Google::Apis::Core::Hashable
8180
+
8181
+ # True if break prepends the element.
8182
+ # Corresponds to the JSON property `isPrefix`
8183
+ # @return [Boolean]
8184
+ attr_accessor :is_prefix
8185
+ alias_method :is_prefix?, :is_prefix
8186
+
8187
+ # Detected break type.
8188
+ # Corresponds to the JSON property `type`
8189
+ # @return [String]
8190
+ attr_accessor :type
8191
+
8192
+ def initialize(**args)
8193
+ update!(**args)
8194
+ end
8195
+
8196
+ # Update properties of this object
8197
+ def update!(**args)
8198
+ @is_prefix = args[:is_prefix] if args.key?(:is_prefix)
8199
+ @type = args[:type] if args.key?(:type)
8200
+ end
8201
+ end
8202
+
8203
+ # Detected language for a structural component.
8204
+ class GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage
8205
+ include Google::Apis::Core::Hashable
8206
+
8207
+ # Confidence of detected language. Range [0, 1].
8208
+ # Corresponds to the JSON property `confidence`
8209
+ # @return [Float]
8210
+ attr_accessor :confidence
8211
+
8212
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
8213
+ # information, see
8214
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
8215
+ # Corresponds to the JSON property `languageCode`
8216
+ # @return [String]
8217
+ attr_accessor :language_code
8218
+
8219
+ def initialize(**args)
8220
+ update!(**args)
8221
+ end
8222
+
8223
+ # Update properties of this object
8224
+ def update!(**args)
8225
+ @confidence = args[:confidence] if args.key?(:confidence)
8226
+ @language_code = args[:language_code] if args.key?(:language_code)
8227
+ end
8228
+ end
8229
+
8230
+ # Additional information detected on the structural component.
8231
+ class GoogleCloudVisionV1p4beta1TextAnnotationTextProperty
8232
+ include Google::Apis::Core::Hashable
8233
+
8234
+ # Detected start or end of a structural component.
8235
+ # Corresponds to the JSON property `detectedBreak`
8236
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak]
8237
+ attr_accessor :detected_break
8238
+
8239
+ # A list of detected languages together with confidence.
8240
+ # Corresponds to the JSON property `detectedLanguages`
8241
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage>]
8242
+ attr_accessor :detected_languages
8243
+
8244
+ def initialize(**args)
8245
+ update!(**args)
8246
+ end
8247
+
8248
+ # Update properties of this object
8249
+ def update!(**args)
8250
+ @detected_break = args[:detected_break] if args.key?(:detected_break)
8251
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
8252
+ end
8253
+ end
8254
+
8255
+ # A vertex represents a 2D point in the image.
8256
+ # NOTE: the vertex coordinates are in the same scale as the original image.
8257
+ class GoogleCloudVisionV1p4beta1Vertex
8258
+ include Google::Apis::Core::Hashable
8259
+
8260
+ # X coordinate.
8261
+ # Corresponds to the JSON property `x`
8262
+ # @return [Fixnum]
8263
+ attr_accessor :x
8264
+
8265
+ # Y coordinate.
8266
+ # Corresponds to the JSON property `y`
8267
+ # @return [Fixnum]
8268
+ attr_accessor :y
8269
+
8270
+ def initialize(**args)
8271
+ update!(**args)
8272
+ end
8273
+
8274
+ # Update properties of this object
8275
+ def update!(**args)
8276
+ @x = args[:x] if args.key?(:x)
8277
+ @y = args[:y] if args.key?(:y)
8278
+ end
8279
+ end
8280
+
8281
+ # Relevant information for the image from the Internet.
8282
+ class GoogleCloudVisionV1p4beta1WebDetection
8283
+ include Google::Apis::Core::Hashable
8284
+
8285
+ # The service's best guess as to the topic of the request image.
8286
+ # Inferred from similar images on the open web.
8287
+ # Corresponds to the JSON property `bestGuessLabels`
8288
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebLabel>]
8289
+ attr_accessor :best_guess_labels
8290
+
8291
+ # Fully matching images from the Internet.
8292
+ # Can include resized copies of the query image.
8293
+ # Corresponds to the JSON property `fullMatchingImages`
8294
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
8295
+ attr_accessor :full_matching_images
8296
+
8297
+ # Web pages containing the matching images from the Internet.
8298
+ # Corresponds to the JSON property `pagesWithMatchingImages`
8299
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebPage>]
8300
+ attr_accessor :pages_with_matching_images
8301
+
8302
+ # Partial matching images from the Internet.
8303
+ # Those images are similar enough to share some key-point features. For
8304
+ # example an original image will likely have partial matching for its crops.
8305
+ # Corresponds to the JSON property `partialMatchingImages`
8306
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
8307
+ attr_accessor :partial_matching_images
8308
+
8309
+ # The visually similar image results.
8310
+ # Corresponds to the JSON property `visuallySimilarImages`
8311
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
8312
+ attr_accessor :visually_similar_images
8313
+
8314
+ # Deduced entities from similar images on the Internet.
8315
+ # Corresponds to the JSON property `webEntities`
8316
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebEntity>]
8317
+ attr_accessor :web_entities
8318
+
8319
+ def initialize(**args)
8320
+ update!(**args)
8321
+ end
8322
+
8323
+ # Update properties of this object
8324
+ def update!(**args)
8325
+ @best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
8326
+ @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
8327
+ @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
8328
+ @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
8329
+ @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
8330
+ @web_entities = args[:web_entities] if args.key?(:web_entities)
8331
+ end
8332
+ end
8333
+
8334
+ # Entity deduced from similar images on the Internet.
8335
+ class GoogleCloudVisionV1p4beta1WebDetectionWebEntity
8336
+ include Google::Apis::Core::Hashable
8337
+
8338
+ # Canonical description of the entity, in English.
8339
+ # Corresponds to the JSON property `description`
8340
+ # @return [String]
8341
+ attr_accessor :description
8342
+
8343
+ # Opaque entity ID.
8344
+ # Corresponds to the JSON property `entityId`
8345
+ # @return [String]
8346
+ attr_accessor :entity_id
8347
+
8348
+ # Overall relevancy score for the entity.
8349
+ # Not normalized and not comparable across different image queries.
8350
+ # Corresponds to the JSON property `score`
8351
+ # @return [Float]
8352
+ attr_accessor :score
8353
+
8354
+ def initialize(**args)
8355
+ update!(**args)
8356
+ end
8357
+
8358
+ # Update properties of this object
8359
+ def update!(**args)
8360
+ @description = args[:description] if args.key?(:description)
8361
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
8362
+ @score = args[:score] if args.key?(:score)
8363
+ end
8364
+ end
8365
+
8366
+ # Metadata for online images.
8367
+ class GoogleCloudVisionV1p4beta1WebDetectionWebImage
8368
+ include Google::Apis::Core::Hashable
8369
+
8370
+ # (Deprecated) Overall relevancy score for the image.
8371
+ # Corresponds to the JSON property `score`
8372
+ # @return [Float]
8373
+ attr_accessor :score
8374
+
8375
+ # The result image URL.
8376
+ # Corresponds to the JSON property `url`
8377
+ # @return [String]
8378
+ attr_accessor :url
8379
+
8380
+ def initialize(**args)
8381
+ update!(**args)
8382
+ end
8383
+
8384
+ # Update properties of this object
8385
+ def update!(**args)
8386
+ @score = args[:score] if args.key?(:score)
8387
+ @url = args[:url] if args.key?(:url)
8388
+ end
8389
+ end
8390
+
8391
+ # Label to provide extra metadata for the web detection.
8392
+ class GoogleCloudVisionV1p4beta1WebDetectionWebLabel
8393
+ include Google::Apis::Core::Hashable
8394
+
8395
+ # Label for extra metadata.
8396
+ # Corresponds to the JSON property `label`
8397
+ # @return [String]
8398
+ attr_accessor :label
8399
+
8400
+ # The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
8401
+ # For more information, see
8402
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
8403
+ # Corresponds to the JSON property `languageCode`
8404
+ # @return [String]
8405
+ attr_accessor :language_code
8406
+
8407
+ def initialize(**args)
8408
+ update!(**args)
8409
+ end
8410
+
8411
+ # Update properties of this object
8412
+ def update!(**args)
8413
+ @label = args[:label] if args.key?(:label)
8414
+ @language_code = args[:language_code] if args.key?(:language_code)
8415
+ end
8416
+ end
8417
+
8418
+ # Metadata for web pages.
8419
+ class GoogleCloudVisionV1p4beta1WebDetectionWebPage
8420
+ include Google::Apis::Core::Hashable
8421
+
8422
+ # Fully matching images on the page.
8423
+ # Can include resized copies of the query image.
8424
+ # Corresponds to the JSON property `fullMatchingImages`
8425
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
8426
+ attr_accessor :full_matching_images
8427
+
8428
+ # Title for the web page, may contain HTML markups.
8429
+ # Corresponds to the JSON property `pageTitle`
8430
+ # @return [String]
8431
+ attr_accessor :page_title
8432
+
8433
+ # Partial matching images on the page.
8434
+ # Those images are similar enough to share some key-point features. For
8435
+ # example an original image will likely have partial matching for its
8436
+ # crops.
8437
+ # Corresponds to the JSON property `partialMatchingImages`
8438
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
8439
+ attr_accessor :partial_matching_images
8440
+
8441
+ # (Deprecated) Overall relevancy score for the web page.
8442
+ # Corresponds to the JSON property `score`
8443
+ # @return [Float]
8444
+ attr_accessor :score
8445
+
8446
+ # The result web page URL.
8447
+ # Corresponds to the JSON property `url`
8448
+ # @return [String]
8449
+ attr_accessor :url
8450
+
8451
+ def initialize(**args)
8452
+ update!(**args)
8453
+ end
8454
+
8455
+ # Update properties of this object
8456
+ def update!(**args)
8457
+ @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
8458
+ @page_title = args[:page_title] if args.key?(:page_title)
8459
+ @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
8460
+ @score = args[:score] if args.key?(:score)
8461
+ @url = args[:url] if args.key?(:url)
8462
+ end
8463
+ end
8464
+
8465
+ # A word representation.
8466
+ class GoogleCloudVisionV1p4beta1Word
8467
+ include Google::Apis::Core::Hashable
8468
+
8469
+ # A bounding polygon for the detected image annotation.
8470
+ # Corresponds to the JSON property `boundingBox`
8471
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1BoundingPoly]
8472
+ attr_accessor :bounding_box
8473
+
8474
+ # Confidence of the OCR results for the word. Range [0, 1].
8475
+ # Corresponds to the JSON property `confidence`
8476
+ # @return [Float]
8477
+ attr_accessor :confidence
8478
+
8479
+ # Additional information detected on the structural component.
8480
+ # Corresponds to the JSON property `property`
8481
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
8482
+ attr_accessor :property
8483
+
8484
+ # List of symbols in the word.
8485
+ # The order of the symbols follows the natural reading order.
8486
+ # Corresponds to the JSON property `symbols`
8487
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Symbol>]
8488
+ attr_accessor :symbols
8489
+
8490
+ def initialize(**args)
8491
+ update!(**args)
8492
+ end
8493
+
8494
+ # Update properties of this object
8495
+ def update!(**args)
8496
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
8497
+ @confidence = args[:confidence] if args.key?(:confidence)
8498
+ @property = args[:property] if args.key?(:property)
8499
+ @symbols = args[:symbols] if args.key?(:symbols)
8500
+ end
8501
+ end
8502
+
6566
8503
  # Information about the products similar to a single product in a query
6567
8504
  # image.
6568
8505
  class GroupedResult
@@ -7276,14 +9213,14 @@ module Google
7276
9213
  attr_accessor :done
7277
9214
  alias_method :done?, :done
7278
9215
 
7279
- # The `Status` type defines a logical error model that is suitable for different
7280
- # programming environments, including REST APIs and RPC APIs. It is used by
7281
- # [gRPC](https://github.com/grpc). The error model is designed to be:
9216
+ # The `Status` type defines a logical error model that is suitable for
9217
+ # different programming environments, including REST APIs and RPC APIs. It is
9218
+ # used by [gRPC](https://github.com/grpc). The error model is designed to be:
7282
9219
  # - Simple to use and understand for most users
7283
9220
  # - Flexible enough to meet unexpected needs
7284
9221
  # # Overview
7285
- # The `Status` message contains three pieces of data: error code, error message,
7286
- # and error details. The error code should be an enum value of
9222
+ # The `Status` message contains three pieces of data: error code, error
9223
+ # message, and error details. The error code should be an enum value of
7287
9224
  # google.rpc.Code, but it may accept additional error codes if needed. The
7288
9225
  # error message should be a developer-facing English message that helps
7289
9226
  # developers *understand* and *resolve* the error. If a localized user-facing
@@ -7687,14 +9624,14 @@ module Google
7687
9624
  # @return [String]
7688
9625
  attr_accessor :display_name
7689
9626
 
7690
- # The `Status` type defines a logical error model that is suitable for different
7691
- # programming environments, including REST APIs and RPC APIs. It is used by
7692
- # [gRPC](https://github.com/grpc). The error model is designed to be:
9627
+ # The `Status` type defines a logical error model that is suitable for
9628
+ # different programming environments, including REST APIs and RPC APIs. It is
9629
+ # used by [gRPC](https://github.com/grpc). The error model is designed to be:
7693
9630
  # - Simple to use and understand for most users
7694
9631
  # - Flexible enough to meet unexpected needs
7695
9632
  # # Overview
7696
- # The `Status` message contains three pieces of data: error code, error message,
7697
- # and error details. The error code should be an enum value of
9633
+ # The `Status` message contains three pieces of data: error code, error
9634
+ # message, and error details. The error code should be an enum value of
7698
9635
  # google.rpc.Code, but it may accept additional error codes if needed. The
7699
9636
  # error message should be a developer-facing English message that helps
7700
9637
  # developers *understand* and *resolve* the error. If a localized user-facing
@@ -7941,14 +9878,14 @@ module Google
7941
9878
  end
7942
9879
  end
7943
9880
 
7944
- # The `Status` type defines a logical error model that is suitable for different
7945
- # programming environments, including REST APIs and RPC APIs. It is used by
7946
- # [gRPC](https://github.com/grpc). The error model is designed to be:
9881
+ # The `Status` type defines a logical error model that is suitable for
9882
+ # different programming environments, including REST APIs and RPC APIs. It is
9883
+ # used by [gRPC](https://github.com/grpc). The error model is designed to be:
7947
9884
  # - Simple to use and understand for most users
7948
9885
  # - Flexible enough to meet unexpected needs
7949
9886
  # # Overview
7950
- # The `Status` message contains three pieces of data: error code, error message,
7951
- # and error details. The error code should be an enum value of
9887
+ # The `Status` message contains three pieces of data: error code, error
9888
+ # message, and error details. The error code should be an enum value of
7952
9889
  # google.rpc.Code, but it may accept additional error codes if needed. The
7953
9890
  # error message should be a developer-facing English message that helps
7954
9891
  # developers *understand* and *resolve* the error. If a localized user-facing