google-api-client 0.23.4 → 0.23.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (403) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/CHANGELOG.md +171 -0
  4. data/Gemfile +1 -0
  5. data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +7 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  9. data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangeseller_v1.rb +1 -1
  13. data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  16. data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1.rb +1 -1
  18. data/generated/google/apis/admin_directory_v1/classes.rb +7 -0
  19. data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
  20. data/generated/google/apis/admin_reports_v1.rb +1 -1
  21. data/generated/google/apis/adsense_v1_4.rb +1 -1
  22. data/generated/google/apis/adsense_v1_4/classes.rb +13 -1
  23. data/generated/google/apis/adsense_v1_4/representations.rb +2 -0
  24. data/generated/google/apis/adsense_v1_4/service.rb +36 -0
  25. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  26. data/generated/google/apis/analytics_v2_4.rb +1 -1
  27. data/generated/google/apis/analytics_v3.rb +1 -1
  28. data/generated/google/apis/analytics_v3/classes.rb +68 -0
  29. data/generated/google/apis/analytics_v3/representations.rb +31 -0
  30. data/generated/google/apis/analytics_v3/service.rb +33 -0
  31. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  32. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  33. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +108 -28
  34. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +32 -0
  35. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +73 -0
  36. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  37. data/generated/google/apis/androidenterprise_v1/service.rb +0 -70
  38. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  39. data/generated/google/apis/androidmanagement_v1/classes.rb +2 -5
  40. data/generated/google/apis/androidpublisher_v1.rb +1 -1
  41. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  42. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  43. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  44. data/generated/google/apis/appengine_v1.rb +1 -1
  45. data/generated/google/apis/appengine_v1beta.rb +1 -1
  46. data/generated/google/apis/appengine_v1beta/classes.rb +3 -4
  47. data/generated/google/apis/appsactivity_v1.rb +2 -2
  48. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  49. data/generated/google/apis/appsmarket_v2.rb +1 -1
  50. data/generated/google/apis/appstate_v1.rb +1 -1
  51. data/generated/google/apis/bigquery_v2.rb +1 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +103 -61
  53. data/generated/google/apis/bigquery_v2/representations.rb +17 -0
  54. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  55. data/generated/google/apis/binaryauthorization_v1beta1.rb +35 -0
  56. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +597 -0
  57. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +238 -0
  58. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +523 -0
  59. data/generated/google/apis/blogger_v2.rb +1 -1
  60. data/generated/google/apis/blogger_v3.rb +1 -1
  61. data/generated/google/apis/books_v1.rb +1 -1
  62. data/generated/google/apis/books_v1/classes.rb +7 -0
  63. data/generated/google/apis/books_v1/representations.rb +1 -0
  64. data/generated/google/apis/calendar_v3.rb +1 -1
  65. data/generated/google/apis/calendar_v3/classes.rb +44 -12
  66. data/generated/google/apis/calendar_v3/service.rb +7 -7
  67. data/generated/google/apis/chat_v1.rb +1 -1
  68. data/generated/google/apis/civicinfo_v2.rb +1 -1
  69. data/generated/google/apis/civicinfo_v2/classes.rb +641 -0
  70. data/generated/google/apis/civicinfo_v2/representations.rb +215 -0
  71. data/generated/google/apis/classroom_v1.rb +1 -1
  72. data/generated/google/apis/classroom_v1/classes.rb +25 -0
  73. data/generated/google/apis/classroom_v1/representations.rb +15 -0
  74. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  75. data/generated/google/apis/cloudbilling_v1/classes.rb +85 -10
  76. data/generated/google/apis/cloudbilling_v1/representations.rb +18 -0
  77. data/generated/google/apis/cloudbilling_v1/service.rb +3 -13
  78. data/generated/google/apis/cloudbuild_v1.rb +4 -4
  79. data/generated/google/apis/cloudbuild_v1/classes.rb +37 -3
  80. data/generated/google/apis/cloudbuild_v1/representations.rb +3 -0
  81. data/generated/google/apis/cloudbuild_v1/service.rb +3 -3
  82. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  83. data/generated/google/apis/clouddebugger_v2/classes.rb +8 -0
  84. data/generated/google/apis/clouddebugger_v2/representations.rb +1 -0
  85. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  86. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +4 -5
  87. data/generated/google/apis/cloudiot_v1.rb +1 -1
  88. data/generated/google/apis/cloudiot_v1/classes.rb +56 -0
  89. data/generated/google/apis/cloudiot_v1/representations.rb +18 -0
  90. data/generated/google/apis/cloudiot_v1/service.rb +355 -0
  91. data/generated/google/apis/cloudkms_v1.rb +6 -3
  92. data/generated/google/apis/cloudkms_v1/classes.rb +340 -14
  93. data/generated/google/apis/cloudkms_v1/representations.rb +147 -0
  94. data/generated/google/apis/cloudkms_v1/service.rb +126 -6
  95. data/generated/google/apis/cloudprofiler_v2.rb +3 -3
  96. data/generated/google/apis/cloudprofiler_v2/classes.rb +0 -6
  97. data/generated/google/apis/cloudprofiler_v2/representations.rb +0 -2
  98. data/generated/google/apis/cloudprofiler_v2/service.rb +2 -2
  99. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  100. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +57 -1
  101. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +18 -0
  102. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  103. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +56 -0
  104. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +18 -0
  105. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  106. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +57 -1
  107. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +18 -0
  108. data/generated/google/apis/cloudresourcemanager_v2/service.rb +1 -1
  109. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  110. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +57 -1
  111. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +18 -0
  112. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +1 -1
  113. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  114. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +28 -0
  115. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +14 -0
  116. data/generated/google/apis/cloudshell_v1alpha1/service.rb +37 -0
  117. data/generated/google/apis/cloudtasks_v2beta2.rb +2 -2
  118. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +167 -103
  119. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +18 -0
  120. data/generated/google/apis/cloudtasks_v2beta2/service.rb +28 -21
  121. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  122. data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
  123. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  124. data/generated/google/apis/{spectrum_v1explorer.rb → composer_v1.rb} +12 -9
  125. data/generated/google/apis/composer_v1/classes.rb +640 -0
  126. data/generated/google/apis/composer_v1/representations.rb +195 -0
  127. data/generated/google/apis/composer_v1/service.rb +462 -0
  128. data/generated/google/apis/composer_v1beta1.rb +1 -1
  129. data/generated/google/apis/composer_v1beta1/classes.rb +13 -10
  130. data/generated/google/apis/composer_v1beta1/service.rb +6 -6
  131. data/generated/google/apis/compute_alpha.rb +1 -1
  132. data/generated/google/apis/compute_alpha/classes.rb +5135 -4250
  133. data/generated/google/apis/compute_alpha/representations.rb +644 -216
  134. data/generated/google/apis/compute_alpha/service.rb +2308 -1655
  135. data/generated/google/apis/compute_beta.rb +1 -1
  136. data/generated/google/apis/compute_beta/classes.rb +1070 -62
  137. data/generated/google/apis/compute_beta/representations.rb +435 -0
  138. data/generated/google/apis/compute_beta/service.rb +1758 -321
  139. data/generated/google/apis/compute_v1.rb +1 -1
  140. data/generated/google/apis/compute_v1/classes.rb +1984 -210
  141. data/generated/google/apis/compute_v1/representations.rb +754 -9
  142. data/generated/google/apis/compute_v1/service.rb +1299 -12
  143. data/generated/google/apis/container_v1.rb +1 -1
  144. data/generated/google/apis/container_v1/classes.rb +43 -0
  145. data/generated/google/apis/container_v1/representations.rb +17 -0
  146. data/generated/google/apis/container_v1beta1.rb +1 -1
  147. data/generated/google/apis/container_v1beta1/classes.rb +193 -231
  148. data/generated/google/apis/container_v1beta1/representations.rb +72 -82
  149. data/generated/google/apis/container_v1beta1/service.rb +0 -112
  150. data/generated/google/apis/content_v2.rb +1 -1
  151. data/generated/google/apis/content_v2/classes.rb +199 -29
  152. data/generated/google/apis/content_v2/representations.rb +59 -0
  153. data/generated/google/apis/content_v2/service.rb +8 -3
  154. data/generated/google/apis/content_v2sandbox.rb +1 -1
  155. data/generated/google/apis/content_v2sandbox/classes.rb +32 -19
  156. data/generated/google/apis/content_v2sandbox/representations.rb +1 -0
  157. data/generated/google/apis/content_v2sandbox/service.rb +8 -3
  158. data/generated/google/apis/customsearch_v1.rb +1 -1
  159. data/generated/google/apis/customsearch_v1/service.rb +7 -7
  160. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  161. data/generated/google/apis/dataproc_v1beta2/classes.rb +112 -43
  162. data/generated/google/apis/dataproc_v1beta2/representations.rb +19 -0
  163. data/generated/google/apis/datastore_v1.rb +1 -1
  164. data/generated/google/apis/datastore_v1/classes.rb +140 -0
  165. data/generated/google/apis/datastore_v1/representations.rb +65 -0
  166. data/generated/google/apis/datastore_v1/service.rb +74 -0
  167. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  168. data/generated/google/apis/datastore_v1beta1/classes.rb +31 -0
  169. data/generated/google/apis/datastore_v1beta1/representations.rb +17 -0
  170. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  171. data/generated/google/apis/datastore_v1beta3/classes.rb +31 -0
  172. data/generated/google/apis/datastore_v1beta3/representations.rb +17 -0
  173. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  174. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  175. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  176. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  177. data/generated/google/apis/dfareporting_v3_0.rb +1 -1
  178. data/generated/google/apis/dfareporting_v3_1.rb +1 -1
  179. data/generated/google/apis/dfareporting_v3_2.rb +40 -0
  180. data/generated/google/apis/dfareporting_v3_2/classes.rb +12297 -0
  181. data/generated/google/apis/dfareporting_v3_2/representations.rb +4397 -0
  182. data/generated/google/apis/dfareporting_v3_2/service.rb +8790 -0
  183. data/generated/google/apis/dialogflow_v2.rb +1 -1
  184. data/generated/google/apis/dialogflow_v2/classes.rb +304 -12
  185. data/generated/google/apis/dialogflow_v2/representations.rb +113 -0
  186. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  187. data/generated/google/apis/dialogflow_v2beta1/classes.rb +656 -26
  188. data/generated/google/apis/dialogflow_v2beta1/representations.rb +248 -0
  189. data/generated/google/apis/dialogflow_v2beta1/service.rb +556 -0
  190. data/generated/google/apis/discovery_v1.rb +1 -1
  191. data/generated/google/apis/dlp_v2.rb +1 -1
  192. data/generated/google/apis/dlp_v2/classes.rb +357 -6
  193. data/generated/google/apis/dlp_v2/representations.rb +161 -0
  194. data/generated/google/apis/dlp_v2/service.rb +366 -0
  195. data/generated/google/apis/dns_v1.rb +1 -1
  196. data/generated/google/apis/dns_v1/classes.rb +0 -7
  197. data/generated/google/apis/dns_v1/representations.rb +0 -1
  198. data/generated/google/apis/dns_v1beta2.rb +1 -1
  199. data/generated/google/apis/dns_v1beta2/classes.rb +0 -7
  200. data/generated/google/apis/dns_v1beta2/representations.rb +0 -1
  201. data/generated/google/apis/dns_v2beta1.rb +1 -1
  202. data/generated/google/apis/dns_v2beta1/classes.rb +0 -7
  203. data/generated/google/apis/dns_v2beta1/representations.rb +0 -1
  204. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  205. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  206. data/generated/google/apis/drive_v2.rb +1 -1
  207. data/generated/google/apis/drive_v2/service.rb +3 -2
  208. data/generated/google/apis/drive_v3.rb +1 -1
  209. data/generated/google/apis/firestore_v1.rb +37 -0
  210. data/generated/google/apis/firestore_v1/classes.rb +324 -0
  211. data/generated/google/apis/firestore_v1/representations.rb +130 -0
  212. data/generated/google/apis/firestore_v1/service.rb +282 -0
  213. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  214. data/generated/google/apis/firestore_v1beta1/classes.rb +290 -0
  215. data/generated/google/apis/firestore_v1beta1/representations.rb +128 -0
  216. data/generated/google/apis/firestore_v1beta1/service.rb +79 -0
  217. data/generated/google/apis/firestore_v1beta2.rb +37 -0
  218. data/generated/google/apis/firestore_v1beta2/classes.rb +531 -0
  219. data/generated/google/apis/firestore_v1beta2/representations.rb +189 -0
  220. data/generated/google/apis/firestore_v1beta2/service.rb +213 -0
  221. data/generated/google/apis/fitness_v1.rb +1 -1
  222. data/generated/google/apis/fusiontables_v1.rb +1 -1
  223. data/generated/google/apis/fusiontables_v2.rb +1 -1
  224. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  225. data/generated/google/apis/games_management_v1management.rb +1 -1
  226. data/generated/google/apis/games_v1.rb +1 -1
  227. data/generated/google/apis/genomics_v1.rb +1 -1
  228. data/generated/google/apis/genomics_v1/classes.rb +113 -36
  229. data/generated/google/apis/genomics_v1/representations.rb +31 -0
  230. data/generated/google/apis/genomics_v1/service.rb +2 -0
  231. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  232. data/generated/google/apis/genomics_v1alpha2/classes.rb +57 -36
  233. data/generated/google/apis/genomics_v1alpha2/representations.rb +13 -0
  234. data/generated/google/apis/genomics_v1alpha2/service.rb +2 -0
  235. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  236. data/generated/google/apis/genomics_v2alpha1/classes.rb +252 -137
  237. data/generated/google/apis/genomics_v2alpha1/representations.rb +50 -0
  238. data/generated/google/apis/genomics_v2alpha1/service.rb +7 -5
  239. data/generated/google/apis/gmail_v1.rb +1 -1
  240. data/generated/google/apis/groupsmigration_v1.rb +1 -1
  241. data/generated/google/apis/groupssettings_v1.rb +1 -1
  242. data/generated/google/apis/iam_v1.rb +1 -1
  243. data/generated/google/apis/iam_v1/classes.rb +258 -3
  244. data/generated/google/apis/iam_v1/representations.rb +73 -0
  245. data/generated/google/apis/iam_v1/service.rb +50 -2
  246. data/generated/google/apis/iamcredentials_v1.rb +2 -2
  247. data/generated/google/apis/iamcredentials_v1/classes.rb +2 -2
  248. data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
  249. data/generated/google/apis/iap_v1beta1.rb +34 -0
  250. data/generated/google/apis/iap_v1beta1/classes.rb +440 -0
  251. data/generated/google/apis/iap_v1beta1/representations.rb +158 -0
  252. data/generated/google/apis/iap_v1beta1/service.rb +398 -0
  253. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  254. data/generated/google/apis/jobs_v2.rb +3 -3
  255. data/generated/google/apis/jobs_v2/classes.rb +61 -5
  256. data/generated/google/apis/jobs_v2/representations.rb +18 -0
  257. data/generated/google/apis/jobs_v2/service.rb +3 -3
  258. data/generated/google/apis/licensing_v1.rb +1 -1
  259. data/generated/google/apis/logging_v2.rb +2 -2
  260. data/generated/google/apis/logging_v2/classes.rb +64 -58
  261. data/generated/google/apis/logging_v2/representations.rb +1 -0
  262. data/generated/google/apis/logging_v2/service.rb +39 -40
  263. data/generated/google/apis/logging_v2beta1.rb +2 -2
  264. data/generated/google/apis/logging_v2beta1/classes.rb +59 -53
  265. data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
  266. data/generated/google/apis/logging_v2beta1/service.rb +15 -16
  267. data/generated/google/apis/mirror_v1.rb +1 -1
  268. data/generated/google/apis/ml_v1.rb +1 -1
  269. data/generated/google/apis/ml_v1/classes.rb +87 -0
  270. data/generated/google/apis/ml_v1/representations.rb +34 -0
  271. data/generated/google/apis/ml_v1/service.rb +53 -0
  272. data/generated/google/apis/monitoring_v3.rb +1 -1
  273. data/generated/google/apis/monitoring_v3/classes.rb +68 -15
  274. data/generated/google/apis/monitoring_v3/representations.rb +26 -0
  275. data/generated/google/apis/mybusiness_v3/classes.rb +1 -1
  276. data/generated/google/apis/oauth2_v1.rb +1 -1
  277. data/generated/google/apis/oauth2_v2.rb +1 -1
  278. data/generated/google/apis/pagespeedonline_v1.rb +1 -1
  279. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  280. data/generated/google/apis/pagespeedonline_v4.rb +1 -1
  281. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  282. data/generated/google/apis/plus_domains_v1.rb +1 -1
  283. data/generated/google/apis/plus_v1.rb +1 -1
  284. data/generated/google/apis/poly_v1.rb +4 -3
  285. data/generated/google/apis/poly_v1/classes.rb +28 -0
  286. data/generated/google/apis/poly_v1/representations.rb +15 -0
  287. data/generated/google/apis/poly_v1/service.rb +3 -2
  288. data/generated/google/apis/pubsub_v1.rb +1 -1
  289. data/generated/google/apis/pubsub_v1/classes.rb +63 -8
  290. data/generated/google/apis/pubsub_v1/representations.rb +18 -0
  291. data/generated/google/apis/pubsub_v1/service.rb +7 -8
  292. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  293. data/generated/google/apis/pubsub_v1beta2/classes.rb +56 -0
  294. data/generated/google/apis/pubsub_v1beta2/representations.rb +18 -0
  295. data/generated/google/apis/redis_v1beta1.rb +2 -2
  296. data/generated/google/apis/redis_v1beta1/classes.rb +38 -119
  297. data/generated/google/apis/redis_v1beta1/representations.rb +10 -43
  298. data/generated/google/apis/redis_v1beta1/service.rb +73 -1
  299. data/generated/google/apis/replicapool_v1beta1.rb +1 -1
  300. data/generated/google/apis/replicapoolupdater_v1beta1.rb +1 -1
  301. data/generated/google/apis/reseller_v1.rb +1 -1
  302. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  303. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +57 -1
  304. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +18 -0
  305. data/generated/google/apis/script_v1.rb +1 -1
  306. data/generated/google/apis/script_v1/classes.rb +1 -57
  307. data/generated/google/apis/script_v1/representations.rb +0 -32
  308. data/generated/google/apis/servicebroker_v1.rb +1 -1
  309. data/generated/google/apis/servicebroker_v1/classes.rb +56 -1
  310. data/generated/google/apis/servicebroker_v1/representations.rb +18 -0
  311. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  312. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +56 -1
  313. data/generated/google/apis/servicebroker_v1alpha1/representations.rb +18 -0
  314. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  315. data/generated/google/apis/servicebroker_v1beta1/classes.rb +56 -1
  316. data/generated/google/apis/servicebroker_v1beta1/representations.rb +18 -0
  317. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  318. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +13 -4
  319. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
  320. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  321. data/generated/google/apis/servicecontrol_v1/classes.rb +259 -0
  322. data/generated/google/apis/servicecontrol_v1/representations.rb +68 -0
  323. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  324. data/generated/google/apis/servicemanagement_v1/classes.rb +68 -4
  325. data/generated/google/apis/servicemanagement_v1/representations.rb +19 -0
  326. data/generated/google/apis/serviceusage_v1.rb +1 -1
  327. data/generated/google/apis/serviceusage_v1/classes.rb +13 -4
  328. data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
  329. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  330. data/generated/google/apis/serviceusage_v1beta1/classes.rb +13 -4
  331. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
  332. data/generated/google/apis/serviceuser_v1.rb +1 -1
  333. data/generated/google/apis/serviceuser_v1/classes.rb +12 -3
  334. data/generated/google/apis/serviceuser_v1/representations.rb +1 -0
  335. data/generated/google/apis/sheets_v4.rb +1 -1
  336. data/generated/google/apis/sheets_v4/classes.rb +22 -22
  337. data/generated/google/apis/site_verification_v1.rb +1 -1
  338. data/generated/google/apis/slides_v1.rb +1 -1
  339. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  340. data/generated/google/apis/sourcerepo_v1/classes.rb +56 -1
  341. data/generated/google/apis/sourcerepo_v1/representations.rb +18 -0
  342. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  343. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1632 -0
  344. data/generated/google/apis/sqladmin_v1beta3/representations.rb +733 -0
  345. data/generated/google/apis/sqladmin_v1beta3/service.rb +995 -0
  346. data/generated/google/apis/sqladmin_v1beta4.rb +4 -4
  347. data/generated/google/apis/sqladmin_v1beta4/classes.rb +30 -14
  348. data/generated/google/apis/sqladmin_v1beta4/service.rb +7 -7
  349. data/generated/google/apis/storage_v1.rb +1 -1
  350. data/generated/google/apis/storage_v1beta1.rb +1 -1
  351. data/generated/google/apis/storage_v1beta2.rb +1 -1
  352. data/generated/google/apis/surveys_v2.rb +1 -1
  353. data/generated/google/apis/tagmanager_v1.rb +1 -1
  354. data/generated/google/apis/tagmanager_v2.rb +1 -1
  355. data/generated/google/apis/tasks_v1.rb +1 -1
  356. data/generated/google/apis/testing_v1.rb +1 -1
  357. data/generated/google/apis/testing_v1/classes.rb +2 -2
  358. data/generated/google/apis/texttospeech_v1.rb +34 -0
  359. data/generated/google/apis/texttospeech_v1/classes.rb +278 -0
  360. data/generated/google/apis/texttospeech_v1/representations.rb +133 -0
  361. data/generated/google/apis/texttospeech_v1/service.rb +127 -0
  362. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  363. data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -2
  364. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  365. data/generated/google/apis/toolresults_v1beta3/classes.rb +0 -12
  366. data/generated/google/apis/toolresults_v1beta3/representations.rb +0 -2
  367. data/generated/google/apis/tpu_v1.rb +1 -1
  368. data/generated/google/apis/tpu_v1/classes.rb +0 -13
  369. data/generated/google/apis/tpu_v1/representations.rb +0 -12
  370. data/generated/google/apis/tpu_v1/service.rb +0 -33
  371. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  372. data/generated/google/apis/tpu_v1alpha1/classes.rb +0 -13
  373. data/generated/google/apis/tpu_v1alpha1/representations.rb +0 -12
  374. data/generated/google/apis/tpu_v1alpha1/service.rb +0 -33
  375. data/generated/google/apis/urlshortener_v1.rb +1 -1
  376. data/generated/google/apis/vault_v1.rb +1 -1
  377. data/generated/google/apis/vault_v1/classes.rb +803 -0
  378. data/generated/google/apis/vault_v1/representations.rb +384 -0
  379. data/generated/google/apis/vault_v1/service.rb +211 -0
  380. data/generated/google/apis/vision_v1.rb +1 -1
  381. data/generated/google/apis/vision_v1/classes.rb +3342 -227
  382. data/generated/google/apis/vision_v1/representations.rb +1696 -365
  383. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  384. data/generated/google/apis/vision_v1p1beta1/classes.rb +1826 -94
  385. data/generated/google/apis/vision_v1p1beta1/representations.rb +754 -1
  386. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  387. data/generated/google/apis/vision_v1p2beta1/classes.rb +3712 -597
  388. data/generated/google/apis/vision_v1p2beta1/representations.rb +1606 -275
  389. data/generated/google/apis/webfonts_v1.rb +1 -1
  390. data/generated/google/apis/webmasters_v3.rb +1 -1
  391. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  392. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +58 -2
  393. data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +32 -0
  394. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  395. data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
  396. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  397. data/generated/google/apis/youtube_v3.rb +1 -1
  398. data/lib/google/apis/core/http_command.rb +1 -1
  399. data/lib/google/apis/version.rb +1 -1
  400. metadata +34 -6
  401. data/generated/google/apis/spectrum_v1explorer/classes.rb +0 -1612
  402. data/generated/google/apis/spectrum_v1explorer/representations.rb +0 -611
  403. data/generated/google/apis/spectrum_v1explorer/service.rb +0 -271
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1p1beta1
29
29
  VERSION = 'V1p1beta1'
30
- REVISION = '20180609'
30
+ REVISION = '20180817'
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'
@@ -347,7 +347,7 @@ module Google
347
347
  # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
348
348
  # return nil;
349
349
  # `
350
- # Color* result = [Color alloc] init];
350
+ # Color* result = [[Color alloc] init];
351
351
  # [result setRed:red];
352
352
  # [result setGreen:green];
353
353
  # [result setBlue:blue];
@@ -495,7 +495,7 @@ module Google
495
495
  # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
496
496
  # return nil;
497
497
  # `
498
- # Color* result = [Color alloc] init];
498
+ # Color* result = [[Color alloc] init];
499
499
  # [result setRed:red];
500
500
  # [result setGreen:green];
501
501
  # [result setBlue:blue];
@@ -925,6 +925,32 @@ module Google
925
925
  end
926
926
  end
927
927
 
928
+ # Response to a single file annotation request. A file may contain one or more
929
+ # images, which individually have their own responses.
930
+ class GoogleCloudVisionV1p1beta1AnnotateFileResponse
931
+ include Google::Apis::Core::Hashable
932
+
933
+ # The desired input location and metadata.
934
+ # Corresponds to the JSON property `inputConfig`
935
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1InputConfig]
936
+ attr_accessor :input_config
937
+
938
+ # Individual responses to images found within the file.
939
+ # Corresponds to the JSON property `responses`
940
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AnnotateImageResponse>]
941
+ attr_accessor :responses
942
+
943
+ def initialize(**args)
944
+ update!(**args)
945
+ end
946
+
947
+ # Update properties of this object
948
+ def update!(**args)
949
+ @input_config = args[:input_config] if args.key?(:input_config)
950
+ @responses = args[:responses] if args.key?(:responses)
951
+ end
952
+ end
953
+
928
954
  # Request for performing Google Cloud Vision API tasks over a user-provided
929
955
  # image, with user-requested features.
930
956
  class GoogleCloudVisionV1p1beta1AnnotateImageRequest
@@ -1126,6 +1152,25 @@ module Google
1126
1152
  end
1127
1153
  end
1128
1154
 
1155
+ # The response for a single offline file annotation request.
1156
+ class GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse
1157
+ include Google::Apis::Core::Hashable
1158
+
1159
+ # The desired output location and metadata.
1160
+ # Corresponds to the JSON property `outputConfig`
1161
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1OutputConfig]
1162
+ attr_accessor :output_config
1163
+
1164
+ def initialize(**args)
1165
+ update!(**args)
1166
+ end
1167
+
1168
+ # Update properties of this object
1169
+ def update!(**args)
1170
+ @output_config = args[:output_config] if args.key?(:output_config)
1171
+ end
1172
+ end
1173
+
1129
1174
  # Multiple async file annotation requests are batched into a single service
1130
1175
  # call.
1131
1176
  class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesRequest
@@ -1146,6 +1191,26 @@ module Google
1146
1191
  end
1147
1192
  end
1148
1193
 
1194
+ # Response to an async batch file annotation request.
1195
+ class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse
1196
+ include Google::Apis::Core::Hashable
1197
+
1198
+ # The list of file annotation responses, one for each request in
1199
+ # AsyncBatchAnnotateFilesRequest.
1200
+ # Corresponds to the JSON property `responses`
1201
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse>]
1202
+ attr_accessor :responses
1203
+
1204
+ def initialize(**args)
1205
+ update!(**args)
1206
+ end
1207
+
1208
+ # Update properties of this object
1209
+ def update!(**args)
1210
+ @responses = args[:responses] if args.key?(:responses)
1211
+ end
1212
+ end
1213
+
1149
1214
  # Multiple image annotation requests are batched into a single service call.
1150
1215
  class GoogleCloudVisionV1p1beta1BatchAnnotateImagesRequest
1151
1216
  include Google::Apis::Core::Hashable
@@ -1311,7 +1376,7 @@ module Google
1311
1376
  # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
1312
1377
  # return nil;
1313
1378
  # `
1314
- # Color* result = [Color alloc] init];
1379
+ # Color* result = [[Color alloc] init];
1315
1380
  # [result setRed:red];
1316
1381
  # [result setGreen:green];
1317
1382
  # [result setBlue:blue];
@@ -2017,6 +2082,37 @@ module Google
2017
2082
  end
2018
2083
  end
2019
2084
 
2085
+ # Contains metadata for the BatchAnnotateImages operation.
2086
+ class GoogleCloudVisionV1p1beta1OperationMetadata
2087
+ include Google::Apis::Core::Hashable
2088
+
2089
+ # The time when the batch request was received.
2090
+ # Corresponds to the JSON property `createTime`
2091
+ # @return [String]
2092
+ attr_accessor :create_time
2093
+
2094
+ # Current state of the batch operation.
2095
+ # Corresponds to the JSON property `state`
2096
+ # @return [String]
2097
+ attr_accessor :state
2098
+
2099
+ # The time when the operation result was last updated.
2100
+ # Corresponds to the JSON property `updateTime`
2101
+ # @return [String]
2102
+ attr_accessor :update_time
2103
+
2104
+ def initialize(**args)
2105
+ update!(**args)
2106
+ end
2107
+
2108
+ # Update properties of this object
2109
+ def update!(**args)
2110
+ @create_time = args[:create_time] if args.key?(:create_time)
2111
+ @state = args[:state] if args.key?(:state)
2112
+ @update_time = args[:update_time] if args.key?(:update_time)
2113
+ end
2114
+ end
2115
+
2020
2116
  # The desired output location and metadata.
2021
2117
  class GoogleCloudVisionV1p1beta1OutputConfig
2022
2118
  include Google::Apis::Core::Hashable
@@ -2992,7 +3088,7 @@ module Google
2992
3088
  # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
2993
3089
  # return nil;
2994
3090
  # `
2995
- # Color* result = [Color alloc] init];
3091
+ # Color* result = [[Color alloc] init];
2996
3092
  # [result setRed:red];
2997
3093
  # [result setGreen:green];
2998
3094
  # [result setBlue:blue];
@@ -4174,27 +4270,20 @@ module Google
4174
4270
  end
4175
4271
  end
4176
4272
 
4177
- # Metadata for the batch operations such as the current state.
4178
- # This is included in the `metadata` field of the `Operation` returned by the
4179
- # `GetOperation` call of the `google::longrunning::Operations` service.
4180
- class GoogleCloudVisionV1p3beta1BatchOperationMetadata
4273
+ # Response to a single file annotation request. A file may contain one or more
4274
+ # images, which individually have their own responses.
4275
+ class GoogleCloudVisionV1p3beta1AnnotateFileResponse
4181
4276
  include Google::Apis::Core::Hashable
4182
4277
 
4183
- # The time when the batch request is finished and
4184
- # google.longrunning.Operation.done is set to true.
4185
- # Corresponds to the JSON property `endTime`
4186
- # @return [String]
4187
- attr_accessor :end_time
4188
-
4189
- # The current state of the batch operation.
4190
- # Corresponds to the JSON property `state`
4191
- # @return [String]
4192
- attr_accessor :state
4278
+ # The desired input location and metadata.
4279
+ # Corresponds to the JSON property `inputConfig`
4280
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1InputConfig]
4281
+ attr_accessor :input_config
4193
4282
 
4194
- # The time when the batch request was submitted to the server.
4195
- # Corresponds to the JSON property `submitTime`
4196
- # @return [String]
4197
- attr_accessor :submit_time
4283
+ # Individual responses to images found within the file.
4284
+ # Corresponds to the JSON property `responses`
4285
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1AnnotateImageResponse>]
4286
+ attr_accessor :responses
4198
4287
 
4199
4288
  def initialize(**args)
4200
4289
  update!(**args)
@@ -4202,25 +4291,132 @@ module Google
4202
4291
 
4203
4292
  # Update properties of this object
4204
4293
  def update!(**args)
4205
- @end_time = args[:end_time] if args.key?(:end_time)
4206
- @state = args[:state] if args.key?(:state)
4207
- @submit_time = args[:submit_time] if args.key?(:submit_time)
4294
+ @input_config = args[:input_config] if args.key?(:input_config)
4295
+ @responses = args[:responses] if args.key?(:responses)
4208
4296
  end
4209
4297
  end
4210
4298
 
4211
- # A bounding polygon for the detected image annotation.
4212
- class GoogleCloudVisionV1p3beta1BoundingPoly
4299
+ # Response to an image annotation request.
4300
+ class GoogleCloudVisionV1p3beta1AnnotateImageResponse
4213
4301
  include Google::Apis::Core::Hashable
4214
4302
 
4215
- # The bounding polygon normalized vertices.
4216
- # Corresponds to the JSON property `normalizedVertices`
4217
- # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1NormalizedVertex>]
4218
- attr_accessor :normalized_vertices
4303
+ # If an image was produced from a file (e.g. a PDF), this message gives
4304
+ # information about the source of that image.
4305
+ # Corresponds to the JSON property `context`
4306
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ImageAnnotationContext]
4307
+ attr_accessor :context
4219
4308
 
4220
- # The bounding polygon vertices.
4221
- # Corresponds to the JSON property `vertices`
4222
- # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Vertex>]
4223
- attr_accessor :vertices
4309
+ # Set of crop hints that are used to generate new crops when serving images.
4310
+ # Corresponds to the JSON property `cropHintsAnnotation`
4311
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1CropHintsAnnotation]
4312
+ attr_accessor :crop_hints_annotation
4313
+
4314
+ # The `Status` type defines a logical error model that is suitable for different
4315
+ # programming environments, including REST APIs and RPC APIs. It is used by
4316
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
4317
+ # - Simple to use and understand for most users
4318
+ # - Flexible enough to meet unexpected needs
4319
+ # # Overview
4320
+ # The `Status` message contains three pieces of data: error code, error message,
4321
+ # and error details. The error code should be an enum value of
4322
+ # google.rpc.Code, but it may accept additional error codes if needed. The
4323
+ # error message should be a developer-facing English message that helps
4324
+ # developers *understand* and *resolve* the error. If a localized user-facing
4325
+ # error message is needed, put the localized message in the error details or
4326
+ # localize it in the client. The optional error details may contain arbitrary
4327
+ # information about the error. There is a predefined set of error detail types
4328
+ # in the package `google.rpc` that can be used for common error conditions.
4329
+ # # Language mapping
4330
+ # The `Status` message is the logical representation of the error model, but it
4331
+ # is not necessarily the actual wire format. When the `Status` message is
4332
+ # exposed in different client libraries and different wire protocols, it can be
4333
+ # mapped differently. For example, it will likely be mapped to some exceptions
4334
+ # in Java, but more likely mapped to some error codes in C.
4335
+ # # Other uses
4336
+ # The error model and the `Status` message can be used in a variety of
4337
+ # environments, either with or without APIs, to provide a
4338
+ # consistent developer experience across different environments.
4339
+ # Example uses of this error model include:
4340
+ # - Partial errors. If a service needs to return partial errors to the client,
4341
+ # it may embed the `Status` in the normal response to indicate the partial
4342
+ # errors.
4343
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
4344
+ # have a `Status` message for error reporting.
4345
+ # - Batch operations. If a client uses batch request and batch response, the
4346
+ # `Status` message should be used directly inside batch response, one for
4347
+ # each error sub-response.
4348
+ # - Asynchronous operations. If an API call embeds asynchronous operation
4349
+ # results in its response, the status of those operations should be
4350
+ # represented directly using the `Status` message.
4351
+ # - Logging. If some API errors are stored in logs, the message `Status` could
4352
+ # be used directly after any stripping needed for security/privacy reasons.
4353
+ # Corresponds to the JSON property `error`
4354
+ # @return [Google::Apis::VisionV1p1beta1::Status]
4355
+ attr_accessor :error
4356
+
4357
+ # If present, face detection has completed successfully.
4358
+ # Corresponds to the JSON property `faceAnnotations`
4359
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1FaceAnnotation>]
4360
+ attr_accessor :face_annotations
4361
+
4362
+ # TextAnnotation contains a structured representation of OCR extracted text.
4363
+ # The hierarchy of an OCR extracted text structure is like this:
4364
+ # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
4365
+ # Each structural component, starting from Page, may further have their own
4366
+ # properties. Properties describe detected languages, breaks etc.. Please refer
4367
+ # to the TextAnnotation.TextProperty message definition below for more
4368
+ # detail.
4369
+ # Corresponds to the JSON property `fullTextAnnotation`
4370
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotation]
4371
+ attr_accessor :full_text_annotation
4372
+
4373
+ # Stores image properties, such as dominant colors.
4374
+ # Corresponds to the JSON property `imagePropertiesAnnotation`
4375
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ImageProperties]
4376
+ attr_accessor :image_properties_annotation
4377
+
4378
+ # If present, label detection has completed successfully.
4379
+ # Corresponds to the JSON property `labelAnnotations`
4380
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1EntityAnnotation>]
4381
+ attr_accessor :label_annotations
4382
+
4383
+ # If present, landmark detection has completed successfully.
4384
+ # Corresponds to the JSON property `landmarkAnnotations`
4385
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1EntityAnnotation>]
4386
+ attr_accessor :landmark_annotations
4387
+
4388
+ # If present, localized object detection has completed successfully.
4389
+ # This will be sorted descending by confidence score.
4390
+ # Corresponds to the JSON property `localizedObjectAnnotations`
4391
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation>]
4392
+ attr_accessor :localized_object_annotations
4393
+
4394
+ # If present, logo detection has completed successfully.
4395
+ # Corresponds to the JSON property `logoAnnotations`
4396
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1EntityAnnotation>]
4397
+ attr_accessor :logo_annotations
4398
+
4399
+ # Results for a product search request.
4400
+ # Corresponds to the JSON property `productSearchResults`
4401
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ProductSearchResults]
4402
+ attr_accessor :product_search_results
4403
+
4404
+ # Set of features pertaining to the image, computed by computer vision
4405
+ # methods over safe-search verticals (for example, adult, spoof, medical,
4406
+ # violence).
4407
+ # Corresponds to the JSON property `safeSearchAnnotation`
4408
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1SafeSearchAnnotation]
4409
+ attr_accessor :safe_search_annotation
4410
+
4411
+ # If present, text (OCR) detection has completed successfully.
4412
+ # Corresponds to the JSON property `textAnnotations`
4413
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1EntityAnnotation>]
4414
+ attr_accessor :text_annotations
4415
+
4416
+ # Relevant information for the image from the Internet.
4417
+ # Corresponds to the JSON property `webDetection`
4418
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetection]
4419
+ attr_accessor :web_detection
4224
4420
 
4225
4421
  def initialize(**args)
4226
4422
  update!(**args)
@@ -4228,22 +4424,690 @@ module Google
4228
4424
 
4229
4425
  # Update properties of this object
4230
4426
  def update!(**args)
4231
- @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
4232
- @vertices = args[:vertices] if args.key?(:vertices)
4427
+ @context = args[:context] if args.key?(:context)
4428
+ @crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
4429
+ @error = args[:error] if args.key?(:error)
4430
+ @face_annotations = args[:face_annotations] if args.key?(:face_annotations)
4431
+ @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
4432
+ @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
4433
+ @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
4434
+ @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
4435
+ @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
4436
+ @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
4437
+ @product_search_results = args[:product_search_results] if args.key?(:product_search_results)
4438
+ @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
4439
+ @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
4440
+ @web_detection = args[:web_detection] if args.key?(:web_detection)
4233
4441
  end
4234
4442
  end
4235
4443
 
4236
- # Response message for the `ImportProductSets` method.
4237
- # This message is returned by the
4238
- # google.longrunning.Operations.GetOperation method in the returned
4239
- # google.longrunning.Operation.response field.
4240
- class GoogleCloudVisionV1p3beta1ImportProductSetsResponse
4444
+ # The response for a single offline file annotation request.
4445
+ class GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse
4241
4446
  include Google::Apis::Core::Hashable
4242
4447
 
4243
- # The list of reference_images that are imported successfully.
4244
- # Corresponds to the JSON property `referenceImages`
4245
- # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ReferenceImage>]
4246
- attr_accessor :reference_images
4448
+ # The desired output location and metadata.
4449
+ # Corresponds to the JSON property `outputConfig`
4450
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1OutputConfig]
4451
+ attr_accessor :output_config
4452
+
4453
+ def initialize(**args)
4454
+ update!(**args)
4455
+ end
4456
+
4457
+ # Update properties of this object
4458
+ def update!(**args)
4459
+ @output_config = args[:output_config] if args.key?(:output_config)
4460
+ end
4461
+ end
4462
+
4463
+ # Response to an async batch file annotation request.
4464
+ class GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse
4465
+ include Google::Apis::Core::Hashable
4466
+
4467
+ # The list of file annotation responses, one for each request in
4468
+ # AsyncBatchAnnotateFilesRequest.
4469
+ # Corresponds to the JSON property `responses`
4470
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse>]
4471
+ attr_accessor :responses
4472
+
4473
+ def initialize(**args)
4474
+ update!(**args)
4475
+ end
4476
+
4477
+ # Update properties of this object
4478
+ def update!(**args)
4479
+ @responses = args[:responses] if args.key?(:responses)
4480
+ end
4481
+ end
4482
+
4483
+ # Metadata for the batch operations such as the current state.
4484
+ # This is included in the `metadata` field of the `Operation` returned by the
4485
+ # `GetOperation` call of the `google::longrunning::Operations` service.
4486
+ class GoogleCloudVisionV1p3beta1BatchOperationMetadata
4487
+ include Google::Apis::Core::Hashable
4488
+
4489
+ # The time when the batch request is finished and
4490
+ # google.longrunning.Operation.done is set to true.
4491
+ # Corresponds to the JSON property `endTime`
4492
+ # @return [String]
4493
+ attr_accessor :end_time
4494
+
4495
+ # The current state of the batch operation.
4496
+ # Corresponds to the JSON property `state`
4497
+ # @return [String]
4498
+ attr_accessor :state
4499
+
4500
+ # The time when the batch request was submitted to the server.
4501
+ # Corresponds to the JSON property `submitTime`
4502
+ # @return [String]
4503
+ attr_accessor :submit_time
4504
+
4505
+ def initialize(**args)
4506
+ update!(**args)
4507
+ end
4508
+
4509
+ # Update properties of this object
4510
+ def update!(**args)
4511
+ @end_time = args[:end_time] if args.key?(:end_time)
4512
+ @state = args[:state] if args.key?(:state)
4513
+ @submit_time = args[:submit_time] if args.key?(:submit_time)
4514
+ end
4515
+ end
4516
+
4517
+ # Logical element on the page.
4518
+ class GoogleCloudVisionV1p3beta1Block
4519
+ include Google::Apis::Core::Hashable
4520
+
4521
+ # Detected block type (text, image etc) for this block.
4522
+ # Corresponds to the JSON property `blockType`
4523
+ # @return [String]
4524
+ attr_accessor :block_type
4525
+
4526
+ # A bounding polygon for the detected image annotation.
4527
+ # Corresponds to the JSON property `boundingBox`
4528
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly]
4529
+ attr_accessor :bounding_box
4530
+
4531
+ # Confidence of the OCR results on the block. Range [0, 1].
4532
+ # Corresponds to the JSON property `confidence`
4533
+ # @return [Float]
4534
+ attr_accessor :confidence
4535
+
4536
+ # List of paragraphs in this block (if this blocks is of type text).
4537
+ # Corresponds to the JSON property `paragraphs`
4538
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Paragraph>]
4539
+ attr_accessor :paragraphs
4540
+
4541
+ # Additional information detected on the structural component.
4542
+ # Corresponds to the JSON property `property`
4543
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty]
4544
+ attr_accessor :property
4545
+
4546
+ def initialize(**args)
4547
+ update!(**args)
4548
+ end
4549
+
4550
+ # Update properties of this object
4551
+ def update!(**args)
4552
+ @block_type = args[:block_type] if args.key?(:block_type)
4553
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
4554
+ @confidence = args[:confidence] if args.key?(:confidence)
4555
+ @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
4556
+ @property = args[:property] if args.key?(:property)
4557
+ end
4558
+ end
4559
+
4560
+ # A bounding polygon for the detected image annotation.
4561
+ class GoogleCloudVisionV1p3beta1BoundingPoly
4562
+ include Google::Apis::Core::Hashable
4563
+
4564
+ # The bounding polygon normalized vertices.
4565
+ # Corresponds to the JSON property `normalizedVertices`
4566
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1NormalizedVertex>]
4567
+ attr_accessor :normalized_vertices
4568
+
4569
+ # The bounding polygon vertices.
4570
+ # Corresponds to the JSON property `vertices`
4571
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Vertex>]
4572
+ attr_accessor :vertices
4573
+
4574
+ def initialize(**args)
4575
+ update!(**args)
4576
+ end
4577
+
4578
+ # Update properties of this object
4579
+ def update!(**args)
4580
+ @normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
4581
+ @vertices = args[:vertices] if args.key?(:vertices)
4582
+ end
4583
+ end
4584
+
4585
+ # Color information consists of RGB channels, score, and the fraction of
4586
+ # the image that the color occupies in the image.
4587
+ class GoogleCloudVisionV1p3beta1ColorInfo
4588
+ include Google::Apis::Core::Hashable
4589
+
4590
+ # Represents a color in the RGBA color space. This representation is designed
4591
+ # for simplicity of conversion to/from color representations in various
4592
+ # languages over compactness; for example, the fields of this representation
4593
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
4594
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
4595
+ # method in iOS; and, with just a little work, it can be easily formatted into
4596
+ # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
4597
+ # Example (Java):
4598
+ # import com.google.type.Color;
4599
+ # // ...
4600
+ # public static java.awt.Color fromProto(Color protocolor) `
4601
+ # float alpha = protocolor.hasAlpha()
4602
+ # ? protocolor.getAlpha().getValue()
4603
+ # : 1.0;
4604
+ # return new java.awt.Color(
4605
+ # protocolor.getRed(),
4606
+ # protocolor.getGreen(),
4607
+ # protocolor.getBlue(),
4608
+ # alpha);
4609
+ # `
4610
+ # public static Color toProto(java.awt.Color color) `
4611
+ # float red = (float) color.getRed();
4612
+ # float green = (float) color.getGreen();
4613
+ # float blue = (float) color.getBlue();
4614
+ # float denominator = 255.0;
4615
+ # Color.Builder resultBuilder =
4616
+ # Color
4617
+ # .newBuilder()
4618
+ # .setRed(red / denominator)
4619
+ # .setGreen(green / denominator)
4620
+ # .setBlue(blue / denominator);
4621
+ # int alpha = color.getAlpha();
4622
+ # if (alpha != 255) `
4623
+ # result.setAlpha(
4624
+ # FloatValue
4625
+ # .newBuilder()
4626
+ # .setValue(((float) alpha) / denominator)
4627
+ # .build());
4628
+ # `
4629
+ # return resultBuilder.build();
4630
+ # `
4631
+ # // ...
4632
+ # Example (iOS / Obj-C):
4633
+ # // ...
4634
+ # static UIColor* fromProto(Color* protocolor) `
4635
+ # float red = [protocolor red];
4636
+ # float green = [protocolor green];
4637
+ # float blue = [protocolor blue];
4638
+ # FloatValue* alpha_wrapper = [protocolor alpha];
4639
+ # float alpha = 1.0;
4640
+ # if (alpha_wrapper != nil) `
4641
+ # alpha = [alpha_wrapper value];
4642
+ # `
4643
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
4644
+ # `
4645
+ # static Color* toProto(UIColor* color) `
4646
+ # CGFloat red, green, blue, alpha;
4647
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
4648
+ # return nil;
4649
+ # `
4650
+ # Color* result = [[Color alloc] init];
4651
+ # [result setRed:red];
4652
+ # [result setGreen:green];
4653
+ # [result setBlue:blue];
4654
+ # if (alpha <= 0.9999) `
4655
+ # [result setAlpha:floatWrapperWithValue(alpha)];
4656
+ # `
4657
+ # [result autorelease];
4658
+ # return result;
4659
+ # `
4660
+ # // ...
4661
+ # Example (JavaScript):
4662
+ # // ...
4663
+ # var protoToCssColor = function(rgb_color) `
4664
+ # var redFrac = rgb_color.red || 0.0;
4665
+ # var greenFrac = rgb_color.green || 0.0;
4666
+ # var blueFrac = rgb_color.blue || 0.0;
4667
+ # var red = Math.floor(redFrac * 255);
4668
+ # var green = Math.floor(greenFrac * 255);
4669
+ # var blue = Math.floor(blueFrac * 255);
4670
+ # if (!('alpha' in rgb_color)) `
4671
+ # return rgbToCssColor_(red, green, blue);
4672
+ # `
4673
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
4674
+ # var rgbParams = [red, green, blue].join(',');
4675
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
4676
+ # `;
4677
+ # var rgbToCssColor_ = function(red, green, blue) `
4678
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
4679
+ # var hexString = rgbNumber.toString(16);
4680
+ # var missingZeros = 6 - hexString.length;
4681
+ # var resultBuilder = ['#'];
4682
+ # for (var i = 0; i < missingZeros; i++) `
4683
+ # resultBuilder.push('0');
4684
+ # `
4685
+ # resultBuilder.push(hexString);
4686
+ # return resultBuilder.join('');
4687
+ # `;
4688
+ # // ...
4689
+ # Corresponds to the JSON property `color`
4690
+ # @return [Google::Apis::VisionV1p1beta1::Color]
4691
+ attr_accessor :color
4692
+
4693
+ # The fraction of pixels the color occupies in the image.
4694
+ # Value in range [0, 1].
4695
+ # Corresponds to the JSON property `pixelFraction`
4696
+ # @return [Float]
4697
+ attr_accessor :pixel_fraction
4698
+
4699
+ # Image-specific score for this color. Value in range [0, 1].
4700
+ # Corresponds to the JSON property `score`
4701
+ # @return [Float]
4702
+ attr_accessor :score
4703
+
4704
+ def initialize(**args)
4705
+ update!(**args)
4706
+ end
4707
+
4708
+ # Update properties of this object
4709
+ def update!(**args)
4710
+ @color = args[:color] if args.key?(:color)
4711
+ @pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction)
4712
+ @score = args[:score] if args.key?(:score)
4713
+ end
4714
+ end
4715
+
4716
+ # Single crop hint that is used to generate a new crop when serving an image.
4717
+ class GoogleCloudVisionV1p3beta1CropHint
4718
+ include Google::Apis::Core::Hashable
4719
+
4720
+ # A bounding polygon for the detected image annotation.
4721
+ # Corresponds to the JSON property `boundingPoly`
4722
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly]
4723
+ attr_accessor :bounding_poly
4724
+
4725
+ # Confidence of this being a salient region. Range [0, 1].
4726
+ # Corresponds to the JSON property `confidence`
4727
+ # @return [Float]
4728
+ attr_accessor :confidence
4729
+
4730
+ # Fraction of importance of this salient region with respect to the original
4731
+ # image.
4732
+ # Corresponds to the JSON property `importanceFraction`
4733
+ # @return [Float]
4734
+ attr_accessor :importance_fraction
4735
+
4736
+ def initialize(**args)
4737
+ update!(**args)
4738
+ end
4739
+
4740
+ # Update properties of this object
4741
+ def update!(**args)
4742
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
4743
+ @confidence = args[:confidence] if args.key?(:confidence)
4744
+ @importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction)
4745
+ end
4746
+ end
4747
+
4748
+ # Set of crop hints that are used to generate new crops when serving images.
4749
+ class GoogleCloudVisionV1p3beta1CropHintsAnnotation
4750
+ include Google::Apis::Core::Hashable
4751
+
4752
+ # Crop hint results.
4753
+ # Corresponds to the JSON property `cropHints`
4754
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1CropHint>]
4755
+ attr_accessor :crop_hints
4756
+
4757
+ def initialize(**args)
4758
+ update!(**args)
4759
+ end
4760
+
4761
+ # Update properties of this object
4762
+ def update!(**args)
4763
+ @crop_hints = args[:crop_hints] if args.key?(:crop_hints)
4764
+ end
4765
+ end
4766
+
4767
+ # Set of dominant colors and their corresponding scores.
4768
+ class GoogleCloudVisionV1p3beta1DominantColorsAnnotation
4769
+ include Google::Apis::Core::Hashable
4770
+
4771
+ # RGB color values with their score and pixel fraction.
4772
+ # Corresponds to the JSON property `colors`
4773
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ColorInfo>]
4774
+ attr_accessor :colors
4775
+
4776
+ def initialize(**args)
4777
+ update!(**args)
4778
+ end
4779
+
4780
+ # Update properties of this object
4781
+ def update!(**args)
4782
+ @colors = args[:colors] if args.key?(:colors)
4783
+ end
4784
+ end
4785
+
4786
+ # Set of detected entity features.
4787
+ class GoogleCloudVisionV1p3beta1EntityAnnotation
4788
+ include Google::Apis::Core::Hashable
4789
+
4790
+ # A bounding polygon for the detected image annotation.
4791
+ # Corresponds to the JSON property `boundingPoly`
4792
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly]
4793
+ attr_accessor :bounding_poly
4794
+
4795
+ # **Deprecated. Use `score` instead.**
4796
+ # The accuracy of the entity detection in an image.
4797
+ # For example, for an image in which the "Eiffel Tower" entity is detected,
4798
+ # this field represents the confidence that there is a tower in the query
4799
+ # image. Range [0, 1].
4800
+ # Corresponds to the JSON property `confidence`
4801
+ # @return [Float]
4802
+ attr_accessor :confidence
4803
+
4804
+ # Entity textual description, expressed in its `locale` language.
4805
+ # Corresponds to the JSON property `description`
4806
+ # @return [String]
4807
+ attr_accessor :description
4808
+
4809
+ # The language code for the locale in which the entity textual
4810
+ # `description` is expressed.
4811
+ # Corresponds to the JSON property `locale`
4812
+ # @return [String]
4813
+ attr_accessor :locale
4814
+
4815
+ # The location information for the detected entity. Multiple
4816
+ # `LocationInfo` elements can be present because one location may
4817
+ # indicate the location of the scene in the image, and another location
4818
+ # may indicate the location of the place where the image was taken.
4819
+ # Location information is usually present for landmarks.
4820
+ # Corresponds to the JSON property `locations`
4821
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1LocationInfo>]
4822
+ attr_accessor :locations
4823
+
4824
+ # Opaque entity ID. Some IDs may be available in
4825
+ # [Google Knowledge Graph Search
4826
+ # API](https://developers.google.com/knowledge-graph/).
4827
+ # Corresponds to the JSON property `mid`
4828
+ # @return [String]
4829
+ attr_accessor :mid
4830
+
4831
+ # Some entities may have optional user-supplied `Property` (name/value)
4832
+ # fields, such a score or string that qualifies the entity.
4833
+ # Corresponds to the JSON property `properties`
4834
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Property>]
4835
+ attr_accessor :properties
4836
+
4837
+ # Overall score of the result. Range [0, 1].
4838
+ # Corresponds to the JSON property `score`
4839
+ # @return [Float]
4840
+ attr_accessor :score
4841
+
4842
+ # The relevancy of the ICA (Image Content Annotation) label to the
4843
+ # image. For example, the relevancy of "tower" is likely higher to an image
4844
+ # containing the detected "Eiffel Tower" than to an image containing a
4845
+ # detected distant towering building, even though the confidence that
4846
+ # there is a tower in each image may be the same. Range [0, 1].
4847
+ # Corresponds to the JSON property `topicality`
4848
+ # @return [Float]
4849
+ attr_accessor :topicality
4850
+
4851
+ def initialize(**args)
4852
+ update!(**args)
4853
+ end
4854
+
4855
+ # Update properties of this object
4856
+ def update!(**args)
4857
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
4858
+ @confidence = args[:confidence] if args.key?(:confidence)
4859
+ @description = args[:description] if args.key?(:description)
4860
+ @locale = args[:locale] if args.key?(:locale)
4861
+ @locations = args[:locations] if args.key?(:locations)
4862
+ @mid = args[:mid] if args.key?(:mid)
4863
+ @properties = args[:properties] if args.key?(:properties)
4864
+ @score = args[:score] if args.key?(:score)
4865
+ @topicality = args[:topicality] if args.key?(:topicality)
4866
+ end
4867
+ end
4868
+
4869
+ # A face annotation object contains the results of face detection.
4870
+ class GoogleCloudVisionV1p3beta1FaceAnnotation
4871
+ include Google::Apis::Core::Hashable
4872
+
4873
+ # Anger likelihood.
4874
+ # Corresponds to the JSON property `angerLikelihood`
4875
+ # @return [String]
4876
+ attr_accessor :anger_likelihood
4877
+
4878
+ # Blurred likelihood.
4879
+ # Corresponds to the JSON property `blurredLikelihood`
4880
+ # @return [String]
4881
+ attr_accessor :blurred_likelihood
4882
+
4883
+ # A bounding polygon for the detected image annotation.
4884
+ # Corresponds to the JSON property `boundingPoly`
4885
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly]
4886
+ attr_accessor :bounding_poly
4887
+
4888
+ # Detection confidence. Range [0, 1].
4889
+ # Corresponds to the JSON property `detectionConfidence`
4890
+ # @return [Float]
4891
+ attr_accessor :detection_confidence
4892
+
4893
+ # A bounding polygon for the detected image annotation.
4894
+ # Corresponds to the JSON property `fdBoundingPoly`
4895
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly]
4896
+ attr_accessor :fd_bounding_poly
4897
+
4898
+ # Headwear likelihood.
4899
+ # Corresponds to the JSON property `headwearLikelihood`
4900
+ # @return [String]
4901
+ attr_accessor :headwear_likelihood
4902
+
4903
+ # Joy likelihood.
4904
+ # Corresponds to the JSON property `joyLikelihood`
4905
+ # @return [String]
4906
+ attr_accessor :joy_likelihood
4907
+
4908
+ # Face landmarking confidence. Range [0, 1].
4909
+ # Corresponds to the JSON property `landmarkingConfidence`
4910
+ # @return [Float]
4911
+ attr_accessor :landmarking_confidence
4912
+
4913
+ # Detected face landmarks.
4914
+ # Corresponds to the JSON property `landmarks`
4915
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1FaceAnnotationLandmark>]
4916
+ attr_accessor :landmarks
4917
+
4918
+ # Yaw angle, which indicates the leftward/rightward angle that the face is
4919
+ # pointing relative to the vertical plane perpendicular to the image. Range
4920
+ # [-180,180].
4921
+ # Corresponds to the JSON property `panAngle`
4922
+ # @return [Float]
4923
+ attr_accessor :pan_angle
4924
+
4925
+ # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
4926
+ # of the face relative to the image vertical about the axis perpendicular to
4927
+ # the face. Range [-180,180].
4928
+ # Corresponds to the JSON property `rollAngle`
4929
+ # @return [Float]
4930
+ attr_accessor :roll_angle
4931
+
4932
+ # Sorrow likelihood.
4933
+ # Corresponds to the JSON property `sorrowLikelihood`
4934
+ # @return [String]
4935
+ attr_accessor :sorrow_likelihood
4936
+
4937
+ # Surprise likelihood.
4938
+ # Corresponds to the JSON property `surpriseLikelihood`
4939
+ # @return [String]
4940
+ attr_accessor :surprise_likelihood
4941
+
4942
+ # Pitch angle, which indicates the upwards/downwards angle that the face is
4943
+ # pointing relative to the image's horizontal plane. Range [-180,180].
4944
+ # Corresponds to the JSON property `tiltAngle`
4945
+ # @return [Float]
4946
+ attr_accessor :tilt_angle
4947
+
4948
+ # Under-exposed likelihood.
4949
+ # Corresponds to the JSON property `underExposedLikelihood`
4950
+ # @return [String]
4951
+ attr_accessor :under_exposed_likelihood
4952
+
4953
+ def initialize(**args)
4954
+ update!(**args)
4955
+ end
4956
+
4957
+ # Update properties of this object
4958
+ def update!(**args)
4959
+ @anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood)
4960
+ @blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood)
4961
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
4962
+ @detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence)
4963
+ @fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly)
4964
+ @headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood)
4965
+ @joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood)
4966
+ @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
4967
+ @landmarks = args[:landmarks] if args.key?(:landmarks)
4968
+ @pan_angle = args[:pan_angle] if args.key?(:pan_angle)
4969
+ @roll_angle = args[:roll_angle] if args.key?(:roll_angle)
4970
+ @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood)
4971
+ @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
4972
+ @tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle)
4973
+ @under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood)
4974
+ end
4975
+ end
4976
+
4977
+ # A face-specific landmark (for example, a face feature).
4978
+ class GoogleCloudVisionV1p3beta1FaceAnnotationLandmark
4979
+ include Google::Apis::Core::Hashable
4980
+
4981
+ # A 3D position in the image, used primarily for Face detection landmarks.
4982
+ # A valid Position must have both x and y coordinates.
4983
+ # The position coordinates are in the same scale as the original image.
4984
+ # Corresponds to the JSON property `position`
4985
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Position]
4986
+ attr_accessor :position
4987
+
4988
+ # Face landmark type.
4989
+ # Corresponds to the JSON property `type`
4990
+ # @return [String]
4991
+ attr_accessor :type
4992
+
4993
+ def initialize(**args)
4994
+ update!(**args)
4995
+ end
4996
+
4997
+ # Update properties of this object
4998
+ def update!(**args)
4999
+ @position = args[:position] if args.key?(:position)
5000
+ @type = args[:type] if args.key?(:type)
5001
+ end
5002
+ end
5003
+
5004
+ # The Google Cloud Storage location where the output will be written to.
5005
+ class GoogleCloudVisionV1p3beta1GcsDestination
5006
+ include Google::Apis::Core::Hashable
5007
+
5008
+ # Google Cloud Storage URI where the results will be stored. Results will
5009
+ # be in JSON format and preceded by its corresponding input URI. This field
5010
+ # can either represent a single file, or a prefix for multiple outputs.
5011
+ # Prefixes must end in a `/`.
5012
+ # Examples:
5013
+ # * File: gs://bucket-name/filename.json
5014
+ # * Prefix: gs://bucket-name/prefix/here/
5015
+ # * File: gs://bucket-name/prefix/here
5016
+ # If multiple outputs, each response is still AnnotateFileResponse, each of
5017
+ # which contains some subset of the full list of AnnotateImageResponse.
5018
+ # Multiple outputs can happen if, for example, the output JSON is too large
5019
+ # and overflows into multiple sharded files.
5020
+ # Corresponds to the JSON property `uri`
5021
+ # @return [String]
5022
+ attr_accessor :uri
5023
+
5024
+ def initialize(**args)
5025
+ update!(**args)
5026
+ end
5027
+
5028
+ # Update properties of this object
5029
+ def update!(**args)
5030
+ @uri = args[:uri] if args.key?(:uri)
5031
+ end
5032
+ end
5033
+
5034
+ # The Google Cloud Storage location where the input will be read from.
5035
+ class GoogleCloudVisionV1p3beta1GcsSource
5036
+ include Google::Apis::Core::Hashable
5037
+
5038
+ # Google Cloud Storage URI for the input file. This must only be a
5039
+ # Google Cloud Storage object. Wildcards are not currently supported.
5040
+ # Corresponds to the JSON property `uri`
5041
+ # @return [String]
5042
+ attr_accessor :uri
5043
+
5044
+ def initialize(**args)
5045
+ update!(**args)
5046
+ end
5047
+
5048
+ # Update properties of this object
5049
+ def update!(**args)
5050
+ @uri = args[:uri] if args.key?(:uri)
5051
+ end
5052
+ end
5053
+
5054
+ # If an image was produced from a file (e.g. a PDF), this message gives
5055
+ # information about the source of that image.
5056
+ class GoogleCloudVisionV1p3beta1ImageAnnotationContext
5057
+ include Google::Apis::Core::Hashable
5058
+
5059
+ # If the file was a PDF or TIFF, this field gives the page number within
5060
+ # the file used to produce the image.
5061
+ # Corresponds to the JSON property `pageNumber`
5062
+ # @return [Fixnum]
5063
+ attr_accessor :page_number
5064
+
5065
+ # The URI of the file used to produce the image.
5066
+ # Corresponds to the JSON property `uri`
5067
+ # @return [String]
5068
+ attr_accessor :uri
5069
+
5070
+ def initialize(**args)
5071
+ update!(**args)
5072
+ end
5073
+
5074
+ # Update properties of this object
5075
+ def update!(**args)
5076
+ @page_number = args[:page_number] if args.key?(:page_number)
5077
+ @uri = args[:uri] if args.key?(:uri)
5078
+ end
5079
+ end
5080
+
5081
+ # Stores image properties, such as dominant colors.
5082
+ class GoogleCloudVisionV1p3beta1ImageProperties
5083
+ include Google::Apis::Core::Hashable
5084
+
5085
+ # Set of dominant colors and their corresponding scores.
5086
+ # Corresponds to the JSON property `dominantColors`
5087
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1DominantColorsAnnotation]
5088
+ attr_accessor :dominant_colors
5089
+
5090
+ def initialize(**args)
5091
+ update!(**args)
5092
+ end
5093
+
5094
+ # Update properties of this object
5095
+ def update!(**args)
5096
+ @dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
5097
+ end
5098
+ end
5099
+
5100
+ # Response message for the `ImportProductSets` method.
5101
+ # This message is returned by the
5102
+ # google.longrunning.Operations.GetOperation method in the returned
5103
+ # google.longrunning.Operation.response field.
5104
+ class GoogleCloudVisionV1p3beta1ImportProductSetsResponse
5105
+ include Google::Apis::Core::Hashable
5106
+
5107
+ # The list of reference_images that are imported successfully.
5108
+ # Corresponds to the JSON property `referenceImages`
5109
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ReferenceImage>]
5110
+ attr_accessor :reference_images
4247
5111
 
4248
5112
  # The rpc status for each ImportProductSet request, including both successes
4249
5113
  # and errors.
@@ -4260,25 +5124,741 @@ module Google
4260
5124
 
4261
5125
  # Update properties of this object
4262
5126
  def update!(**args)
4263
- @reference_images = args[:reference_images] if args.key?(:reference_images)
4264
- @statuses = args[:statuses] if args.key?(:statuses)
5127
+ @reference_images = args[:reference_images] if args.key?(:reference_images)
5128
+ @statuses = args[:statuses] if args.key?(:statuses)
5129
+ end
5130
+ end
5131
+
5132
+ # The desired input location and metadata.
5133
+ class GoogleCloudVisionV1p3beta1InputConfig
5134
+ include Google::Apis::Core::Hashable
5135
+
5136
+ # The Google Cloud Storage location where the input will be read from.
5137
+ # Corresponds to the JSON property `gcsSource`
5138
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1GcsSource]
5139
+ attr_accessor :gcs_source
5140
+
5141
+ # The type of the file. Currently only "application/pdf" and "image/tiff"
5142
+ # are supported. Wildcards are not supported.
5143
+ # Corresponds to the JSON property `mimeType`
5144
+ # @return [String]
5145
+ attr_accessor :mime_type
5146
+
5147
+ def initialize(**args)
5148
+ update!(**args)
5149
+ end
5150
+
5151
+ # Update properties of this object
5152
+ def update!(**args)
5153
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
5154
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
5155
+ end
5156
+ end
5157
+
5158
+ # Set of detected objects with bounding boxes.
5159
+ class GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation
5160
+ include Google::Apis::Core::Hashable
5161
+
5162
+ # A bounding polygon for the detected image annotation.
5163
+ # Corresponds to the JSON property `boundingPoly`
5164
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly]
5165
+ attr_accessor :bounding_poly
5166
+
5167
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
5168
+ # information, see
5169
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
5170
+ # Corresponds to the JSON property `languageCode`
5171
+ # @return [String]
5172
+ attr_accessor :language_code
5173
+
5174
+ # Object ID that should align with EntityAnnotation mid.
5175
+ # Corresponds to the JSON property `mid`
5176
+ # @return [String]
5177
+ attr_accessor :mid
5178
+
5179
+ # Object name, expressed in its `language_code` language.
5180
+ # Corresponds to the JSON property `name`
5181
+ # @return [String]
5182
+ attr_accessor :name
5183
+
5184
+ # Score of the result. Range [0, 1].
5185
+ # Corresponds to the JSON property `score`
5186
+ # @return [Float]
5187
+ attr_accessor :score
5188
+
5189
+ def initialize(**args)
5190
+ update!(**args)
5191
+ end
5192
+
5193
+ # Update properties of this object
5194
+ def update!(**args)
5195
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
5196
+ @language_code = args[:language_code] if args.key?(:language_code)
5197
+ @mid = args[:mid] if args.key?(:mid)
5198
+ @name = args[:name] if args.key?(:name)
5199
+ @score = args[:score] if args.key?(:score)
5200
+ end
5201
+ end
5202
+
5203
+ # Detected entity location information.
5204
+ class GoogleCloudVisionV1p3beta1LocationInfo
5205
+ include Google::Apis::Core::Hashable
5206
+
5207
+ # An object representing a latitude/longitude pair. This is expressed as a pair
5208
+ # of doubles representing degrees latitude and degrees longitude. Unless
5209
+ # specified otherwise, this must conform to the
5210
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
5211
+ # standard</a>. Values must be within normalized ranges.
5212
+ # Corresponds to the JSON property `latLng`
5213
+ # @return [Google::Apis::VisionV1p1beta1::LatLng]
5214
+ attr_accessor :lat_lng
5215
+
5216
+ def initialize(**args)
5217
+ update!(**args)
5218
+ end
5219
+
5220
+ # Update properties of this object
5221
+ def update!(**args)
5222
+ @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
5223
+ end
5224
+ end
5225
+
5226
+ # A vertex represents a 2D point in the image.
5227
+ # NOTE: the normalized vertex coordinates are relative to the original image
5228
+ # and range from 0 to 1.
5229
+ class GoogleCloudVisionV1p3beta1NormalizedVertex
5230
+ include Google::Apis::Core::Hashable
5231
+
5232
+ # X coordinate.
5233
+ # Corresponds to the JSON property `x`
5234
+ # @return [Float]
5235
+ attr_accessor :x
5236
+
5237
+ # Y coordinate.
5238
+ # Corresponds to the JSON property `y`
5239
+ # @return [Float]
5240
+ attr_accessor :y
5241
+
5242
+ def initialize(**args)
5243
+ update!(**args)
5244
+ end
5245
+
5246
+ # Update properties of this object
5247
+ def update!(**args)
5248
+ @x = args[:x] if args.key?(:x)
5249
+ @y = args[:y] if args.key?(:y)
5250
+ end
5251
+ end
5252
+
5253
+ # Contains metadata for the BatchAnnotateImages operation.
5254
+ class GoogleCloudVisionV1p3beta1OperationMetadata
5255
+ include Google::Apis::Core::Hashable
5256
+
5257
+ # The time when the batch request was received.
5258
+ # Corresponds to the JSON property `createTime`
5259
+ # @return [String]
5260
+ attr_accessor :create_time
5261
+
5262
+ # Current state of the batch operation.
5263
+ # Corresponds to the JSON property `state`
5264
+ # @return [String]
5265
+ attr_accessor :state
5266
+
5267
+ # The time when the operation result was last updated.
5268
+ # Corresponds to the JSON property `updateTime`
5269
+ # @return [String]
5270
+ attr_accessor :update_time
5271
+
5272
+ def initialize(**args)
5273
+ update!(**args)
5274
+ end
5275
+
5276
+ # Update properties of this object
5277
+ def update!(**args)
5278
+ @create_time = args[:create_time] if args.key?(:create_time)
5279
+ @state = args[:state] if args.key?(:state)
5280
+ @update_time = args[:update_time] if args.key?(:update_time)
5281
+ end
5282
+ end
5283
+
5284
+ # The desired output location and metadata.
5285
+ class GoogleCloudVisionV1p3beta1OutputConfig
5286
+ include Google::Apis::Core::Hashable
5287
+
5288
+ # The max number of response protos to put into each output JSON file on
5289
+ # Google Cloud Storage.
5290
+ # The valid range is [1, 100]. If not specified, the default value is 20.
5291
+ # For example, for one pdf file with 100 pages, 100 response protos will
5292
+ # be generated. If `batch_size` = 20, then 5 json files each
5293
+ # containing 20 response protos will be written under the prefix
5294
+ # `gcs_destination`.`uri`.
5295
+ # Currently, batch_size only applies to GcsDestination, with potential future
5296
+ # support for other output configurations.
5297
+ # Corresponds to the JSON property `batchSize`
5298
+ # @return [Fixnum]
5299
+ attr_accessor :batch_size
5300
+
5301
+ # The Google Cloud Storage location where the output will be written to.
5302
+ # Corresponds to the JSON property `gcsDestination`
5303
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1GcsDestination]
5304
+ attr_accessor :gcs_destination
5305
+
5306
+ def initialize(**args)
5307
+ update!(**args)
5308
+ end
5309
+
5310
+ # Update properties of this object
5311
+ def update!(**args)
5312
+ @batch_size = args[:batch_size] if args.key?(:batch_size)
5313
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
5314
+ end
5315
+ end
5316
+
5317
+ # Detected page from OCR.
5318
+ class GoogleCloudVisionV1p3beta1Page
5319
+ include Google::Apis::Core::Hashable
5320
+
5321
+ # List of blocks of text, images etc on this page.
5322
+ # Corresponds to the JSON property `blocks`
5323
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Block>]
5324
+ attr_accessor :blocks
5325
+
5326
+ # Confidence of the OCR results on the page. Range [0, 1].
5327
+ # Corresponds to the JSON property `confidence`
5328
+ # @return [Float]
5329
+ attr_accessor :confidence
5330
+
5331
+ # Page height. For PDFs the unit is points. For images (including
5332
+ # TIFFs) the unit is pixels.
5333
+ # Corresponds to the JSON property `height`
5334
+ # @return [Fixnum]
5335
+ attr_accessor :height
5336
+
5337
+ # Additional information detected on the structural component.
5338
+ # Corresponds to the JSON property `property`
5339
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty]
5340
+ attr_accessor :property
5341
+
5342
+ # Page width. For PDFs the unit is points. For images (including
5343
+ # TIFFs) the unit is pixels.
5344
+ # Corresponds to the JSON property `width`
5345
+ # @return [Fixnum]
5346
+ attr_accessor :width
5347
+
5348
+ def initialize(**args)
5349
+ update!(**args)
5350
+ end
5351
+
5352
+ # Update properties of this object
5353
+ def update!(**args)
5354
+ @blocks = args[:blocks] if args.key?(:blocks)
5355
+ @confidence = args[:confidence] if args.key?(:confidence)
5356
+ @height = args[:height] if args.key?(:height)
5357
+ @property = args[:property] if args.key?(:property)
5358
+ @width = args[:width] if args.key?(:width)
5359
+ end
5360
+ end
5361
+
5362
+ # Structural unit of text representing a number of words in certain order.
5363
+ class GoogleCloudVisionV1p3beta1Paragraph
5364
+ include Google::Apis::Core::Hashable
5365
+
5366
+ # A bounding polygon for the detected image annotation.
5367
+ # Corresponds to the JSON property `boundingBox`
5368
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly]
5369
+ attr_accessor :bounding_box
5370
+
5371
+ # Confidence of the OCR results for the paragraph. Range [0, 1].
5372
+ # Corresponds to the JSON property `confidence`
5373
+ # @return [Float]
5374
+ attr_accessor :confidence
5375
+
5376
+ # Additional information detected on the structural component.
5377
+ # Corresponds to the JSON property `property`
5378
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty]
5379
+ attr_accessor :property
5380
+
5381
+ # List of words in this paragraph.
5382
+ # Corresponds to the JSON property `words`
5383
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Word>]
5384
+ attr_accessor :words
5385
+
5386
+ def initialize(**args)
5387
+ update!(**args)
5388
+ end
5389
+
5390
+ # Update properties of this object
5391
+ def update!(**args)
5392
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
5393
+ @confidence = args[:confidence] if args.key?(:confidence)
5394
+ @property = args[:property] if args.key?(:property)
5395
+ @words = args[:words] if args.key?(:words)
5396
+ end
5397
+ end
5398
+
5399
+ # A 3D position in the image, used primarily for Face detection landmarks.
5400
+ # A valid Position must have both x and y coordinates.
5401
+ # The position coordinates are in the same scale as the original image.
5402
+ class GoogleCloudVisionV1p3beta1Position
5403
+ include Google::Apis::Core::Hashable
5404
+
5405
+ # X coordinate.
5406
+ # Corresponds to the JSON property `x`
5407
+ # @return [Float]
5408
+ attr_accessor :x
5409
+
5410
+ # Y coordinate.
5411
+ # Corresponds to the JSON property `y`
5412
+ # @return [Float]
5413
+ attr_accessor :y
5414
+
5415
+ # Z coordinate (or depth).
5416
+ # Corresponds to the JSON property `z`
5417
+ # @return [Float]
5418
+ attr_accessor :z
5419
+
5420
+ def initialize(**args)
5421
+ update!(**args)
5422
+ end
5423
+
5424
+ # Update properties of this object
5425
+ def update!(**args)
5426
+ @x = args[:x] if args.key?(:x)
5427
+ @y = args[:y] if args.key?(:y)
5428
+ @z = args[:z] if args.key?(:z)
5429
+ end
5430
+ end
5431
+
5432
+ # A Product contains ReferenceImages.
5433
+ class GoogleCloudVisionV1p3beta1Product
5434
+ include Google::Apis::Core::Hashable
5435
+
5436
+ # User-provided metadata to be stored with this product. Must be at most 4096
5437
+ # characters long.
5438
+ # Corresponds to the JSON property `description`
5439
+ # @return [String]
5440
+ attr_accessor :description
5441
+
5442
+ # The user-provided name for this Product. Must not be empty. Must be at most
5443
+ # 4096 characters long.
5444
+ # Corresponds to the JSON property `displayName`
5445
+ # @return [String]
5446
+ attr_accessor :display_name
5447
+
5448
+ # The resource name of the product.
5449
+ # Format is:
5450
+ # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
5451
+ # This field is ignored when creating a product.
5452
+ # Corresponds to the JSON property `name`
5453
+ # @return [String]
5454
+ attr_accessor :name
5455
+
5456
+ # The category for the product identified by the reference image. This should
5457
+ # be either "homegoods" or "apparel".
5458
+ # This field is immutable.
5459
+ # Corresponds to the JSON property `productCategory`
5460
+ # @return [String]
5461
+ attr_accessor :product_category
5462
+
5463
+ # Key-value pairs that can be attached to a product. At query time,
5464
+ # constraints can be specified based on the product_labels.
5465
+ # Note that integer values can be provided as strings, e.g. "1199". Only
5466
+ # strings with integer values can match a range-based restriction which is
5467
+ # to be supported soon.
5468
+ # Multiple values can be assigned to the same key. One product may have up to
5469
+ # 100 product_labels.
5470
+ # Corresponds to the JSON property `productLabels`
5471
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ProductKeyValue>]
5472
+ attr_accessor :product_labels
5473
+
5474
+ def initialize(**args)
5475
+ update!(**args)
5476
+ end
5477
+
5478
+ # Update properties of this object
5479
+ def update!(**args)
5480
+ @description = args[:description] if args.key?(:description)
5481
+ @display_name = args[:display_name] if args.key?(:display_name)
5482
+ @name = args[:name] if args.key?(:name)
5483
+ @product_category = args[:product_category] if args.key?(:product_category)
5484
+ @product_labels = args[:product_labels] if args.key?(:product_labels)
5485
+ end
5486
+ end
5487
+
5488
+ # A product label represented as a key-value pair.
5489
+ class GoogleCloudVisionV1p3beta1ProductKeyValue
5490
+ include Google::Apis::Core::Hashable
5491
+
5492
+ # The key of the label attached to the product. Cannot be empty and cannot
5493
+ # exceed 128 bytes.
5494
+ # Corresponds to the JSON property `key`
5495
+ # @return [String]
5496
+ attr_accessor :key
5497
+
5498
+ # The value of the label attached to the product. Cannot be empty and
5499
+ # cannot exceed 128 bytes.
5500
+ # Corresponds to the JSON property `value`
5501
+ # @return [String]
5502
+ attr_accessor :value
5503
+
5504
+ def initialize(**args)
5505
+ update!(**args)
5506
+ end
5507
+
5508
+ # Update properties of this object
5509
+ def update!(**args)
5510
+ @key = args[:key] if args.key?(:key)
5511
+ @value = args[:value] if args.key?(:value)
5512
+ end
5513
+ end
5514
+
5515
+ # Results for a product search request.
5516
+ class GoogleCloudVisionV1p3beta1ProductSearchResults
5517
+ include Google::Apis::Core::Hashable
5518
+
5519
+ # Timestamp of the index which provided these results. Changes made after
5520
+ # this time are not reflected in the current results.
5521
+ # Corresponds to the JSON property `indexTime`
5522
+ # @return [String]
5523
+ attr_accessor :index_time
5524
+
5525
+ # List of results, one for each product match.
5526
+ # Corresponds to the JSON property `results`
5527
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult>]
5528
+ attr_accessor :results
5529
+
5530
+ def initialize(**args)
5531
+ update!(**args)
5532
+ end
5533
+
5534
+ # Update properties of this object
5535
+ def update!(**args)
5536
+ @index_time = args[:index_time] if args.key?(:index_time)
5537
+ @results = args[:results] if args.key?(:results)
5538
+ end
5539
+ end
5540
+
5541
+ # Information about a product.
5542
+ class GoogleCloudVisionV1p3beta1ProductSearchResultsResult
5543
+ include Google::Apis::Core::Hashable
5544
+
5545
+ # The resource name of the image from the product that is the closest match
5546
+ # to the query.
5547
+ # Corresponds to the JSON property `image`
5548
+ # @return [String]
5549
+ attr_accessor :image
5550
+
5551
+ # A Product contains ReferenceImages.
5552
+ # Corresponds to the JSON property `product`
5553
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Product]
5554
+ attr_accessor :product
5555
+
5556
+ # A confidence level on the match, ranging from 0 (no confidence) to
5557
+ # 1 (full confidence).
5558
+ # This field is returned only if `view` is set to `FULL` in
5559
+ # the request.
5560
+ # Corresponds to the JSON property `score`
5561
+ # @return [Float]
5562
+ attr_accessor :score
5563
+
5564
+ def initialize(**args)
5565
+ update!(**args)
5566
+ end
5567
+
5568
+ # Update properties of this object
5569
+ def update!(**args)
5570
+ @image = args[:image] if args.key?(:image)
5571
+ @product = args[:product] if args.key?(:product)
5572
+ @score = args[:score] if args.key?(:score)
5573
+ end
5574
+ end
5575
+
5576
+ # A `Property` consists of a user-supplied name/value pair.
5577
+ class GoogleCloudVisionV1p3beta1Property
5578
+ include Google::Apis::Core::Hashable
5579
+
5580
+ # Name of the property.
5581
+ # Corresponds to the JSON property `name`
5582
+ # @return [String]
5583
+ attr_accessor :name
5584
+
5585
+ # Value of numeric properties.
5586
+ # Corresponds to the JSON property `uint64Value`
5587
+ # @return [Fixnum]
5588
+ attr_accessor :uint64_value
5589
+
5590
+ # Value of the property.
5591
+ # Corresponds to the JSON property `value`
5592
+ # @return [String]
5593
+ attr_accessor :value
5594
+
5595
+ def initialize(**args)
5596
+ update!(**args)
5597
+ end
5598
+
5599
+ # Update properties of this object
5600
+ def update!(**args)
5601
+ @name = args[:name] if args.key?(:name)
5602
+ @uint64_value = args[:uint64_value] if args.key?(:uint64_value)
5603
+ @value = args[:value] if args.key?(:value)
5604
+ end
5605
+ end
5606
+
5607
+ # A `ReferenceImage` represents a product image and its associated metadata,
5608
+ # such as bounding boxes.
5609
+ class GoogleCloudVisionV1p3beta1ReferenceImage
5610
+ include Google::Apis::Core::Hashable
5611
+
5612
+ # Bounding polygons around the areas of interest in the reference image.
5613
+ # Optional. If this field is empty, the system will try to detect regions of
5614
+ # interest. At most 10 bounding polygons will be used.
5615
+ # The provided shape is converted into a non-rotated rectangle. Once
5616
+ # converted, the small edge of the rectangle must be greater than or equal
5617
+ # to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5
5618
+ # is not).
5619
+ # Corresponds to the JSON property `boundingPolys`
5620
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly>]
5621
+ attr_accessor :bounding_polys
5622
+
5623
+ # The resource name of the reference image.
5624
+ # Format is:
5625
+ # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/
5626
+ # IMAGE_ID`.
5627
+ # This field is ignored when creating a reference image.
5628
+ # Corresponds to the JSON property `name`
5629
+ # @return [String]
5630
+ attr_accessor :name
5631
+
5632
+ # The Google Cloud Storage URI of the reference image.
5633
+ # The URI must start with `gs://`.
5634
+ # Required.
5635
+ # Corresponds to the JSON property `uri`
5636
+ # @return [String]
5637
+ attr_accessor :uri
5638
+
5639
+ def initialize(**args)
5640
+ update!(**args)
5641
+ end
5642
+
5643
+ # Update properties of this object
5644
+ def update!(**args)
5645
+ @bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys)
5646
+ @name = args[:name] if args.key?(:name)
5647
+ @uri = args[:uri] if args.key?(:uri)
5648
+ end
5649
+ end
5650
+
5651
+ # Set of features pertaining to the image, computed by computer vision
5652
+ # methods over safe-search verticals (for example, adult, spoof, medical,
5653
+ # violence).
5654
+ class GoogleCloudVisionV1p3beta1SafeSearchAnnotation
5655
+ include Google::Apis::Core::Hashable
5656
+
5657
+ # Represents the adult content likelihood for the image. Adult content may
5658
+ # contain elements such as nudity, pornographic images or cartoons, or
5659
+ # sexual activities.
5660
+ # Corresponds to the JSON property `adult`
5661
+ # @return [String]
5662
+ attr_accessor :adult
5663
+
5664
+ # Likelihood that this is a medical image.
5665
+ # Corresponds to the JSON property `medical`
5666
+ # @return [String]
5667
+ attr_accessor :medical
5668
+
5669
+ # Likelihood that the request image contains racy content. Racy content may
5670
+ # include (but is not limited to) skimpy or sheer clothing, strategically
5671
+ # covered nudity, lewd or provocative poses, or close-ups of sensitive
5672
+ # body areas.
5673
+ # Corresponds to the JSON property `racy`
5674
+ # @return [String]
5675
+ attr_accessor :racy
5676
+
5677
+ # Spoof likelihood. The likelihood that an modification
5678
+ # was made to the image's canonical version to make it appear
5679
+ # funny or offensive.
5680
+ # Corresponds to the JSON property `spoof`
5681
+ # @return [String]
5682
+ attr_accessor :spoof
5683
+
5684
+ # Likelihood that this image contains violent content.
5685
+ # Corresponds to the JSON property `violence`
5686
+ # @return [String]
5687
+ attr_accessor :violence
5688
+
5689
+ def initialize(**args)
5690
+ update!(**args)
5691
+ end
5692
+
5693
+ # Update properties of this object
5694
+ def update!(**args)
5695
+ @adult = args[:adult] if args.key?(:adult)
5696
+ @medical = args[:medical] if args.key?(:medical)
5697
+ @racy = args[:racy] if args.key?(:racy)
5698
+ @spoof = args[:spoof] if args.key?(:spoof)
5699
+ @violence = args[:violence] if args.key?(:violence)
5700
+ end
5701
+ end
5702
+
5703
+ # A single symbol representation.
5704
+ class GoogleCloudVisionV1p3beta1Symbol
5705
+ include Google::Apis::Core::Hashable
5706
+
5707
+ # A bounding polygon for the detected image annotation.
5708
+ # Corresponds to the JSON property `boundingBox`
5709
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly]
5710
+ attr_accessor :bounding_box
5711
+
5712
+ # Confidence of the OCR results for the symbol. Range [0, 1].
5713
+ # Corresponds to the JSON property `confidence`
5714
+ # @return [Float]
5715
+ attr_accessor :confidence
5716
+
5717
+ # Additional information detected on the structural component.
5718
+ # Corresponds to the JSON property `property`
5719
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty]
5720
+ attr_accessor :property
5721
+
5722
+ # The actual UTF-8 representation of the symbol.
5723
+ # Corresponds to the JSON property `text`
5724
+ # @return [String]
5725
+ attr_accessor :text
5726
+
5727
+ def initialize(**args)
5728
+ update!(**args)
5729
+ end
5730
+
5731
+ # Update properties of this object
5732
+ def update!(**args)
5733
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
5734
+ @confidence = args[:confidence] if args.key?(:confidence)
5735
+ @property = args[:property] if args.key?(:property)
5736
+ @text = args[:text] if args.key?(:text)
5737
+ end
5738
+ end
5739
+
5740
+ # TextAnnotation contains a structured representation of OCR extracted text.
5741
+ # The hierarchy of an OCR extracted text structure is like this:
5742
+ # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
5743
+ # Each structural component, starting from Page, may further have their own
5744
+ # properties. Properties describe detected languages, breaks etc.. Please refer
5745
+ # to the TextAnnotation.TextProperty message definition below for more
5746
+ # detail.
5747
+ class GoogleCloudVisionV1p3beta1TextAnnotation
5748
+ include Google::Apis::Core::Hashable
5749
+
5750
+ # List of pages detected by OCR.
5751
+ # Corresponds to the JSON property `pages`
5752
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Page>]
5753
+ attr_accessor :pages
5754
+
5755
+ # UTF-8 text detected on the pages.
5756
+ # Corresponds to the JSON property `text`
5757
+ # @return [String]
5758
+ attr_accessor :text
5759
+
5760
+ def initialize(**args)
5761
+ update!(**args)
5762
+ end
5763
+
5764
+ # Update properties of this object
5765
+ def update!(**args)
5766
+ @pages = args[:pages] if args.key?(:pages)
5767
+ @text = args[:text] if args.key?(:text)
5768
+ end
5769
+ end
5770
+
5771
+ # Detected start or end of a structural component.
5772
+ class GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak
5773
+ include Google::Apis::Core::Hashable
5774
+
5775
+ # True if break prepends the element.
5776
+ # Corresponds to the JSON property `isPrefix`
5777
+ # @return [Boolean]
5778
+ attr_accessor :is_prefix
5779
+ alias_method :is_prefix?, :is_prefix
5780
+
5781
+ # Detected break type.
5782
+ # Corresponds to the JSON property `type`
5783
+ # @return [String]
5784
+ attr_accessor :type
5785
+
5786
+ def initialize(**args)
5787
+ update!(**args)
5788
+ end
5789
+
5790
+ # Update properties of this object
5791
+ def update!(**args)
5792
+ @is_prefix = args[:is_prefix] if args.key?(:is_prefix)
5793
+ @type = args[:type] if args.key?(:type)
5794
+ end
5795
+ end
5796
+
5797
+ # Detected language for a structural component.
5798
+ class GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage
5799
+ include Google::Apis::Core::Hashable
5800
+
5801
+ # Confidence of detected language. Range [0, 1].
5802
+ # Corresponds to the JSON property `confidence`
5803
+ # @return [Float]
5804
+ attr_accessor :confidence
5805
+
5806
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
5807
+ # information, see
5808
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
5809
+ # Corresponds to the JSON property `languageCode`
5810
+ # @return [String]
5811
+ attr_accessor :language_code
5812
+
5813
+ def initialize(**args)
5814
+ update!(**args)
5815
+ end
5816
+
5817
+ # Update properties of this object
5818
+ def update!(**args)
5819
+ @confidence = args[:confidence] if args.key?(:confidence)
5820
+ @language_code = args[:language_code] if args.key?(:language_code)
5821
+ end
5822
+ end
5823
+
5824
+ # Additional information detected on the structural component.
5825
+ class GoogleCloudVisionV1p3beta1TextAnnotationTextProperty
5826
+ include Google::Apis::Core::Hashable
5827
+
5828
+ # Detected start or end of a structural component.
5829
+ # Corresponds to the JSON property `detectedBreak`
5830
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak]
5831
+ attr_accessor :detected_break
5832
+
5833
+ # A list of detected languages together with confidence.
5834
+ # Corresponds to the JSON property `detectedLanguages`
5835
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage>]
5836
+ attr_accessor :detected_languages
5837
+
5838
+ def initialize(**args)
5839
+ update!(**args)
5840
+ end
5841
+
5842
+ # Update properties of this object
5843
+ def update!(**args)
5844
+ @detected_break = args[:detected_break] if args.key?(:detected_break)
5845
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
4265
5846
  end
4266
5847
  end
4267
5848
 
4268
5849
  # A vertex represents a 2D point in the image.
4269
- # NOTE: the normalized vertex coordinates are relative to the original image
4270
- # and range from 0 to 1.
4271
- class GoogleCloudVisionV1p3beta1NormalizedVertex
5850
+ # NOTE: the vertex coordinates are in the same scale as the original image.
5851
+ class GoogleCloudVisionV1p3beta1Vertex
4272
5852
  include Google::Apis::Core::Hashable
4273
5853
 
4274
5854
  # X coordinate.
4275
5855
  # Corresponds to the JSON property `x`
4276
- # @return [Float]
5856
+ # @return [Fixnum]
4277
5857
  attr_accessor :x
4278
5858
 
4279
5859
  # Y coordinate.
4280
5860
  # Corresponds to the JSON property `y`
4281
- # @return [Float]
5861
+ # @return [Fixnum]
4282
5862
  attr_accessor :y
4283
5863
 
4284
5864
  def initialize(**args)
@@ -4292,37 +5872,78 @@ module Google
4292
5872
  end
4293
5873
  end
4294
5874
 
4295
- # A `ReferenceImage` represents a product image and its associated metadata,
4296
- # such as bounding boxes.
4297
- class GoogleCloudVisionV1p3beta1ReferenceImage
5875
+ # Relevant information for the image from the Internet.
5876
+ class GoogleCloudVisionV1p3beta1WebDetection
4298
5877
  include Google::Apis::Core::Hashable
4299
5878
 
4300
- # Bounding polygons around the areas of interest in the reference image.
4301
- # Optional. If this field is empty, the system will try to detect regions of
4302
- # interest. At most 10 bounding polygons will be used.
4303
- # The provided shape is converted into a non-rotated rectangle. Once
4304
- # converted, the small edge of the rectangle must be greater than or equal
4305
- # to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5
4306
- # is not).
4307
- # Corresponds to the JSON property `boundingPolys`
4308
- # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly>]
4309
- attr_accessor :bounding_polys
5879
+ # The service's best guess as to the topic of the request image.
5880
+ # Inferred from similar images on the open web.
5881
+ # Corresponds to the JSON property `bestGuessLabels`
5882
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebLabel>]
5883
+ attr_accessor :best_guess_labels
4310
5884
 
4311
- # The resource name of the reference image.
4312
- # Format is:
4313
- # `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/
4314
- # IMAGE_ID`.
4315
- # This field is ignored when creating a reference image.
4316
- # Corresponds to the JSON property `name`
5885
+ # Fully matching images from the Internet.
5886
+ # Can include resized copies of the query image.
5887
+ # Corresponds to the JSON property `fullMatchingImages`
5888
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage>]
5889
+ attr_accessor :full_matching_images
5890
+
5891
+ # Web pages containing the matching images from the Internet.
5892
+ # Corresponds to the JSON property `pagesWithMatchingImages`
5893
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebPage>]
5894
+ attr_accessor :pages_with_matching_images
5895
+
5896
+ # Partial matching images from the Internet.
5897
+ # Those images are similar enough to share some key-point features. For
5898
+ # example an original image will likely have partial matching for its crops.
5899
+ # Corresponds to the JSON property `partialMatchingImages`
5900
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage>]
5901
+ attr_accessor :partial_matching_images
5902
+
5903
+ # The visually similar image results.
5904
+ # Corresponds to the JSON property `visuallySimilarImages`
5905
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage>]
5906
+ attr_accessor :visually_similar_images
5907
+
5908
+ # Deduced entities from similar images on the Internet.
5909
+ # Corresponds to the JSON property `webEntities`
5910
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebEntity>]
5911
+ attr_accessor :web_entities
5912
+
5913
+ def initialize(**args)
5914
+ update!(**args)
5915
+ end
5916
+
5917
+ # Update properties of this object
5918
+ def update!(**args)
5919
+ @best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
5920
+ @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
5921
+ @pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
5922
+ @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
5923
+ @visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
5924
+ @web_entities = args[:web_entities] if args.key?(:web_entities)
5925
+ end
5926
+ end
5927
+
5928
+ # Entity deduced from similar images on the Internet.
5929
+ class GoogleCloudVisionV1p3beta1WebDetectionWebEntity
5930
+ include Google::Apis::Core::Hashable
5931
+
5932
+ # Canonical description of the entity, in English.
5933
+ # Corresponds to the JSON property `description`
4317
5934
  # @return [String]
4318
- attr_accessor :name
5935
+ attr_accessor :description
4319
5936
 
4320
- # The Google Cloud Storage URI of the reference image.
4321
- # The URI must start with `gs://`.
4322
- # Required.
4323
- # Corresponds to the JSON property `uri`
5937
+ # Opaque entity ID.
5938
+ # Corresponds to the JSON property `entityId`
4324
5939
  # @return [String]
4325
- attr_accessor :uri
5940
+ attr_accessor :entity_id
5941
+
5942
+ # Overall relevancy score for the entity.
5943
+ # Not normalized and not comparable across different image queries.
5944
+ # Corresponds to the JSON property `score`
5945
+ # @return [Float]
5946
+ attr_accessor :score
4326
5947
 
4327
5948
  def initialize(**args)
4328
5949
  update!(**args)
@@ -4330,26 +5951,25 @@ module Google
4330
5951
 
4331
5952
  # Update properties of this object
4332
5953
  def update!(**args)
4333
- @bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys)
4334
- @name = args[:name] if args.key?(:name)
4335
- @uri = args[:uri] if args.key?(:uri)
5954
+ @description = args[:description] if args.key?(:description)
5955
+ @entity_id = args[:entity_id] if args.key?(:entity_id)
5956
+ @score = args[:score] if args.key?(:score)
4336
5957
  end
4337
5958
  end
4338
5959
 
4339
- # A vertex represents a 2D point in the image.
4340
- # NOTE: the vertex coordinates are in the same scale as the original image.
4341
- class GoogleCloudVisionV1p3beta1Vertex
5960
+ # Metadata for online images.
5961
+ class GoogleCloudVisionV1p3beta1WebDetectionWebImage
4342
5962
  include Google::Apis::Core::Hashable
4343
5963
 
4344
- # X coordinate.
4345
- # Corresponds to the JSON property `x`
4346
- # @return [Fixnum]
4347
- attr_accessor :x
5964
+ # (Deprecated) Overall relevancy score for the image.
5965
+ # Corresponds to the JSON property `score`
5966
+ # @return [Float]
5967
+ attr_accessor :score
4348
5968
 
4349
- # Y coordinate.
4350
- # Corresponds to the JSON property `y`
4351
- # @return [Fixnum]
4352
- attr_accessor :y
5969
+ # The result image URL.
5970
+ # Corresponds to the JSON property `url`
5971
+ # @return [String]
5972
+ attr_accessor :url
4353
5973
 
4354
5974
  def initialize(**args)
4355
5975
  update!(**args)
@@ -4357,8 +5977,120 @@ module Google
4357
5977
 
4358
5978
  # Update properties of this object
4359
5979
  def update!(**args)
4360
- @x = args[:x] if args.key?(:x)
4361
- @y = args[:y] if args.key?(:y)
5980
+ @score = args[:score] if args.key?(:score)
5981
+ @url = args[:url] if args.key?(:url)
5982
+ end
5983
+ end
5984
+
5985
+ # Label to provide extra metadata for the web detection.
5986
+ class GoogleCloudVisionV1p3beta1WebDetectionWebLabel
5987
+ include Google::Apis::Core::Hashable
5988
+
5989
+ # Label for extra metadata.
5990
+ # Corresponds to the JSON property `label`
5991
+ # @return [String]
5992
+ attr_accessor :label
5993
+
5994
+ # The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
5995
+ # For more information, see
5996
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
5997
+ # Corresponds to the JSON property `languageCode`
5998
+ # @return [String]
5999
+ attr_accessor :language_code
6000
+
6001
+ def initialize(**args)
6002
+ update!(**args)
6003
+ end
6004
+
6005
+ # Update properties of this object
6006
+ def update!(**args)
6007
+ @label = args[:label] if args.key?(:label)
6008
+ @language_code = args[:language_code] if args.key?(:language_code)
6009
+ end
6010
+ end
6011
+
6012
+ # Metadata for web pages.
6013
+ class GoogleCloudVisionV1p3beta1WebDetectionWebPage
6014
+ include Google::Apis::Core::Hashable
6015
+
6016
+ # Fully matching images on the page.
6017
+ # Can include resized copies of the query image.
6018
+ # Corresponds to the JSON property `fullMatchingImages`
6019
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage>]
6020
+ attr_accessor :full_matching_images
6021
+
6022
+ # Title for the web page, may contain HTML markups.
6023
+ # Corresponds to the JSON property `pageTitle`
6024
+ # @return [String]
6025
+ attr_accessor :page_title
6026
+
6027
+ # Partial matching images on the page.
6028
+ # Those images are similar enough to share some key-point features. For
6029
+ # example an original image will likely have partial matching for its
6030
+ # crops.
6031
+ # Corresponds to the JSON property `partialMatchingImages`
6032
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1WebDetectionWebImage>]
6033
+ attr_accessor :partial_matching_images
6034
+
6035
+ # (Deprecated) Overall relevancy score for the web page.
6036
+ # Corresponds to the JSON property `score`
6037
+ # @return [Float]
6038
+ attr_accessor :score
6039
+
6040
+ # The result web page URL.
6041
+ # Corresponds to the JSON property `url`
6042
+ # @return [String]
6043
+ attr_accessor :url
6044
+
6045
+ def initialize(**args)
6046
+ update!(**args)
6047
+ end
6048
+
6049
+ # Update properties of this object
6050
+ def update!(**args)
6051
+ @full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
6052
+ @page_title = args[:page_title] if args.key?(:page_title)
6053
+ @partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
6054
+ @score = args[:score] if args.key?(:score)
6055
+ @url = args[:url] if args.key?(:url)
6056
+ end
6057
+ end
6058
+
6059
+ # A word representation.
6060
+ class GoogleCloudVisionV1p3beta1Word
6061
+ include Google::Apis::Core::Hashable
6062
+
6063
+ # A bounding polygon for the detected image annotation.
6064
+ # Corresponds to the JSON property `boundingBox`
6065
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1BoundingPoly]
6066
+ attr_accessor :bounding_box
6067
+
6068
+ # Confidence of the OCR results for the word. Range [0, 1].
6069
+ # Corresponds to the JSON property `confidence`
6070
+ # @return [Float]
6071
+ attr_accessor :confidence
6072
+
6073
+ # Additional information detected on the structural component.
6074
+ # Corresponds to the JSON property `property`
6075
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty]
6076
+ attr_accessor :property
6077
+
6078
+ # List of symbols in the word.
6079
+ # The order of the symbols follows the natural reading order.
6080
+ # Corresponds to the JSON property `symbols`
6081
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p3beta1Symbol>]
6082
+ attr_accessor :symbols
6083
+
6084
+ def initialize(**args)
6085
+ update!(**args)
6086
+ end
6087
+
6088
+ # Update properties of this object
6089
+ def update!(**args)
6090
+ @bounding_box = args[:bounding_box] if args.key?(:bounding_box)
6091
+ @confidence = args[:confidence] if args.key?(:confidence)
6092
+ @property = args[:property] if args.key?(:property)
6093
+ @symbols = args[:symbols] if args.key?(:symbols)
4362
6094
  end
4363
6095
  end
4364
6096