google-api-client 0.42.0 → 0.44.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (887) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +501 -0
  3. data/docs/oauth-server.md +4 -6
  4. data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
  5. data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +8 -13
  6. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +2 -3
  7. data/generated/google/apis/accessapproval_v1.rb +1 -1
  8. data/generated/google/apis/accessapproval_v1/classes.rb +57 -83
  9. data/generated/google/apis/accessapproval_v1/representations.rb +1 -0
  10. data/generated/google/apis/accessapproval_v1/service.rb +93 -132
  11. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  12. data/generated/google/apis/accesscontextmanager_v1/classes.rb +198 -236
  13. data/generated/google/apis/accesscontextmanager_v1/service.rb +128 -171
  14. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  15. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +153 -184
  16. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +82 -111
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +532 -651
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +467 -631
  21. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  22. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +47 -2
  23. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +18 -0
  24. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  25. data/generated/google/apis/adexperiencereport_v1/classes.rb +11 -18
  26. data/generated/google/apis/adexperiencereport_v1/service.rb +2 -3
  27. data/generated/google/apis/admin_datatransfer_v1.rb +6 -4
  28. data/generated/google/apis/admin_datatransfer_v1/classes.rb +16 -4
  29. data/generated/google/apis/admin_datatransfer_v1/service.rb +30 -48
  30. data/generated/google/apis/admin_directory_v1.rb +6 -8
  31. data/generated/google/apis/admin_directory_v1/classes.rb +224 -243
  32. data/generated/google/apis/admin_directory_v1/representations.rb +14 -40
  33. data/generated/google/apis/admin_directory_v1/service.rb +475 -1026
  34. data/generated/google/apis/admin_reports_v1.rb +6 -5
  35. data/generated/google/apis/admin_reports_v1/classes.rb +31 -33
  36. data/generated/google/apis/admin_reports_v1/service.rb +131 -187
  37. data/generated/google/apis/admob_v1.rb +1 -1
  38. data/generated/google/apis/admob_v1/classes.rb +139 -268
  39. data/generated/google/apis/admob_v1/service.rb +11 -13
  40. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  41. data/generated/google/apis/alertcenter_v1beta1/classes.rb +107 -138
  42. data/generated/google/apis/alertcenter_v1beta1/service.rb +50 -55
  43. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  44. data/generated/google/apis/analyticsreporting_v4/classes.rb +315 -399
  45. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  46. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +193 -220
  47. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +55 -61
  48. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  49. data/generated/google/apis/androidenterprise_v1/classes.rb +452 -557
  50. data/generated/google/apis/androidenterprise_v1/service.rb +181 -240
  51. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  52. data/generated/google/apis/androidmanagement_v1/classes.rb +98 -61
  53. data/generated/google/apis/androidmanagement_v1/representations.rb +17 -0
  54. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  55. data/generated/google/apis/androidpublisher_v3/classes.rb +281 -342
  56. data/generated/google/apis/androidpublisher_v3/service.rb +127 -155
  57. data/generated/google/apis/apigee_v1.rb +6 -8
  58. data/generated/google/apis/apigee_v1/classes.rb +925 -1226
  59. data/generated/google/apis/apigee_v1/representations.rb +66 -2
  60. data/generated/google/apis/apigee_v1/service.rb +1000 -1142
  61. data/generated/google/apis/appengine_v1.rb +1 -1
  62. data/generated/google/apis/appengine_v1/classes.rb +45 -35
  63. data/generated/google/apis/appengine_v1/representations.rb +2 -0
  64. data/generated/google/apis/appengine_v1/service.rb +38 -44
  65. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  66. data/generated/google/apis/appengine_v1alpha/classes.rb +9 -11
  67. data/generated/google/apis/appengine_v1beta.rb +1 -1
  68. data/generated/google/apis/appengine_v1beta/classes.rb +45 -35
  69. data/generated/google/apis/appengine_v1beta/representations.rb +2 -0
  70. data/generated/google/apis/appengine_v1beta/service.rb +37 -43
  71. data/generated/google/apis/appsmarket_v2.rb +1 -1
  72. data/generated/google/apis/appsmarket_v2/classes.rb +14 -16
  73. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  74. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +235 -337
  75. data/generated/google/apis/artifactregistry_v1beta1/service.rb +44 -57
  76. data/generated/google/apis/bigquery_v2.rb +1 -1
  77. data/generated/google/apis/bigquery_v2/classes.rb +538 -541
  78. data/generated/google/apis/bigquery_v2/representations.rb +71 -0
  79. data/generated/google/apis/bigquery_v2/service.rb +32 -40
  80. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  81. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +192 -337
  82. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +29 -32
  83. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  84. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +132 -158
  85. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +232 -282
  86. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  87. data/generated/google/apis/bigqueryreservation_v1/classes.rb +116 -123
  88. data/generated/google/apis/bigqueryreservation_v1/representations.rb +2 -0
  89. data/generated/google/apis/bigqueryreservation_v1/service.rb +137 -183
  90. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  91. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +88 -100
  92. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +77 -100
  93. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  94. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +93 -98
  95. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +2 -0
  96. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +114 -151
  97. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  98. data/generated/google/apis/bigtableadmin_v1/classes.rb +317 -0
  99. data/generated/google/apis/bigtableadmin_v1/representations.rb +129 -0
  100. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  101. data/generated/google/apis/bigtableadmin_v2/classes.rb +405 -0
  102. data/generated/google/apis/bigtableadmin_v2/representations.rb +175 -0
  103. data/generated/google/apis/bigtableadmin_v2/service.rb +298 -0
  104. data/generated/google/apis/billingbudgets_v1beta1.rb +4 -1
  105. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +103 -109
  106. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
  107. data/generated/google/apis/billingbudgets_v1beta1/service.rb +30 -33
  108. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  109. data/generated/google/apis/binaryauthorization_v1/classes.rb +239 -354
  110. data/generated/google/apis/binaryauthorization_v1/service.rb +74 -89
  111. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  112. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +239 -354
  113. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +74 -89
  114. data/generated/google/apis/blogger_v2.rb +2 -3
  115. data/generated/google/apis/blogger_v2/classes.rb +1 -2
  116. data/generated/google/apis/blogger_v2/service.rb +1 -2
  117. data/generated/google/apis/blogger_v3.rb +2 -3
  118. data/generated/google/apis/blogger_v3/classes.rb +1 -2
  119. data/generated/google/apis/blogger_v3/service.rb +1 -2
  120. data/generated/google/apis/books_v1.rb +1 -1
  121. data/generated/google/apis/books_v1/classes.rb +140 -159
  122. data/generated/google/apis/books_v1/service.rb +47 -49
  123. data/generated/google/apis/calendar_v3.rb +1 -1
  124. data/generated/google/apis/chat_v1.rb +1 -1
  125. data/generated/google/apis/chat_v1/classes.rb +211 -106
  126. data/generated/google/apis/chat_v1/representations.rb +63 -0
  127. data/generated/google/apis/chat_v1/service.rb +95 -36
  128. data/generated/google/apis/chromeuxreport_v1.rb +1 -1
  129. data/generated/google/apis/chromeuxreport_v1/classes.rb +68 -57
  130. data/generated/google/apis/chromeuxreport_v1/representations.rb +2 -0
  131. data/generated/google/apis/civicinfo_v2.rb +1 -1
  132. data/generated/google/apis/classroom_v1.rb +1 -1
  133. data/generated/google/apis/classroom_v1/classes.rb +250 -365
  134. data/generated/google/apis/classroom_v1/service.rb +643 -899
  135. data/generated/google/apis/cloudasset_v1.rb +1 -1
  136. data/generated/google/apis/cloudasset_v1/classes.rb +713 -1036
  137. data/generated/google/apis/cloudasset_v1/service.rb +131 -156
  138. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  139. data/generated/google/apis/cloudasset_v1beta1/classes.rb +531 -775
  140. data/generated/google/apis/cloudasset_v1beta1/service.rb +59 -75
  141. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  142. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +204 -349
  143. data/generated/google/apis/cloudasset_v1p1beta1/service.rb +35 -47
  144. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  145. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +220 -276
  146. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +75 -93
  147. data/generated/google/apis/{securitycenter_v1p1alpha1.rb → cloudasset_v1p5beta1.rb} +9 -10
  148. data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +1300 -0
  149. data/generated/google/apis/cloudasset_v1p5beta1/representations.rb +399 -0
  150. data/generated/google/apis/cloudasset_v1p5beta1/service.rb +126 -0
  151. data/generated/google/apis/cloudbilling_v1.rb +7 -1
  152. data/generated/google/apis/cloudbilling_v1/classes.rb +284 -445
  153. data/generated/google/apis/cloudbilling_v1/service.rb +104 -124
  154. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  155. data/generated/google/apis/cloudbuild_v1/classes.rb +292 -344
  156. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  157. data/generated/google/apis/cloudbuild_v1/service.rb +48 -63
  158. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  159. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +283 -329
  160. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
  161. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +15 -18
  162. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  163. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +269 -313
  164. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
  165. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +22 -28
  166. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  167. data/generated/google/apis/clouddebugger_v2/classes.rb +185 -252
  168. data/generated/google/apis/clouddebugger_v2/service.rb +53 -59
  169. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  170. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +132 -154
  171. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +1 -0
  172. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +53 -69
  173. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  174. data/generated/google/apis/cloudfunctions_v1/classes.rb +323 -538
  175. data/generated/google/apis/cloudfunctions_v1/representations.rb +0 -17
  176. data/generated/google/apis/cloudfunctions_v1/service.rb +79 -93
  177. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  178. data/generated/google/apis/cloudidentity_v1/classes.rb +625 -75
  179. data/generated/google/apis/cloudidentity_v1/representations.rb +203 -0
  180. data/generated/google/apis/cloudidentity_v1/service.rb +43 -61
  181. data/generated/google/apis/cloudidentity_v1beta1.rb +4 -1
  182. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1051 -298
  183. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +346 -22
  184. data/generated/google/apis/cloudidentity_v1beta1/service.rb +742 -96
  185. data/generated/google/apis/cloudiot_v1.rb +1 -1
  186. data/generated/google/apis/cloudiot_v1/classes.rb +263 -373
  187. data/generated/google/apis/cloudiot_v1/service.rb +147 -154
  188. data/generated/google/apis/cloudkms_v1.rb +1 -1
  189. data/generated/google/apis/cloudkms_v1/classes.rb +502 -692
  190. data/generated/google/apis/cloudkms_v1/representations.rb +17 -0
  191. data/generated/google/apis/cloudkms_v1/service.rb +170 -216
  192. data/generated/google/apis/cloudprofiler_v2.rb +1 -1
  193. data/generated/google/apis/cloudprofiler_v2/classes.rb +28 -33
  194. data/generated/google/apis/cloudprofiler_v2/service.rb +17 -19
  195. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  196. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +503 -754
  197. data/generated/google/apis/cloudresourcemanager_v1/service.rb +198 -249
  198. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  199. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +258 -429
  200. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +136 -178
  201. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  202. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +258 -414
  203. data/generated/google/apis/cloudresourcemanager_v2/service.rb +96 -129
  204. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  205. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +258 -414
  206. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +96 -129
  207. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  208. data/generated/google/apis/cloudscheduler_v1/classes.rb +280 -380
  209. data/generated/google/apis/cloudscheduler_v1/representations.rb +1 -0
  210. data/generated/google/apis/cloudscheduler_v1/service.rb +45 -62
  211. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  212. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +281 -381
  213. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +1 -0
  214. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +45 -62
  215. data/generated/google/apis/cloudsearch_v1.rb +2 -2
  216. data/generated/google/apis/cloudsearch_v1/classes.rb +650 -782
  217. data/generated/google/apis/cloudsearch_v1/representations.rb +15 -0
  218. data/generated/google/apis/cloudsearch_v1/service.rb +286 -326
  219. data/generated/google/apis/cloudshell_v1.rb +1 -1
  220. data/generated/google/apis/cloudshell_v1/classes.rb +36 -227
  221. data/generated/google/apis/cloudshell_v1/representations.rb +0 -67
  222. data/generated/google/apis/cloudshell_v1/service.rb +21 -25
  223. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  224. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +66 -72
  225. data/generated/google/apis/cloudshell_v1alpha1/service.rb +20 -24
  226. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  227. data/generated/google/apis/cloudtasks_v2/classes.rb +605 -933
  228. data/generated/google/apis/cloudtasks_v2/service.rb +146 -217
  229. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  230. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +602 -964
  231. data/generated/google/apis/cloudtasks_v2beta2/service.rb +178 -270
  232. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  233. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +609 -938
  234. data/generated/google/apis/cloudtasks_v2beta3/service.rb +146 -217
  235. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  236. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -62
  237. data/generated/google/apis/cloudtrace_v1/service.rb +37 -57
  238. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  239. data/generated/google/apis/cloudtrace_v2/classes.rb +93 -107
  240. data/generated/google/apis/cloudtrace_v2/service.rb +8 -14
  241. data/generated/google/apis/cloudtrace_v2beta1.rb +1 -1
  242. data/generated/google/apis/cloudtrace_v2beta1/classes.rb +23 -33
  243. data/generated/google/apis/cloudtrace_v2beta1/service.rb +30 -37
  244. data/generated/google/apis/composer_v1.rb +1 -1
  245. data/generated/google/apis/composer_v1/classes.rb +190 -242
  246. data/generated/google/apis/composer_v1/service.rb +79 -150
  247. data/generated/google/apis/composer_v1beta1.rb +1 -1
  248. data/generated/google/apis/composer_v1beta1/classes.rb +203 -262
  249. data/generated/google/apis/composer_v1beta1/service.rb +92 -179
  250. data/generated/google/apis/compute_alpha.rb +1 -1
  251. data/generated/google/apis/compute_alpha/classes.rb +1021 -137
  252. data/generated/google/apis/compute_alpha/representations.rb +208 -4
  253. data/generated/google/apis/compute_alpha/service.rb +710 -699
  254. data/generated/google/apis/compute_beta.rb +1 -1
  255. data/generated/google/apis/compute_beta/classes.rb +879 -75
  256. data/generated/google/apis/compute_beta/representations.rb +204 -1
  257. data/generated/google/apis/compute_beta/service.rb +875 -607
  258. data/generated/google/apis/compute_v1.rb +1 -1
  259. data/generated/google/apis/compute_v1/classes.rb +1324 -130
  260. data/generated/google/apis/compute_v1/representations.rb +480 -15
  261. data/generated/google/apis/compute_v1/service.rb +1076 -43
  262. data/generated/google/apis/container_v1.rb +1 -1
  263. data/generated/google/apis/container_v1/classes.rb +946 -961
  264. data/generated/google/apis/container_v1/representations.rb +69 -0
  265. data/generated/google/apis/container_v1/service.rb +435 -502
  266. data/generated/google/apis/container_v1beta1.rb +1 -1
  267. data/generated/google/apis/container_v1beta1/classes.rb +1032 -1039
  268. data/generated/google/apis/container_v1beta1/representations.rb +72 -0
  269. data/generated/google/apis/container_v1beta1/service.rb +403 -466
  270. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  271. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +456 -596
  272. data/generated/google/apis/containeranalysis_v1alpha1/service.rb +149 -169
  273. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  274. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +454 -613
  275. data/generated/google/apis/containeranalysis_v1beta1/service.rb +75 -90
  276. data/generated/google/apis/content_v2.rb +1 -1
  277. data/generated/google/apis/content_v2/classes.rb +20 -3
  278. data/generated/google/apis/content_v2/representations.rb +1 -0
  279. data/generated/google/apis/content_v2_1.rb +1 -1
  280. data/generated/google/apis/content_v2_1/classes.rb +112 -6
  281. data/generated/google/apis/content_v2_1/representations.rb +35 -0
  282. data/generated/google/apis/content_v2_1/service.rb +53 -2
  283. data/generated/google/apis/customsearch_v1.rb +1 -1
  284. data/generated/google/apis/customsearch_v1/classes.rb +303 -488
  285. data/generated/google/apis/customsearch_v1/service.rb +186 -333
  286. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  287. data/generated/google/apis/datacatalog_v1beta1/classes.rb +382 -570
  288. data/generated/google/apis/datacatalog_v1beta1/service.rb +319 -440
  289. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  290. data/generated/google/apis/dataflow_v1b3/classes.rb +1015 -972
  291. data/generated/google/apis/dataflow_v1b3/representations.rb +115 -0
  292. data/generated/google/apis/dataflow_v1b3/service.rb +299 -257
  293. data/generated/google/apis/datafusion_v1.rb +40 -0
  294. data/generated/google/apis/datafusion_v1/classes.rb +1025 -0
  295. data/generated/google/apis/{cloudfunctions_v1beta2 → datafusion_v1}/representations.rb +141 -94
  296. data/generated/google/apis/datafusion_v1/service.rb +667 -0
  297. data/generated/google/apis/datafusion_v1beta1.rb +5 -8
  298. data/generated/google/apis/datafusion_v1beta1/classes.rb +268 -397
  299. data/generated/google/apis/datafusion_v1beta1/representations.rb +3 -0
  300. data/generated/google/apis/datafusion_v1beta1/service.rb +81 -95
  301. data/generated/google/apis/dataproc_v1.rb +1 -1
  302. data/generated/google/apis/dataproc_v1/classes.rb +238 -329
  303. data/generated/google/apis/dataproc_v1/representations.rb +16 -0
  304. data/generated/google/apis/dataproc_v1/service.rb +134 -168
  305. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  306. data/generated/google/apis/dataproc_v1beta2/classes.rb +263 -326
  307. data/generated/google/apis/dataproc_v1beta2/representations.rb +31 -0
  308. data/generated/google/apis/dataproc_v1beta2/service.rb +137 -192
  309. data/generated/google/apis/datastore_v1.rb +1 -1
  310. data/generated/google/apis/datastore_v1/classes.rb +331 -473
  311. data/generated/google/apis/datastore_v1/service.rb +52 -63
  312. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  313. data/generated/google/apis/datastore_v1beta1/classes.rb +150 -217
  314. data/generated/google/apis/datastore_v1beta1/service.rb +11 -12
  315. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  316. data/generated/google/apis/datastore_v1beta3/classes.rb +255 -371
  317. data/generated/google/apis/datastore_v1beta3/service.rb +1 -2
  318. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  319. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  320. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  321. data/generated/google/apis/dfareporting_v3_3.rb +2 -2
  322. data/generated/google/apis/dfareporting_v3_3/classes.rb +326 -339
  323. data/generated/google/apis/dfareporting_v3_3/representations.rb +42 -0
  324. data/generated/google/apis/dfareporting_v3_3/service.rb +673 -1286
  325. data/generated/google/apis/dfareporting_v3_4.rb +2 -2
  326. data/generated/google/apis/dfareporting_v3_4/classes.rb +769 -350
  327. data/generated/google/apis/dfareporting_v3_4/representations.rb +225 -0
  328. data/generated/google/apis/dfareporting_v3_4/service.rb +708 -1285
  329. data/generated/google/apis/dialogflow_v2.rb +1 -1
  330. data/generated/google/apis/dialogflow_v2/classes.rb +1365 -1563
  331. data/generated/google/apis/dialogflow_v2/representations.rb +67 -15
  332. data/generated/google/apis/dialogflow_v2/service.rb +324 -444
  333. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  334. data/generated/google/apis/dialogflow_v2beta1/classes.rb +1443 -1643
  335. data/generated/google/apis/dialogflow_v2beta1/representations.rb +67 -15
  336. data/generated/google/apis/dialogflow_v2beta1/service.rb +779 -990
  337. data/generated/google/apis/dialogflow_v3beta1.rb +38 -0
  338. data/generated/google/apis/dialogflow_v3beta1/classes.rb +8183 -0
  339. data/generated/google/apis/dialogflow_v3beta1/representations.rb +3459 -0
  340. data/generated/google/apis/dialogflow_v3beta1/service.rb +2812 -0
  341. data/generated/google/apis/displayvideo_v1.rb +7 -1
  342. data/generated/google/apis/displayvideo_v1/classes.rb +1817 -1726
  343. data/generated/google/apis/displayvideo_v1/representations.rb +305 -0
  344. data/generated/google/apis/displayvideo_v1/service.rb +1287 -923
  345. data/generated/google/apis/dlp_v2.rb +1 -1
  346. data/generated/google/apis/dlp_v2/classes.rb +1076 -1298
  347. data/generated/google/apis/dlp_v2/service.rb +962 -905
  348. data/generated/google/apis/dns_v1.rb +1 -1
  349. data/generated/google/apis/dns_v1/classes.rb +175 -198
  350. data/generated/google/apis/dns_v1/service.rb +82 -97
  351. data/generated/google/apis/dns_v1beta2.rb +1 -1
  352. data/generated/google/apis/dns_v1beta2/classes.rb +180 -205
  353. data/generated/google/apis/dns_v1beta2/service.rb +82 -97
  354. data/generated/google/apis/docs_v1.rb +1 -1
  355. data/generated/google/apis/docs_v1/classes.rb +894 -1229
  356. data/generated/google/apis/docs_v1/service.rb +17 -22
  357. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  358. data/generated/google/apis/documentai_v1beta2/classes.rb +1186 -810
  359. data/generated/google/apis/documentai_v1beta2/representations.rb +303 -0
  360. data/generated/google/apis/documentai_v1beta2/service.rb +22 -24
  361. data/generated/google/apis/domainsrdap_v1.rb +1 -1
  362. data/generated/google/apis/domainsrdap_v1/classes.rb +42 -69
  363. data/generated/google/apis/domainsrdap_v1/service.rb +16 -16
  364. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -2
  365. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +7 -13
  366. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +37 -66
  367. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +3 -2
  368. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +201 -13
  369. data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +107 -0
  370. data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +37 -66
  371. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  372. data/generated/google/apis/doubleclicksearch_v2/classes.rb +109 -126
  373. data/generated/google/apis/doubleclicksearch_v2/service.rb +5 -6
  374. data/generated/google/apis/drive_v2.rb +1 -1
  375. data/generated/google/apis/drive_v2/classes.rb +82 -8
  376. data/generated/google/apis/drive_v2/representations.rb +23 -0
  377. data/generated/google/apis/drive_v2/service.rb +102 -25
  378. data/generated/google/apis/drive_v3.rb +1 -1
  379. data/generated/google/apis/drive_v3/classes.rb +87 -8
  380. data/generated/google/apis/drive_v3/representations.rb +24 -0
  381. data/generated/google/apis/drive_v3/service.rb +67 -16
  382. data/generated/google/apis/driveactivity_v2.rb +1 -1
  383. data/generated/google/apis/driveactivity_v2/classes.rb +55 -68
  384. data/generated/google/apis/factchecktools_v1alpha1.rb +1 -1
  385. data/generated/google/apis/factchecktools_v1alpha1/classes.rb +46 -56
  386. data/generated/google/apis/factchecktools_v1alpha1/service.rb +30 -33
  387. data/generated/google/apis/fcm_v1.rb +1 -1
  388. data/generated/google/apis/fcm_v1/classes.rb +245 -393
  389. data/generated/google/apis/fcm_v1/service.rb +5 -6
  390. data/generated/google/apis/file_v1.rb +1 -1
  391. data/generated/google/apis/file_v1/classes.rb +154 -173
  392. data/generated/google/apis/file_v1/service.rb +43 -52
  393. data/generated/google/apis/file_v1beta1.rb +1 -1
  394. data/generated/google/apis/file_v1beta1/classes.rb +334 -193
  395. data/generated/google/apis/file_v1beta1/representations.rb +55 -0
  396. data/generated/google/apis/file_v1beta1/service.rb +267 -55
  397. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  398. data/generated/google/apis/firebase_v1beta1/classes.rb +321 -381
  399. data/generated/google/apis/firebase_v1beta1/representations.rb +3 -16
  400. data/generated/google/apis/firebase_v1beta1/service.rb +364 -421
  401. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  402. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +89 -112
  403. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +18 -21
  404. data/generated/google/apis/firebasehosting_v1.rb +1 -1
  405. data/generated/google/apis/firebasehosting_v1/classes.rb +36 -40
  406. data/generated/google/apis/firebasehosting_v1/service.rb +19 -22
  407. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  408. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +174 -177
  409. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +15 -0
  410. data/generated/google/apis/firebasehosting_v1beta1/service.rb +112 -145
  411. data/generated/google/apis/firebaseml_v1.rb +1 -1
  412. data/generated/google/apis/firebaseml_v1/classes.rb +39 -44
  413. data/generated/google/apis/firebaseml_v1/service.rb +19 -22
  414. data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
  415. data/generated/google/apis/firebaseml_v1beta2/classes.rb +59 -68
  416. data/generated/google/apis/firebaseml_v1beta2/service.rb +16 -18
  417. data/generated/google/apis/firebaserules_v1.rb +1 -1
  418. data/generated/google/apis/firebaserules_v1/classes.rb +102 -137
  419. data/generated/google/apis/firebaserules_v1/service.rb +87 -110
  420. data/generated/google/apis/firestore_v1.rb +1 -1
  421. data/generated/google/apis/firestore_v1/classes.rb +506 -450
  422. data/generated/google/apis/firestore_v1/representations.rb +63 -0
  423. data/generated/google/apis/firestore_v1/service.rb +227 -185
  424. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  425. data/generated/google/apis/firestore_v1beta1/classes.rb +438 -361
  426. data/generated/google/apis/firestore_v1beta1/representations.rb +63 -0
  427. data/generated/google/apis/firestore_v1beta1/service.rb +168 -106
  428. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  429. data/generated/google/apis/firestore_v1beta2/classes.rb +135 -165
  430. data/generated/google/apis/firestore_v1beta2/service.rb +65 -86
  431. data/generated/google/apis/fitness_v1.rb +1 -1
  432. data/generated/google/apis/fitness_v1/classes.rb +170 -208
  433. data/generated/google/apis/fitness_v1/service.rb +125 -146
  434. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  435. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -3
  436. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  437. data/generated/google/apis/games_management_v1management.rb +2 -3
  438. data/generated/google/apis/games_management_v1management/classes.rb +14 -20
  439. data/generated/google/apis/games_management_v1management/service.rb +37 -38
  440. data/generated/google/apis/games_v1.rb +2 -3
  441. data/generated/google/apis/games_v1/classes.rb +77 -84
  442. data/generated/google/apis/games_v1/representations.rb +2 -0
  443. data/generated/google/apis/games_v1/service.rb +86 -92
  444. data/generated/google/apis/gameservices_v1.rb +1 -1
  445. data/generated/google/apis/gameservices_v1/classes.rb +344 -523
  446. data/generated/google/apis/gameservices_v1/service.rb +167 -207
  447. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  448. data/generated/google/apis/gameservices_v1beta/classes.rb +344 -523
  449. data/generated/google/apis/gameservices_v1beta/service.rb +167 -207
  450. data/generated/google/apis/genomics_v1.rb +1 -1
  451. data/generated/google/apis/genomics_v1/classes.rb +70 -76
  452. data/generated/google/apis/genomics_v1/service.rb +28 -43
  453. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  454. data/generated/google/apis/genomics_v1alpha2/classes.rb +223 -290
  455. data/generated/google/apis/genomics_v1alpha2/service.rb +54 -76
  456. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  457. data/generated/google/apis/genomics_v2alpha1/classes.rb +252 -347
  458. data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -27
  459. data/generated/google/apis/genomics_v2alpha1/service.rb +47 -100
  460. data/generated/google/apis/gmail_v1.rb +3 -3
  461. data/generated/google/apis/gmail_v1/classes.rb +207 -266
  462. data/generated/google/apis/gmail_v1/service.rb +263 -290
  463. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +5 -2
  464. data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +37 -42
  465. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +35 -41
  466. data/generated/google/apis/groupsmigration_v1.rb +35 -0
  467. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  468. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  469. data/generated/google/apis/groupsmigration_v1/service.rb +100 -0
  470. data/generated/google/apis/healthcare_v1.rb +1 -1
  471. data/generated/google/apis/healthcare_v1/classes.rb +563 -826
  472. data/generated/google/apis/healthcare_v1/service.rb +687 -806
  473. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  474. data/generated/google/apis/healthcare_v1beta1/classes.rb +880 -1086
  475. data/generated/google/apis/healthcare_v1beta1/representations.rb +59 -0
  476. data/generated/google/apis/healthcare_v1beta1/service.rb +939 -1053
  477. data/generated/google/apis/homegraph_v1.rb +1 -1
  478. data/generated/google/apis/homegraph_v1/classes.rb +76 -164
  479. data/generated/google/apis/homegraph_v1/service.rb +23 -35
  480. data/generated/google/apis/iam_v1.rb +5 -2
  481. data/generated/google/apis/iam_v1/classes.rb +388 -573
  482. data/generated/google/apis/iam_v1/service.rb +430 -544
  483. data/generated/google/apis/iamcredentials_v1.rb +4 -2
  484. data/generated/google/apis/iamcredentials_v1/classes.rb +75 -85
  485. data/generated/google/apis/iamcredentials_v1/service.rb +15 -13
  486. data/generated/google/apis/iap_v1.rb +1 -1
  487. data/generated/google/apis/iap_v1/classes.rb +246 -355
  488. data/generated/google/apis/iap_v1/service.rb +61 -71
  489. data/generated/google/apis/iap_v1beta1.rb +1 -1
  490. data/generated/google/apis/iap_v1beta1/classes.rb +157 -254
  491. data/generated/google/apis/iap_v1beta1/service.rb +17 -19
  492. data/generated/google/apis/indexing_v3.rb +1 -1
  493. data/generated/google/apis/indexing_v3/classes.rb +11 -11
  494. data/generated/google/apis/kgsearch_v1.rb +1 -1
  495. data/generated/google/apis/kgsearch_v1/classes.rb +4 -4
  496. data/generated/google/apis/kgsearch_v1/service.rb +11 -11
  497. data/generated/google/apis/language_v1.rb +1 -1
  498. data/generated/google/apis/language_v1/classes.rb +93 -111
  499. data/generated/google/apis/language_v1/service.rb +4 -4
  500. data/generated/google/apis/language_v1beta1.rb +1 -1
  501. data/generated/google/apis/language_v1beta1/classes.rb +78 -90
  502. data/generated/google/apis/language_v1beta1/service.rb +2 -2
  503. data/generated/google/apis/language_v1beta2.rb +1 -1
  504. data/generated/google/apis/language_v1beta2/classes.rb +95 -112
  505. data/generated/google/apis/language_v1beta2/service.rb +4 -4
  506. data/generated/google/apis/libraryagent_v1.rb +1 -1
  507. data/generated/google/apis/libraryagent_v1/classes.rb +10 -16
  508. data/generated/google/apis/libraryagent_v1/service.rb +13 -16
  509. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  510. data/generated/google/apis/lifesciences_v2beta/classes.rb +262 -290
  511. data/generated/google/apis/lifesciences_v2beta/service.rb +30 -42
  512. data/generated/google/apis/localservices_v1.rb +31 -0
  513. data/generated/google/apis/localservices_v1/classes.rb +419 -0
  514. data/generated/google/apis/localservices_v1/representations.rb +172 -0
  515. data/generated/google/apis/localservices_v1/service.rb +199 -0
  516. data/generated/google/apis/logging_v2.rb +1 -1
  517. data/generated/google/apis/logging_v2/classes.rb +174 -214
  518. data/generated/google/apis/logging_v2/representations.rb +15 -0
  519. data/generated/google/apis/logging_v2/service.rb +1017 -584
  520. data/generated/google/apis/managedidentities_v1.rb +1 -1
  521. data/generated/google/apis/managedidentities_v1/classes.rb +326 -452
  522. data/generated/google/apis/managedidentities_v1/service.rb +78 -99
  523. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  524. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +336 -457
  525. data/generated/google/apis/managedidentities_v1alpha1/service.rb +88 -112
  526. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  527. data/generated/google/apis/managedidentities_v1beta1/classes.rb +332 -456
  528. data/generated/google/apis/managedidentities_v1beta1/service.rb +76 -96
  529. data/generated/google/apis/manufacturers_v1.rb +1 -1
  530. data/generated/google/apis/manufacturers_v1/classes.rb +99 -109
  531. data/generated/google/apis/manufacturers_v1/service.rb +44 -55
  532. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  533. data/generated/google/apis/memcache_v1beta2/classes.rb +170 -710
  534. data/generated/google/apis/memcache_v1beta2/representations.rb +0 -120
  535. data/generated/google/apis/memcache_v1beta2/service.rb +58 -190
  536. data/generated/google/apis/ml_v1.rb +1 -1
  537. data/generated/google/apis/ml_v1/classes.rb +954 -1143
  538. data/generated/google/apis/ml_v1/representations.rb +64 -0
  539. data/generated/google/apis/ml_v1/service.rb +194 -253
  540. data/generated/google/apis/monitoring_v1.rb +1 -1
  541. data/generated/google/apis/monitoring_v1/classes.rb +117 -38
  542. data/generated/google/apis/monitoring_v1/representations.rb +35 -0
  543. data/generated/google/apis/monitoring_v1/service.rb +10 -11
  544. data/generated/google/apis/monitoring_v3.rb +1 -1
  545. data/generated/google/apis/monitoring_v3/classes.rb +253 -313
  546. data/generated/google/apis/monitoring_v3/representations.rb +2 -0
  547. data/generated/google/apis/monitoring_v3/service.rb +126 -144
  548. data/generated/google/apis/networkmanagement_v1.rb +1 -1
  549. data/generated/google/apis/networkmanagement_v1/classes.rb +273 -429
  550. data/generated/google/apis/networkmanagement_v1/service.rb +97 -120
  551. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  552. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +388 -429
  553. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +40 -0
  554. data/generated/google/apis/networkmanagement_v1beta1/service.rb +97 -120
  555. data/generated/google/apis/osconfig_v1.rb +1 -1
  556. data/generated/google/apis/osconfig_v1/classes.rb +931 -179
  557. data/generated/google/apis/osconfig_v1/representations.rb +372 -0
  558. data/generated/google/apis/osconfig_v1/service.rb +22 -27
  559. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  560. data/generated/google/apis/osconfig_v1beta/classes.rb +1158 -463
  561. data/generated/google/apis/osconfig_v1beta/representations.rb +372 -0
  562. data/generated/google/apis/osconfig_v1beta/service.rb +39 -52
  563. data/generated/google/apis/oslogin_v1.rb +1 -1
  564. data/generated/google/apis/oslogin_v1/classes.rb +14 -12
  565. data/generated/google/apis/oslogin_v1/representations.rb +1 -0
  566. data/generated/google/apis/oslogin_v1/service.rb +12 -16
  567. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  568. data/generated/google/apis/oslogin_v1alpha/classes.rb +14 -12
  569. data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
  570. data/generated/google/apis/oslogin_v1alpha/service.rb +14 -14
  571. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  572. data/generated/google/apis/oslogin_v1beta/classes.rb +14 -12
  573. data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
  574. data/generated/google/apis/oslogin_v1beta/service.rb +12 -16
  575. data/generated/google/apis/pagespeedonline_v5.rb +2 -2
  576. data/generated/google/apis/pagespeedonline_v5/classes.rb +18 -24
  577. data/generated/google/apis/pagespeedonline_v5/service.rb +3 -4
  578. data/generated/google/apis/people_v1.rb +1 -1
  579. data/generated/google/apis/people_v1/classes.rb +493 -403
  580. data/generated/google/apis/people_v1/representations.rb +98 -0
  581. data/generated/google/apis/people_v1/service.rb +169 -385
  582. data/generated/google/apis/playablelocations_v3.rb +1 -1
  583. data/generated/google/apis/playablelocations_v3/classes.rb +108 -155
  584. data/generated/google/apis/playablelocations_v3/service.rb +10 -10
  585. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  586. data/generated/google/apis/playcustomapp_v1/classes.rb +2 -2
  587. data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
  588. data/generated/google/apis/policytroubleshooter_v1/classes.rb +232 -394
  589. data/generated/google/apis/policytroubleshooter_v1/service.rb +2 -2
  590. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  591. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +232 -393
  592. data/generated/google/apis/policytroubleshooter_v1beta/service.rb +2 -2
  593. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  594. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +128 -219
  595. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +1 -32
  596. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +38 -526
  597. data/generated/google/apis/pubsub_v1.rb +1 -1
  598. data/generated/google/apis/pubsub_v1/classes.rb +407 -512
  599. data/generated/google/apis/pubsub_v1/representations.rb +3 -0
  600. data/generated/google/apis/pubsub_v1/service.rb +220 -246
  601. data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
  602. data/generated/google/apis/pubsub_v1beta1a/classes.rb +71 -86
  603. data/generated/google/apis/pubsub_v1beta1a/service.rb +31 -38
  604. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  605. data/generated/google/apis/pubsub_v1beta2/classes.rb +244 -354
  606. data/generated/google/apis/pubsub_v1beta2/service.rb +96 -108
  607. data/generated/google/apis/{accessapproval_v1beta1.rb → pubsublite_v1.rb} +9 -9
  608. data/generated/google/apis/pubsublite_v1/classes.rb +389 -0
  609. data/generated/google/apis/{accessapproval_v1beta1 → pubsublite_v1}/representations.rb +78 -53
  610. data/generated/google/apis/pubsublite_v1/service.rb +525 -0
  611. data/generated/google/apis/realtimebidding_v1.rb +1 -4
  612. data/generated/google/apis/realtimebidding_v1/classes.rb +198 -291
  613. data/generated/google/apis/realtimebidding_v1/service.rb +98 -135
  614. data/generated/google/apis/recommendationengine_v1beta1.rb +36 -0
  615. data/generated/google/apis/recommendationengine_v1beta1/classes.rb +1896 -0
  616. data/generated/google/apis/recommendationengine_v1beta1/representations.rb +832 -0
  617. data/generated/google/apis/recommendationengine_v1beta1/service.rb +924 -0
  618. data/generated/google/apis/recommender_v1.rb +1 -1
  619. data/generated/google/apis/recommender_v1/classes.rb +76 -100
  620. data/generated/google/apis/recommender_v1/service.rb +43 -58
  621. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  622. data/generated/google/apis/recommender_v1beta1/classes.rb +75 -99
  623. data/generated/google/apis/recommender_v1beta1/service.rb +43 -58
  624. data/generated/google/apis/redis_v1.rb +1 -1
  625. data/generated/google/apis/redis_v1/classes.rb +477 -116
  626. data/generated/google/apis/redis_v1/representations.rb +139 -0
  627. data/generated/google/apis/redis_v1/service.rb +93 -110
  628. data/generated/google/apis/redis_v1beta1.rb +1 -1
  629. data/generated/google/apis/redis_v1beta1/classes.rb +481 -120
  630. data/generated/google/apis/redis_v1beta1/representations.rb +139 -0
  631. data/generated/google/apis/redis_v1beta1/service.rb +93 -110
  632. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  633. data/generated/google/apis/remotebuildexecution_v1/classes.rb +951 -1078
  634. data/generated/google/apis/remotebuildexecution_v1/representations.rb +61 -0
  635. data/generated/google/apis/remotebuildexecution_v1/service.rb +26 -33
  636. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  637. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +946 -1071
  638. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +61 -0
  639. data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +103 -65
  640. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  641. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1099 -1250
  642. data/generated/google/apis/remotebuildexecution_v2/representations.rb +61 -0
  643. data/generated/google/apis/remotebuildexecution_v2/service.rb +147 -206
  644. data/generated/google/apis/reseller_v1.rb +4 -3
  645. data/generated/google/apis/reseller_v1/classes.rb +219 -160
  646. data/generated/google/apis/reseller_v1/service.rb +247 -252
  647. data/generated/google/apis/run_v1.rb +2 -2
  648. data/generated/google/apis/run_v1/classes.rb +837 -1244
  649. data/generated/google/apis/run_v1/representations.rb +1 -1
  650. data/generated/google/apis/run_v1/service.rb +234 -248
  651. data/generated/google/apis/run_v1alpha1.rb +2 -2
  652. data/generated/google/apis/run_v1alpha1/classes.rb +935 -1332
  653. data/generated/google/apis/run_v1alpha1/representations.rb +1 -1
  654. data/generated/google/apis/run_v1alpha1/service.rb +322 -378
  655. data/generated/google/apis/run_v1beta1.rb +2 -2
  656. data/generated/google/apis/run_v1beta1/classes.rb +210 -276
  657. data/generated/google/apis/run_v1beta1/service.rb +17 -19
  658. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  659. data/generated/google/apis/runtimeconfig_v1/classes.rb +36 -40
  660. data/generated/google/apis/runtimeconfig_v1/service.rb +19 -22
  661. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  662. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +295 -412
  663. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +135 -159
  664. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  665. data/generated/google/apis/safebrowsing_v4/classes.rb +55 -64
  666. data/generated/google/apis/safebrowsing_v4/service.rb +4 -4
  667. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  668. data/generated/google/apis/sasportal_v1alpha1/classes.rb +128 -219
  669. data/generated/google/apis/sasportal_v1alpha1/representations.rb +1 -32
  670. data/generated/google/apis/sasportal_v1alpha1/service.rb +38 -526
  671. data/generated/google/apis/script_v1.rb +1 -1
  672. data/generated/google/apis/script_v1/classes.rb +88 -111
  673. data/generated/google/apis/script_v1/service.rb +63 -69
  674. data/generated/google/apis/searchconsole_v1.rb +4 -3
  675. data/generated/google/apis/searchconsole_v1/classes.rb +2 -2
  676. data/generated/google/apis/searchconsole_v1/service.rb +3 -2
  677. data/generated/google/apis/secretmanager_v1.rb +1 -1
  678. data/generated/google/apis/secretmanager_v1/classes.rb +211 -363
  679. data/generated/google/apis/secretmanager_v1/service.rb +66 -82
  680. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  681. data/generated/google/apis/secretmanager_v1beta1/classes.rb +211 -363
  682. data/generated/google/apis/secretmanager_v1beta1/service.rb +66 -82
  683. data/generated/google/apis/securitycenter_v1.rb +1 -1
  684. data/generated/google/apis/securitycenter_v1/classes.rb +584 -826
  685. data/generated/google/apis/securitycenter_v1/representations.rb +1 -0
  686. data/generated/google/apis/securitycenter_v1/service.rb +250 -332
  687. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  688. data/generated/google/apis/securitycenter_v1beta1/classes.rb +533 -746
  689. data/generated/google/apis/securitycenter_v1beta1/representations.rb +1 -0
  690. data/generated/google/apis/securitycenter_v1beta1/service.rb +160 -202
  691. data/generated/google/apis/{securitycenter_v1p1beta1.rb → securitycenter_v1beta2.rb} +6 -6
  692. data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/classes.rb +415 -269
  693. data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/representations.rb +101 -30
  694. data/generated/google/apis/securitycenter_v1beta2/service.rb +1494 -0
  695. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  696. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1120 -1784
  697. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +114 -141
  698. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  699. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +1107 -1774
  700. data/generated/google/apis/serviceconsumermanagement_v1beta1/service.rb +52 -66
  701. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  702. data/generated/google/apis/servicecontrol_v1/classes.rb +523 -641
  703. data/generated/google/apis/servicecontrol_v1/service.rb +36 -46
  704. data/generated/google/apis/servicecontrol_v2.rb +38 -0
  705. data/generated/google/apis/servicecontrol_v2/classes.rb +1075 -0
  706. data/generated/google/apis/servicecontrol_v2/representations.rb +405 -0
  707. data/generated/google/apis/servicecontrol_v2/service.rb +155 -0
  708. data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
  709. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +214 -333
  710. data/generated/google/apis/servicedirectory_v1beta1/service.rb +94 -129
  711. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  712. data/generated/google/apis/servicemanagement_v1/classes.rb +1288 -2090
  713. data/generated/google/apis/servicemanagement_v1/representations.rb +14 -0
  714. data/generated/google/apis/servicemanagement_v1/service.rb +144 -195
  715. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  716. data/generated/google/apis/servicenetworking_v1/classes.rb +1164 -1758
  717. data/generated/google/apis/servicenetworking_v1/representations.rb +52 -0
  718. data/generated/google/apis/servicenetworking_v1/service.rb +210 -114
  719. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  720. data/generated/google/apis/servicenetworking_v1beta/classes.rb +1091 -1684
  721. data/generated/google/apis/servicenetworking_v1beta/representations.rb +38 -0
  722. data/generated/google/apis/servicenetworking_v1beta/service.rb +52 -63
  723. data/generated/google/apis/serviceusage_v1.rb +1 -1
  724. data/generated/google/apis/serviceusage_v1/classes.rb +1144 -1823
  725. data/generated/google/apis/serviceusage_v1/representations.rb +4 -0
  726. data/generated/google/apis/serviceusage_v1/service.rb +67 -80
  727. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  728. data/generated/google/apis/serviceusage_v1beta1/classes.rb +1273 -1986
  729. data/generated/google/apis/serviceusage_v1beta1/representations.rb +8 -0
  730. data/generated/google/apis/serviceusage_v1beta1/service.rb +130 -162
  731. data/generated/google/apis/sheets_v4.rb +1 -1
  732. data/generated/google/apis/sheets_v4/classes.rb +3932 -5007
  733. data/generated/google/apis/sheets_v4/representations.rb +625 -0
  734. data/generated/google/apis/sheets_v4/service.rb +113 -149
  735. data/generated/google/apis/site_verification_v1.rb +1 -1
  736. data/generated/google/apis/slides_v1.rb +1 -1
  737. data/generated/google/apis/slides_v1/classes.rb +841 -1114
  738. data/generated/google/apis/slides_v1/service.rb +23 -30
  739. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  740. data/generated/google/apis/sourcerepo_v1/classes.rb +6 -6
  741. data/generated/google/apis/spanner_v1.rb +1 -1
  742. data/generated/google/apis/spanner_v1/classes.rb +1546 -2156
  743. data/generated/google/apis/spanner_v1/service.rb +443 -618
  744. data/generated/google/apis/speech_v1.rb +1 -1
  745. data/generated/google/apis/speech_v1/classes.rb +174 -220
  746. data/generated/google/apis/speech_v1/service.rb +27 -32
  747. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  748. data/generated/google/apis/speech_v1p1beta1/classes.rb +253 -306
  749. data/generated/google/apis/speech_v1p1beta1/service.rb +27 -32
  750. data/generated/google/apis/speech_v2beta1.rb +1 -1
  751. data/generated/google/apis/speech_v2beta1/classes.rb +66 -76
  752. data/generated/google/apis/speech_v2beta1/service.rb +10 -12
  753. data/generated/google/apis/sql_v1beta4.rb +1 -1
  754. data/generated/google/apis/sql_v1beta4/classes.rb +322 -374
  755. data/generated/google/apis/sql_v1beta4/representations.rb +3 -0
  756. data/generated/google/apis/sql_v1beta4/service.rb +49 -54
  757. data/generated/google/apis/storage_v1.rb +1 -1
  758. data/generated/google/apis/storage_v1/classes.rb +8 -7
  759. data/generated/google/apis/storage_v1/representations.rb +2 -2
  760. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  761. data/generated/google/apis/storagetransfer_v1/classes.rb +263 -343
  762. data/generated/google/apis/storagetransfer_v1/service.rb +43 -40
  763. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  764. data/generated/google/apis/streetviewpublish_v1/classes.rb +106 -148
  765. data/generated/google/apis/streetviewpublish_v1/service.rb +94 -177
  766. data/generated/google/apis/tagmanager_v1.rb +2 -3
  767. data/generated/google/apis/tagmanager_v1/classes.rb +225 -288
  768. data/generated/google/apis/tagmanager_v1/service.rb +22 -23
  769. data/generated/google/apis/tagmanager_v2.rb +2 -3
  770. data/generated/google/apis/tagmanager_v2/classes.rb +240 -280
  771. data/generated/google/apis/tagmanager_v2/representations.rb +1 -0
  772. data/generated/google/apis/tagmanager_v2/service.rb +189 -285
  773. data/generated/google/apis/tasks_v1.rb +1 -1
  774. data/generated/google/apis/tasks_v1/classes.rb +20 -21
  775. data/generated/google/apis/tasks_v1/service.rb +16 -17
  776. data/generated/google/apis/testing_v1.rb +1 -1
  777. data/generated/google/apis/testing_v1/classes.rb +374 -376
  778. data/generated/google/apis/testing_v1/representations.rb +34 -0
  779. data/generated/google/apis/testing_v1/service.rb +22 -28
  780. data/generated/google/apis/texttospeech_v1.rb +1 -1
  781. data/generated/google/apis/texttospeech_v1/classes.rb +51 -57
  782. data/generated/google/apis/texttospeech_v1/service.rb +9 -10
  783. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  784. data/generated/google/apis/texttospeech_v1beta1/classes.rb +96 -57
  785. data/generated/google/apis/texttospeech_v1beta1/representations.rb +19 -0
  786. data/generated/google/apis/texttospeech_v1beta1/service.rb +9 -10
  787. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  788. data/generated/google/apis/toolresults_v1beta3/classes.rb +678 -928
  789. data/generated/google/apis/toolresults_v1beta3/representations.rb +2 -0
  790. data/generated/google/apis/toolresults_v1beta3/service.rb +522 -640
  791. data/generated/google/apis/tpu_v1.rb +1 -1
  792. data/generated/google/apis/tpu_v1/classes.rb +79 -78
  793. data/generated/google/apis/tpu_v1/representations.rb +1 -0
  794. data/generated/google/apis/tpu_v1/service.rb +21 -25
  795. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  796. data/generated/google/apis/tpu_v1alpha1/classes.rb +79 -78
  797. data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
  798. data/generated/google/apis/tpu_v1alpha1/service.rb +21 -25
  799. data/generated/google/apis/{cloudfunctions_v1beta2.rb → trafficdirector_v2.rb} +9 -9
  800. data/generated/google/apis/trafficdirector_v2/classes.rb +1347 -0
  801. data/generated/google/apis/trafficdirector_v2/representations.rb +620 -0
  802. data/generated/google/apis/trafficdirector_v2/service.rb +89 -0
  803. data/generated/google/apis/translate_v3.rb +1 -1
  804. data/generated/google/apis/translate_v3/classes.rb +148 -175
  805. data/generated/google/apis/translate_v3/service.rb +122 -138
  806. data/generated/google/apis/translate_v3beta1.rb +1 -1
  807. data/generated/google/apis/translate_v3beta1/classes.rb +149 -170
  808. data/generated/google/apis/translate_v3beta1/service.rb +122 -138
  809. data/generated/google/apis/vectortile_v1.rb +1 -1
  810. data/generated/google/apis/vectortile_v1/classes.rb +185 -267
  811. data/generated/google/apis/vectortile_v1/service.rb +75 -88
  812. data/generated/google/apis/videointelligence_v1.rb +1 -1
  813. data/generated/google/apis/videointelligence_v1/classes.rb +753 -918
  814. data/generated/google/apis/videointelligence_v1/service.rb +40 -48
  815. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  816. data/generated/google/apis/videointelligence_v1beta2/classes.rb +748 -911
  817. data/generated/google/apis/videointelligence_v1beta2/service.rb +4 -4
  818. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  819. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +748 -911
  820. data/generated/google/apis/videointelligence_v1p1beta1/service.rb +4 -4
  821. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  822. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +748 -911
  823. data/generated/google/apis/videointelligence_v1p2beta1/service.rb +4 -4
  824. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  825. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +754 -920
  826. data/generated/google/apis/videointelligence_v1p3beta1/service.rb +4 -4
  827. data/generated/google/apis/vision_v1.rb +1 -1
  828. data/generated/google/apis/vision_v1/classes.rb +1304 -1868
  829. data/generated/google/apis/vision_v1/service.rb +254 -340
  830. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  831. data/generated/google/apis/vision_v1p1beta1/classes.rb +1246 -1788
  832. data/generated/google/apis/vision_v1p1beta1/service.rb +91 -121
  833. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  834. data/generated/google/apis/vision_v1p2beta1/classes.rb +1246 -1788
  835. data/generated/google/apis/vision_v1p2beta1/service.rb +91 -121
  836. data/generated/google/apis/webfonts_v1.rb +2 -3
  837. data/generated/google/apis/webfonts_v1/classes.rb +1 -2
  838. data/generated/google/apis/webfonts_v1/service.rb +4 -6
  839. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  840. data/generated/google/apis/websecurityscanner_v1/classes.rb +71 -95
  841. data/generated/google/apis/websecurityscanner_v1/service.rb +46 -65
  842. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  843. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +55 -63
  844. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +46 -65
  845. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  846. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +77 -92
  847. data/generated/google/apis/websecurityscanner_v1beta/service.rb +46 -65
  848. data/generated/google/apis/workflows_v1beta.rb +34 -0
  849. data/generated/google/apis/workflows_v1beta/classes.rb +406 -0
  850. data/generated/google/apis/workflows_v1beta/representations.rb +173 -0
  851. data/generated/google/apis/workflows_v1beta/service.rb +437 -0
  852. data/generated/google/apis/youtube_analytics_v2.rb +1 -1
  853. data/generated/google/apis/youtube_analytics_v2/classes.rb +77 -104
  854. data/generated/google/apis/youtube_analytics_v2/service.rb +106 -126
  855. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  856. data/generated/google/apis/youtube_partner_v1/classes.rb +637 -761
  857. data/generated/google/apis/youtube_partner_v1/service.rb +521 -661
  858. data/generated/google/apis/youtube_v3.rb +1 -1
  859. data/generated/google/apis/youtube_v3/classes.rb +1290 -1175
  860. data/generated/google/apis/youtube_v3/representations.rb +177 -0
  861. data/generated/google/apis/youtube_v3/service.rb +1086 -1316
  862. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  863. data/generated/google/apis/youtubereporting_v1/classes.rb +20 -29
  864. data/generated/google/apis/youtubereporting_v1/service.rb +40 -43
  865. data/lib/google/apis/core/base_service.rb +7 -1
  866. data/lib/google/apis/version.rb +1 -1
  867. metadata +47 -31
  868. data/generated/google/apis/accessapproval_v1beta1/classes.rb +0 -417
  869. data/generated/google/apis/accessapproval_v1beta1/service.rb +0 -857
  870. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +0 -848
  871. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +0 -486
  872. data/generated/google/apis/dns_v2beta1.rb +0 -43
  873. data/generated/google/apis/dns_v2beta1/classes.rb +0 -1296
  874. data/generated/google/apis/dns_v2beta1/representations.rb +0 -588
  875. data/generated/google/apis/dns_v2beta1/service.rb +0 -861
  876. data/generated/google/apis/oauth2_v2.rb +0 -40
  877. data/generated/google/apis/oauth2_v2/classes.rb +0 -165
  878. data/generated/google/apis/oauth2_v2/representations.rb +0 -68
  879. data/generated/google/apis/oauth2_v2/service.rb +0 -158
  880. data/generated/google/apis/securitycenter_v1p1alpha1/service.rb +0 -211
  881. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +0 -2305
  882. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +0 -789
  883. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +0 -1326
  884. data/generated/google/apis/storage_v1beta2.rb +0 -40
  885. data/generated/google/apis/storage_v1beta2/classes.rb +0 -1047
  886. data/generated/google/apis/storage_v1beta2/representations.rb +0 -425
  887. data/generated/google/apis/storage_v1beta2/service.rb +0 -1667
@@ -47,23 +47,19 @@ module Google
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
- # Applies one or more updates to the document.
51
- # Each request is validated before
52
- # being applied. If any request is not valid, then the entire request will
53
- # fail and nothing will be applied.
54
- # Some requests have replies to
55
- # give you some information about how they are applied. Other requests do
56
- # not need to return information; these each return an empty reply.
57
- # The order of replies matches that of the requests.
58
- # For example, suppose you call batchUpdate with four updates, and only the
59
- # third one returns information. The response would have two empty replies,
60
- # the reply to the third request, and another empty reply, in that order.
61
- # Because other users may be editing the document, the document
62
- # might not exactly reflect your changes: your changes may
63
- # be altered with respect to collaborator changes. If there are no
64
- # collaborators, the document should reflect your changes. In any case,
65
- # the updates in your request are guaranteed to be applied together
66
- # atomically.
50
+ # Applies one or more updates to the document. Each request is validated before
51
+ # being applied. If any request is not valid, then the entire request will fail
52
+ # and nothing will be applied. Some requests have replies to give you some
53
+ # information about how they are applied. Other requests do not need to return
54
+ # information; these each return an empty reply. The order of replies matches
55
+ # that of the requests. For example, suppose you call batchUpdate with four
56
+ # updates, and only the third one returns information. The response would have
57
+ # two empty replies, the reply to the third request, and another empty reply, in
58
+ # that order. Because other users may be editing the document, the document
59
+ # might not exactly reflect your changes: your changes may be altered with
60
+ # respect to collaborator changes. If there are no collaborators, the document
61
+ # should reflect your changes. In any case, the updates in your request are
62
+ # guaranteed to be applied together atomically.
67
63
  # @param [String] document_id
68
64
  # The ID of the document to update.
69
65
  # @param [Google::Apis::DocsV1::BatchUpdateDocumentRequest] batch_update_document_request_object
@@ -96,9 +92,9 @@ module Google
96
92
  execute_or_queue_command(command, &block)
97
93
  end
98
94
 
99
- # Creates a blank document using the title given in the request. Other fields
100
- # in the request, including any provided content, are ignored.
101
- # Returns the created document.
95
+ # Creates a blank document using the title given in the request. Other fields in
96
+ # the request, including any provided content, are ignored. Returns the created
97
+ # document.
102
98
  # @param [Google::Apis::DocsV1::Document] document_object
103
99
  # @param [String] fields
104
100
  # Selector specifying which fields to include in a partial response.
@@ -134,8 +130,7 @@ module Google
134
130
  # @param [String] suggestions_view_mode
135
131
  # The suggestions view mode to apply to the document. This allows viewing the
136
132
  # document with all suggestions inline, accepted or rejected. If one is not
137
- # specified, DEFAULT_FOR_CURRENT_ACCESS is
138
- # used.
133
+ # specified, DEFAULT_FOR_CURRENT_ACCESS is used.
139
134
  # @param [String] fields
140
135
  # Selector specifying which fields to include in a partial response.
141
136
  # @param [String] quota_user
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/document-ai/docs/
28
28
  module DocumentaiV1beta2
29
29
  VERSION = 'V1beta2'
30
- REVISION = '20200619'
30
+ REVISION = '20200807'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,8 +22,295 @@ module Google
22
22
  module Apis
23
23
  module DocumentaiV1beta2
24
24
 
25
- # Response to an batch document processing request. This is returned in
26
- # the LRO Operation after the operation is complete.
25
+ # The long running operation metadata for CreateLabelerPool.
26
+ class GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The creation time of the operation.
30
+ # Corresponds to the JSON property `createTime`
31
+ # @return [String]
32
+ attr_accessor :create_time
33
+
34
+ # Used only when Operation.done is false.
35
+ # Corresponds to the JSON property `state`
36
+ # @return [String]
37
+ attr_accessor :state
38
+
39
+ # A message providing more details about the current state of processing. For
40
+ # example, the error message if the operation is failed.
41
+ # Corresponds to the JSON property `stateMessage`
42
+ # @return [String]
43
+ attr_accessor :state_message
44
+
45
+ # The last update time of the operation.
46
+ # Corresponds to the JSON property `updateTime`
47
+ # @return [String]
48
+ attr_accessor :update_time
49
+
50
+ def initialize(**args)
51
+ update!(**args)
52
+ end
53
+
54
+ # Update properties of this object
55
+ def update!(**args)
56
+ @create_time = args[:create_time] if args.key?(:create_time)
57
+ @state = args[:state] if args.key?(:state)
58
+ @state_message = args[:state_message] if args.key?(:state_message)
59
+ @update_time = args[:update_time] if args.key?(:update_time)
60
+ end
61
+ end
62
+
63
+ # The metadata that represents a processor version being created.
64
+ class GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata
65
+ include Google::Apis::Core::Hashable
66
+
67
+ # The creation time of the operation.
68
+ # Corresponds to the JSON property `createTime`
69
+ # @return [String]
70
+ attr_accessor :create_time
71
+
72
+ # The state of the current disable processor operation.
73
+ # Corresponds to the JSON property `state`
74
+ # @return [String]
75
+ attr_accessor :state
76
+
77
+ # The last update time of the operation.
78
+ # Corresponds to the JSON property `updateTime`
79
+ # @return [String]
80
+ attr_accessor :update_time
81
+
82
+ def initialize(**args)
83
+ update!(**args)
84
+ end
85
+
86
+ # Update properties of this object
87
+ def update!(**args)
88
+ @create_time = args[:create_time] if args.key?(:create_time)
89
+ @state = args[:state] if args.key?(:state)
90
+ @update_time = args[:update_time] if args.key?(:update_time)
91
+ end
92
+ end
93
+
94
+ # The long running operation metadata for DeleteLabelerPool.
95
+ class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata
96
+ include Google::Apis::Core::Hashable
97
+
98
+ # The creation time of the operation.
99
+ # Corresponds to the JSON property `createTime`
100
+ # @return [String]
101
+ attr_accessor :create_time
102
+
103
+ # Used only when Operation.done is false.
104
+ # Corresponds to the JSON property `state`
105
+ # @return [String]
106
+ attr_accessor :state
107
+
108
+ # A message providing more details about the current state of processing. For
109
+ # example, the error message if the operation is failed.
110
+ # Corresponds to the JSON property `stateMessage`
111
+ # @return [String]
112
+ attr_accessor :state_message
113
+
114
+ # The last update time of the operation.
115
+ # Corresponds to the JSON property `updateTime`
116
+ # @return [String]
117
+ attr_accessor :update_time
118
+
119
+ def initialize(**args)
120
+ update!(**args)
121
+ end
122
+
123
+ # Update properties of this object
124
+ def update!(**args)
125
+ @create_time = args[:create_time] if args.key?(:create_time)
126
+ @state = args[:state] if args.key?(:state)
127
+ @state_message = args[:state_message] if args.key?(:state_message)
128
+ @update_time = args[:update_time] if args.key?(:update_time)
129
+ end
130
+ end
131
+
132
+ # The long running operation metadata for delete processor method.
133
+ class GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata
134
+ include Google::Apis::Core::Hashable
135
+
136
+ # The creation time of the operation.
137
+ # Corresponds to the JSON property `createTime`
138
+ # @return [String]
139
+ attr_accessor :create_time
140
+
141
+ # The state of the current delete processor operation.
142
+ # Corresponds to the JSON property `state`
143
+ # @return [String]
144
+ attr_accessor :state
145
+
146
+ # A message providing more details about the current state of processing. For
147
+ # example, the error message if the operation is failed.
148
+ # Corresponds to the JSON property `stateMessage`
149
+ # @return [String]
150
+ attr_accessor :state_message
151
+
152
+ # The last update time of the operation.
153
+ # Corresponds to the JSON property `updateTime`
154
+ # @return [String]
155
+ attr_accessor :update_time
156
+
157
+ def initialize(**args)
158
+ update!(**args)
159
+ end
160
+
161
+ # Update properties of this object
162
+ def update!(**args)
163
+ @create_time = args[:create_time] if args.key?(:create_time)
164
+ @state = args[:state] if args.key?(:state)
165
+ @state_message = args[:state_message] if args.key?(:state_message)
166
+ @update_time = args[:update_time] if args.key?(:update_time)
167
+ end
168
+ end
169
+
170
+ # The long running operation metadata for disable processor method.
171
+ class GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata
172
+ include Google::Apis::Core::Hashable
173
+
174
+ # The creation time of the operation.
175
+ # Corresponds to the JSON property `createTime`
176
+ # @return [String]
177
+ attr_accessor :create_time
178
+
179
+ # The state of the current disable processor operation.
180
+ # Corresponds to the JSON property `state`
181
+ # @return [String]
182
+ attr_accessor :state
183
+
184
+ # A message providing more details about the current state of processing. For
185
+ # example, the error message if the operation is failed.
186
+ # Corresponds to the JSON property `stateMessage`
187
+ # @return [String]
188
+ attr_accessor :state_message
189
+
190
+ # The last update time of the operation.
191
+ # Corresponds to the JSON property `updateTime`
192
+ # @return [String]
193
+ attr_accessor :update_time
194
+
195
+ def initialize(**args)
196
+ update!(**args)
197
+ end
198
+
199
+ # Update properties of this object
200
+ def update!(**args)
201
+ @create_time = args[:create_time] if args.key?(:create_time)
202
+ @state = args[:state] if args.key?(:state)
203
+ @state_message = args[:state_message] if args.key?(:state_message)
204
+ @update_time = args[:update_time] if args.key?(:update_time)
205
+ end
206
+ end
207
+
208
+ # Response message for the disable processor method. Intentionally empty proto
209
+ # for adding fields in future.
210
+ class GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse
211
+ include Google::Apis::Core::Hashable
212
+
213
+ def initialize(**args)
214
+ update!(**args)
215
+ end
216
+
217
+ # Update properties of this object
218
+ def update!(**args)
219
+ end
220
+ end
221
+
222
+ # The long running operation metadata for enable processor method.
223
+ class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
224
+ include Google::Apis::Core::Hashable
225
+
226
+ # The creation time of the operation.
227
+ # Corresponds to the JSON property `createTime`
228
+ # @return [String]
229
+ attr_accessor :create_time
230
+
231
+ # The state of the current enable processor operation.
232
+ # Corresponds to the JSON property `state`
233
+ # @return [String]
234
+ attr_accessor :state
235
+
236
+ # A message providing more details about the current state of processing. For
237
+ # example, the error message if the operation is failed.
238
+ # Corresponds to the JSON property `stateMessage`
239
+ # @return [String]
240
+ attr_accessor :state_message
241
+
242
+ # The last update time of the operation.
243
+ # Corresponds to the JSON property `updateTime`
244
+ # @return [String]
245
+ attr_accessor :update_time
246
+
247
+ def initialize(**args)
248
+ update!(**args)
249
+ end
250
+
251
+ # Update properties of this object
252
+ def update!(**args)
253
+ @create_time = args[:create_time] if args.key?(:create_time)
254
+ @state = args[:state] if args.key?(:state)
255
+ @state_message = args[:state_message] if args.key?(:state_message)
256
+ @update_time = args[:update_time] if args.key?(:update_time)
257
+ end
258
+ end
259
+
260
+ # Response message for the enable processor method. Intentionally empty proto
261
+ # for adding fields in future.
262
+ class GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse
263
+ include Google::Apis::Core::Hashable
264
+
265
+ def initialize(**args)
266
+ update!(**args)
267
+ end
268
+
269
+ # Update properties of this object
270
+ def update!(**args)
271
+ end
272
+ end
273
+
274
+ # The long running operation metadata for UpdateLabelerPool.
275
+ class GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata
276
+ include Google::Apis::Core::Hashable
277
+
278
+ # The creation time of the operation.
279
+ # Corresponds to the JSON property `createTime`
280
+ # @return [String]
281
+ attr_accessor :create_time
282
+
283
+ # Used only when Operation.done is false.
284
+ # Corresponds to the JSON property `state`
285
+ # @return [String]
286
+ attr_accessor :state
287
+
288
+ # A message providing more details about the current state of processing. For
289
+ # example, the error message if the operation is failed.
290
+ # Corresponds to the JSON property `stateMessage`
291
+ # @return [String]
292
+ attr_accessor :state_message
293
+
294
+ # The last update time of the operation.
295
+ # Corresponds to the JSON property `updateTime`
296
+ # @return [String]
297
+ attr_accessor :update_time
298
+
299
+ def initialize(**args)
300
+ update!(**args)
301
+ end
302
+
303
+ # Update properties of this object
304
+ def update!(**args)
305
+ @create_time = args[:create_time] if args.key?(:create_time)
306
+ @state = args[:state] if args.key?(:state)
307
+ @state_message = args[:state_message] if args.key?(:state_message)
308
+ @update_time = args[:update_time] if args.key?(:update_time)
309
+ end
310
+ end
311
+
312
+ # Response to an batch document processing request. This is returned in the LRO
313
+ # Operation after the operation is complete.
27
314
  class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
28
315
  include Google::Apis::Core::Hashable
29
316
 
@@ -68,23 +355,22 @@ module Google
68
355
  end
69
356
 
70
357
  # Document represents the canonical document resource in Document Understanding
71
- # AI.
72
- # It is an interchange format that provides insights into documents and allows
73
- # for collaboration between users and Document Understanding AI to iterate and
74
- # optimize for quality.
358
+ # AI. It is an interchange format that provides insights into documents and
359
+ # allows for collaboration between users and Document Understanding AI to
360
+ # iterate and optimize for quality.
75
361
  class GoogleCloudDocumentaiV1beta1Document
76
362
  include Google::Apis::Core::Hashable
77
363
 
78
- # Inline document content, represented as a stream of bytes.
79
- # Note: As with all `bytes` fields, protobuffers use a pure binary
80
- # representation, whereas JSON representations use base64.
364
+ # Inline document content, represented as a stream of bytes. Note: As with all `
365
+ # bytes` fields, protobuffers use a pure binary representation, whereas JSON
366
+ # representations use base64.
81
367
  # Corresponds to the JSON property `content`
82
368
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
83
369
  # @return [String]
84
370
  attr_accessor :content
85
371
 
86
- # A list of entities detected on Document.text. For document shards,
87
- # entities in this list may cross shard boundaries.
372
+ # A list of entities detected on Document.text. For document shards, entities in
373
+ # this list may cross shard boundaries.
88
374
  # Corresponds to the JSON property `entities`
89
375
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentEntity>]
90
376
  attr_accessor :entities
@@ -94,19 +380,19 @@ module Google
94
380
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentEntityRelation>]
95
381
  attr_accessor :entity_relations
96
382
 
97
- # The `Status` type defines a logical error model that is suitable for
98
- # different programming environments, including REST APIs and RPC APIs. It is
99
- # used by [gRPC](https://github.com/grpc). Each `Status` message contains
100
- # three pieces of data: error code, error message, and error details.
101
- # You can find out more about this error model and how to work with it in the
102
- # [API Design Guide](https://cloud.google.com/apis/design/errors).
383
+ # The `Status` type defines a logical error model that is suitable for different
384
+ # programming environments, including REST APIs and RPC APIs. It is used by [
385
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
386
+ # data: error code, error message, and error details. You can find out more
387
+ # about this error model and how to work with it in the [API Design Guide](https:
388
+ # //cloud.google.com/apis/design/errors).
103
389
  # Corresponds to the JSON property `error`
104
390
  # @return [Google::Apis::DocumentaiV1beta2::GoogleRpcStatus]
105
391
  attr_accessor :error
106
392
 
107
393
  # An IANA published MIME type (also referred to as media type). For more
108
- # information, see
109
- # https://www.iana.org/assignments/media-types/media-types.xhtml.
394
+ # information, see https://www.iana.org/assignments/media-types/media-types.
395
+ # xhtml.
110
396
  # Corresponds to the JSON property `mimeType`
111
397
  # @return [String]
112
398
  attr_accessor :mime_type
@@ -116,9 +402,8 @@ module Google
116
402
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPage>]
117
403
  attr_accessor :pages
118
404
 
119
- # For a large document, sharding may be performed to produce several
120
- # document shards. Each document shard contains this field to detail which
121
- # shard it is.
405
+ # For a large document, sharding may be performed to produce several document
406
+ # shards. Each document shard contains this field to detail which shard it is.
122
407
  # Corresponds to the JSON property `shardInfo`
123
408
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentShardInfo]
124
409
  attr_accessor :shard_info
@@ -133,16 +418,15 @@ module Google
133
418
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyle>]
134
419
  attr_accessor :text_styles
135
420
 
136
- # A list of translations on Document.text. For document shards,
137
- # translations in this list may cross shard boundaries.
421
+ # A list of translations on Document.text. For document shards, translations in
422
+ # this list may cross shard boundaries.
138
423
  # Corresponds to the JSON property `translations`
139
424
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTranslation>]
140
425
  attr_accessor :translations
141
426
 
142
- # Currently supports Google Cloud Storage URI of the form
143
- # `gs://bucket_name/object_name`. Object versioning is not supported.
144
- # See [Google Cloud Storage Request
145
- # URIs](https://cloud.google.com/storage/docs/reference-uris) for more
427
+ # Currently supports Google Cloud Storage URI of the form `gs://bucket_name/
428
+ # object_name`. Object versioning is not supported. See [Google Cloud Storage
429
+ # Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more
146
430
  # info.
147
431
  # Corresponds to the JSON property `uri`
148
432
  # @return [String]
@@ -178,7 +462,7 @@ module Google
178
462
  # @return [Float]
179
463
  attr_accessor :confidence
180
464
 
181
- # Deprecated. Use `id` field instead.
465
+ # Deprecated. Use `id` field instead.
182
466
  # Corresponds to the JSON property `mentionId`
183
467
  # @return [String]
184
468
  attr_accessor :mention_id
@@ -188,6 +472,17 @@ module Google
188
472
  # @return [String]
189
473
  attr_accessor :mention_text
190
474
 
475
+ # Parsed and normalized entity value.
476
+ # Corresponds to the JSON property `normalizedValue`
477
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue]
478
+ attr_accessor :normalized_value
479
+
480
+ # Optional. Whether the entity will be redacted for de-identification purposes.
481
+ # Corresponds to the JSON property `redacted`
482
+ # @return [Boolean]
483
+ attr_accessor :redacted
484
+ alias_method :redacted?, :redacted
485
+
191
486
  # Text reference indexing into the Document.text.
192
487
  # Corresponds to the JSON property `textAnchor`
193
488
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
@@ -207,11 +502,70 @@ module Google
207
502
  @confidence = args[:confidence] if args.key?(:confidence)
208
503
  @mention_id = args[:mention_id] if args.key?(:mention_id)
209
504
  @mention_text = args[:mention_text] if args.key?(:mention_text)
505
+ @normalized_value = args[:normalized_value] if args.key?(:normalized_value)
506
+ @redacted = args[:redacted] if args.key?(:redacted)
210
507
  @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
211
508
  @type = args[:type] if args.key?(:type)
212
509
  end
213
510
  end
214
511
 
512
+ # Parsed and normalized entity value.
513
+ class GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue
514
+ include Google::Apis::Core::Hashable
515
+
516
+ # Represents a whole or partial calendar date, e.g. a birthday. The time of day
517
+ # and time zone are either specified elsewhere or are not significant. The date
518
+ # is relative to the Proleptic Gregorian Calendar. This can represent: * A full
519
+ # date, with non-zero year, month and day values * A month and day value, with a
520
+ # zero year, e.g. an anniversary * A year on its own, with zero month and day
521
+ # values * A year and month value, with a zero day, e.g. a credit card
522
+ # expiration date Related types are google.type.TimeOfDay and `google.protobuf.
523
+ # Timestamp`.
524
+ # Corresponds to the JSON property `dateValue`
525
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeDate]
526
+ attr_accessor :date_value
527
+
528
+ # Represents civil time in one of a few possible ways: * When utc_offset is set
529
+ # and time_zone is unset: a civil time on a calendar day with a particular
530
+ # offset from UTC. * When time_zone is set and utc_offset is unset: a civil time
531
+ # on a calendar day in a particular time zone. * When neither time_zone nor
532
+ # utc_offset is set: a civil time on a calendar day in local time. The date is
533
+ # relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is
534
+ # considered not to have a specific year. month and day must have valid, non-
535
+ # zero values. This type is more flexible than some applications may want. Make
536
+ # sure to document and validate your application's limitations.
537
+ # Corresponds to the JSON property `datetimeValue`
538
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime]
539
+ attr_accessor :datetime_value
540
+
541
+ # Represents an amount of money with its currency type.
542
+ # Corresponds to the JSON property `moneyValue`
543
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeMoney]
544
+ attr_accessor :money_value
545
+
546
+ # Required. Normalized entity value stored as a string. This field is populated
547
+ # for supported document type (e.g. Invoice). For some entity types, one of
548
+ # respective 'structured_value' fields may also be populated. - Money/Currency
549
+ # type (`money_value`) is in the ISO 4217 text format. - Date type (`date_value`)
550
+ # is in the ISO 8601 text format. - Datetime type (`datetime_value`) is in the
551
+ # ISO 8601 text format.
552
+ # Corresponds to the JSON property `text`
553
+ # @return [String]
554
+ attr_accessor :text
555
+
556
+ def initialize(**args)
557
+ update!(**args)
558
+ end
559
+
560
+ # Update properties of this object
561
+ def update!(**args)
562
+ @date_value = args[:date_value] if args.key?(:date_value)
563
+ @datetime_value = args[:datetime_value] if args.key?(:datetime_value)
564
+ @money_value = args[:money_value] if args.key?(:money_value)
565
+ @text = args[:text] if args.key?(:text)
566
+ end
567
+ end
568
+
215
569
  # Relationship between Entities.
216
570
  class GoogleCloudDocumentaiV1beta1DocumentEntityRelation
217
571
  include Google::Apis::Core::Hashable
@@ -247,9 +601,9 @@ module Google
247
601
  class GoogleCloudDocumentaiV1beta1DocumentPage
248
602
  include Google::Apis::Core::Hashable
249
603
 
250
- # A list of visually detected text blocks on the page.
251
- # A block has a set of lines (collected into paragraphs) that have a common
252
- # line-spacing and orientation.
604
+ # A list of visually detected text blocks on the page. A block has a set of
605
+ # lines (collected into paragraphs) that have a common line-spacing and
606
+ # orientation.
253
607
  # Corresponds to the JSON property `blocks`
254
608
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageBlock>]
255
609
  attr_accessor :blocks
@@ -274,21 +628,20 @@ module Google
274
628
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
275
629
  attr_accessor :layout
276
630
 
277
- # A list of visually detected text lines on the page.
278
- # A collection of tokens that a human would perceive as a line.
631
+ # A list of visually detected text lines on the page. A collection of tokens
632
+ # that a human would perceive as a line.
279
633
  # Corresponds to the JSON property `lines`
280
634
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLine>]
281
635
  attr_accessor :lines
282
636
 
283
- # 1-based index for current Page in a parent Document.
284
- # Useful when a page is taken out of a Document for individual
285
- # processing.
637
+ # 1-based index for current Page in a parent Document. Useful when a page is
638
+ # taken out of a Document for individual processing.
286
639
  # Corresponds to the JSON property `pageNumber`
287
640
  # @return [Fixnum]
288
641
  attr_accessor :page_number
289
642
 
290
- # A list of visually detected text paragraphs on the page.
291
- # A collection of lines that a human would perceive as a paragraph.
643
+ # A list of visually detected text paragraphs on the page. A collection of lines
644
+ # that a human would perceive as a paragraph.
292
645
  # Corresponds to the JSON property `paragraphs`
293
646
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageParagraph>]
294
647
  attr_accessor :paragraphs
@@ -303,8 +656,8 @@ module Google
303
656
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageToken>]
304
657
  attr_accessor :tokens
305
658
 
306
- # A list of detected non-text visual elements e.g. checkbox,
307
- # signature etc. on the page.
659
+ # A list of detected non-text visual elements e.g. checkbox, signature etc. on
660
+ # the page.
308
661
  # Corresponds to the JSON property `visualElements`
309
662
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageVisualElement>]
310
663
  attr_accessor :visual_elements
@@ -329,8 +682,8 @@ module Google
329
682
  end
330
683
  end
331
684
 
332
- # A block has a set of lines (collected into paragraphs) that have a
333
- # common line-spacing and orientation.
685
+ # A block has a set of lines (collected into paragraphs) that have a common line-
686
+ # spacing and orientation.
334
687
  class GoogleCloudDocumentaiV1beta1DocumentPageBlock
335
688
  include Google::Apis::Core::Hashable
336
689
 
@@ -364,9 +717,8 @@ module Google
364
717
  # @return [Float]
365
718
  attr_accessor :confidence
366
719
 
367
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
368
- # information, see
369
- # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
720
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
721
+ # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
370
722
  # Corresponds to the JSON property `languageCode`
371
723
  # @return [String]
372
724
  attr_accessor :language_code
@@ -459,9 +811,9 @@ module Google
459
811
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1BoundingPoly]
460
812
  attr_accessor :bounding_poly
461
813
 
462
- # Confidence of the current Layout within context of the object this
463
- # layout is for. e.g. confidence can be for a single token, a table,
464
- # a visual element, etc. depending on context. Range [0, 1].
814
+ # Confidence of the current Layout within context of the object this layout is
815
+ # for. e.g. confidence can be for a single token, a table, a visual element, etc.
816
+ # depending on context. Range [0, 1].
465
817
  # Corresponds to the JSON property `confidence`
466
818
  # @return [Float]
467
819
  attr_accessor :confidence
@@ -489,8 +841,8 @@ module Google
489
841
  end
490
842
  end
491
843
 
492
- # A collection of tokens that a human would perceive as a line.
493
- # Does not cross column boundaries, can be horizontal, vertical, etc.
844
+ # A collection of tokens that a human would perceive as a line. Does not cross
845
+ # column boundaries, can be horizontal, vertical, etc.
494
846
  class GoogleCloudDocumentaiV1beta1DocumentPageLine
495
847
  include Google::Apis::Core::Hashable
496
848
 
@@ -683,8 +1035,7 @@ module Google
683
1035
  end
684
1036
  end
685
1037
 
686
- # Detected non-text visual elements e.g. checkbox, signature etc. on the
687
- # page.
1038
+ # Detected non-text visual elements e.g. checkbox, signature etc. on the page.
688
1039
  class GoogleCloudDocumentaiV1beta1DocumentPageVisualElement
689
1040
  include Google::Apis::Core::Hashable
690
1041
 
@@ -715,9 +1066,8 @@ module Google
715
1066
  end
716
1067
  end
717
1068
 
718
- # For a large document, sharding may be performed to produce several
719
- # document shards. Each document shard contains this field to detail which
720
- # shard it is.
1069
+ # For a large document, sharding may be performed to produce several document
1070
+ # shards. Each document shard contains this field to detail which shard it is.
721
1071
  class GoogleCloudDocumentaiV1beta1DocumentShardInfo
722
1072
  include Google::Apis::Core::Hashable
723
1073
 
@@ -731,8 +1081,8 @@ module Google
731
1081
  # @return [Fixnum]
732
1082
  attr_accessor :shard_index
733
1083
 
734
- # The index of the first character in Document.text in the overall
735
- # document global text.
1084
+ # The index of the first character in Document.text in the overall document
1085
+ # global text.
736
1086
  # Corresponds to the JSON property `textOffset`
737
1087
  # @return [Fixnum]
738
1088
  attr_accessor :text_offset
@@ -749,227 +1099,105 @@ module Google
749
1099
  end
750
1100
  end
751
1101
 
752
- # Annotation for common text style attributes. This adheres to CSS
753
- # conventions as much as possible.
1102
+ # Annotation for common text style attributes. This adheres to CSS conventions
1103
+ # as much as possible.
754
1104
  class GoogleCloudDocumentaiV1beta1DocumentStyle
755
1105
  include Google::Apis::Core::Hashable
756
1106
 
757
1107
  # Represents a color in the RGBA color space. This representation is designed
758
1108
  # for simplicity of conversion to/from color representations in various
759
- # languages over compactness; for example, the fields of this representation
760
- # can be trivially provided to the constructor of "java.awt.Color" in Java; it
761
- # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
762
- # method in iOS; and, with just a little work, it can be easily formatted into
763
- # a CSS "rgba()" string in JavaScript, as well.
764
- # Note: this proto does not carry information about the absolute color space
765
- # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
766
- # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
767
- # space.
768
- # Note: when color equality needs to be decided, implementations, unless
769
- # documented otherwise, will treat two colors to be equal if all their red,
770
- # green, blue and alpha values each differ by at most 1e-5.
771
- # Example (Java):
772
- # import com.google.type.Color;
773
- # // ...
774
- # public static java.awt.Color fromProto(Color protocolor) `
775
- # float alpha = protocolor.hasAlpha()
776
- # ? protocolor.getAlpha().getValue()
777
- # : 1.0;
778
- # return new java.awt.Color(
779
- # protocolor.getRed(),
780
- # protocolor.getGreen(),
781
- # protocolor.getBlue(),
782
- # alpha);
783
- # `
784
- # public static Color toProto(java.awt.Color color) `
785
- # float red = (float) color.getRed();
786
- # float green = (float) color.getGreen();
787
- # float blue = (float) color.getBlue();
788
- # float denominator = 255.0;
789
- # Color.Builder resultBuilder =
790
- # Color
791
- # .newBuilder()
792
- # .setRed(red / denominator)
793
- # .setGreen(green / denominator)
794
- # .setBlue(blue / denominator);
795
- # int alpha = color.getAlpha();
796
- # if (alpha != 255) `
797
- # result.setAlpha(
798
- # FloatValue
799
- # .newBuilder()
800
- # .setValue(((float) alpha) / denominator)
801
- # .build());
802
- # `
803
- # return resultBuilder.build();
804
- # `
805
- # // ...
806
- # Example (iOS / Obj-C):
807
- # // ...
808
- # static UIColor* fromProto(Color* protocolor) `
809
- # float red = [protocolor red];
810
- # float green = [protocolor green];
811
- # float blue = [protocolor blue];
812
- # FloatValue* alpha_wrapper = [protocolor alpha];
813
- # float alpha = 1.0;
814
- # if (alpha_wrapper != nil) `
815
- # alpha = [alpha_wrapper value];
816
- # `
817
- # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
818
- # `
819
- # static Color* toProto(UIColor* color) `
820
- # CGFloat red, green, blue, alpha;
821
- # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
822
- # return nil;
823
- # `
824
- # Color* result = [[Color alloc] init];
825
- # [result setRed:red];
826
- # [result setGreen:green];
827
- # [result setBlue:blue];
828
- # if (alpha <= 0.9999) `
829
- # [result setAlpha:floatWrapperWithValue(alpha)];
830
- # `
831
- # [result autorelease];
832
- # return result;
833
- # `
834
- # // ...
835
- # Example (JavaScript):
836
- # // ...
837
- # var protoToCssColor = function(rgb_color) `
838
- # var redFrac = rgb_color.red || 0.0;
839
- # var greenFrac = rgb_color.green || 0.0;
840
- # var blueFrac = rgb_color.blue || 0.0;
841
- # var red = Math.floor(redFrac * 255);
842
- # var green = Math.floor(greenFrac * 255);
843
- # var blue = Math.floor(blueFrac * 255);
844
- # if (!('alpha' in rgb_color)) `
845
- # return rgbToCssColor_(red, green, blue);
846
- # `
847
- # var alphaFrac = rgb_color.alpha.value || 0.0;
848
- # var rgbParams = [red, green, blue].join(',');
849
- # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
850
- # `;
851
- # var rgbToCssColor_ = function(red, green, blue) `
852
- # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
853
- # var hexString = rgbNumber.toString(16);
854
- # var missingZeros = 6 - hexString.length;
855
- # var resultBuilder = ['#'];
856
- # for (var i = 0; i < missingZeros; i++) `
857
- # resultBuilder.push('0');
858
- # `
859
- # resultBuilder.push(hexString);
860
- # return resultBuilder.join('');
861
- # `;
862
- # // ...
1109
+ # languages over compactness; for example, the fields of this representation can
1110
+ # be trivially provided to the constructor of "java.awt.Color" in Java; it can
1111
+ # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
1112
+ # method in iOS; and, with just a little work, it can be easily formatted into a
1113
+ # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
1114
+ # information about the absolute color space that should be used to interpret
1115
+ # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
1116
+ # applications SHOULD assume the sRGB color space. Note: when color equality
1117
+ # needs to be decided, implementations, unless documented otherwise, will treat
1118
+ # two colors to be equal if all their red, green, blue and alpha values each
1119
+ # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
1120
+ # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
1121
+ # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
1122
+ # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
1123
+ # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
1124
+ # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
1125
+ # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
1126
+ # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
1127
+ # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
1128
+ # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
1129
+ # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
1130
+ # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
1131
+ # protocolor red]; float green = [protocolor green]; float blue = [protocolor
1132
+ # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
1133
+ # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
1134
+ # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
1135
+ # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
1136
+ # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
1137
+ # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
1138
+ # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
1139
+ # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
1140
+ # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
1141
+ # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
1142
+ # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
1143
+ # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
1144
+ # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1145
+ # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
1146
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
1147
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
1148
+ # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
1149
+ # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
1150
+ # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
1151
+ # join(''); `; // ...
863
1152
  # Corresponds to the JSON property `backgroundColor`
864
1153
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
865
1154
  attr_accessor :background_color
866
1155
 
867
1156
  # Represents a color in the RGBA color space. This representation is designed
868
1157
  # for simplicity of conversion to/from color representations in various
869
- # languages over compactness; for example, the fields of this representation
870
- # can be trivially provided to the constructor of "java.awt.Color" in Java; it
871
- # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
872
- # method in iOS; and, with just a little work, it can be easily formatted into
873
- # a CSS "rgba()" string in JavaScript, as well.
874
- # Note: this proto does not carry information about the absolute color space
875
- # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
876
- # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
877
- # space.
878
- # Note: when color equality needs to be decided, implementations, unless
879
- # documented otherwise, will treat two colors to be equal if all their red,
880
- # green, blue and alpha values each differ by at most 1e-5.
881
- # Example (Java):
882
- # import com.google.type.Color;
883
- # // ...
884
- # public static java.awt.Color fromProto(Color protocolor) `
885
- # float alpha = protocolor.hasAlpha()
886
- # ? protocolor.getAlpha().getValue()
887
- # : 1.0;
888
- # return new java.awt.Color(
889
- # protocolor.getRed(),
890
- # protocolor.getGreen(),
891
- # protocolor.getBlue(),
892
- # alpha);
893
- # `
894
- # public static Color toProto(java.awt.Color color) `
895
- # float red = (float) color.getRed();
896
- # float green = (float) color.getGreen();
897
- # float blue = (float) color.getBlue();
898
- # float denominator = 255.0;
899
- # Color.Builder resultBuilder =
900
- # Color
901
- # .newBuilder()
902
- # .setRed(red / denominator)
903
- # .setGreen(green / denominator)
904
- # .setBlue(blue / denominator);
905
- # int alpha = color.getAlpha();
906
- # if (alpha != 255) `
907
- # result.setAlpha(
908
- # FloatValue
909
- # .newBuilder()
910
- # .setValue(((float) alpha) / denominator)
911
- # .build());
912
- # `
913
- # return resultBuilder.build();
914
- # `
915
- # // ...
916
- # Example (iOS / Obj-C):
917
- # // ...
918
- # static UIColor* fromProto(Color* protocolor) `
919
- # float red = [protocolor red];
920
- # float green = [protocolor green];
921
- # float blue = [protocolor blue];
922
- # FloatValue* alpha_wrapper = [protocolor alpha];
923
- # float alpha = 1.0;
924
- # if (alpha_wrapper != nil) `
925
- # alpha = [alpha_wrapper value];
926
- # `
927
- # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
928
- # `
929
- # static Color* toProto(UIColor* color) `
930
- # CGFloat red, green, blue, alpha;
931
- # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
932
- # return nil;
933
- # `
934
- # Color* result = [[Color alloc] init];
935
- # [result setRed:red];
936
- # [result setGreen:green];
937
- # [result setBlue:blue];
938
- # if (alpha <= 0.9999) `
939
- # [result setAlpha:floatWrapperWithValue(alpha)];
940
- # `
941
- # [result autorelease];
942
- # return result;
943
- # `
944
- # // ...
945
- # Example (JavaScript):
946
- # // ...
947
- # var protoToCssColor = function(rgb_color) `
948
- # var redFrac = rgb_color.red || 0.0;
949
- # var greenFrac = rgb_color.green || 0.0;
950
- # var blueFrac = rgb_color.blue || 0.0;
951
- # var red = Math.floor(redFrac * 255);
952
- # var green = Math.floor(greenFrac * 255);
953
- # var blue = Math.floor(blueFrac * 255);
954
- # if (!('alpha' in rgb_color)) `
955
- # return rgbToCssColor_(red, green, blue);
956
- # `
957
- # var alphaFrac = rgb_color.alpha.value || 0.0;
958
- # var rgbParams = [red, green, blue].join(',');
959
- # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
960
- # `;
961
- # var rgbToCssColor_ = function(red, green, blue) `
962
- # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
963
- # var hexString = rgbNumber.toString(16);
964
- # var missingZeros = 6 - hexString.length;
965
- # var resultBuilder = ['#'];
966
- # for (var i = 0; i < missingZeros; i++) `
967
- # resultBuilder.push('0');
968
- # `
969
- # resultBuilder.push(hexString);
970
- # return resultBuilder.join('');
971
- # `;
972
- # // ...
1158
+ # languages over compactness; for example, the fields of this representation can
1159
+ # be trivially provided to the constructor of "java.awt.Color" in Java; it can
1160
+ # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
1161
+ # method in iOS; and, with just a little work, it can be easily formatted into a
1162
+ # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
1163
+ # information about the absolute color space that should be used to interpret
1164
+ # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
1165
+ # applications SHOULD assume the sRGB color space. Note: when color equality
1166
+ # needs to be decided, implementations, unless documented otherwise, will treat
1167
+ # two colors to be equal if all their red, green, blue and alpha values each
1168
+ # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
1169
+ # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
1170
+ # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
1171
+ # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
1172
+ # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
1173
+ # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
1174
+ # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
1175
+ # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
1176
+ # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
1177
+ # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
1178
+ # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
1179
+ # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
1180
+ # protocolor red]; float green = [protocolor green]; float blue = [protocolor
1181
+ # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
1182
+ # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
1183
+ # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
1184
+ # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
1185
+ # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
1186
+ # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
1187
+ # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
1188
+ # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
1189
+ # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
1190
+ # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
1191
+ # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
1192
+ # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
1193
+ # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1194
+ # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
1195
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
1196
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
1197
+ # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
1198
+ # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
1199
+ # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
1200
+ # join(''); `; // ...
973
1201
  # Corresponds to the JSON property `color`
974
1202
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
975
1203
  attr_accessor :color
@@ -979,8 +1207,8 @@ module Google
979
1207
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyleFontSize]
980
1208
  attr_accessor :font_size
981
1209
 
982
- # Font weight. Possible values are normal, bold, bolder, and lighter.
983
- # https://www.w3schools.com/cssref/pr_font_weight.asp
1210
+ # Font weight. Possible values are normal, bold, bolder, and lighter. https://
1211
+ # www.w3schools.com/cssref/pr_font_weight.asp
984
1212
  # Corresponds to the JSON property `fontWeight`
985
1213
  # @return [String]
986
1214
  attr_accessor :font_weight
@@ -990,15 +1218,14 @@ module Google
990
1218
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
991
1219
  attr_accessor :text_anchor
992
1220
 
993
- # Text decoration. Follows CSS standard.
994
- # <text-decoration-line> <text-decoration-color> <text-decoration-style>
995
- # https://www.w3schools.com/cssref/pr_text_text-decoration.asp
1221
+ # Text decoration. Follows CSS standard. https://www.w3schools.com/cssref/
1222
+ # pr_text_text-decoration.asp
996
1223
  # Corresponds to the JSON property `textDecoration`
997
1224
  # @return [String]
998
1225
  attr_accessor :text_decoration
999
1226
 
1000
- # Text style. Possible values are normal, italic, and oblique.
1001
- # https://www.w3schools.com/cssref/pr_font_font-style.asp
1227
+ # Text style. Possible values are normal, italic, and oblique. https://www.
1228
+ # w3schools.com/cssref/pr_font_font-style.asp
1002
1229
  # Corresponds to the JSON property `textStyle`
1003
1230
  # @return [String]
1004
1231
  attr_accessor :text_style
@@ -1063,14 +1290,13 @@ module Google
1063
1290
  end
1064
1291
  end
1065
1292
 
1066
- # A text segment in the Document.text. The indices may be out of bounds
1067
- # which indicate that the text extends into another document shard for
1068
- # large sharded documents. See ShardInfo.text_offset
1293
+ # A text segment in the Document.text. The indices may be out of bounds which
1294
+ # indicate that the text extends into another document shard for large sharded
1295
+ # documents. See ShardInfo.text_offset
1069
1296
  class GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment
1070
1297
  include Google::Apis::Core::Hashable
1071
1298
 
1072
- # TextSegment half open end UTF-8 char index in the
1073
- # Document.text.
1299
+ # TextSegment half open end UTF-8 char index in the Document.text.
1074
1300
  # Corresponds to the JSON property `endIndex`
1075
1301
  # @return [Fixnum]
1076
1302
  attr_accessor :end_index
@@ -1095,9 +1321,8 @@ module Google
1095
1321
  class GoogleCloudDocumentaiV1beta1DocumentTranslation
1096
1322
  include Google::Apis::Core::Hashable
1097
1323
 
1098
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
1099
- # information, see
1100
- # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1324
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
1325
+ # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1101
1326
  # Corresponds to the JSON property `languageCode`
1102
1327
  # @return [String]
1103
1328
  attr_accessor :language_code
@@ -1172,11 +1397,9 @@ module Google
1172
1397
  attr_accessor :gcs_source
1173
1398
 
1174
1399
  # Required. Mimetype of the input. Current supported mimetypes are application/
1175
- # pdf,
1176
- # image/tiff, and image/gif.
1177
- # In addition, application/json type is supported for requests with
1178
- # ProcessDocumentRequest.automl_params field set. The JSON file needs to
1179
- # be in Document format.
1400
+ # pdf, image/tiff, and image/gif. In addition, application/json type is
1401
+ # supported for requests with ProcessDocumentRequest.automl_params field set.
1402
+ # The JSON file needs to be in Document format.
1180
1403
  # Corresponds to the JSON property `mimeType`
1181
1404
  # @return [String]
1182
1405
  attr_accessor :mime_type
@@ -1192,9 +1415,8 @@ module Google
1192
1415
  end
1193
1416
  end
1194
1417
 
1195
- # A vertex represents a 2D point in the image.
1196
- # NOTE: the normalized vertex coordinates are relative to the original image
1197
- # and range from 0 to 1.
1418
+ # A vertex represents a 2D point in the image. NOTE: the normalized vertex
1419
+ # coordinates are relative to the original image and range from 0 to 1.
1198
1420
  class GoogleCloudDocumentaiV1beta1NormalizedVertex
1199
1421
  include Google::Apis::Core::Hashable
1200
1422
 
@@ -1266,18 +1488,14 @@ module Google
1266
1488
  attr_accessor :gcs_destination
1267
1489
 
1268
1490
  # The max number of pages to include into each output Document shard JSON on
1269
- # Google Cloud Storage.
1270
- # The valid range is [1, 100]. If not specified, the default value is 20.
1271
- # For example, for one pdf file with 100 pages, 100 parsed pages will be
1272
- # produced. If `pages_per_shard` = 20, then 5 Document shard JSON files each
1273
- # containing 20 parsed pages will be written under the prefix
1274
- # OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where
1275
- # x and y are 1-indexed page numbers.
1276
- # Example GCS outputs with 157 pages and pages_per_shard = 50:
1277
- # <prefix>pages-001-to-050.json
1278
- # <prefix>pages-051-to-100.json
1279
- # <prefix>pages-101-to-150.json
1280
- # <prefix>pages-151-to-157.json
1491
+ # Google Cloud Storage. The valid range is [1, 100]. If not specified, the
1492
+ # default value is 20. For example, for one pdf file with 100 pages, 100 parsed
1493
+ # pages will be produced. If `pages_per_shard` = 20, then 5 Document shard JSON
1494
+ # files each containing 20 parsed pages will be written under the prefix
1495
+ # OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where x and y
1496
+ # are 1-indexed page numbers. Example GCS outputs with 157 pages and
1497
+ # pages_per_shard = 50: pages-001-to-050.json pages-051-to-100.json pages-101-to-
1498
+ # 150.json pages-151-to-157.json
1281
1499
  # Corresponds to the JSON property `pagesPerShard`
1282
1500
  # @return [Fixnum]
1283
1501
  attr_accessor :pages_per_shard
@@ -1318,8 +1536,8 @@ module Google
1318
1536
  end
1319
1537
  end
1320
1538
 
1321
- # A vertex represents a 2D point in the image.
1322
- # NOTE: the vertex coordinates are in the same scale as the original image.
1539
+ # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are
1540
+ # in the same scale as the original image.
1323
1541
  class GoogleCloudDocumentaiV1beta1Vertex
1324
1542
  include Google::Apis::Core::Hashable
1325
1543
 
@@ -1348,8 +1566,8 @@ module Google
1348
1566
  class GoogleCloudDocumentaiV1beta2AutoMlParams
1349
1567
  include Google::Apis::Core::Hashable
1350
1568
 
1351
- # Resource name of the AutoML model.
1352
- # Format: `projects/`project-id`/locations/`location-id`/models/`model-id``.
1569
+ # Resource name of the AutoML model. Format: `projects/`project-id`/locations/`
1570
+ # location-id`/models/`model-id``.
1353
1571
  # Corresponds to the JSON property `model`
1354
1572
  # @return [String]
1355
1573
  attr_accessor :model
@@ -1364,8 +1582,8 @@ module Google
1364
1582
  end
1365
1583
  end
1366
1584
 
1367
- # Request to batch process documents as an asynchronous operation. The output
1368
- # is written to Cloud Storage as JSON in the [Document] format.
1585
+ # Request to batch process documents as an asynchronous operation. The output is
1586
+ # written to Cloud Storage as JSON in the [Document] format.
1369
1587
  class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest
1370
1588
  include Google::Apis::Core::Hashable
1371
1589
 
@@ -1384,8 +1602,8 @@ module Google
1384
1602
  end
1385
1603
  end
1386
1604
 
1387
- # Response to an batch document processing request. This is returned in
1388
- # the LRO Operation after the operation is complete.
1605
+ # Response to an batch document processing request. This is returned in the LRO
1606
+ # Operation after the operation is complete.
1389
1607
  class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
1390
1608
  include Google::Apis::Core::Hashable
1391
1609
 
@@ -1430,23 +1648,22 @@ module Google
1430
1648
  end
1431
1649
 
1432
1650
  # Document represents the canonical document resource in Document Understanding
1433
- # AI.
1434
- # It is an interchange format that provides insights into documents and allows
1435
- # for collaboration between users and Document Understanding AI to iterate and
1436
- # optimize for quality.
1651
+ # AI. It is an interchange format that provides insights into documents and
1652
+ # allows for collaboration between users and Document Understanding AI to
1653
+ # iterate and optimize for quality.
1437
1654
  class GoogleCloudDocumentaiV1beta2Document
1438
1655
  include Google::Apis::Core::Hashable
1439
1656
 
1440
- # Inline document content, represented as a stream of bytes.
1441
- # Note: As with all `bytes` fields, protobuffers use a pure binary
1442
- # representation, whereas JSON representations use base64.
1657
+ # Inline document content, represented as a stream of bytes. Note: As with all `
1658
+ # bytes` fields, protobuffers use a pure binary representation, whereas JSON
1659
+ # representations use base64.
1443
1660
  # Corresponds to the JSON property `content`
1444
1661
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
1445
1662
  # @return [String]
1446
1663
  attr_accessor :content
1447
1664
 
1448
- # A list of entities detected on Document.text. For document shards,
1449
- # entities in this list may cross shard boundaries.
1665
+ # A list of entities detected on Document.text. For document shards, entities in
1666
+ # this list may cross shard boundaries.
1450
1667
  # Corresponds to the JSON property `entities`
1451
1668
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentEntity>]
1452
1669
  attr_accessor :entities
@@ -1456,12 +1673,12 @@ module Google
1456
1673
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentEntityRelation>]
1457
1674
  attr_accessor :entity_relations
1458
1675
 
1459
- # The `Status` type defines a logical error model that is suitable for
1460
- # different programming environments, including REST APIs and RPC APIs. It is
1461
- # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1462
- # three pieces of data: error code, error message, and error details.
1463
- # You can find out more about this error model and how to work with it in the
1464
- # [API Design Guide](https://cloud.google.com/apis/design/errors).
1676
+ # The `Status` type defines a logical error model that is suitable for different
1677
+ # programming environments, including REST APIs and RPC APIs. It is used by [
1678
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
1679
+ # data: error code, error message, and error details. You can find out more
1680
+ # about this error model and how to work with it in the [API Design Guide](https:
1681
+ # //cloud.google.com/apis/design/errors).
1465
1682
  # Corresponds to the JSON property `error`
1466
1683
  # @return [Google::Apis::DocumentaiV1beta2::GoogleRpcStatus]
1467
1684
  attr_accessor :error
@@ -1472,8 +1689,8 @@ module Google
1472
1689
  attr_accessor :labels
1473
1690
 
1474
1691
  # An IANA published MIME type (also referred to as media type). For more
1475
- # information, see
1476
- # https://www.iana.org/assignments/media-types/media-types.xhtml.
1692
+ # information, see https://www.iana.org/assignments/media-types/media-types.
1693
+ # xhtml.
1477
1694
  # Corresponds to the JSON property `mimeType`
1478
1695
  # @return [String]
1479
1696
  attr_accessor :mime_type
@@ -1483,9 +1700,8 @@ module Google
1483
1700
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPage>]
1484
1701
  attr_accessor :pages
1485
1702
 
1486
- # For a large document, sharding may be performed to produce several
1487
- # document shards. Each document shard contains this field to detail which
1488
- # shard it is.
1703
+ # For a large document, sharding may be performed to produce several document
1704
+ # shards. Each document shard contains this field to detail which shard it is.
1489
1705
  # Corresponds to the JSON property `shardInfo`
1490
1706
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentShardInfo]
1491
1707
  attr_accessor :shard_info
@@ -1500,16 +1716,15 @@ module Google
1500
1716
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyle>]
1501
1717
  attr_accessor :text_styles
1502
1718
 
1503
- # A list of translations on Document.text. For document shards,
1504
- # translations in this list may cross shard boundaries.
1719
+ # A list of translations on Document.text. For document shards, translations in
1720
+ # this list may cross shard boundaries.
1505
1721
  # Corresponds to the JSON property `translations`
1506
1722
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTranslation>]
1507
1723
  attr_accessor :translations
1508
1724
 
1509
- # Currently supports Google Cloud Storage URI of the form
1510
- # `gs://bucket_name/object_name`. Object versioning is not supported.
1511
- # See [Google Cloud Storage Request
1512
- # URIs](https://cloud.google.com/storage/docs/reference-uris) for more
1725
+ # Currently supports Google Cloud Storage URI of the form `gs://bucket_name/
1726
+ # object_name`. Object versioning is not supported. See [Google Cloud Storage
1727
+ # Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more
1513
1728
  # info.
1514
1729
  # Corresponds to the JSON property `uri`
1515
1730
  # @return [String]
@@ -1546,7 +1761,7 @@ module Google
1546
1761
  # @return [Float]
1547
1762
  attr_accessor :confidence
1548
1763
 
1549
- # Deprecated. Use `id` field instead.
1764
+ # Deprecated. Use `id` field instead.
1550
1765
  # Corresponds to the JSON property `mentionId`
1551
1766
  # @return [String]
1552
1767
  attr_accessor :mention_id
@@ -1556,6 +1771,17 @@ module Google
1556
1771
  # @return [String]
1557
1772
  attr_accessor :mention_text
1558
1773
 
1774
+ # Parsed and normalized entity value.
1775
+ # Corresponds to the JSON property `normalizedValue`
1776
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue]
1777
+ attr_accessor :normalized_value
1778
+
1779
+ # Optional. Whether the entity will be redacted for de-identification purposes.
1780
+ # Corresponds to the JSON property `redacted`
1781
+ # @return [Boolean]
1782
+ attr_accessor :redacted
1783
+ alias_method :redacted?, :redacted
1784
+
1559
1785
  # Text reference indexing into the Document.text.
1560
1786
  # Corresponds to the JSON property `textAnchor`
1561
1787
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor]
@@ -1575,11 +1801,70 @@ module Google
1575
1801
  @confidence = args[:confidence] if args.key?(:confidence)
1576
1802
  @mention_id = args[:mention_id] if args.key?(:mention_id)
1577
1803
  @mention_text = args[:mention_text] if args.key?(:mention_text)
1804
+ @normalized_value = args[:normalized_value] if args.key?(:normalized_value)
1805
+ @redacted = args[:redacted] if args.key?(:redacted)
1578
1806
  @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
1579
1807
  @type = args[:type] if args.key?(:type)
1580
1808
  end
1581
1809
  end
1582
1810
 
1811
+ # Parsed and normalized entity value.
1812
+ class GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue
1813
+ include Google::Apis::Core::Hashable
1814
+
1815
+ # Represents a whole or partial calendar date, e.g. a birthday. The time of day
1816
+ # and time zone are either specified elsewhere or are not significant. The date
1817
+ # is relative to the Proleptic Gregorian Calendar. This can represent: * A full
1818
+ # date, with non-zero year, month and day values * A month and day value, with a
1819
+ # zero year, e.g. an anniversary * A year on its own, with zero month and day
1820
+ # values * A year and month value, with a zero day, e.g. a credit card
1821
+ # expiration date Related types are google.type.TimeOfDay and `google.protobuf.
1822
+ # Timestamp`.
1823
+ # Corresponds to the JSON property `dateValue`
1824
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeDate]
1825
+ attr_accessor :date_value
1826
+
1827
+ # Represents civil time in one of a few possible ways: * When utc_offset is set
1828
+ # and time_zone is unset: a civil time on a calendar day with a particular
1829
+ # offset from UTC. * When time_zone is set and utc_offset is unset: a civil time
1830
+ # on a calendar day in a particular time zone. * When neither time_zone nor
1831
+ # utc_offset is set: a civil time on a calendar day in local time. The date is
1832
+ # relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is
1833
+ # considered not to have a specific year. month and day must have valid, non-
1834
+ # zero values. This type is more flexible than some applications may want. Make
1835
+ # sure to document and validate your application's limitations.
1836
+ # Corresponds to the JSON property `datetimeValue`
1837
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime]
1838
+ attr_accessor :datetime_value
1839
+
1840
+ # Represents an amount of money with its currency type.
1841
+ # Corresponds to the JSON property `moneyValue`
1842
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeMoney]
1843
+ attr_accessor :money_value
1844
+
1845
+ # Required. Normalized entity value stored as a string. This field is populated
1846
+ # for supported document type (e.g. Invoice). For some entity types, one of
1847
+ # respective 'structured_value' fields may also be populated. - Money/Currency
1848
+ # type (`money_value`) is in the ISO 4217 text format. - Date type (`date_value`)
1849
+ # is in the ISO 8601 text format. - Datetime type (`datetime_value`) is in the
1850
+ # ISO 8601 text format.
1851
+ # Corresponds to the JSON property `text`
1852
+ # @return [String]
1853
+ attr_accessor :text
1854
+
1855
+ def initialize(**args)
1856
+ update!(**args)
1857
+ end
1858
+
1859
+ # Update properties of this object
1860
+ def update!(**args)
1861
+ @date_value = args[:date_value] if args.key?(:date_value)
1862
+ @datetime_value = args[:datetime_value] if args.key?(:datetime_value)
1863
+ @money_value = args[:money_value] if args.key?(:money_value)
1864
+ @text = args[:text] if args.key?(:text)
1865
+ end
1866
+ end
1867
+
1583
1868
  # Relationship between Entities.
1584
1869
  class GoogleCloudDocumentaiV1beta2DocumentEntityRelation
1585
1870
  include Google::Apis::Core::Hashable
@@ -1611,17 +1896,16 @@ module Google
1611
1896
  end
1612
1897
  end
1613
1898
 
1614
- # Label attaches schema information and/or other metadata to segments within
1615
- # a Document. Multiple Labels on a single field can denote either
1616
- # different labels, different instances of the same label created at
1617
- # different times, or some combination of both.
1899
+ # Label attaches schema information and/or other metadata to segments within a
1900
+ # Document. Multiple Labels on a single field can denote either different labels,
1901
+ # different instances of the same label created at different times, or some
1902
+ # combination of both.
1618
1903
  class GoogleCloudDocumentaiV1beta2DocumentLabel
1619
1904
  include Google::Apis::Core::Hashable
1620
1905
 
1621
- # Label is generated AutoML model. This field stores the full resource
1622
- # name of the AutoML model.
1623
- # Format:
1624
- # `projects/`project-id`/locations/`location-id`/models/`model-id``
1906
+ # Label is generated AutoML model. This field stores the full resource name of
1907
+ # the AutoML model. Format: `projects/`project-id`/locations/`location-id`/
1908
+ # models/`model-id``
1625
1909
  # Corresponds to the JSON property `automlModel`
1626
1910
  # @return [String]
1627
1911
  attr_accessor :automl_model
@@ -1631,9 +1915,8 @@ module Google
1631
1915
  # @return [Float]
1632
1916
  attr_accessor :confidence
1633
1917
 
1634
- # Name of the label.
1635
- # When the label is generated from AutoML Text Classification model, this
1636
- # field represents the name of the category.
1918
+ # Name of the label. When the label is generated from AutoML Text Classification
1919
+ # model, this field represents the name of the category.
1637
1920
  # Corresponds to the JSON property `name`
1638
1921
  # @return [String]
1639
1922
  attr_accessor :name
@@ -1654,9 +1937,9 @@ module Google
1654
1937
  class GoogleCloudDocumentaiV1beta2DocumentPage
1655
1938
  include Google::Apis::Core::Hashable
1656
1939
 
1657
- # A list of visually detected text blocks on the page.
1658
- # A block has a set of lines (collected into paragraphs) that have a common
1659
- # line-spacing and orientation.
1940
+ # A list of visually detected text blocks on the page. A block has a set of
1941
+ # lines (collected into paragraphs) that have a common line-spacing and
1942
+ # orientation.
1660
1943
  # Corresponds to the JSON property `blocks`
1661
1944
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageBlock>]
1662
1945
  attr_accessor :blocks
@@ -1681,21 +1964,20 @@ module Google
1681
1964
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
1682
1965
  attr_accessor :layout
1683
1966
 
1684
- # A list of visually detected text lines on the page.
1685
- # A collection of tokens that a human would perceive as a line.
1967
+ # A list of visually detected text lines on the page. A collection of tokens
1968
+ # that a human would perceive as a line.
1686
1969
  # Corresponds to the JSON property `lines`
1687
1970
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLine>]
1688
1971
  attr_accessor :lines
1689
1972
 
1690
- # 1-based index for current Page in a parent Document.
1691
- # Useful when a page is taken out of a Document for individual
1692
- # processing.
1973
+ # 1-based index for current Page in a parent Document. Useful when a page is
1974
+ # taken out of a Document for individual processing.
1693
1975
  # Corresponds to the JSON property `pageNumber`
1694
1976
  # @return [Fixnum]
1695
1977
  attr_accessor :page_number
1696
1978
 
1697
- # A list of visually detected text paragraphs on the page.
1698
- # A collection of lines that a human would perceive as a paragraph.
1979
+ # A list of visually detected text paragraphs on the page. A collection of lines
1980
+ # that a human would perceive as a paragraph.
1699
1981
  # Corresponds to the JSON property `paragraphs`
1700
1982
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageParagraph>]
1701
1983
  attr_accessor :paragraphs
@@ -1710,8 +1992,8 @@ module Google
1710
1992
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageToken>]
1711
1993
  attr_accessor :tokens
1712
1994
 
1713
- # A list of detected non-text visual elements e.g. checkbox,
1714
- # signature etc. on the page.
1995
+ # A list of detected non-text visual elements e.g. checkbox, signature etc. on
1996
+ # the page.
1715
1997
  # Corresponds to the JSON property `visualElements`
1716
1998
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageVisualElement>]
1717
1999
  attr_accessor :visual_elements
@@ -1736,8 +2018,8 @@ module Google
1736
2018
  end
1737
2019
  end
1738
2020
 
1739
- # A block has a set of lines (collected into paragraphs) that have a
1740
- # common line-spacing and orientation.
2021
+ # A block has a set of lines (collected into paragraphs) that have a common line-
2022
+ # spacing and orientation.
1741
2023
  class GoogleCloudDocumentaiV1beta2DocumentPageBlock
1742
2024
  include Google::Apis::Core::Hashable
1743
2025
 
@@ -1771,9 +2053,8 @@ module Google
1771
2053
  # @return [Float]
1772
2054
  attr_accessor :confidence
1773
2055
 
1774
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
1775
- # information, see
1776
- # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2056
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
2057
+ # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1777
2058
  # Corresponds to the JSON property `languageCode`
1778
2059
  # @return [String]
1779
2060
  attr_accessor :language_code
@@ -1844,11 +2125,9 @@ module Google
1844
2125
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
1845
2126
  attr_accessor :value_detected_languages
1846
2127
 
1847
- # If the value is non-textual, this field represents the type. Current
1848
- # valid values are:
1849
- # - blank (this indicates the field_value is normal text)
1850
- # - "unfilled_checkbox"
1851
- # - "filled_checkbox"
2128
+ # If the value is non-textual, this field represents the type. Current valid
2129
+ # values are: - blank (this indicates the field_value is normal text) - "
2130
+ # unfilled_checkbox" - "filled_checkbox"
1852
2131
  # Corresponds to the JSON property `valueType`
1853
2132
  # @return [String]
1854
2133
  attr_accessor :value_type
@@ -1876,9 +2155,9 @@ module Google
1876
2155
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BoundingPoly]
1877
2156
  attr_accessor :bounding_poly
1878
2157
 
1879
- # Confidence of the current Layout within context of the object this
1880
- # layout is for. e.g. confidence can be for a single token, a table,
1881
- # a visual element, etc. depending on context. Range [0, 1].
2158
+ # Confidence of the current Layout within context of the object this layout is
2159
+ # for. e.g. confidence can be for a single token, a table, a visual element, etc.
2160
+ # depending on context. Range [0, 1].
1882
2161
  # Corresponds to the JSON property `confidence`
1883
2162
  # @return [Float]
1884
2163
  attr_accessor :confidence
@@ -1906,8 +2185,8 @@ module Google
1906
2185
  end
1907
2186
  end
1908
2187
 
1909
- # A collection of tokens that a human would perceive as a line.
1910
- # Does not cross column boundaries, can be horizontal, vertical, etc.
2188
+ # A collection of tokens that a human would perceive as a line. Does not cross
2189
+ # column boundaries, can be horizontal, vertical, etc.
1911
2190
  class GoogleCloudDocumentaiV1beta2DocumentPageLine
1912
2191
  include Google::Apis::Core::Hashable
1913
2192
 
@@ -2100,8 +2379,7 @@ module Google
2100
2379
  end
2101
2380
  end
2102
2381
 
2103
- # Detected non-text visual elements e.g. checkbox, signature etc. on the
2104
- # page.
2382
+ # Detected non-text visual elements e.g. checkbox, signature etc. on the page.
2105
2383
  class GoogleCloudDocumentaiV1beta2DocumentPageVisualElement
2106
2384
  include Google::Apis::Core::Hashable
2107
2385
 
@@ -2132,9 +2410,8 @@ module Google
2132
2410
  end
2133
2411
  end
2134
2412
 
2135
- # For a large document, sharding may be performed to produce several
2136
- # document shards. Each document shard contains this field to detail which
2137
- # shard it is.
2413
+ # For a large document, sharding may be performed to produce several document
2414
+ # shards. Each document shard contains this field to detail which shard it is.
2138
2415
  class GoogleCloudDocumentaiV1beta2DocumentShardInfo
2139
2416
  include Google::Apis::Core::Hashable
2140
2417
 
@@ -2148,8 +2425,8 @@ module Google
2148
2425
  # @return [Fixnum]
2149
2426
  attr_accessor :shard_index
2150
2427
 
2151
- # The index of the first character in Document.text in the overall
2152
- # document global text.
2428
+ # The index of the first character in Document.text in the overall document
2429
+ # global text.
2153
2430
  # Corresponds to the JSON property `textOffset`
2154
2431
  # @return [Fixnum]
2155
2432
  attr_accessor :text_offset
@@ -2166,227 +2443,105 @@ module Google
2166
2443
  end
2167
2444
  end
2168
2445
 
2169
- # Annotation for common text style attributes. This adheres to CSS
2170
- # conventions as much as possible.
2446
+ # Annotation for common text style attributes. This adheres to CSS conventions
2447
+ # as much as possible.
2171
2448
  class GoogleCloudDocumentaiV1beta2DocumentStyle
2172
2449
  include Google::Apis::Core::Hashable
2173
2450
 
2174
2451
  # Represents a color in the RGBA color space. This representation is designed
2175
2452
  # for simplicity of conversion to/from color representations in various
2176
- # languages over compactness; for example, the fields of this representation
2177
- # can be trivially provided to the constructor of "java.awt.Color" in Java; it
2178
- # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
2179
- # method in iOS; and, with just a little work, it can be easily formatted into
2180
- # a CSS "rgba()" string in JavaScript, as well.
2181
- # Note: this proto does not carry information about the absolute color space
2182
- # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
2183
- # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
2184
- # space.
2185
- # Note: when color equality needs to be decided, implementations, unless
2186
- # documented otherwise, will treat two colors to be equal if all their red,
2187
- # green, blue and alpha values each differ by at most 1e-5.
2188
- # Example (Java):
2189
- # import com.google.type.Color;
2190
- # // ...
2191
- # public static java.awt.Color fromProto(Color protocolor) `
2192
- # float alpha = protocolor.hasAlpha()
2193
- # ? protocolor.getAlpha().getValue()
2194
- # : 1.0;
2195
- # return new java.awt.Color(
2196
- # protocolor.getRed(),
2197
- # protocolor.getGreen(),
2198
- # protocolor.getBlue(),
2199
- # alpha);
2200
- # `
2201
- # public static Color toProto(java.awt.Color color) `
2202
- # float red = (float) color.getRed();
2203
- # float green = (float) color.getGreen();
2204
- # float blue = (float) color.getBlue();
2205
- # float denominator = 255.0;
2206
- # Color.Builder resultBuilder =
2207
- # Color
2208
- # .newBuilder()
2209
- # .setRed(red / denominator)
2210
- # .setGreen(green / denominator)
2211
- # .setBlue(blue / denominator);
2212
- # int alpha = color.getAlpha();
2213
- # if (alpha != 255) `
2214
- # result.setAlpha(
2215
- # FloatValue
2216
- # .newBuilder()
2217
- # .setValue(((float) alpha) / denominator)
2218
- # .build());
2219
- # `
2220
- # return resultBuilder.build();
2221
- # `
2222
- # // ...
2223
- # Example (iOS / Obj-C):
2224
- # // ...
2225
- # static UIColor* fromProto(Color* protocolor) `
2226
- # float red = [protocolor red];
2227
- # float green = [protocolor green];
2228
- # float blue = [protocolor blue];
2229
- # FloatValue* alpha_wrapper = [protocolor alpha];
2230
- # float alpha = 1.0;
2231
- # if (alpha_wrapper != nil) `
2232
- # alpha = [alpha_wrapper value];
2233
- # `
2234
- # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
2235
- # `
2236
- # static Color* toProto(UIColor* color) `
2237
- # CGFloat red, green, blue, alpha;
2238
- # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
2239
- # return nil;
2240
- # `
2241
- # Color* result = [[Color alloc] init];
2242
- # [result setRed:red];
2243
- # [result setGreen:green];
2244
- # [result setBlue:blue];
2245
- # if (alpha <= 0.9999) `
2246
- # [result setAlpha:floatWrapperWithValue(alpha)];
2247
- # `
2248
- # [result autorelease];
2249
- # return result;
2250
- # `
2251
- # // ...
2252
- # Example (JavaScript):
2253
- # // ...
2254
- # var protoToCssColor = function(rgb_color) `
2255
- # var redFrac = rgb_color.red || 0.0;
2256
- # var greenFrac = rgb_color.green || 0.0;
2257
- # var blueFrac = rgb_color.blue || 0.0;
2258
- # var red = Math.floor(redFrac * 255);
2259
- # var green = Math.floor(greenFrac * 255);
2260
- # var blue = Math.floor(blueFrac * 255);
2261
- # if (!('alpha' in rgb_color)) `
2262
- # return rgbToCssColor_(red, green, blue);
2263
- # `
2264
- # var alphaFrac = rgb_color.alpha.value || 0.0;
2265
- # var rgbParams = [red, green, blue].join(',');
2266
- # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
2267
- # `;
2268
- # var rgbToCssColor_ = function(red, green, blue) `
2269
- # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
2270
- # var hexString = rgbNumber.toString(16);
2271
- # var missingZeros = 6 - hexString.length;
2272
- # var resultBuilder = ['#'];
2273
- # for (var i = 0; i < missingZeros; i++) `
2274
- # resultBuilder.push('0');
2275
- # `
2276
- # resultBuilder.push(hexString);
2277
- # return resultBuilder.join('');
2278
- # `;
2279
- # // ...
2453
+ # languages over compactness; for example, the fields of this representation can
2454
+ # be trivially provided to the constructor of "java.awt.Color" in Java; it can
2455
+ # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
2456
+ # method in iOS; and, with just a little work, it can be easily formatted into a
2457
+ # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
2458
+ # information about the absolute color space that should be used to interpret
2459
+ # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
2460
+ # applications SHOULD assume the sRGB color space. Note: when color equality
2461
+ # needs to be decided, implementations, unless documented otherwise, will treat
2462
+ # two colors to be equal if all their red, green, blue and alpha values each
2463
+ # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
2464
+ # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
2465
+ # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
2466
+ # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
2467
+ # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
2468
+ # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
2469
+ # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
2470
+ # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
2471
+ # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
2472
+ # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
2473
+ # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
2474
+ # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
2475
+ # protocolor red]; float green = [protocolor green]; float blue = [protocolor
2476
+ # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
2477
+ # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
2478
+ # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
2479
+ # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
2480
+ # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
2481
+ # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
2482
+ # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
2483
+ # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
2484
+ # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
2485
+ # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
2486
+ # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
2487
+ # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
2488
+ # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
2489
+ # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
2490
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
2491
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
2492
+ # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
2493
+ # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
2494
+ # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
2495
+ # join(''); `; // ...
2280
2496
  # Corresponds to the JSON property `backgroundColor`
2281
2497
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
2282
2498
  attr_accessor :background_color
2283
2499
 
2284
2500
  # Represents a color in the RGBA color space. This representation is designed
2285
2501
  # for simplicity of conversion to/from color representations in various
2286
- # languages over compactness; for example, the fields of this representation
2287
- # can be trivially provided to the constructor of "java.awt.Color" in Java; it
2288
- # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
2289
- # method in iOS; and, with just a little work, it can be easily formatted into
2290
- # a CSS "rgba()" string in JavaScript, as well.
2291
- # Note: this proto does not carry information about the absolute color space
2292
- # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
2293
- # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
2294
- # space.
2295
- # Note: when color equality needs to be decided, implementations, unless
2296
- # documented otherwise, will treat two colors to be equal if all their red,
2297
- # green, blue and alpha values each differ by at most 1e-5.
2298
- # Example (Java):
2299
- # import com.google.type.Color;
2300
- # // ...
2301
- # public static java.awt.Color fromProto(Color protocolor) `
2302
- # float alpha = protocolor.hasAlpha()
2303
- # ? protocolor.getAlpha().getValue()
2304
- # : 1.0;
2305
- # return new java.awt.Color(
2306
- # protocolor.getRed(),
2307
- # protocolor.getGreen(),
2308
- # protocolor.getBlue(),
2309
- # alpha);
2310
- # `
2311
- # public static Color toProto(java.awt.Color color) `
2312
- # float red = (float) color.getRed();
2313
- # float green = (float) color.getGreen();
2314
- # float blue = (float) color.getBlue();
2315
- # float denominator = 255.0;
2316
- # Color.Builder resultBuilder =
2317
- # Color
2318
- # .newBuilder()
2319
- # .setRed(red / denominator)
2320
- # .setGreen(green / denominator)
2321
- # .setBlue(blue / denominator);
2322
- # int alpha = color.getAlpha();
2323
- # if (alpha != 255) `
2324
- # result.setAlpha(
2325
- # FloatValue
2326
- # .newBuilder()
2327
- # .setValue(((float) alpha) / denominator)
2328
- # .build());
2329
- # `
2330
- # return resultBuilder.build();
2331
- # `
2332
- # // ...
2333
- # Example (iOS / Obj-C):
2334
- # // ...
2335
- # static UIColor* fromProto(Color* protocolor) `
2336
- # float red = [protocolor red];
2337
- # float green = [protocolor green];
2338
- # float blue = [protocolor blue];
2339
- # FloatValue* alpha_wrapper = [protocolor alpha];
2340
- # float alpha = 1.0;
2341
- # if (alpha_wrapper != nil) `
2342
- # alpha = [alpha_wrapper value];
2343
- # `
2344
- # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
2345
- # `
2346
- # static Color* toProto(UIColor* color) `
2347
- # CGFloat red, green, blue, alpha;
2348
- # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
2349
- # return nil;
2350
- # `
2351
- # Color* result = [[Color alloc] init];
2352
- # [result setRed:red];
2353
- # [result setGreen:green];
2354
- # [result setBlue:blue];
2355
- # if (alpha <= 0.9999) `
2356
- # [result setAlpha:floatWrapperWithValue(alpha)];
2357
- # `
2358
- # [result autorelease];
2359
- # return result;
2360
- # `
2361
- # // ...
2362
- # Example (JavaScript):
2363
- # // ...
2364
- # var protoToCssColor = function(rgb_color) `
2365
- # var redFrac = rgb_color.red || 0.0;
2366
- # var greenFrac = rgb_color.green || 0.0;
2367
- # var blueFrac = rgb_color.blue || 0.0;
2368
- # var red = Math.floor(redFrac * 255);
2369
- # var green = Math.floor(greenFrac * 255);
2370
- # var blue = Math.floor(blueFrac * 255);
2371
- # if (!('alpha' in rgb_color)) `
2372
- # return rgbToCssColor_(red, green, blue);
2373
- # `
2374
- # var alphaFrac = rgb_color.alpha.value || 0.0;
2375
- # var rgbParams = [red, green, blue].join(',');
2376
- # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
2377
- # `;
2378
- # var rgbToCssColor_ = function(red, green, blue) `
2379
- # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
2380
- # var hexString = rgbNumber.toString(16);
2381
- # var missingZeros = 6 - hexString.length;
2382
- # var resultBuilder = ['#'];
2383
- # for (var i = 0; i < missingZeros; i++) `
2384
- # resultBuilder.push('0');
2385
- # `
2386
- # resultBuilder.push(hexString);
2387
- # return resultBuilder.join('');
2388
- # `;
2389
- # // ...
2502
+ # languages over compactness; for example, the fields of this representation can
2503
+ # be trivially provided to the constructor of "java.awt.Color" in Java; it can
2504
+ # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
2505
+ # method in iOS; and, with just a little work, it can be easily formatted into a
2506
+ # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
2507
+ # information about the absolute color space that should be used to interpret
2508
+ # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
2509
+ # applications SHOULD assume the sRGB color space. Note: when color equality
2510
+ # needs to be decided, implementations, unless documented otherwise, will treat
2511
+ # two colors to be equal if all their red, green, blue and alpha values each
2512
+ # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
2513
+ # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
2514
+ # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
2515
+ # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
2516
+ # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
2517
+ # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
2518
+ # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
2519
+ # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
2520
+ # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
2521
+ # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
2522
+ # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
2523
+ # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
2524
+ # protocolor red]; float green = [protocolor green]; float blue = [protocolor
2525
+ # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
2526
+ # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
2527
+ # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
2528
+ # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
2529
+ # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
2530
+ # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
2531
+ # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
2532
+ # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
2533
+ # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
2534
+ # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
2535
+ # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
2536
+ # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
2537
+ # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
2538
+ # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
2539
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
2540
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
2541
+ # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
2542
+ # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
2543
+ # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
2544
+ # join(''); `; // ...
2390
2545
  # Corresponds to the JSON property `color`
2391
2546
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
2392
2547
  attr_accessor :color
@@ -2396,8 +2551,8 @@ module Google
2396
2551
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyleFontSize]
2397
2552
  attr_accessor :font_size
2398
2553
 
2399
- # Font weight. Possible values are normal, bold, bolder, and lighter.
2400
- # https://www.w3schools.com/cssref/pr_font_weight.asp
2554
+ # Font weight. Possible values are normal, bold, bolder, and lighter. https://
2555
+ # www.w3schools.com/cssref/pr_font_weight.asp
2401
2556
  # Corresponds to the JSON property `fontWeight`
2402
2557
  # @return [String]
2403
2558
  attr_accessor :font_weight
@@ -2407,15 +2562,14 @@ module Google
2407
2562
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor]
2408
2563
  attr_accessor :text_anchor
2409
2564
 
2410
- # Text decoration. Follows CSS standard.
2411
- # <text-decoration-line> <text-decoration-color> <text-decoration-style>
2412
- # https://www.w3schools.com/cssref/pr_text_text-decoration.asp
2565
+ # Text decoration. Follows CSS standard. https://www.w3schools.com/cssref/
2566
+ # pr_text_text-decoration.asp
2413
2567
  # Corresponds to the JSON property `textDecoration`
2414
2568
  # @return [String]
2415
2569
  attr_accessor :text_decoration
2416
2570
 
2417
- # Text style. Possible values are normal, italic, and oblique.
2418
- # https://www.w3schools.com/cssref/pr_font_font-style.asp
2571
+ # Text style. Possible values are normal, italic, and oblique. https://www.
2572
+ # w3schools.com/cssref/pr_font_font-style.asp
2419
2573
  # Corresponds to the JSON property `textStyle`
2420
2574
  # @return [String]
2421
2575
  attr_accessor :text_style
@@ -2480,14 +2634,13 @@ module Google
2480
2634
  end
2481
2635
  end
2482
2636
 
2483
- # A text segment in the Document.text. The indices may be out of bounds
2484
- # which indicate that the text extends into another document shard for
2485
- # large sharded documents. See ShardInfo.text_offset
2637
+ # A text segment in the Document.text. The indices may be out of bounds which
2638
+ # indicate that the text extends into another document shard for large sharded
2639
+ # documents. See ShardInfo.text_offset
2486
2640
  class GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
2487
2641
  include Google::Apis::Core::Hashable
2488
2642
 
2489
- # TextSegment half open end UTF-8 char index in the
2490
- # Document.text.
2643
+ # TextSegment half open end UTF-8 char index in the Document.text.
2491
2644
  # Corresponds to the JSON property `endIndex`
2492
2645
  # @return [Fixnum]
2493
2646
  attr_accessor :end_index
@@ -2512,9 +2665,8 @@ module Google
2512
2665
  class GoogleCloudDocumentaiV1beta2DocumentTranslation
2513
2666
  include Google::Apis::Core::Hashable
2514
2667
 
2515
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
2516
- # information, see
2517
- # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2668
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
2669
+ # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2518
2670
  # Corresponds to the JSON property `languageCode`
2519
2671
  # @return [String]
2520
2672
  attr_accessor :language_code
@@ -2551,8 +2703,8 @@ module Google
2551
2703
  attr_accessor :enabled
2552
2704
  alias_method :enabled?, :enabled
2553
2705
 
2554
- # Model version of the entity extraction. Default is
2555
- # "builtin/stable". Specify "builtin/latest" for the latest model.
2706
+ # Model version of the entity extraction. Default is "builtin/stable". Specify "
2707
+ # builtin/latest" for the latest model.
2556
2708
  # Corresponds to the JSON property `modelVersion`
2557
2709
  # @return [String]
2558
2710
  attr_accessor :model_version
@@ -2583,11 +2735,11 @@ module Google
2583
2735
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2KeyValuePairHint>]
2584
2736
  attr_accessor :key_value_pair_hints
2585
2737
 
2586
- # Model version of the form extraction system. Default is
2587
- # "builtin/stable". Specify "builtin/latest" for the latest model.
2588
- # For custom form models, specify: “custom/`model_name`". Model name
2589
- # format is "bucket_name/path/to/modeldir" corresponding to
2590
- # "gs://bucket_name/path/to/modeldir" where annotated examples are stored.
2738
+ # Model version of the form extraction system. Default is "builtin/stable".
2739
+ # Specify "builtin/latest" for the latest model. For custom form models, specify:
2740
+ # “custom/`model_name`". Model name format is "bucket_name/path/to/modeldir"
2741
+ # corresponding to "gs://bucket_name/path/to/modeldir" where annotated examples
2742
+ # are stored.
2591
2743
  # Corresponds to the JSON property `modelVersion`
2592
2744
  # @return [String]
2593
2745
  attr_accessor :model_version
@@ -2646,10 +2798,10 @@ module Google
2646
2798
  class GoogleCloudDocumentaiV1beta2InputConfig
2647
2799
  include Google::Apis::Core::Hashable
2648
2800
 
2649
- # Content in bytes, represented as a stream of bytes.
2650
- # Note: As with all `bytes` fields, proto buffer messages use a pure binary
2651
- # representation, whereas JSON representations use base64.
2652
- # This field only works for synchronous ProcessDocument method.
2801
+ # Content in bytes, represented as a stream of bytes. Note: As with all `bytes`
2802
+ # fields, proto buffer messages use a pure binary representation, whereas JSON
2803
+ # representations use base64. This field only works for synchronous
2804
+ # ProcessDocument method.
2653
2805
  # Corresponds to the JSON property `contents`
2654
2806
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
2655
2807
  # @return [String]
@@ -2661,11 +2813,9 @@ module Google
2661
2813
  attr_accessor :gcs_source
2662
2814
 
2663
2815
  # Required. Mimetype of the input. Current supported mimetypes are application/
2664
- # pdf,
2665
- # image/tiff, and image/gif.
2666
- # In addition, application/json type is supported for requests with
2667
- # ProcessDocumentRequest.automl_params field set. The JSON file needs to
2668
- # be in Document format.
2816
+ # pdf, image/tiff, and image/gif. In addition, application/json type is
2817
+ # supported for requests with ProcessDocumentRequest.automl_params field set.
2818
+ # The JSON file needs to be in Document format.
2669
2819
  # Corresponds to the JSON property `mimeType`
2670
2820
  # @return [String]
2671
2821
  attr_accessor :mime_type
@@ -2691,10 +2841,9 @@ module Google
2691
2841
  # @return [String]
2692
2842
  attr_accessor :key
2693
2843
 
2694
- # Type of the value. This is case-insensitive, and could be one of:
2695
- # ADDRESS, LOCATION, ORGANIZATION, PERSON, PHONE_NUMBER,
2696
- # ID, NUMBER, EMAIL, PRICE, TERMS, DATE, NAME. Types not in this list will
2697
- # be ignored.
2844
+ # Type of the value. This is case-insensitive, and could be one of: ADDRESS,
2845
+ # LOCATION, ORGANIZATION, PERSON, PHONE_NUMBER, ID, NUMBER, EMAIL, PRICE, TERMS,
2846
+ # DATE, NAME. Types not in this list will be ignored.
2698
2847
  # Corresponds to the JSON property `valueTypes`
2699
2848
  # @return [Array<String>]
2700
2849
  attr_accessor :value_types
@@ -2710,9 +2859,8 @@ module Google
2710
2859
  end
2711
2860
  end
2712
2861
 
2713
- # A vertex represents a 2D point in the image.
2714
- # NOTE: the normalized vertex coordinates are relative to the original image
2715
- # and range from 0 to 1.
2862
+ # A vertex represents a 2D point in the image. NOTE: the normalized vertex
2863
+ # coordinates are relative to the original image and range from 0 to 1.
2716
2864
  class GoogleCloudDocumentaiV1beta2NormalizedVertex
2717
2865
  include Google::Apis::Core::Hashable
2718
2866
 
@@ -2741,14 +2889,13 @@ module Google
2741
2889
  class GoogleCloudDocumentaiV1beta2OcrParams
2742
2890
  include Google::Apis::Core::Hashable
2743
2891
 
2744
- # List of languages to use for OCR. In most cases, an empty value
2745
- # yields the best results since it enables automatic language detection. For
2746
- # languages based on the Latin alphabet, setting `language_hints` is not
2747
- # needed. In rare cases, when the language of the text in the image is known,
2748
- # setting a hint will help get better results (although it will be a
2749
- # significant hindrance if the hint is wrong). Document processing returns an
2750
- # error if one or more of the specified languages is not one of the
2751
- # supported languages.
2892
+ # List of languages to use for OCR. In most cases, an empty value yields the
2893
+ # best results since it enables automatic language detection. For languages
2894
+ # based on the Latin alphabet, setting `language_hints` is not needed. In rare
2895
+ # cases, when the language of the text in the image is known, setting a hint
2896
+ # will help get better results (although it will be a significant hindrance if
2897
+ # the hint is wrong). Document processing returns an error if one or more of the
2898
+ # specified languages is not one of the supported languages.
2752
2899
  # Corresponds to the JSON property `languageHints`
2753
2900
  # @return [Array<String>]
2754
2901
  attr_accessor :language_hints
@@ -2810,18 +2957,14 @@ module Google
2810
2957
  attr_accessor :gcs_destination
2811
2958
 
2812
2959
  # The max number of pages to include into each output Document shard JSON on
2813
- # Google Cloud Storage.
2814
- # The valid range is [1, 100]. If not specified, the default value is 20.
2815
- # For example, for one pdf file with 100 pages, 100 parsed pages will be
2816
- # produced. If `pages_per_shard` = 20, then 5 Document shard JSON files each
2817
- # containing 20 parsed pages will be written under the prefix
2818
- # OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where
2819
- # x and y are 1-indexed page numbers.
2820
- # Example GCS outputs with 157 pages and pages_per_shard = 50:
2821
- # <prefix>pages-001-to-050.json
2822
- # <prefix>pages-051-to-100.json
2823
- # <prefix>pages-101-to-150.json
2824
- # <prefix>pages-151-to-157.json
2960
+ # Google Cloud Storage. The valid range is [1, 100]. If not specified, the
2961
+ # default value is 20. For example, for one pdf file with 100 pages, 100 parsed
2962
+ # pages will be produced. If `pages_per_shard` = 20, then 5 Document shard JSON
2963
+ # files each containing 20 parsed pages will be written under the prefix
2964
+ # OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where x and y
2965
+ # are 1-indexed page numbers. Example GCS outputs with 157 pages and
2966
+ # pages_per_shard = 50: pages-001-to-050.json pages-051-to-100.json pages-101-to-
2967
+ # 150.json pages-151-to-157.json
2825
2968
  # Corresponds to the JSON property `pagesPerShard`
2826
2969
  # @return [Fixnum]
2827
2970
  attr_accessor :pages_per_shard
@@ -2846,9 +2989,9 @@ module Google
2846
2989
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2AutoMlParams]
2847
2990
  attr_accessor :automl_params
2848
2991
 
2849
- # Specifies a known document type for deeper structure detection. Valid
2850
- # values are currently "general" and "invoice". If not provided, "general"\
2851
- # is used as default. If any other value is given, the request is rejected.
2992
+ # Specifies a known document type for deeper structure detection. Valid values
2993
+ # are currently "general" and "invoice". If not provided, "general"\ is used as
2994
+ # default. If any other value is given, the request is rejected.
2852
2995
  # Corresponds to the JSON property `documentType`
2853
2996
  # @return [String]
2854
2997
  attr_accessor :document_type
@@ -2878,10 +3021,10 @@ module Google
2878
3021
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2OutputConfig]
2879
3022
  attr_accessor :output_config
2880
3023
 
2881
- # Target project and location to make a call.
2882
- # Format: `projects/`project-id`/locations/`location-id``.
2883
- # If no location is specified, a region will be chosen automatically.
2884
- # This field is only populated when used in ProcessDocument method.
3024
+ # Target project and location to make a call. Format: `projects/`project-id`/
3025
+ # locations/`location-id``. If no location is specified, a region will be chosen
3026
+ # automatically. This field is only populated when used in ProcessDocument
3027
+ # method.
2885
3028
  # Corresponds to the JSON property `parent`
2886
3029
  # @return [String]
2887
3030
  attr_accessor :parent
@@ -2944,8 +3087,7 @@ module Google
2944
3087
  attr_accessor :bounding_box
2945
3088
 
2946
3089
  # Optional. Page number for multi-paged inputs this hint applies to. If not
2947
- # provided, this hint will apply to all pages by default. This value is
2948
- # 1-based.
3090
+ # provided, this hint will apply to all pages by default. This value is 1-based.
2949
3091
  # Corresponds to the JSON property `pageNumber`
2950
3092
  # @return [Fixnum]
2951
3093
  attr_accessor :page_number
@@ -2982,8 +3124,8 @@ module Google
2982
3124
  # @return [String]
2983
3125
  attr_accessor :model_version
2984
3126
 
2985
- # Optional. Table bounding box hints that can be provided to complex cases
2986
- # which our algorithm cannot locate the table(s) in.
3127
+ # Optional. Table bounding box hints that can be provided to complex cases which
3128
+ # our algorithm cannot locate the table(s) in.
2987
3129
  # Corresponds to the JSON property `tableBoundHints`
2988
3130
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2TableBoundHint>]
2989
3131
  attr_accessor :table_bound_hints
@@ -3001,8 +3143,8 @@ module Google
3001
3143
  end
3002
3144
  end
3003
3145
 
3004
- # A vertex represents a 2D point in the image.
3005
- # NOTE: the vertex coordinates are in the same scale as the original image.
3146
+ # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are
3147
+ # in the same scale as the original image.
3006
3148
  class GoogleCloudDocumentaiV1beta2Vertex
3007
3149
  include Google::Apis::Core::Hashable
3008
3150
 
@@ -3027,52 +3169,147 @@ module Google
3027
3169
  end
3028
3170
  end
3029
3171
 
3172
+ # The long running operation metadata for batch process method.
3173
+ class GoogleCloudDocumentaiV1beta3BatchProcessMetadata
3174
+ include Google::Apis::Core::Hashable
3175
+
3176
+ # The creation time of the operation.
3177
+ # Corresponds to the JSON property `createTime`
3178
+ # @return [String]
3179
+ attr_accessor :create_time
3180
+
3181
+ # The list of response details of each document.
3182
+ # Corresponds to the JSON property `individualProcessStatuses`
3183
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus>]
3184
+ attr_accessor :individual_process_statuses
3185
+
3186
+ # The state of the current batch processing.
3187
+ # Corresponds to the JSON property `state`
3188
+ # @return [String]
3189
+ attr_accessor :state
3190
+
3191
+ # A message providing more details about the current state of processing. For
3192
+ # example, the error message if the operation is failed.
3193
+ # Corresponds to the JSON property `stateMessage`
3194
+ # @return [String]
3195
+ attr_accessor :state_message
3196
+
3197
+ # The last update time of the operation.
3198
+ # Corresponds to the JSON property `updateTime`
3199
+ # @return [String]
3200
+ attr_accessor :update_time
3201
+
3202
+ def initialize(**args)
3203
+ update!(**args)
3204
+ end
3205
+
3206
+ # Update properties of this object
3207
+ def update!(**args)
3208
+ @create_time = args[:create_time] if args.key?(:create_time)
3209
+ @individual_process_statuses = args[:individual_process_statuses] if args.key?(:individual_process_statuses)
3210
+ @state = args[:state] if args.key?(:state)
3211
+ @state_message = args[:state_message] if args.key?(:state_message)
3212
+ @update_time = args[:update_time] if args.key?(:update_time)
3213
+ end
3214
+ end
3215
+
3216
+ # The status of a each individual document in the batch process.
3217
+ class GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus
3218
+ include Google::Apis::Core::Hashable
3219
+
3220
+ # The source of the document, same as the [input_gcs_source] field in the
3221
+ # request when the batch process started. The batch process is started by take
3222
+ # snapshot of that document, since a user can move or change that document
3223
+ # during the process.
3224
+ # Corresponds to the JSON property `inputGcsSource`
3225
+ # @return [String]
3226
+ attr_accessor :input_gcs_source
3227
+
3228
+ # The output_gcs_destination (in the request as 'output_gcs_destination') of the
3229
+ # processed document if it was successful, otherwise empty.
3230
+ # Corresponds to the JSON property `outputGcsDestination`
3231
+ # @return [String]
3232
+ attr_accessor :output_gcs_destination
3233
+
3234
+ # The `Status` type defines a logical error model that is suitable for different
3235
+ # programming environments, including REST APIs and RPC APIs. It is used by [
3236
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
3237
+ # data: error code, error message, and error details. You can find out more
3238
+ # about this error model and how to work with it in the [API Design Guide](https:
3239
+ # //cloud.google.com/apis/design/errors).
3240
+ # Corresponds to the JSON property `status`
3241
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleRpcStatus]
3242
+ attr_accessor :status
3243
+
3244
+ def initialize(**args)
3245
+ update!(**args)
3246
+ end
3247
+
3248
+ # Update properties of this object
3249
+ def update!(**args)
3250
+ @input_gcs_source = args[:input_gcs_source] if args.key?(:input_gcs_source)
3251
+ @output_gcs_destination = args[:output_gcs_destination] if args.key?(:output_gcs_destination)
3252
+ @status = args[:status] if args.key?(:status)
3253
+ end
3254
+ end
3255
+
3256
+ # Response message for batch process document method.
3257
+ class GoogleCloudDocumentaiV1beta3BatchProcessResponse
3258
+ include Google::Apis::Core::Hashable
3259
+
3260
+ def initialize(**args)
3261
+ update!(**args)
3262
+ end
3263
+
3264
+ # Update properties of this object
3265
+ def update!(**args)
3266
+ end
3267
+ end
3268
+
3030
3269
  # This resource represents a long-running operation that is the result of a
3031
3270
  # network API call.
3032
3271
  class GoogleLongrunningOperation
3033
3272
  include Google::Apis::Core::Hashable
3034
3273
 
3035
- # If the value is `false`, it means the operation is still in progress.
3036
- # If `true`, the operation is completed, and either `error` or `response` is
3037
- # available.
3274
+ # If the value is `false`, it means the operation is still in progress. If `true`
3275
+ # , the operation is completed, and either `error` or `response` is available.
3038
3276
  # Corresponds to the JSON property `done`
3039
3277
  # @return [Boolean]
3040
3278
  attr_accessor :done
3041
3279
  alias_method :done?, :done
3042
3280
 
3043
- # The `Status` type defines a logical error model that is suitable for
3044
- # different programming environments, including REST APIs and RPC APIs. It is
3045
- # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3046
- # three pieces of data: error code, error message, and error details.
3047
- # You can find out more about this error model and how to work with it in the
3048
- # [API Design Guide](https://cloud.google.com/apis/design/errors).
3281
+ # The `Status` type defines a logical error model that is suitable for different
3282
+ # programming environments, including REST APIs and RPC APIs. It is used by [
3283
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
3284
+ # data: error code, error message, and error details. You can find out more
3285
+ # about this error model and how to work with it in the [API Design Guide](https:
3286
+ # //cloud.google.com/apis/design/errors).
3049
3287
  # Corresponds to the JSON property `error`
3050
3288
  # @return [Google::Apis::DocumentaiV1beta2::GoogleRpcStatus]
3051
3289
  attr_accessor :error
3052
3290
 
3053
- # Service-specific metadata associated with the operation. It typically
3054
- # contains progress information and common metadata such as create time.
3055
- # Some services might not provide such metadata. Any method that returns a
3056
- # long-running operation should document the metadata type, if any.
3291
+ # Service-specific metadata associated with the operation. It typically contains
3292
+ # progress information and common metadata such as create time. Some services
3293
+ # might not provide such metadata. Any method that returns a long-running
3294
+ # operation should document the metadata type, if any.
3057
3295
  # Corresponds to the JSON property `metadata`
3058
3296
  # @return [Hash<String,Object>]
3059
3297
  attr_accessor :metadata
3060
3298
 
3061
3299
  # The server-assigned name, which is only unique within the same service that
3062
- # originally returns it. If you use the default HTTP mapping, the
3063
- # `name` should be a resource name ending with `operations/`unique_id``.
3300
+ # originally returns it. If you use the default HTTP mapping, the `name` should
3301
+ # be a resource name ending with `operations/`unique_id``.
3064
3302
  # Corresponds to the JSON property `name`
3065
3303
  # @return [String]
3066
3304
  attr_accessor :name
3067
3305
 
3068
- # The normal response of the operation in case of success. If the original
3069
- # method returns no data on success, such as `Delete`, the response is
3070
- # `google.protobuf.Empty`. If the original method is standard
3071
- # `Get`/`Create`/`Update`, the response should be the resource. For other
3072
- # methods, the response should have the type `XxxResponse`, where `Xxx`
3073
- # is the original method name. For example, if the original method name
3074
- # is `TakeSnapshot()`, the inferred response type is
3075
- # `TakeSnapshotResponse`.
3306
+ # The normal response of the operation in case of success. If the original
3307
+ # method returns no data on success, such as `Delete`, the response is `google.
3308
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
3309
+ # the response should be the resource. For other methods, the response should
3310
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
3311
+ # example, if the original method name is `TakeSnapshot()`, the inferred
3312
+ # response type is `TakeSnapshotResponse`.
3076
3313
  # Corresponds to the JSON property `response`
3077
3314
  # @return [Hash<String,Object>]
3078
3315
  attr_accessor :response
@@ -3091,12 +3328,29 @@ module Google
3091
3328
  end
3092
3329
  end
3093
3330
 
3094
- # The `Status` type defines a logical error model that is suitable for
3095
- # different programming environments, including REST APIs and RPC APIs. It is
3096
- # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3097
- # three pieces of data: error code, error message, and error details.
3098
- # You can find out more about this error model and how to work with it in the
3099
- # [API Design Guide](https://cloud.google.com/apis/design/errors).
3331
+ # A generic empty message that you can re-use to avoid defining duplicated empty
3332
+ # messages in your APIs. A typical example is to use it as the request or the
3333
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
3334
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
3335
+ # `Empty` is empty JSON object ````.
3336
+ class GoogleProtobufEmpty
3337
+ include Google::Apis::Core::Hashable
3338
+
3339
+ def initialize(**args)
3340
+ update!(**args)
3341
+ end
3342
+
3343
+ # Update properties of this object
3344
+ def update!(**args)
3345
+ end
3346
+ end
3347
+
3348
+ # The `Status` type defines a logical error model that is suitable for different
3349
+ # programming environments, including REST APIs and RPC APIs. It is used by [
3350
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
3351
+ # data: error code, error message, and error details. You can find out more
3352
+ # about this error model and how to work with it in the [API Design Guide](https:
3353
+ # //cloud.google.com/apis/design/errors).
3100
3354
  class GoogleRpcStatus
3101
3355
  include Google::Apis::Core::Hashable
3102
3356
 
@@ -3105,15 +3359,15 @@ module Google
3105
3359
  # @return [Fixnum]
3106
3360
  attr_accessor :code
3107
3361
 
3108
- # A list of messages that carry the error details. There is a common set of
3362
+ # A list of messages that carry the error details. There is a common set of
3109
3363
  # message types for APIs to use.
3110
3364
  # Corresponds to the JSON property `details`
3111
3365
  # @return [Array<Hash<String,Object>>]
3112
3366
  attr_accessor :details
3113
3367
 
3114
- # A developer-facing error message, which should be in English. Any
3115
- # user-facing error message should be localized and sent in the
3116
- # google.rpc.Status.details field, or localized by the client.
3368
+ # A developer-facing error message, which should be in English. Any user-facing
3369
+ # error message should be localized and sent in the google.rpc.Status.details
3370
+ # field, or localized by the client.
3117
3371
  # Corresponds to the JSON property `message`
3118
3372
  # @return [String]
3119
3373
  attr_accessor :message
@@ -3132,122 +3386,61 @@ module Google
3132
3386
 
3133
3387
  # Represents a color in the RGBA color space. This representation is designed
3134
3388
  # for simplicity of conversion to/from color representations in various
3135
- # languages over compactness; for example, the fields of this representation
3136
- # can be trivially provided to the constructor of "java.awt.Color" in Java; it
3137
- # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
3138
- # method in iOS; and, with just a little work, it can be easily formatted into
3139
- # a CSS "rgba()" string in JavaScript, as well.
3140
- # Note: this proto does not carry information about the absolute color space
3141
- # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
3142
- # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
3143
- # space.
3144
- # Note: when color equality needs to be decided, implementations, unless
3145
- # documented otherwise, will treat two colors to be equal if all their red,
3146
- # green, blue and alpha values each differ by at most 1e-5.
3147
- # Example (Java):
3148
- # import com.google.type.Color;
3149
- # // ...
3150
- # public static java.awt.Color fromProto(Color protocolor) `
3151
- # float alpha = protocolor.hasAlpha()
3152
- # ? protocolor.getAlpha().getValue()
3153
- # : 1.0;
3154
- # return new java.awt.Color(
3155
- # protocolor.getRed(),
3156
- # protocolor.getGreen(),
3157
- # protocolor.getBlue(),
3158
- # alpha);
3159
- # `
3160
- # public static Color toProto(java.awt.Color color) `
3161
- # float red = (float) color.getRed();
3162
- # float green = (float) color.getGreen();
3163
- # float blue = (float) color.getBlue();
3164
- # float denominator = 255.0;
3165
- # Color.Builder resultBuilder =
3166
- # Color
3167
- # .newBuilder()
3168
- # .setRed(red / denominator)
3169
- # .setGreen(green / denominator)
3170
- # .setBlue(blue / denominator);
3171
- # int alpha = color.getAlpha();
3172
- # if (alpha != 255) `
3173
- # result.setAlpha(
3174
- # FloatValue
3175
- # .newBuilder()
3176
- # .setValue(((float) alpha) / denominator)
3177
- # .build());
3178
- # `
3179
- # return resultBuilder.build();
3180
- # `
3181
- # // ...
3182
- # Example (iOS / Obj-C):
3183
- # // ...
3184
- # static UIColor* fromProto(Color* protocolor) `
3185
- # float red = [protocolor red];
3186
- # float green = [protocolor green];
3187
- # float blue = [protocolor blue];
3188
- # FloatValue* alpha_wrapper = [protocolor alpha];
3189
- # float alpha = 1.0;
3190
- # if (alpha_wrapper != nil) `
3191
- # alpha = [alpha_wrapper value];
3192
- # `
3193
- # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
3194
- # `
3195
- # static Color* toProto(UIColor* color) `
3196
- # CGFloat red, green, blue, alpha;
3197
- # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
3198
- # return nil;
3199
- # `
3200
- # Color* result = [[Color alloc] init];
3201
- # [result setRed:red];
3202
- # [result setGreen:green];
3203
- # [result setBlue:blue];
3204
- # if (alpha <= 0.9999) `
3205
- # [result setAlpha:floatWrapperWithValue(alpha)];
3206
- # `
3207
- # [result autorelease];
3208
- # return result;
3209
- # `
3210
- # // ...
3211
- # Example (JavaScript):
3212
- # // ...
3213
- # var protoToCssColor = function(rgb_color) `
3214
- # var redFrac = rgb_color.red || 0.0;
3215
- # var greenFrac = rgb_color.green || 0.0;
3216
- # var blueFrac = rgb_color.blue || 0.0;
3217
- # var red = Math.floor(redFrac * 255);
3218
- # var green = Math.floor(greenFrac * 255);
3219
- # var blue = Math.floor(blueFrac * 255);
3220
- # if (!('alpha' in rgb_color)) `
3221
- # return rgbToCssColor_(red, green, blue);
3222
- # `
3223
- # var alphaFrac = rgb_color.alpha.value || 0.0;
3224
- # var rgbParams = [red, green, blue].join(',');
3225
- # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
3226
- # `;
3227
- # var rgbToCssColor_ = function(red, green, blue) `
3228
- # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
3229
- # var hexString = rgbNumber.toString(16);
3230
- # var missingZeros = 6 - hexString.length;
3231
- # var resultBuilder = ['#'];
3232
- # for (var i = 0; i < missingZeros; i++) `
3233
- # resultBuilder.push('0');
3234
- # `
3235
- # resultBuilder.push(hexString);
3236
- # return resultBuilder.join('');
3237
- # `;
3238
- # // ...
3389
+ # languages over compactness; for example, the fields of this representation can
3390
+ # be trivially provided to the constructor of "java.awt.Color" in Java; it can
3391
+ # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
3392
+ # method in iOS; and, with just a little work, it can be easily formatted into a
3393
+ # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
3394
+ # information about the absolute color space that should be used to interpret
3395
+ # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
3396
+ # applications SHOULD assume the sRGB color space. Note: when color equality
3397
+ # needs to be decided, implementations, unless documented otherwise, will treat
3398
+ # two colors to be equal if all their red, green, blue and alpha values each
3399
+ # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
3400
+ # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
3401
+ # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
3402
+ # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
3403
+ # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
3404
+ # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
3405
+ # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
3406
+ # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
3407
+ # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
3408
+ # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
3409
+ # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
3410
+ # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
3411
+ # protocolor red]; float green = [protocolor green]; float blue = [protocolor
3412
+ # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
3413
+ # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
3414
+ # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
3415
+ # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
3416
+ # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
3417
+ # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
3418
+ # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
3419
+ # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
3420
+ # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
3421
+ # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
3422
+ # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
3423
+ # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
3424
+ # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3425
+ # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
3426
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
3427
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
3428
+ # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
3429
+ # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
3430
+ # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
3431
+ # join(''); `; // ...
3239
3432
  class GoogleTypeColor
3240
3433
  include Google::Apis::Core::Hashable
3241
3434
 
3242
- # The fraction of this color that should be applied to the pixel. That is,
3243
- # the final pixel color is defined by the equation:
3244
- # pixel color = alpha * (this color) + (1.0 - alpha) * (background color)
3245
- # This means that a value of 1.0 corresponds to a solid color, whereas
3246
- # a value of 0.0 corresponds to a completely transparent color. This
3247
- # uses a wrapper message rather than a simple float scalar so that it is
3248
- # possible to distinguish between a default value and the value being unset.
3249
- # If omitted, this color object is to be rendered as a solid color
3250
- # (as if the alpha value had been explicitly given with a value of 1.0).
3435
+ # The fraction of this color that should be applied to the pixel. That is, the
3436
+ # final pixel color is defined by the equation: pixel color = alpha * (this
3437
+ # color) + (1.0 - alpha) * (background color) This means that a value of 1.0
3438
+ # corresponds to a solid color, whereas a value of 0.0 corresponds to a
3439
+ # completely transparent color. This uses a wrapper message rather than a simple
3440
+ # float scalar so that it is possible to distinguish between a default value and
3441
+ # the value being unset. If omitted, this color object is to be rendered as a
3442
+ # solid color (as if the alpha value had been explicitly given with a value of 1.
3443
+ # 0).
3251
3444
  # Corresponds to the JSON property `alpha`
3252
3445
  # @return [Float]
3253
3446
  attr_accessor :alpha
@@ -3279,6 +3472,189 @@ module Google
3279
3472
  @red = args[:red] if args.key?(:red)
3280
3473
  end
3281
3474
  end
3475
+
3476
+ # Represents a whole or partial calendar date, e.g. a birthday. The time of day
3477
+ # and time zone are either specified elsewhere or are not significant. The date
3478
+ # is relative to the Proleptic Gregorian Calendar. This can represent: * A full
3479
+ # date, with non-zero year, month and day values * A month and day value, with a
3480
+ # zero year, e.g. an anniversary * A year on its own, with zero month and day
3481
+ # values * A year and month value, with a zero day, e.g. a credit card
3482
+ # expiration date Related types are google.type.TimeOfDay and `google.protobuf.
3483
+ # Timestamp`.
3484
+ class GoogleTypeDate
3485
+ include Google::Apis::Core::Hashable
3486
+
3487
+ # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
3488
+ # specifying a year by itself or a year and month where the day is not
3489
+ # significant.
3490
+ # Corresponds to the JSON property `day`
3491
+ # @return [Fixnum]
3492
+ attr_accessor :day
3493
+
3494
+ # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month
3495
+ # and day.
3496
+ # Corresponds to the JSON property `month`
3497
+ # @return [Fixnum]
3498
+ attr_accessor :month
3499
+
3500
+ # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
3501
+ # Corresponds to the JSON property `year`
3502
+ # @return [Fixnum]
3503
+ attr_accessor :year
3504
+
3505
+ def initialize(**args)
3506
+ update!(**args)
3507
+ end
3508
+
3509
+ # Update properties of this object
3510
+ def update!(**args)
3511
+ @day = args[:day] if args.key?(:day)
3512
+ @month = args[:month] if args.key?(:month)
3513
+ @year = args[:year] if args.key?(:year)
3514
+ end
3515
+ end
3516
+
3517
+ # Represents civil time in one of a few possible ways: * When utc_offset is set
3518
+ # and time_zone is unset: a civil time on a calendar day with a particular
3519
+ # offset from UTC. * When time_zone is set and utc_offset is unset: a civil time
3520
+ # on a calendar day in a particular time zone. * When neither time_zone nor
3521
+ # utc_offset is set: a civil time on a calendar day in local time. The date is
3522
+ # relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is
3523
+ # considered not to have a specific year. month and day must have valid, non-
3524
+ # zero values. This type is more flexible than some applications may want. Make
3525
+ # sure to document and validate your application's limitations.
3526
+ class GoogleTypeDateTime
3527
+ include Google::Apis::Core::Hashable
3528
+
3529
+ # Required. Day of month. Must be from 1 to 31 and valid for the year and month.
3530
+ # Corresponds to the JSON property `day`
3531
+ # @return [Fixnum]
3532
+ attr_accessor :day
3533
+
3534
+ # Required. Hours of day in 24 hour format. Should be from 0 to 23. An API may
3535
+ # choose to allow the value "24:00:00" for scenarios like business closing time.
3536
+ # Corresponds to the JSON property `hours`
3537
+ # @return [Fixnum]
3538
+ attr_accessor :hours
3539
+
3540
+ # Required. Minutes of hour of day. Must be from 0 to 59.
3541
+ # Corresponds to the JSON property `minutes`
3542
+ # @return [Fixnum]
3543
+ attr_accessor :minutes
3544
+
3545
+ # Required. Month of year. Must be from 1 to 12.
3546
+ # Corresponds to the JSON property `month`
3547
+ # @return [Fixnum]
3548
+ attr_accessor :month
3549
+
3550
+ # Required. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
3551
+ # Corresponds to the JSON property `nanos`
3552
+ # @return [Fixnum]
3553
+ attr_accessor :nanos
3554
+
3555
+ # Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
3556
+ # API may allow the value 60 if it allows leap-seconds.
3557
+ # Corresponds to the JSON property `seconds`
3558
+ # @return [Fixnum]
3559
+ attr_accessor :seconds
3560
+
3561
+ # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
3562
+ # time-zones).
3563
+ # Corresponds to the JSON property `timeZone`
3564
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeTimeZone]
3565
+ attr_accessor :time_zone
3566
+
3567
+ # UTC offset. Must be whole seconds, between -18 hours and +18 hours. For
3568
+ # example, a UTC offset of -4:00 would be represented as ` seconds: -14400 `.
3569
+ # Corresponds to the JSON property `utcOffset`
3570
+ # @return [String]
3571
+ attr_accessor :utc_offset
3572
+
3573
+ # Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime
3574
+ # without a year.
3575
+ # Corresponds to the JSON property `year`
3576
+ # @return [Fixnum]
3577
+ attr_accessor :year
3578
+
3579
+ def initialize(**args)
3580
+ update!(**args)
3581
+ end
3582
+
3583
+ # Update properties of this object
3584
+ def update!(**args)
3585
+ @day = args[:day] if args.key?(:day)
3586
+ @hours = args[:hours] if args.key?(:hours)
3587
+ @minutes = args[:minutes] if args.key?(:minutes)
3588
+ @month = args[:month] if args.key?(:month)
3589
+ @nanos = args[:nanos] if args.key?(:nanos)
3590
+ @seconds = args[:seconds] if args.key?(:seconds)
3591
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
3592
+ @utc_offset = args[:utc_offset] if args.key?(:utc_offset)
3593
+ @year = args[:year] if args.key?(:year)
3594
+ end
3595
+ end
3596
+
3597
+ # Represents an amount of money with its currency type.
3598
+ class GoogleTypeMoney
3599
+ include Google::Apis::Core::Hashable
3600
+
3601
+ # The 3-letter currency code defined in ISO 4217.
3602
+ # Corresponds to the JSON property `currencyCode`
3603
+ # @return [String]
3604
+ attr_accessor :currency_code
3605
+
3606
+ # Number of nano (10^-9) units of the amount. The value must be between -999,999,
3607
+ # 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
3608
+ # positive or zero. If `units` is zero, `nanos` can be positive, zero, or
3609
+ # negative. If `units` is negative, `nanos` must be negative or zero. For
3610
+ # example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
3611
+ # Corresponds to the JSON property `nanos`
3612
+ # @return [Fixnum]
3613
+ attr_accessor :nanos
3614
+
3615
+ # The whole units of the amount. For example if `currencyCode` is `"USD"`, then
3616
+ # 1 unit is one US dollar.
3617
+ # Corresponds to the JSON property `units`
3618
+ # @return [Fixnum]
3619
+ attr_accessor :units
3620
+
3621
+ def initialize(**args)
3622
+ update!(**args)
3623
+ end
3624
+
3625
+ # Update properties of this object
3626
+ def update!(**args)
3627
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
3628
+ @nanos = args[:nanos] if args.key?(:nanos)
3629
+ @units = args[:units] if args.key?(:units)
3630
+ end
3631
+ end
3632
+
3633
+ # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
3634
+ # time-zones).
3635
+ class GoogleTypeTimeZone
3636
+ include Google::Apis::Core::Hashable
3637
+
3638
+ # IANA Time Zone Database time zone, e.g. "America/New_York".
3639
+ # Corresponds to the JSON property `id`
3640
+ # @return [String]
3641
+ attr_accessor :id
3642
+
3643
+ # Optional. IANA Time Zone Database version number, e.g. "2019a".
3644
+ # Corresponds to the JSON property `version`
3645
+ # @return [String]
3646
+ attr_accessor :version
3647
+
3648
+ def initialize(**args)
3649
+ update!(**args)
3650
+ end
3651
+
3652
+ # Update properties of this object
3653
+ def update!(**args)
3654
+ @id = args[:id] if args.key?(:id)
3655
+ @version = args[:version] if args.key?(:version)
3656
+ end
3657
+ end
3282
3658
  end
3283
3659
  end
3284
3660
  end