google-api-client 0.44.1 → 0.44.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +119 -0
  3. data/api_names.yaml +1 -0
  4. data/generated/google/apis/accessapproval_v1.rb +1 -1
  5. data/generated/google/apis/accessapproval_v1/classes.rb +6 -4
  6. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  7. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +1 -15
  10. data/generated/google/apis/admin_directory_v1/representations.rb +1 -14
  11. data/generated/google/apis/admin_directory_v1/service.rb +89 -1
  12. data/generated/google/apis/admob_v1.rb +1 -1
  13. data/generated/google/apis/analyticsdata_v1alpha.rb +37 -0
  14. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +1610 -0
  15. data/generated/google/apis/analyticsdata_v1alpha/representations.rb +789 -0
  16. data/generated/google/apis/analyticsdata_v1alpha/service.rb +220 -0
  17. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  18. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  19. data/generated/google/apis/apigateway_v1alpha1.rb +34 -0
  20. data/generated/google/apis/apigateway_v1alpha1/classes.rb +633 -0
  21. data/generated/google/apis/apigateway_v1alpha1/representations.rb +250 -0
  22. data/generated/google/apis/apigateway_v1alpha1/service.rb +623 -0
  23. data/generated/google/apis/apigateway_v1beta.rb +34 -0
  24. data/generated/google/apis/apigateway_v1beta/classes.rb +1162 -0
  25. data/generated/google/apis/apigateway_v1beta/representations.rb +470 -0
  26. data/generated/google/apis/apigateway_v1beta/service.rb +1172 -0
  27. data/generated/google/apis/appengine_v1.rb +1 -1
  28. data/generated/google/apis/appengine_v1/classes.rb +51 -24
  29. data/generated/google/apis/appengine_v1/representations.rb +15 -0
  30. data/generated/google/apis/appengine_v1beta.rb +1 -1
  31. data/generated/google/apis/appengine_v1beta/classes.rb +58 -24
  32. data/generated/google/apis/appengine_v1beta/representations.rb +16 -0
  33. data/generated/google/apis/bigquery_v2.rb +1 -1
  34. data/generated/google/apis/bigquery_v2/classes.rb +26 -0
  35. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  36. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  37. data/generated/google/apis/bigtableadmin_v1/classes.rb +87 -119
  38. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  39. data/generated/google/apis/bigtableadmin_v2/classes.rb +405 -607
  40. data/generated/google/apis/bigtableadmin_v2/service.rb +194 -247
  41. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  42. data/generated/google/apis/binaryauthorization_v1/classes.rb +7 -0
  43. data/generated/google/apis/binaryauthorization_v1/representations.rb +1 -0
  44. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  45. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +7 -0
  46. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +1 -0
  47. data/generated/google/apis/calendar_v3.rb +1 -1
  48. data/generated/google/apis/calendar_v3/classes.rb +11 -9
  49. data/generated/google/apis/civicinfo_v2.rb +1 -1
  50. data/generated/google/apis/civicinfo_v2/classes.rb +18 -8
  51. data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
  52. data/generated/google/apis/cloudasset_v1.rb +1 -1
  53. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  54. data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
  55. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  56. data/generated/google/apis/cloudbuild_v1/classes.rb +81 -1
  57. data/generated/google/apis/cloudbuild_v1/representations.rb +22 -0
  58. data/generated/google/apis/cloudbuild_v1/service.rb +217 -3
  59. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  60. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +8 -0
  61. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
  62. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  63. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +8 -0
  64. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
  65. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  66. data/generated/google/apis/cloudidentity_v1.rb +4 -1
  67. data/generated/google/apis/cloudidentity_v1/classes.rb +270 -2
  68. data/generated/google/apis/cloudidentity_v1/representations.rb +139 -0
  69. data/generated/google/apis/cloudidentity_v1/service.rb +759 -0
  70. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  71. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +20 -7
  72. data/generated/google/apis/cloudiot_v1.rb +1 -1
  73. data/generated/google/apis/cloudiot_v1/classes.rb +7 -0
  74. data/generated/google/apis/cloudiot_v1/representations.rb +1 -0
  75. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  76. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +14 -7
  77. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +1 -0
  78. data/generated/google/apis/cloudresourcemanager_v1/service.rb +59 -57
  79. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  80. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +11 -4
  81. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +1 -0
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +23 -22
  83. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  84. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +7 -0
  85. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +1 -0
  86. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  87. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +7 -0
  88. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +1 -0
  89. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  90. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  91. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +18 -18
  92. data/generated/google/apis/container_v1.rb +1 -1
  93. data/generated/google/apis/container_v1/classes.rb +57 -2
  94. data/generated/google/apis/container_v1/representations.rb +7 -0
  95. data/generated/google/apis/container_v1beta1.rb +1 -1
  96. data/generated/google/apis/container_v1beta1/classes.rb +52 -8
  97. data/generated/google/apis/container_v1beta1/representations.rb +6 -0
  98. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  99. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +7 -0
  100. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
  101. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  102. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +7 -0
  103. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +1 -0
  104. data/generated/google/apis/content_v2.rb +1 -1
  105. data/generated/google/apis/content_v2/classes.rb +2 -1
  106. data/generated/google/apis/content_v2_1.rb +1 -1
  107. data/generated/google/apis/content_v2_1/classes.rb +14 -3
  108. data/generated/google/apis/content_v2_1/representations.rb +1 -0
  109. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  110. data/generated/google/apis/datacatalog_v1beta1/classes.rb +7 -0
  111. data/generated/google/apis/datacatalog_v1beta1/representations.rb +1 -0
  112. data/generated/google/apis/datafusion_v1.rb +1 -1
  113. data/generated/google/apis/datafusion_v1/classes.rb +15 -0
  114. data/generated/google/apis/datafusion_v1/representations.rb +2 -0
  115. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  116. data/generated/google/apis/datafusion_v1beta1/classes.rb +15 -0
  117. data/generated/google/apis/datafusion_v1beta1/representations.rb +2 -0
  118. data/generated/google/apis/dataproc_v1.rb +1 -1
  119. data/generated/google/apis/dataproc_v1/classes.rb +22 -9
  120. data/generated/google/apis/dataproc_v1/representations.rb +2 -0
  121. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  122. data/generated/google/apis/dataproc_v1beta2/classes.rb +22 -9
  123. data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
  124. data/generated/google/apis/dialogflow_v2.rb +1 -1
  125. data/generated/google/apis/dialogflow_v2/classes.rb +42 -26
  126. data/generated/google/apis/dialogflow_v2/representations.rb +1 -0
  127. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  128. data/generated/google/apis/dialogflow_v2beta1/classes.rb +53 -34
  129. data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -0
  130. data/generated/google/apis/dialogflow_v2beta1/service.rb +458 -320
  131. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  132. data/generated/google/apis/dialogflow_v3beta1/classes.rb +42 -33
  133. data/generated/google/apis/dialogflow_v3beta1/representations.rb +1 -1
  134. data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
  135. data/generated/google/apis/digitalassetlinks_v1/classes.rb +66 -92
  136. data/generated/google/apis/digitalassetlinks_v1/service.rb +131 -188
  137. data/generated/google/apis/displayvideo_v1.rb +1 -1
  138. data/generated/google/apis/displayvideo_v1/service.rb +2 -2
  139. data/generated/google/apis/displayvideo_v1beta.rb +38 -0
  140. data/generated/google/apis/displayvideo_v1beta/classes.rb +146 -0
  141. data/generated/google/apis/displayvideo_v1beta/representations.rb +72 -0
  142. data/generated/google/apis/displayvideo_v1beta/service.rb +161 -0
  143. data/generated/google/apis/displayvideo_v1beta2.rb +38 -0
  144. data/generated/google/apis/displayvideo_v1beta2/classes.rb +146 -0
  145. data/generated/google/apis/displayvideo_v1beta2/representations.rb +72 -0
  146. data/generated/google/apis/displayvideo_v1beta2/service.rb +130 -0
  147. data/generated/google/apis/displayvideo_v1dev.rb +38 -0
  148. data/generated/google/apis/displayvideo_v1dev/classes.rb +146 -0
  149. data/generated/google/apis/displayvideo_v1dev/representations.rb +72 -0
  150. data/generated/google/apis/displayvideo_v1dev/service.rb +130 -0
  151. data/generated/google/apis/dlp_v2.rb +1 -1
  152. data/generated/google/apis/dlp_v2/classes.rb +5 -5
  153. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  154. data/generated/google/apis/documentai_v1beta2/classes.rb +1059 -6
  155. data/generated/google/apis/documentai_v1beta2/representations.rb +398 -0
  156. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  157. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -2
  158. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  159. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +1 -2
  160. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  161. data/generated/google/apis/firebase_v1beta1/classes.rb +8 -4
  162. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  163. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  164. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +160 -0
  165. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +68 -0
  166. data/generated/google/apis/firebasehosting_v1beta1/service.rb +414 -0
  167. data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
  168. data/generated/google/apis/firebaseml_v1beta2/classes.rb +8 -0
  169. data/generated/google/apis/firebaseml_v1beta2/representations.rb +1 -0
  170. data/generated/google/apis/firestore_v1.rb +1 -1
  171. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  172. data/generated/google/apis/fitness_v1.rb +3 -3
  173. data/generated/google/apis/fitness_v1/classes.rb +5 -5
  174. data/generated/google/apis/games_v1.rb +1 -1
  175. data/generated/google/apis/gameservices_v1.rb +1 -1
  176. data/generated/google/apis/gameservices_v1/classes.rb +7 -0
  177. data/generated/google/apis/gameservices_v1/representations.rb +1 -0
  178. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  179. data/generated/google/apis/gameservices_v1beta/classes.rb +7 -0
  180. data/generated/google/apis/gameservices_v1beta/representations.rb +1 -0
  181. data/generated/google/apis/healthcare_v1.rb +1 -1
  182. data/generated/google/apis/healthcare_v1/classes.rb +72 -0
  183. data/generated/google/apis/healthcare_v1/representations.rb +32 -0
  184. data/generated/google/apis/healthcare_v1/service.rb +182 -16
  185. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  186. data/generated/google/apis/healthcare_v1beta1/service.rb +231 -16
  187. data/generated/google/apis/homegraph_v1.rb +4 -1
  188. data/generated/google/apis/iam_v1.rb +1 -1
  189. data/generated/google/apis/iam_v1/classes.rb +7 -0
  190. data/generated/google/apis/iam_v1/representations.rb +1 -0
  191. data/generated/google/apis/iap_v1.rb +1 -1
  192. data/generated/google/apis/iap_v1/classes.rb +7 -0
  193. data/generated/google/apis/iap_v1/representations.rb +1 -0
  194. data/generated/google/apis/iap_v1beta1.rb +1 -1
  195. data/generated/google/apis/iap_v1beta1/classes.rb +7 -0
  196. data/generated/google/apis/iap_v1beta1/representations.rb +1 -0
  197. data/generated/google/apis/jobs_v2.rb +1 -1
  198. data/generated/google/apis/jobs_v2/classes.rb +786 -1086
  199. data/generated/google/apis/jobs_v2/service.rb +85 -126
  200. data/generated/google/apis/jobs_v3.rb +1 -1
  201. data/generated/google/apis/jobs_v3/classes.rb +637 -856
  202. data/generated/google/apis/jobs_v3/service.rb +101 -139
  203. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  204. data/generated/google/apis/jobs_v3p1beta1/classes.rb +762 -1023
  205. data/generated/google/apis/jobs_v3p1beta1/service.rb +103 -142
  206. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  207. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +8 -0
  208. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +1 -0
  209. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  210. data/generated/google/apis/managedidentities_v1beta1/classes.rb +8 -0
  211. data/generated/google/apis/managedidentities_v1beta1/representations.rb +1 -0
  212. data/generated/google/apis/ml_v1.rb +1 -1
  213. data/generated/google/apis/ml_v1/classes.rb +7 -0
  214. data/generated/google/apis/ml_v1/representations.rb +1 -0
  215. data/generated/google/apis/ml_v1/service.rb +1 -1
  216. data/generated/google/apis/monitoring_v1.rb +1 -1
  217. data/generated/google/apis/monitoring_v1/classes.rb +9 -5
  218. data/generated/google/apis/osconfig_v1.rb +1 -1
  219. data/generated/google/apis/osconfig_v1/classes.rb +0 -704
  220. data/generated/google/apis/osconfig_v1/representations.rb +0 -337
  221. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  222. data/generated/google/apis/osconfig_v1beta/classes.rb +0 -704
  223. data/generated/google/apis/osconfig_v1beta/representations.rb +0 -337
  224. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  225. data/generated/google/apis/playcustomapp_v1/service.rb +2 -2
  226. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  227. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +20 -0
  228. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +13 -0
  229. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +479 -0
  230. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  231. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  232. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  233. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  234. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +7 -0
  235. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +1 -0
  236. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  237. data/generated/google/apis/secretmanager_v1.rb +1 -1
  238. data/generated/google/apis/secretmanager_v1/classes.rb +168 -2
  239. data/generated/google/apis/secretmanager_v1/representations.rb +92 -0
  240. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  241. data/generated/google/apis/secretmanager_v1beta1/classes.rb +7 -0
  242. data/generated/google/apis/secretmanager_v1beta1/representations.rb +1 -0
  243. data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
  244. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +7 -0
  245. data/generated/google/apis/servicedirectory_v1beta1/representations.rb +1 -0
  246. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  247. data/generated/google/apis/servicenetworking_v1/classes.rb +0 -9
  248. data/generated/google/apis/servicenetworking_v1/representations.rb +0 -1
  249. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  250. data/generated/google/apis/sql_v1beta4.rb +1 -1
  251. data/generated/google/apis/storage_v1.rb +1 -1
  252. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  253. data/generated/google/apis/sts_v1.rb +32 -0
  254. data/generated/google/apis/sts_v1/classes.rb +120 -0
  255. data/generated/google/apis/sts_v1/representations.rb +59 -0
  256. data/generated/google/apis/sts_v1/service.rb +90 -0
  257. data/generated/google/apis/sts_v1beta.rb +32 -0
  258. data/generated/google/apis/sts_v1beta/classes.rb +191 -0
  259. data/generated/google/apis/sts_v1beta/representations.rb +61 -0
  260. data/generated/google/apis/sts_v1beta/service.rb +92 -0
  261. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  262. data/generated/google/apis/tpu_v1.rb +1 -1
  263. data/generated/google/apis/tpu_v1/classes.rb +43 -0
  264. data/generated/google/apis/tpu_v1/representations.rb +18 -0
  265. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  266. data/generated/google/apis/tpu_v1alpha1/classes.rb +43 -0
  267. data/generated/google/apis/tpu_v1alpha1/representations.rb +18 -0
  268. data/generated/google/apis/vault_v1.rb +1 -1
  269. data/generated/google/apis/vault_v1/classes.rb +80 -103
  270. data/generated/google/apis/vault_v1/service.rb +31 -37
  271. data/generated/google/apis/verifiedaccess_v1.rb +1 -1
  272. data/generated/google/apis/verifiedaccess_v1/classes.rb +20 -27
  273. data/generated/google/apis/videointelligence_v1.rb +1 -1
  274. data/generated/google/apis/videointelligence_v1/service.rb +31 -0
  275. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  276. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  277. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  278. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  279. data/generated/google/apis/vision_v1.rb +1 -1
  280. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  281. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  282. data/generated/google/apis/workflowexecutions_v1beta.rb +34 -0
  283. data/generated/google/apis/workflowexecutions_v1beta/classes.rb +155 -0
  284. data/generated/google/apis/workflowexecutions_v1beta/representations.rb +88 -0
  285. data/generated/google/apis/workflowexecutions_v1beta/service.rb +211 -0
  286. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  287. data/generated/google/apis/youtube_v3.rb +1 -1
  288. data/generated/google/apis/youtube_v3/service.rb +78 -78
  289. data/google-api-client.gemspec +2 -1
  290. data/lib/google/apis/version.rb +1 -1
  291. metadata +54 -4
@@ -0,0 +1,72 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module DisplayvideoV1dev
24
+
25
+ class GoogleBytestreamMedia
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Operation
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Status
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class GoogleBytestreamMedia
44
+ # @private
45
+ class Representation < Google::Apis::Core::JsonRepresentation
46
+ property :resource_name, as: 'resourceName'
47
+ end
48
+ end
49
+
50
+ class Operation
51
+ # @private
52
+ class Representation < Google::Apis::Core::JsonRepresentation
53
+ property :done, as: 'done'
54
+ property :error, as: 'error', class: Google::Apis::DisplayvideoV1dev::Status, decorator: Google::Apis::DisplayvideoV1dev::Status::Representation
55
+
56
+ hash :metadata, as: 'metadata'
57
+ property :name, as: 'name'
58
+ hash :response, as: 'response'
59
+ end
60
+ end
61
+
62
+ class Status
63
+ # @private
64
+ class Representation < Google::Apis::Core::JsonRepresentation
65
+ property :code, as: 'code'
66
+ collection :details, as: 'details'
67
+ property :message, as: 'message'
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,130 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module DisplayvideoV1dev
23
+ # Display & Video 360 API
24
+ #
25
+ # Display & Video 360 API allows users to manage and create campaigns and
26
+ # reports.
27
+ #
28
+ # @example
29
+ # require 'google/apis/displayvideo_v1dev'
30
+ #
31
+ # Displayvideo = Google::Apis::DisplayvideoV1dev # Alias the module
32
+ # service = Displayvideo::DisplayVideoService.new
33
+ #
34
+ # @see https://developers.google.com/display-video/
35
+ class DisplayVideoService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://displayvideo.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Downloads media. Download is supported on the URI `/download/`resource_name=**`
52
+ # ?alt=media.` **Note**: Download requests will not be successful without
53
+ # including `alt=media` query string.
54
+ # @param [String] resource_name
55
+ # Name of the media that is being downloaded. See ReadRequest.resource_name.
56
+ # @param [String] fields
57
+ # Selector specifying which fields to include in a partial response.
58
+ # @param [String] quota_user
59
+ # Available to use for quota purposes for server-side applications. Can be any
60
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
61
+ # @param [IO, String] download_dest
62
+ # IO stream or filename to receive content download
63
+ # @param [Google::Apis::RequestOptions] options
64
+ # Request-specific options
65
+ #
66
+ # @yield [result, err] Result & error if block supplied
67
+ # @yieldparam result [Google::Apis::DisplayvideoV1dev::GoogleBytestreamMedia] parsed result object
68
+ # @yieldparam err [StandardError] error object if request failed
69
+ #
70
+ # @return [Google::Apis::DisplayvideoV1dev::GoogleBytestreamMedia]
71
+ #
72
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
75
+ def download_medium(resource_name, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block)
76
+ if download_dest.nil?
77
+ command = make_simple_command(:get, 'download/{+resourceName}', options)
78
+ else
79
+ command = make_download_command(:get, 'download/{+resourceName}', options)
80
+ command.download_dest = download_dest
81
+ end
82
+ command.response_representation = Google::Apis::DisplayvideoV1dev::GoogleBytestreamMedia::Representation
83
+ command.response_class = Google::Apis::DisplayvideoV1dev::GoogleBytestreamMedia
84
+ command.params['resourceName'] = resource_name unless resource_name.nil?
85
+ command.query['fields'] = fields unless fields.nil?
86
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
87
+ execute_or_queue_command(command, &block)
88
+ end
89
+
90
+ # Gets the latest state of an asynchronous SDF download task operation. Clients
91
+ # should poll this method at intervals of 30 seconds.
92
+ # @param [String] name
93
+ # The name of the operation resource.
94
+ # @param [String] fields
95
+ # Selector specifying which fields to include in a partial response.
96
+ # @param [String] quota_user
97
+ # Available to use for quota purposes for server-side applications. Can be any
98
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
99
+ # @param [Google::Apis::RequestOptions] options
100
+ # Request-specific options
101
+ #
102
+ # @yield [result, err] Result & error if block supplied
103
+ # @yieldparam result [Google::Apis::DisplayvideoV1dev::Operation] parsed result object
104
+ # @yieldparam err [StandardError] error object if request failed
105
+ #
106
+ # @return [Google::Apis::DisplayvideoV1dev::Operation]
107
+ #
108
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
111
+ def get_sdfdownloadtask_operation(name, fields: nil, quota_user: nil, options: nil, &block)
112
+ command = make_simple_command(:get, 'v1dev/{+name}', options)
113
+ command.response_representation = Google::Apis::DisplayvideoV1dev::Operation::Representation
114
+ command.response_class = Google::Apis::DisplayvideoV1dev::Operation
115
+ command.params['name'] = name unless name.nil?
116
+ command.query['fields'] = fields unless fields.nil?
117
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
118
+ execute_or_queue_command(command, &block)
119
+ end
120
+
121
+ protected
122
+
123
+ def apply_command_defaults(command)
124
+ command.query['key'] = key unless key.nil?
125
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
126
+ end
127
+ end
128
+ end
129
+ end
130
+ end
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/dlp/docs/
28
28
  module DlpV2
29
29
  VERSION = 'V2'
30
- REVISION = '20200821'
30
+ REVISION = '20200905'
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'
@@ -1107,7 +1107,7 @@ module Google
1107
1107
  attr_accessor :location_id
1108
1108
 
1109
1109
  # The template id can contain uppercase and lowercase letters, numbers, and
1110
- # hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-_]+`. The
1110
+ # hyphens; that is, it must match the regular expression: `[a-zA-Z\d-_]+`. The
1111
1111
  # maximum length is 100 characters. Can be empty to allow the system to generate
1112
1112
  # one.
1113
1113
  # Corresponds to the JSON property `templateId`
@@ -1137,7 +1137,7 @@ module Google
1137
1137
  attr_accessor :inspect_job
1138
1138
 
1139
1139
  # The job id can contain uppercase and lowercase letters, numbers, and hyphens;
1140
- # that is, it must match the regular expression: `[a-zA-Z\\d-_]+`. The maximum
1140
+ # that is, it must match the regular expression: `[a-zA-Z\d-_]+`. The maximum
1141
1141
  # length is 100 characters. Can be empty to allow the system to generate one.
1142
1142
  # Corresponds to the JSON property `jobId`
1143
1143
  # @return [String]
@@ -1185,7 +1185,7 @@ module Google
1185
1185
  attr_accessor :location_id
1186
1186
 
1187
1187
  # The template id can contain uppercase and lowercase letters, numbers, and
1188
- # hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-_]+`. The
1188
+ # hyphens; that is, it must match the regular expression: `[a-zA-Z\d-_]+`. The
1189
1189
  # maximum length is 100 characters. Can be empty to allow the system to generate
1190
1190
  # one.
1191
1191
  # Corresponds to the JSON property `templateId`
@@ -1220,7 +1220,7 @@ module Google
1220
1220
  attr_accessor :location_id
1221
1221
 
1222
1222
  # The trigger id can contain uppercase and lowercase letters, numbers, and
1223
- # hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-_]+`. The
1223
+ # hyphens; that is, it must match the regular expression: `[a-zA-Z\d-_]+`. The
1224
1224
  # maximum length is 100 characters. Can be empty to allow the system to generate
1225
1225
  # one.
1226
1226
  # Corresponds to the JSON property `triggerId`
@@ -1256,7 +1256,7 @@ module Google
1256
1256
  attr_accessor :location_id
1257
1257
 
1258
1258
  # The storedInfoType ID can contain uppercase and lowercase letters, numbers,
1259
- # and hyphens; that is, it must match the regular expression: `[a-zA-Z\\d-_]+`.
1259
+ # and hyphens; that is, it must match the regular expression: `[a-zA-Z\d-_]+`.
1260
1260
  # The maximum length is 100 characters. Can be empty to allow the system to
1261
1261
  # generate one.
1262
1262
  # Corresponds to the JSON property `storedInfoTypeId`
@@ -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 = '20200807'
30
+ REVISION = '20200828'
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'
@@ -402,6 +402,11 @@ module Google
402
402
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPage>]
403
403
  attr_accessor :pages
404
404
 
405
+ # Revision history of this document.
406
+ # Corresponds to the JSON property `revisions`
407
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentRevision>]
408
+ attr_accessor :revisions
409
+
405
410
  # For a large document, sharding may be performed to produce several document
406
411
  # shards. Each document shard contains this field to detail which shard it is.
407
412
  # Corresponds to the JSON property `shardInfo`
@@ -413,6 +418,13 @@ module Google
413
418
  # @return [String]
414
419
  attr_accessor :text
415
420
 
421
+ # A list of text corrections made to [Document.text]. This is usually used for
422
+ # annotating corrections to OCR mistakes. Text changes for a given revision may
423
+ # not overlap with each other.
424
+ # Corresponds to the JSON property `textChanges`
425
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextChange>]
426
+ attr_accessor :text_changes
427
+
416
428
  # Styles for the Document.text.
417
429
  # Corresponds to the JSON property `textStyles`
418
430
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyle>]
@@ -444,8 +456,10 @@ module Google
444
456
  @error = args[:error] if args.key?(:error)
445
457
  @mime_type = args[:mime_type] if args.key?(:mime_type)
446
458
  @pages = args[:pages] if args.key?(:pages)
459
+ @revisions = args[:revisions] if args.key?(:revisions)
447
460
  @shard_info = args[:shard_info] if args.key?(:shard_info)
448
461
  @text = args[:text] if args.key?(:text)
462
+ @text_changes = args[:text_changes] if args.key?(:text_changes)
449
463
  @text_styles = args[:text_styles] if args.key?(:text_styles)
450
464
  @translations = args[:translations] if args.key?(:translations)
451
465
  @uri = args[:uri] if args.key?(:uri)
@@ -462,6 +476,12 @@ module Google
462
476
  # @return [Float]
463
477
  attr_accessor :confidence
464
478
 
479
+ # Optional. Canonical id. This will be a unique value in the entity list for
480
+ # this document.
481
+ # Corresponds to the JSON property `id`
482
+ # @return [String]
483
+ attr_accessor :id
484
+
465
485
  # Deprecated. Use `id` field instead.
466
486
  # Corresponds to the JSON property `mentionId`
467
487
  # @return [String]
@@ -477,6 +497,25 @@ module Google
477
497
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue]
478
498
  attr_accessor :normalized_value
479
499
 
500
+ # Referencing the visual context of the entity in the Document.pages. Page
501
+ # anchors can be cross-page, consist of multiple bounding polygons and
502
+ # optionally reference specific layout element types.
503
+ # Corresponds to the JSON property `pageAnchor`
504
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageAnchor]
505
+ attr_accessor :page_anchor
506
+
507
+ # Optional. Entities can be nested to form a hierarchical data structure
508
+ # representing the content in the document.
509
+ # Corresponds to the JSON property `properties`
510
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentEntity>]
511
+ attr_accessor :properties
512
+
513
+ # Structure to identify provenance relationships between annotations in
514
+ # different revisions.
515
+ # Corresponds to the JSON property `provenance`
516
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance]
517
+ attr_accessor :provenance
518
+
480
519
  # Optional. Whether the entity will be redacted for de-identification purposes.
481
520
  # Corresponds to the JSON property `redacted`
482
521
  # @return [Boolean]
@@ -500,9 +539,13 @@ module Google
500
539
  # Update properties of this object
501
540
  def update!(**args)
502
541
  @confidence = args[:confidence] if args.key?(:confidence)
542
+ @id = args[:id] if args.key?(:id)
503
543
  @mention_id = args[:mention_id] if args.key?(:mention_id)
504
544
  @mention_text = args[:mention_text] if args.key?(:mention_text)
505
545
  @normalized_value = args[:normalized_value] if args.key?(:normalized_value)
546
+ @page_anchor = args[:page_anchor] if args.key?(:page_anchor)
547
+ @properties = args[:properties] if args.key?(:properties)
548
+ @provenance = args[:provenance] if args.key?(:provenance)
506
549
  @redacted = args[:redacted] if args.key?(:redacted)
507
550
  @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
508
551
  @type = args[:type] if args.key?(:type)
@@ -513,6 +556,20 @@ module Google
513
556
  class GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue
514
557
  include Google::Apis::Core::Hashable
515
558
 
559
+ # Represents a postal address, e.g. for postal delivery or payments addresses.
560
+ # Given a postal address, a postal service can deliver items to a premise, P.O.
561
+ # Box or similar. It is not intended to model geographical locations (roads,
562
+ # towns, mountains). In typical usage an address would be created via user input
563
+ # or from importing existing data, depending on the type of process. Advice on
564
+ # address input / editing: - Use an i18n-ready address widget such as https://
565
+ # github.com/google/libaddressinput) - Users should not be presented with UI
566
+ # elements for input or editing of fields outside countries where that field is
567
+ # used. For more guidance on how to use this schema, please see: https://support.
568
+ # google.com/business/answer/6397478
569
+ # Corresponds to the JSON property `addressValue`
570
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleTypePostalAddress]
571
+ attr_accessor :address_value
572
+
516
573
  # Represents a whole or partial calendar date, e.g. a birthday. The time of day
517
574
  # and time zone are either specified elsewhere or are not significant. The date
518
575
  # is relative to the Proleptic Gregorian Calendar. This can represent: * A full
@@ -559,6 +616,7 @@ module Google
559
616
 
560
617
  # Update properties of this object
561
618
  def update!(**args)
619
+ @address_value = args[:address_value] if args.key?(:address_value)
562
620
  @date_value = args[:date_value] if args.key?(:date_value)
563
621
  @datetime_value = args[:datetime_value] if args.key?(:datetime_value)
564
622
  @money_value = args[:money_value] if args.key?(:money_value)
@@ -623,6 +681,11 @@ module Google
623
681
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageFormField>]
624
682
  attr_accessor :form_fields
625
683
 
684
+ # Rendered image contents for this page.
685
+ # Corresponds to the JSON property `image`
686
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImage]
687
+ attr_accessor :image
688
+
626
689
  # Visual element describing a layout unit on a page.
627
690
  # Corresponds to the JSON property `layout`
628
691
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
@@ -656,6 +719,12 @@ module Google
656
719
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageToken>]
657
720
  attr_accessor :tokens
658
721
 
722
+ # Transformation matrices that were applied to the original document image to
723
+ # produce Page.image.
724
+ # Corresponds to the JSON property `transforms`
725
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageMatrix>]
726
+ attr_accessor :transforms
727
+
659
728
  # A list of detected non-text visual elements e.g. checkbox, signature etc. on
660
729
  # the page.
661
730
  # Corresponds to the JSON property `visualElements`
@@ -672,16 +741,76 @@ module Google
672
741
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
673
742
  @dimension = args[:dimension] if args.key?(:dimension)
674
743
  @form_fields = args[:form_fields] if args.key?(:form_fields)
744
+ @image = args[:image] if args.key?(:image)
675
745
  @layout = args[:layout] if args.key?(:layout)
676
746
  @lines = args[:lines] if args.key?(:lines)
677
747
  @page_number = args[:page_number] if args.key?(:page_number)
678
748
  @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
679
749
  @tables = args[:tables] if args.key?(:tables)
680
750
  @tokens = args[:tokens] if args.key?(:tokens)
751
+ @transforms = args[:transforms] if args.key?(:transforms)
681
752
  @visual_elements = args[:visual_elements] if args.key?(:visual_elements)
682
753
  end
683
754
  end
684
755
 
756
+ # Referencing the visual context of the entity in the Document.pages. Page
757
+ # anchors can be cross-page, consist of multiple bounding polygons and
758
+ # optionally reference specific layout element types.
759
+ class GoogleCloudDocumentaiV1beta1DocumentPageAnchor
760
+ include Google::Apis::Core::Hashable
761
+
762
+ # One or more references to visual page elements
763
+ # Corresponds to the JSON property `pageRefs`
764
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef>]
765
+ attr_accessor :page_refs
766
+
767
+ def initialize(**args)
768
+ update!(**args)
769
+ end
770
+
771
+ # Update properties of this object
772
+ def update!(**args)
773
+ @page_refs = args[:page_refs] if args.key?(:page_refs)
774
+ end
775
+ end
776
+
777
+ # Represents a weak reference to a page element within a document.
778
+ class GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef
779
+ include Google::Apis::Core::Hashable
780
+
781
+ # A bounding polygon for the detected image annotation.
782
+ # Corresponds to the JSON property `boundingPoly`
783
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1BoundingPoly]
784
+ attr_accessor :bounding_poly
785
+
786
+ # Optional. Deprecated. Use PageRef.bounding_poly instead.
787
+ # Corresponds to the JSON property `layoutId`
788
+ # @return [String]
789
+ attr_accessor :layout_id
790
+
791
+ # Optional. The type of the layout element that is being referenced if any.
792
+ # Corresponds to the JSON property `layoutType`
793
+ # @return [String]
794
+ attr_accessor :layout_type
795
+
796
+ # Required. Index into the Document.pages element
797
+ # Corresponds to the JSON property `page`
798
+ # @return [Fixnum]
799
+ attr_accessor :page
800
+
801
+ def initialize(**args)
802
+ update!(**args)
803
+ end
804
+
805
+ # Update properties of this object
806
+ def update!(**args)
807
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
808
+ @layout_id = args[:layout_id] if args.key?(:layout_id)
809
+ @layout_type = args[:layout_type] if args.key?(:layout_type)
810
+ @page = args[:page] if args.key?(:page)
811
+ end
812
+ end
813
+
685
814
  # A block has a set of lines (collected into paragraphs) that have a common line-
686
815
  # spacing and orientation.
687
816
  class GoogleCloudDocumentaiV1beta1DocumentPageBlock
@@ -697,6 +826,12 @@ module Google
697
826
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
698
827
  attr_accessor :layout
699
828
 
829
+ # Structure to identify provenance relationships between annotations in
830
+ # different revisions.
831
+ # Corresponds to the JSON property `provenance`
832
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance]
833
+ attr_accessor :provenance
834
+
700
835
  def initialize(**args)
701
836
  update!(**args)
702
837
  end
@@ -705,6 +840,7 @@ module Google
705
840
  def update!(**args)
706
841
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
707
842
  @layout = args[:layout] if args.key?(:layout)
843
+ @provenance = args[:provenance] if args.key?(:provenance)
708
844
  end
709
845
  end
710
846
 
@@ -789,6 +925,13 @@ module Google
789
925
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
790
926
  attr_accessor :value_detected_languages
791
927
 
928
+ # If the value is non-textual, this field represents the type. Current valid
929
+ # values are: - blank (this indicates the field_value is normal text) - "
930
+ # unfilled_checkbox" - "filled_checkbox"
931
+ # Corresponds to the JSON property `valueType`
932
+ # @return [String]
933
+ attr_accessor :value_type
934
+
792
935
  def initialize(**args)
793
936
  update!(**args)
794
937
  end
@@ -799,6 +942,45 @@ module Google
799
942
  @field_value = args[:field_value] if args.key?(:field_value)
800
943
  @name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
801
944
  @value_detected_languages = args[:value_detected_languages] if args.key?(:value_detected_languages)
945
+ @value_type = args[:value_type] if args.key?(:value_type)
946
+ end
947
+ end
948
+
949
+ # Rendered image contents for this page.
950
+ class GoogleCloudDocumentaiV1beta1DocumentPageImage
951
+ include Google::Apis::Core::Hashable
952
+
953
+ # Raw byte content of the image.
954
+ # Corresponds to the JSON property `content`
955
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
956
+ # @return [String]
957
+ attr_accessor :content
958
+
959
+ # Height of the image in pixels.
960
+ # Corresponds to the JSON property `height`
961
+ # @return [Fixnum]
962
+ attr_accessor :height
963
+
964
+ # Encoding mime type for the image.
965
+ # Corresponds to the JSON property `mimeType`
966
+ # @return [String]
967
+ attr_accessor :mime_type
968
+
969
+ # Width of the image in pixels.
970
+ # Corresponds to the JSON property `width`
971
+ # @return [Fixnum]
972
+ attr_accessor :width
973
+
974
+ def initialize(**args)
975
+ update!(**args)
976
+ end
977
+
978
+ # Update properties of this object
979
+ def update!(**args)
980
+ @content = args[:content] if args.key?(:content)
981
+ @height = args[:height] if args.key?(:height)
982
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
983
+ @width = args[:width] if args.key?(:width)
802
984
  end
803
985
  end
804
986
 
@@ -856,6 +1038,12 @@ module Google
856
1038
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
857
1039
  attr_accessor :layout
858
1040
 
1041
+ # Structure to identify provenance relationships between annotations in
1042
+ # different revisions.
1043
+ # Corresponds to the JSON property `provenance`
1044
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance]
1045
+ attr_accessor :provenance
1046
+
859
1047
  def initialize(**args)
860
1048
  update!(**args)
861
1049
  end
@@ -864,6 +1052,49 @@ module Google
864
1052
  def update!(**args)
865
1053
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
866
1054
  @layout = args[:layout] if args.key?(:layout)
1055
+ @provenance = args[:provenance] if args.key?(:provenance)
1056
+ end
1057
+ end
1058
+
1059
+ # Representation for transformation matrix, intended to be compatible and used
1060
+ # with OpenCV format for image manipulation.
1061
+ class GoogleCloudDocumentaiV1beta1DocumentPageMatrix
1062
+ include Google::Apis::Core::Hashable
1063
+
1064
+ # Number of columns in the matrix.
1065
+ # Corresponds to the JSON property `cols`
1066
+ # @return [Fixnum]
1067
+ attr_accessor :cols
1068
+
1069
+ # The matrix data.
1070
+ # Corresponds to the JSON property `data`
1071
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1072
+ # @return [String]
1073
+ attr_accessor :data
1074
+
1075
+ # Number of rows in the matrix.
1076
+ # Corresponds to the JSON property `rows`
1077
+ # @return [Fixnum]
1078
+ attr_accessor :rows
1079
+
1080
+ # This encodes information about what data type the matrix uses. For example, 0 (
1081
+ # CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data
1082
+ # types, please refer to https://docs.opencv.org/4.3.0/d1/d1b/
1083
+ # group__core__hal__interface.html
1084
+ # Corresponds to the JSON property `type`
1085
+ # @return [Fixnum]
1086
+ attr_accessor :type
1087
+
1088
+ def initialize(**args)
1089
+ update!(**args)
1090
+ end
1091
+
1092
+ # Update properties of this object
1093
+ def update!(**args)
1094
+ @cols = args[:cols] if args.key?(:cols)
1095
+ @data = args[:data] if args.key?(:data)
1096
+ @rows = args[:rows] if args.key?(:rows)
1097
+ @type = args[:type] if args.key?(:type)
867
1098
  end
868
1099
  end
869
1100
 
@@ -881,6 +1112,12 @@ module Google
881
1112
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
882
1113
  attr_accessor :layout
883
1114
 
1115
+ # Structure to identify provenance relationships between annotations in
1116
+ # different revisions.
1117
+ # Corresponds to the JSON property `provenance`
1118
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance]
1119
+ attr_accessor :provenance
1120
+
884
1121
  def initialize(**args)
885
1122
  update!(**args)
886
1123
  end
@@ -889,6 +1126,7 @@ module Google
889
1126
  def update!(**args)
890
1127
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
891
1128
  @layout = args[:layout] if args.key?(:layout)
1129
+ @provenance = args[:provenance] if args.key?(:provenance)
892
1130
  end
893
1131
  end
894
1132
 
@@ -1004,6 +1242,12 @@ module Google
1004
1242
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
1005
1243
  attr_accessor :layout
1006
1244
 
1245
+ # Structure to identify provenance relationships between annotations in
1246
+ # different revisions.
1247
+ # Corresponds to the JSON property `provenance`
1248
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance]
1249
+ attr_accessor :provenance
1250
+
1007
1251
  def initialize(**args)
1008
1252
  update!(**args)
1009
1253
  end
@@ -1013,6 +1257,7 @@ module Google
1013
1257
  @detected_break = args[:detected_break] if args.key?(:detected_break)
1014
1258
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
1015
1259
  @layout = args[:layout] if args.key?(:layout)
1260
+ @provenance = args[:provenance] if args.key?(:provenance)
1016
1261
  end
1017
1262
  end
1018
1263
 
@@ -1066,6 +1311,148 @@ module Google
1066
1311
  end
1067
1312
  end
1068
1313
 
1314
+ # Structure to identify provenance relationships between annotations in
1315
+ # different revisions.
1316
+ class GoogleCloudDocumentaiV1beta1DocumentProvenance
1317
+ include Google::Apis::Core::Hashable
1318
+
1319
+ # The Id of this operation. Needs to be unique within the scope of the revision.
1320
+ # Corresponds to the JSON property `id`
1321
+ # @return [Fixnum]
1322
+ attr_accessor :id
1323
+
1324
+ # References to the original elements that are replaced.
1325
+ # Corresponds to the JSON property `parents`
1326
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenanceParent>]
1327
+ attr_accessor :parents
1328
+
1329
+ # The index of the revision that produced this element.
1330
+ # Corresponds to the JSON property `revision`
1331
+ # @return [Fixnum]
1332
+ attr_accessor :revision
1333
+
1334
+ # The type of provenance operation.
1335
+ # Corresponds to the JSON property `type`
1336
+ # @return [String]
1337
+ attr_accessor :type
1338
+
1339
+ def initialize(**args)
1340
+ update!(**args)
1341
+ end
1342
+
1343
+ # Update properties of this object
1344
+ def update!(**args)
1345
+ @id = args[:id] if args.key?(:id)
1346
+ @parents = args[:parents] if args.key?(:parents)
1347
+ @revision = args[:revision] if args.key?(:revision)
1348
+ @type = args[:type] if args.key?(:type)
1349
+ end
1350
+ end
1351
+
1352
+ # Structure for referencing parent provenances. When an element replaces one of
1353
+ # more other elements parent references identify the elements that are replaced.
1354
+ class GoogleCloudDocumentaiV1beta1DocumentProvenanceParent
1355
+ include Google::Apis::Core::Hashable
1356
+
1357
+ # The id of the parent provenance.
1358
+ # Corresponds to the JSON property `id`
1359
+ # @return [Fixnum]
1360
+ attr_accessor :id
1361
+
1362
+ # The index of the [Document.revisions] identifying the parent revision.
1363
+ # Corresponds to the JSON property `revision`
1364
+ # @return [Fixnum]
1365
+ attr_accessor :revision
1366
+
1367
+ def initialize(**args)
1368
+ update!(**args)
1369
+ end
1370
+
1371
+ # Update properties of this object
1372
+ def update!(**args)
1373
+ @id = args[:id] if args.key?(:id)
1374
+ @revision = args[:revision] if args.key?(:revision)
1375
+ end
1376
+ end
1377
+
1378
+ # Contains past or forward revisions of this document.
1379
+ class GoogleCloudDocumentaiV1beta1DocumentRevision
1380
+ include Google::Apis::Core::Hashable
1381
+
1382
+ # If the change was made by a person specify the name or id of that person.
1383
+ # Corresponds to the JSON property `agent`
1384
+ # @return [String]
1385
+ attr_accessor :agent
1386
+
1387
+ # The time that the revision was created.
1388
+ # Corresponds to the JSON property `createTime`
1389
+ # @return [String]
1390
+ attr_accessor :create_time
1391
+
1392
+ # Human Review information of the document.
1393
+ # Corresponds to the JSON property `humanReview`
1394
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview]
1395
+ attr_accessor :human_review
1396
+
1397
+ # Id of the revision. Unique within the context of the document.
1398
+ # Corresponds to the JSON property `id`
1399
+ # @return [String]
1400
+ attr_accessor :id
1401
+
1402
+ # The revisions that this revision is based on. This can include one or more
1403
+ # parent (when documents are merged.) This field represents the index into the `
1404
+ # revisions` field.
1405
+ # Corresponds to the JSON property `parent`
1406
+ # @return [Array<Fixnum>]
1407
+ attr_accessor :parent
1408
+
1409
+ # If the annotation was made by processor identify the processor by its resource
1410
+ # name.
1411
+ # Corresponds to the JSON property `processor`
1412
+ # @return [String]
1413
+ attr_accessor :processor
1414
+
1415
+ def initialize(**args)
1416
+ update!(**args)
1417
+ end
1418
+
1419
+ # Update properties of this object
1420
+ def update!(**args)
1421
+ @agent = args[:agent] if args.key?(:agent)
1422
+ @create_time = args[:create_time] if args.key?(:create_time)
1423
+ @human_review = args[:human_review] if args.key?(:human_review)
1424
+ @id = args[:id] if args.key?(:id)
1425
+ @parent = args[:parent] if args.key?(:parent)
1426
+ @processor = args[:processor] if args.key?(:processor)
1427
+ end
1428
+ end
1429
+
1430
+ # Human Review information of the document.
1431
+ class GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview
1432
+ include Google::Apis::Core::Hashable
1433
+
1434
+ # Human review state. e.g. `requested`, `succeeded`, `rejected`.
1435
+ # Corresponds to the JSON property `state`
1436
+ # @return [String]
1437
+ attr_accessor :state
1438
+
1439
+ # A message providing more details about the current state of processing. For
1440
+ # example, the rejection reason when the state is `rejected`.
1441
+ # Corresponds to the JSON property `stateMessage`
1442
+ # @return [String]
1443
+ attr_accessor :state_message
1444
+
1445
+ def initialize(**args)
1446
+ update!(**args)
1447
+ end
1448
+
1449
+ # Update properties of this object
1450
+ def update!(**args)
1451
+ @state = args[:state] if args.key?(:state)
1452
+ @state_message = args[:state_message] if args.key?(:state_message)
1453
+ end
1454
+ end
1455
+
1069
1456
  # For a large document, sharding may be performed to produce several document
1070
1457
  # shards. Each document shard contains this field to detail which shard it is.
1071
1458
  class GoogleCloudDocumentaiV1beta1DocumentShardInfo
@@ -1275,6 +1662,12 @@ module Google
1275
1662
  class GoogleCloudDocumentaiV1beta1DocumentTextAnchor
1276
1663
  include Google::Apis::Core::Hashable
1277
1664
 
1665
+ # Contains the content of the text span so that users do not have to look it up
1666
+ # in the text_segments.
1667
+ # Corresponds to the JSON property `content`
1668
+ # @return [String]
1669
+ attr_accessor :content
1670
+
1278
1671
  # The text segments from the Document.text.
1279
1672
  # Corresponds to the JSON property `textSegments`
1280
1673
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment>]
@@ -1286,6 +1679,7 @@ module Google
1286
1679
 
1287
1680
  # Update properties of this object
1288
1681
  def update!(**args)
1682
+ @content = args[:content] if args.key?(:content)
1289
1683
  @text_segments = args[:text_segments] if args.key?(:text_segments)
1290
1684
  end
1291
1685
  end
@@ -1317,6 +1711,37 @@ module Google
1317
1711
  end
1318
1712
  end
1319
1713
 
1714
+ # This message is used for text changes aka. OCR corrections.
1715
+ class GoogleCloudDocumentaiV1beta1DocumentTextChange
1716
+ include Google::Apis::Core::Hashable
1717
+
1718
+ # The text that replaces the text identified in the `text_anchor`.
1719
+ # Corresponds to the JSON property `changedText`
1720
+ # @return [String]
1721
+ attr_accessor :changed_text
1722
+
1723
+ # The history of this annotation.
1724
+ # Corresponds to the JSON property `provenance`
1725
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance>]
1726
+ attr_accessor :provenance
1727
+
1728
+ # Text reference indexing into the Document.text.
1729
+ # Corresponds to the JSON property `textAnchor`
1730
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
1731
+ attr_accessor :text_anchor
1732
+
1733
+ def initialize(**args)
1734
+ update!(**args)
1735
+ end
1736
+
1737
+ # Update properties of this object
1738
+ def update!(**args)
1739
+ @changed_text = args[:changed_text] if args.key?(:changed_text)
1740
+ @provenance = args[:provenance] if args.key?(:provenance)
1741
+ @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
1742
+ end
1743
+ end
1744
+
1320
1745
  # A translation of the text segment.
1321
1746
  class GoogleCloudDocumentaiV1beta1DocumentTranslation
1322
1747
  include Google::Apis::Core::Hashable
@@ -1327,6 +1752,11 @@ module Google
1327
1752
  # @return [String]
1328
1753
  attr_accessor :language_code
1329
1754
 
1755
+ # The history of this annotation.
1756
+ # Corresponds to the JSON property `provenance`
1757
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance>]
1758
+ attr_accessor :provenance
1759
+
1330
1760
  # Text reference indexing into the Document.text.
1331
1761
  # Corresponds to the JSON property `textAnchor`
1332
1762
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
@@ -1344,6 +1774,7 @@ module Google
1344
1774
  # Update properties of this object
1345
1775
  def update!(**args)
1346
1776
  @language_code = args[:language_code] if args.key?(:language_code)
1777
+ @provenance = args[:provenance] if args.key?(:provenance)
1347
1778
  @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
1348
1779
  @translated_text = args[:translated_text] if args.key?(:translated_text)
1349
1780
  end
@@ -1700,6 +2131,11 @@ module Google
1700
2131
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPage>]
1701
2132
  attr_accessor :pages
1702
2133
 
2134
+ # Revision history of this document.
2135
+ # Corresponds to the JSON property `revisions`
2136
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentRevision>]
2137
+ attr_accessor :revisions
2138
+
1703
2139
  # For a large document, sharding may be performed to produce several document
1704
2140
  # shards. Each document shard contains this field to detail which shard it is.
1705
2141
  # Corresponds to the JSON property `shardInfo`
@@ -1711,6 +2147,13 @@ module Google
1711
2147
  # @return [String]
1712
2148
  attr_accessor :text
1713
2149
 
2150
+ # A list of text corrections made to [Document.text]. This is usually used for
2151
+ # annotating corrections to OCR mistakes. Text changes for a given revision may
2152
+ # not overlap with each other.
2153
+ # Corresponds to the JSON property `textChanges`
2154
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextChange>]
2155
+ attr_accessor :text_changes
2156
+
1714
2157
  # Styles for the Document.text.
1715
2158
  # Corresponds to the JSON property `textStyles`
1716
2159
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyle>]
@@ -1743,8 +2186,10 @@ module Google
1743
2186
  @labels = args[:labels] if args.key?(:labels)
1744
2187
  @mime_type = args[:mime_type] if args.key?(:mime_type)
1745
2188
  @pages = args[:pages] if args.key?(:pages)
2189
+ @revisions = args[:revisions] if args.key?(:revisions)
1746
2190
  @shard_info = args[:shard_info] if args.key?(:shard_info)
1747
2191
  @text = args[:text] if args.key?(:text)
2192
+ @text_changes = args[:text_changes] if args.key?(:text_changes)
1748
2193
  @text_styles = args[:text_styles] if args.key?(:text_styles)
1749
2194
  @translations = args[:translations] if args.key?(:translations)
1750
2195
  @uri = args[:uri] if args.key?(:uri)
@@ -1761,6 +2206,12 @@ module Google
1761
2206
  # @return [Float]
1762
2207
  attr_accessor :confidence
1763
2208
 
2209
+ # Optional. Canonical id. This will be a unique value in the entity list for
2210
+ # this document.
2211
+ # Corresponds to the JSON property `id`
2212
+ # @return [String]
2213
+ attr_accessor :id
2214
+
1764
2215
  # Deprecated. Use `id` field instead.
1765
2216
  # Corresponds to the JSON property `mentionId`
1766
2217
  # @return [String]
@@ -1776,6 +2227,25 @@ module Google
1776
2227
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue]
1777
2228
  attr_accessor :normalized_value
1778
2229
 
2230
+ # Referencing the visual context of the entity in the Document.pages. Page
2231
+ # anchors can be cross-page, consist of multiple bounding polygons and
2232
+ # optionally reference specific layout element types.
2233
+ # Corresponds to the JSON property `pageAnchor`
2234
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageAnchor]
2235
+ attr_accessor :page_anchor
2236
+
2237
+ # Optional. Entities can be nested to form a hierarchical data structure
2238
+ # representing the content in the document.
2239
+ # Corresponds to the JSON property `properties`
2240
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentEntity>]
2241
+ attr_accessor :properties
2242
+
2243
+ # Structure to identify provenance relationships between annotations in
2244
+ # different revisions.
2245
+ # Corresponds to the JSON property `provenance`
2246
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance]
2247
+ attr_accessor :provenance
2248
+
1779
2249
  # Optional. Whether the entity will be redacted for de-identification purposes.
1780
2250
  # Corresponds to the JSON property `redacted`
1781
2251
  # @return [Boolean]
@@ -1799,9 +2269,13 @@ module Google
1799
2269
  # Update properties of this object
1800
2270
  def update!(**args)
1801
2271
  @confidence = args[:confidence] if args.key?(:confidence)
2272
+ @id = args[:id] if args.key?(:id)
1802
2273
  @mention_id = args[:mention_id] if args.key?(:mention_id)
1803
2274
  @mention_text = args[:mention_text] if args.key?(:mention_text)
1804
2275
  @normalized_value = args[:normalized_value] if args.key?(:normalized_value)
2276
+ @page_anchor = args[:page_anchor] if args.key?(:page_anchor)
2277
+ @properties = args[:properties] if args.key?(:properties)
2278
+ @provenance = args[:provenance] if args.key?(:provenance)
1805
2279
  @redacted = args[:redacted] if args.key?(:redacted)
1806
2280
  @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
1807
2281
  @type = args[:type] if args.key?(:type)
@@ -1812,6 +2286,20 @@ module Google
1812
2286
  class GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue
1813
2287
  include Google::Apis::Core::Hashable
1814
2288
 
2289
+ # Represents a postal address, e.g. for postal delivery or payments addresses.
2290
+ # Given a postal address, a postal service can deliver items to a premise, P.O.
2291
+ # Box or similar. It is not intended to model geographical locations (roads,
2292
+ # towns, mountains). In typical usage an address would be created via user input
2293
+ # or from importing existing data, depending on the type of process. Advice on
2294
+ # address input / editing: - Use an i18n-ready address widget such as https://
2295
+ # github.com/google/libaddressinput) - Users should not be presented with UI
2296
+ # elements for input or editing of fields outside countries where that field is
2297
+ # used. For more guidance on how to use this schema, please see: https://support.
2298
+ # google.com/business/answer/6397478
2299
+ # Corresponds to the JSON property `addressValue`
2300
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleTypePostalAddress]
2301
+ attr_accessor :address_value
2302
+
1815
2303
  # Represents a whole or partial calendar date, e.g. a birthday. The time of day
1816
2304
  # and time zone are either specified elsewhere or are not significant. The date
1817
2305
  # is relative to the Proleptic Gregorian Calendar. This can represent: * A full
@@ -1858,6 +2346,7 @@ module Google
1858
2346
 
1859
2347
  # Update properties of this object
1860
2348
  def update!(**args)
2349
+ @address_value = args[:address_value] if args.key?(:address_value)
1861
2350
  @date_value = args[:date_value] if args.key?(:date_value)
1862
2351
  @datetime_value = args[:datetime_value] if args.key?(:datetime_value)
1863
2352
  @money_value = args[:money_value] if args.key?(:money_value)
@@ -1959,6 +2448,11 @@ module Google
1959
2448
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageFormField>]
1960
2449
  attr_accessor :form_fields
1961
2450
 
2451
+ # Rendered image contents for this page.
2452
+ # Corresponds to the JSON property `image`
2453
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImage]
2454
+ attr_accessor :image
2455
+
1962
2456
  # Visual element describing a layout unit on a page.
1963
2457
  # Corresponds to the JSON property `layout`
1964
2458
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
@@ -1992,6 +2486,12 @@ module Google
1992
2486
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageToken>]
1993
2487
  attr_accessor :tokens
1994
2488
 
2489
+ # Transformation matrices that were applied to the original document image to
2490
+ # produce Page.image.
2491
+ # Corresponds to the JSON property `transforms`
2492
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageMatrix>]
2493
+ attr_accessor :transforms
2494
+
1995
2495
  # A list of detected non-text visual elements e.g. checkbox, signature etc. on
1996
2496
  # the page.
1997
2497
  # Corresponds to the JSON property `visualElements`
@@ -2008,24 +2508,84 @@ module Google
2008
2508
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
2009
2509
  @dimension = args[:dimension] if args.key?(:dimension)
2010
2510
  @form_fields = args[:form_fields] if args.key?(:form_fields)
2511
+ @image = args[:image] if args.key?(:image)
2011
2512
  @layout = args[:layout] if args.key?(:layout)
2012
2513
  @lines = args[:lines] if args.key?(:lines)
2013
2514
  @page_number = args[:page_number] if args.key?(:page_number)
2014
2515
  @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
2015
2516
  @tables = args[:tables] if args.key?(:tables)
2016
2517
  @tokens = args[:tokens] if args.key?(:tokens)
2518
+ @transforms = args[:transforms] if args.key?(:transforms)
2017
2519
  @visual_elements = args[:visual_elements] if args.key?(:visual_elements)
2018
2520
  end
2019
2521
  end
2020
2522
 
2021
- # A block has a set of lines (collected into paragraphs) that have a common line-
2022
- # spacing and orientation.
2023
- class GoogleCloudDocumentaiV1beta2DocumentPageBlock
2523
+ # Referencing the visual context of the entity in the Document.pages. Page
2524
+ # anchors can be cross-page, consist of multiple bounding polygons and
2525
+ # optionally reference specific layout element types.
2526
+ class GoogleCloudDocumentaiV1beta2DocumentPageAnchor
2024
2527
  include Google::Apis::Core::Hashable
2025
2528
 
2026
- # A list of detected languages together with confidence.
2027
- # Corresponds to the JSON property `detectedLanguages`
2028
- # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
2529
+ # One or more references to visual page elements
2530
+ # Corresponds to the JSON property `pageRefs`
2531
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef>]
2532
+ attr_accessor :page_refs
2533
+
2534
+ def initialize(**args)
2535
+ update!(**args)
2536
+ end
2537
+
2538
+ # Update properties of this object
2539
+ def update!(**args)
2540
+ @page_refs = args[:page_refs] if args.key?(:page_refs)
2541
+ end
2542
+ end
2543
+
2544
+ # Represents a weak reference to a page element within a document.
2545
+ class GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef
2546
+ include Google::Apis::Core::Hashable
2547
+
2548
+ # A bounding polygon for the detected image annotation.
2549
+ # Corresponds to the JSON property `boundingPoly`
2550
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BoundingPoly]
2551
+ attr_accessor :bounding_poly
2552
+
2553
+ # Optional. Deprecated. Use PageRef.bounding_poly instead.
2554
+ # Corresponds to the JSON property `layoutId`
2555
+ # @return [String]
2556
+ attr_accessor :layout_id
2557
+
2558
+ # Optional. The type of the layout element that is being referenced if any.
2559
+ # Corresponds to the JSON property `layoutType`
2560
+ # @return [String]
2561
+ attr_accessor :layout_type
2562
+
2563
+ # Required. Index into the Document.pages element
2564
+ # Corresponds to the JSON property `page`
2565
+ # @return [Fixnum]
2566
+ attr_accessor :page
2567
+
2568
+ def initialize(**args)
2569
+ update!(**args)
2570
+ end
2571
+
2572
+ # Update properties of this object
2573
+ def update!(**args)
2574
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
2575
+ @layout_id = args[:layout_id] if args.key?(:layout_id)
2576
+ @layout_type = args[:layout_type] if args.key?(:layout_type)
2577
+ @page = args[:page] if args.key?(:page)
2578
+ end
2579
+ end
2580
+
2581
+ # A block has a set of lines (collected into paragraphs) that have a common line-
2582
+ # spacing and orientation.
2583
+ class GoogleCloudDocumentaiV1beta2DocumentPageBlock
2584
+ include Google::Apis::Core::Hashable
2585
+
2586
+ # A list of detected languages together with confidence.
2587
+ # Corresponds to the JSON property `detectedLanguages`
2588
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
2029
2589
  attr_accessor :detected_languages
2030
2590
 
2031
2591
  # Visual element describing a layout unit on a page.
@@ -2033,6 +2593,12 @@ module Google
2033
2593
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
2034
2594
  attr_accessor :layout
2035
2595
 
2596
+ # Structure to identify provenance relationships between annotations in
2597
+ # different revisions.
2598
+ # Corresponds to the JSON property `provenance`
2599
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance]
2600
+ attr_accessor :provenance
2601
+
2036
2602
  def initialize(**args)
2037
2603
  update!(**args)
2038
2604
  end
@@ -2041,6 +2607,7 @@ module Google
2041
2607
  def update!(**args)
2042
2608
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
2043
2609
  @layout = args[:layout] if args.key?(:layout)
2610
+ @provenance = args[:provenance] if args.key?(:provenance)
2044
2611
  end
2045
2612
  end
2046
2613
 
@@ -2146,6 +2713,44 @@ module Google
2146
2713
  end
2147
2714
  end
2148
2715
 
2716
+ # Rendered image contents for this page.
2717
+ class GoogleCloudDocumentaiV1beta2DocumentPageImage
2718
+ include Google::Apis::Core::Hashable
2719
+
2720
+ # Raw byte content of the image.
2721
+ # Corresponds to the JSON property `content`
2722
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2723
+ # @return [String]
2724
+ attr_accessor :content
2725
+
2726
+ # Height of the image in pixels.
2727
+ # Corresponds to the JSON property `height`
2728
+ # @return [Fixnum]
2729
+ attr_accessor :height
2730
+
2731
+ # Encoding mime type for the image.
2732
+ # Corresponds to the JSON property `mimeType`
2733
+ # @return [String]
2734
+ attr_accessor :mime_type
2735
+
2736
+ # Width of the image in pixels.
2737
+ # Corresponds to the JSON property `width`
2738
+ # @return [Fixnum]
2739
+ attr_accessor :width
2740
+
2741
+ def initialize(**args)
2742
+ update!(**args)
2743
+ end
2744
+
2745
+ # Update properties of this object
2746
+ def update!(**args)
2747
+ @content = args[:content] if args.key?(:content)
2748
+ @height = args[:height] if args.key?(:height)
2749
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
2750
+ @width = args[:width] if args.key?(:width)
2751
+ end
2752
+ end
2753
+
2149
2754
  # Visual element describing a layout unit on a page.
2150
2755
  class GoogleCloudDocumentaiV1beta2DocumentPageLayout
2151
2756
  include Google::Apis::Core::Hashable
@@ -2200,6 +2805,12 @@ module Google
2200
2805
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
2201
2806
  attr_accessor :layout
2202
2807
 
2808
+ # Structure to identify provenance relationships between annotations in
2809
+ # different revisions.
2810
+ # Corresponds to the JSON property `provenance`
2811
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance]
2812
+ attr_accessor :provenance
2813
+
2203
2814
  def initialize(**args)
2204
2815
  update!(**args)
2205
2816
  end
@@ -2208,6 +2819,49 @@ module Google
2208
2819
  def update!(**args)
2209
2820
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
2210
2821
  @layout = args[:layout] if args.key?(:layout)
2822
+ @provenance = args[:provenance] if args.key?(:provenance)
2823
+ end
2824
+ end
2825
+
2826
+ # Representation for transformation matrix, intended to be compatible and used
2827
+ # with OpenCV format for image manipulation.
2828
+ class GoogleCloudDocumentaiV1beta2DocumentPageMatrix
2829
+ include Google::Apis::Core::Hashable
2830
+
2831
+ # Number of columns in the matrix.
2832
+ # Corresponds to the JSON property `cols`
2833
+ # @return [Fixnum]
2834
+ attr_accessor :cols
2835
+
2836
+ # The matrix data.
2837
+ # Corresponds to the JSON property `data`
2838
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2839
+ # @return [String]
2840
+ attr_accessor :data
2841
+
2842
+ # Number of rows in the matrix.
2843
+ # Corresponds to the JSON property `rows`
2844
+ # @return [Fixnum]
2845
+ attr_accessor :rows
2846
+
2847
+ # This encodes information about what data type the matrix uses. For example, 0 (
2848
+ # CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data
2849
+ # types, please refer to https://docs.opencv.org/4.3.0/d1/d1b/
2850
+ # group__core__hal__interface.html
2851
+ # Corresponds to the JSON property `type`
2852
+ # @return [Fixnum]
2853
+ attr_accessor :type
2854
+
2855
+ def initialize(**args)
2856
+ update!(**args)
2857
+ end
2858
+
2859
+ # Update properties of this object
2860
+ def update!(**args)
2861
+ @cols = args[:cols] if args.key?(:cols)
2862
+ @data = args[:data] if args.key?(:data)
2863
+ @rows = args[:rows] if args.key?(:rows)
2864
+ @type = args[:type] if args.key?(:type)
2211
2865
  end
2212
2866
  end
2213
2867
 
@@ -2225,6 +2879,12 @@ module Google
2225
2879
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
2226
2880
  attr_accessor :layout
2227
2881
 
2882
+ # Structure to identify provenance relationships between annotations in
2883
+ # different revisions.
2884
+ # Corresponds to the JSON property `provenance`
2885
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance]
2886
+ attr_accessor :provenance
2887
+
2228
2888
  def initialize(**args)
2229
2889
  update!(**args)
2230
2890
  end
@@ -2233,6 +2893,7 @@ module Google
2233
2893
  def update!(**args)
2234
2894
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
2235
2895
  @layout = args[:layout] if args.key?(:layout)
2896
+ @provenance = args[:provenance] if args.key?(:provenance)
2236
2897
  end
2237
2898
  end
2238
2899
 
@@ -2348,6 +3009,12 @@ module Google
2348
3009
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
2349
3010
  attr_accessor :layout
2350
3011
 
3012
+ # Structure to identify provenance relationships between annotations in
3013
+ # different revisions.
3014
+ # Corresponds to the JSON property `provenance`
3015
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance]
3016
+ attr_accessor :provenance
3017
+
2351
3018
  def initialize(**args)
2352
3019
  update!(**args)
2353
3020
  end
@@ -2357,6 +3024,7 @@ module Google
2357
3024
  @detected_break = args[:detected_break] if args.key?(:detected_break)
2358
3025
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
2359
3026
  @layout = args[:layout] if args.key?(:layout)
3027
+ @provenance = args[:provenance] if args.key?(:provenance)
2360
3028
  end
2361
3029
  end
2362
3030
 
@@ -2410,6 +3078,148 @@ module Google
2410
3078
  end
2411
3079
  end
2412
3080
 
3081
+ # Structure to identify provenance relationships between annotations in
3082
+ # different revisions.
3083
+ class GoogleCloudDocumentaiV1beta2DocumentProvenance
3084
+ include Google::Apis::Core::Hashable
3085
+
3086
+ # The Id of this operation. Needs to be unique within the scope of the revision.
3087
+ # Corresponds to the JSON property `id`
3088
+ # @return [Fixnum]
3089
+ attr_accessor :id
3090
+
3091
+ # References to the original elements that are replaced.
3092
+ # Corresponds to the JSON property `parents`
3093
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenanceParent>]
3094
+ attr_accessor :parents
3095
+
3096
+ # The index of the revision that produced this element.
3097
+ # Corresponds to the JSON property `revision`
3098
+ # @return [Fixnum]
3099
+ attr_accessor :revision
3100
+
3101
+ # The type of provenance operation.
3102
+ # Corresponds to the JSON property `type`
3103
+ # @return [String]
3104
+ attr_accessor :type
3105
+
3106
+ def initialize(**args)
3107
+ update!(**args)
3108
+ end
3109
+
3110
+ # Update properties of this object
3111
+ def update!(**args)
3112
+ @id = args[:id] if args.key?(:id)
3113
+ @parents = args[:parents] if args.key?(:parents)
3114
+ @revision = args[:revision] if args.key?(:revision)
3115
+ @type = args[:type] if args.key?(:type)
3116
+ end
3117
+ end
3118
+
3119
+ # Structure for referencing parent provenances. When an element replaces one of
3120
+ # more other elements parent references identify the elements that are replaced.
3121
+ class GoogleCloudDocumentaiV1beta2DocumentProvenanceParent
3122
+ include Google::Apis::Core::Hashable
3123
+
3124
+ # The id of the parent provenance.
3125
+ # Corresponds to the JSON property `id`
3126
+ # @return [Fixnum]
3127
+ attr_accessor :id
3128
+
3129
+ # The index of the [Document.revisions] identifying the parent revision.
3130
+ # Corresponds to the JSON property `revision`
3131
+ # @return [Fixnum]
3132
+ attr_accessor :revision
3133
+
3134
+ def initialize(**args)
3135
+ update!(**args)
3136
+ end
3137
+
3138
+ # Update properties of this object
3139
+ def update!(**args)
3140
+ @id = args[:id] if args.key?(:id)
3141
+ @revision = args[:revision] if args.key?(:revision)
3142
+ end
3143
+ end
3144
+
3145
+ # Contains past or forward revisions of this document.
3146
+ class GoogleCloudDocumentaiV1beta2DocumentRevision
3147
+ include Google::Apis::Core::Hashable
3148
+
3149
+ # If the change was made by a person specify the name or id of that person.
3150
+ # Corresponds to the JSON property `agent`
3151
+ # @return [String]
3152
+ attr_accessor :agent
3153
+
3154
+ # The time that the revision was created.
3155
+ # Corresponds to the JSON property `createTime`
3156
+ # @return [String]
3157
+ attr_accessor :create_time
3158
+
3159
+ # Human Review information of the document.
3160
+ # Corresponds to the JSON property `humanReview`
3161
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview]
3162
+ attr_accessor :human_review
3163
+
3164
+ # Id of the revision. Unique within the context of the document.
3165
+ # Corresponds to the JSON property `id`
3166
+ # @return [String]
3167
+ attr_accessor :id
3168
+
3169
+ # The revisions that this revision is based on. This can include one or more
3170
+ # parent (when documents are merged.) This field represents the index into the `
3171
+ # revisions` field.
3172
+ # Corresponds to the JSON property `parent`
3173
+ # @return [Array<Fixnum>]
3174
+ attr_accessor :parent
3175
+
3176
+ # If the annotation was made by processor identify the processor by its resource
3177
+ # name.
3178
+ # Corresponds to the JSON property `processor`
3179
+ # @return [String]
3180
+ attr_accessor :processor
3181
+
3182
+ def initialize(**args)
3183
+ update!(**args)
3184
+ end
3185
+
3186
+ # Update properties of this object
3187
+ def update!(**args)
3188
+ @agent = args[:agent] if args.key?(:agent)
3189
+ @create_time = args[:create_time] if args.key?(:create_time)
3190
+ @human_review = args[:human_review] if args.key?(:human_review)
3191
+ @id = args[:id] if args.key?(:id)
3192
+ @parent = args[:parent] if args.key?(:parent)
3193
+ @processor = args[:processor] if args.key?(:processor)
3194
+ end
3195
+ end
3196
+
3197
+ # Human Review information of the document.
3198
+ class GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview
3199
+ include Google::Apis::Core::Hashable
3200
+
3201
+ # Human review state. e.g. `requested`, `succeeded`, `rejected`.
3202
+ # Corresponds to the JSON property `state`
3203
+ # @return [String]
3204
+ attr_accessor :state
3205
+
3206
+ # A message providing more details about the current state of processing. For
3207
+ # example, the rejection reason when the state is `rejected`.
3208
+ # Corresponds to the JSON property `stateMessage`
3209
+ # @return [String]
3210
+ attr_accessor :state_message
3211
+
3212
+ def initialize(**args)
3213
+ update!(**args)
3214
+ end
3215
+
3216
+ # Update properties of this object
3217
+ def update!(**args)
3218
+ @state = args[:state] if args.key?(:state)
3219
+ @state_message = args[:state_message] if args.key?(:state_message)
3220
+ end
3221
+ end
3222
+
2413
3223
  # For a large document, sharding may be performed to produce several document
2414
3224
  # shards. Each document shard contains this field to detail which shard it is.
2415
3225
  class GoogleCloudDocumentaiV1beta2DocumentShardInfo
@@ -2619,6 +3429,12 @@ module Google
2619
3429
  class GoogleCloudDocumentaiV1beta2DocumentTextAnchor
2620
3430
  include Google::Apis::Core::Hashable
2621
3431
 
3432
+ # Contains the content of the text span so that users do not have to look it up
3433
+ # in the text_segments.
3434
+ # Corresponds to the JSON property `content`
3435
+ # @return [String]
3436
+ attr_accessor :content
3437
+
2622
3438
  # The text segments from the Document.text.
2623
3439
  # Corresponds to the JSON property `textSegments`
2624
3440
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment>]
@@ -2630,6 +3446,7 @@ module Google
2630
3446
 
2631
3447
  # Update properties of this object
2632
3448
  def update!(**args)
3449
+ @content = args[:content] if args.key?(:content)
2633
3450
  @text_segments = args[:text_segments] if args.key?(:text_segments)
2634
3451
  end
2635
3452
  end
@@ -2661,6 +3478,37 @@ module Google
2661
3478
  end
2662
3479
  end
2663
3480
 
3481
+ # This message is used for text changes aka. OCR corrections.
3482
+ class GoogleCloudDocumentaiV1beta2DocumentTextChange
3483
+ include Google::Apis::Core::Hashable
3484
+
3485
+ # The text that replaces the text identified in the `text_anchor`.
3486
+ # Corresponds to the JSON property `changedText`
3487
+ # @return [String]
3488
+ attr_accessor :changed_text
3489
+
3490
+ # The history of this annotation.
3491
+ # Corresponds to the JSON property `provenance`
3492
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance>]
3493
+ attr_accessor :provenance
3494
+
3495
+ # Text reference indexing into the Document.text.
3496
+ # Corresponds to the JSON property `textAnchor`
3497
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor]
3498
+ attr_accessor :text_anchor
3499
+
3500
+ def initialize(**args)
3501
+ update!(**args)
3502
+ end
3503
+
3504
+ # Update properties of this object
3505
+ def update!(**args)
3506
+ @changed_text = args[:changed_text] if args.key?(:changed_text)
3507
+ @provenance = args[:provenance] if args.key?(:provenance)
3508
+ @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
3509
+ end
3510
+ end
3511
+
2664
3512
  # A translation of the text segment.
2665
3513
  class GoogleCloudDocumentaiV1beta2DocumentTranslation
2666
3514
  include Google::Apis::Core::Hashable
@@ -2671,6 +3519,11 @@ module Google
2671
3519
  # @return [String]
2672
3520
  attr_accessor :language_code
2673
3521
 
3522
+ # The history of this annotation.
3523
+ # Corresponds to the JSON property `provenance`
3524
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance>]
3525
+ attr_accessor :provenance
3526
+
2674
3527
  # Text reference indexing into the Document.text.
2675
3528
  # Corresponds to the JSON property `textAnchor`
2676
3529
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor]
@@ -2688,6 +3541,7 @@ module Google
2688
3541
  # Update properties of this object
2689
3542
  def update!(**args)
2690
3543
  @language_code = args[:language_code] if args.key?(:language_code)
3544
+ @provenance = args[:provenance] if args.key?(:provenance)
2691
3545
  @text_anchor = args[:text_anchor] if args.key?(:text_anchor)
2692
3546
  @translated_text = args[:translated_text] if args.key?(:translated_text)
2693
3547
  end
@@ -3217,6 +4071,14 @@ module Google
3217
4071
  class GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus
3218
4072
  include Google::Apis::Core::Hashable
3219
4073
 
4074
+ # The name of the operation triggered by the processed document. If the human
4075
+ # review process is not triggered, this field will be empty. It has the same
4076
+ # response type and metadata as the long running operation returned by
4077
+ # ReviewDocument method.
4078
+ # Corresponds to the JSON property `humanReviewOperation`
4079
+ # @return [String]
4080
+ attr_accessor :human_review_operation
4081
+
3220
4082
  # The source of the document, same as the [input_gcs_source] field in the
3221
4083
  # request when the batch process started. The batch process is started by take
3222
4084
  # snapshot of that document, since a user can move or change that document
@@ -3247,6 +4109,7 @@ module Google
3247
4109
 
3248
4110
  # Update properties of this object
3249
4111
  def update!(**args)
4112
+ @human_review_operation = args[:human_review_operation] if args.key?(:human_review_operation)
3250
4113
  @input_gcs_source = args[:input_gcs_source] if args.key?(:input_gcs_source)
3251
4114
  @output_gcs_destination = args[:output_gcs_destination] if args.key?(:output_gcs_destination)
3252
4115
  @status = args[:status] if args.key?(:status)
@@ -3266,6 +4129,63 @@ module Google
3266
4129
  end
3267
4130
  end
3268
4131
 
4132
+ # The long running operation metadata for review document method.
4133
+ class GoogleCloudDocumentaiV1beta3ReviewDocumentOperationMetadata
4134
+ include Google::Apis::Core::Hashable
4135
+
4136
+ # The creation time of the operation.
4137
+ # Corresponds to the JSON property `createTime`
4138
+ # @return [String]
4139
+ attr_accessor :create_time
4140
+
4141
+ # Used only when Operation.done is false.
4142
+ # Corresponds to the JSON property `state`
4143
+ # @return [String]
4144
+ attr_accessor :state
4145
+
4146
+ # A message providing more details about the current state of processing. For
4147
+ # example, the error message if the operation is failed.
4148
+ # Corresponds to the JSON property `stateMessage`
4149
+ # @return [String]
4150
+ attr_accessor :state_message
4151
+
4152
+ # The last update time of the operation.
4153
+ # Corresponds to the JSON property `updateTime`
4154
+ # @return [String]
4155
+ attr_accessor :update_time
4156
+
4157
+ def initialize(**args)
4158
+ update!(**args)
4159
+ end
4160
+
4161
+ # Update properties of this object
4162
+ def update!(**args)
4163
+ @create_time = args[:create_time] if args.key?(:create_time)
4164
+ @state = args[:state] if args.key?(:state)
4165
+ @state_message = args[:state_message] if args.key?(:state_message)
4166
+ @update_time = args[:update_time] if args.key?(:update_time)
4167
+ end
4168
+ end
4169
+
4170
+ # Response message for review document method.
4171
+ class GoogleCloudDocumentaiV1beta3ReviewDocumentResponse
4172
+ include Google::Apis::Core::Hashable
4173
+
4174
+ # The Cloud Storage uri for the human reviewed document.
4175
+ # Corresponds to the JSON property `gcsDestination`
4176
+ # @return [String]
4177
+ attr_accessor :gcs_destination
4178
+
4179
+ def initialize(**args)
4180
+ update!(**args)
4181
+ end
4182
+
4183
+ # Update properties of this object
4184
+ def update!(**args)
4185
+ @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
4186
+ end
4187
+ end
4188
+
3269
4189
  # This resource represents a long-running operation that is the result of a
3270
4190
  # network API call.
3271
4191
  class GoogleLongrunningOperation
@@ -3630,6 +4550,139 @@ module Google
3630
4550
  end
3631
4551
  end
3632
4552
 
4553
+ # Represents a postal address, e.g. for postal delivery or payments addresses.
4554
+ # Given a postal address, a postal service can deliver items to a premise, P.O.
4555
+ # Box or similar. It is not intended to model geographical locations (roads,
4556
+ # towns, mountains). In typical usage an address would be created via user input
4557
+ # or from importing existing data, depending on the type of process. Advice on
4558
+ # address input / editing: - Use an i18n-ready address widget such as https://
4559
+ # github.com/google/libaddressinput) - Users should not be presented with UI
4560
+ # elements for input or editing of fields outside countries where that field is
4561
+ # used. For more guidance on how to use this schema, please see: https://support.
4562
+ # google.com/business/answer/6397478
4563
+ class GoogleTypePostalAddress
4564
+ include Google::Apis::Core::Hashable
4565
+
4566
+ # Unstructured address lines describing the lower levels of an address. Because
4567
+ # values in address_lines do not have type information and may sometimes contain
4568
+ # multiple values in a single field (e.g. "Austin, TX"), it is important that
4569
+ # the line order is clear. The order of address lines should be "envelope order"
4570
+ # for the country/region of the address. In places where this can vary (e.g.
4571
+ # Japan), address_language is used to make it explicit (e.g. "ja" for large-to-
4572
+ # small ordering and "ja-Latn" or "en" for small-to-large). This way, the most
4573
+ # specific line of an address can be selected based on the language. The minimum
4574
+ # permitted structural representation of an address consists of a region_code
4575
+ # with all remaining information placed in the address_lines. It would be
4576
+ # possible to format such an address very approximately without geocoding, but
4577
+ # no semantic reasoning could be made about any of the address components until
4578
+ # it was at least partially resolved. Creating an address only containing a
4579
+ # region_code and address_lines, and then geocoding is the recommended way to
4580
+ # handle completely unstructured addresses (as opposed to guessing which parts
4581
+ # of the address should be localities or administrative areas).
4582
+ # Corresponds to the JSON property `addressLines`
4583
+ # @return [Array<String>]
4584
+ attr_accessor :address_lines
4585
+
4586
+ # Optional. Highest administrative subdivision which is used for postal
4587
+ # addresses of a country or region. For example, this can be a state, a province,
4588
+ # an oblast, or a prefecture. Specifically, for Spain this is the province and
4589
+ # not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many
4590
+ # countries don't use an administrative area in postal addresses. E.g. in
4591
+ # Switzerland this should be left unpopulated.
4592
+ # Corresponds to the JSON property `administrativeArea`
4593
+ # @return [String]
4594
+ attr_accessor :administrative_area
4595
+
4596
+ # Optional. BCP-47 language code of the contents of this address (if known).
4597
+ # This is often the UI language of the input form or is expected to match one of
4598
+ # the languages used in the address' country/region, or their transliterated
4599
+ # equivalents. This can affect formatting in certain countries, but is not
4600
+ # critical to the correctness of the data and will never affect any validation
4601
+ # or other non-formatting related operations. If this value is not known, it
4602
+ # should be omitted (rather than specifying a possibly incorrect default).
4603
+ # Examples: "zh-Hant", "ja", "ja-Latn", "en".
4604
+ # Corresponds to the JSON property `languageCode`
4605
+ # @return [String]
4606
+ attr_accessor :language_code
4607
+
4608
+ # Optional. Generally refers to the city/town portion of the address. Examples:
4609
+ # US city, IT comune, UK post town. In regions of the world where localities are
4610
+ # not well defined or do not fit into this structure well, leave locality empty
4611
+ # and use address_lines.
4612
+ # Corresponds to the JSON property `locality`
4613
+ # @return [String]
4614
+ attr_accessor :locality
4615
+
4616
+ # Optional. The name of the organization at the address.
4617
+ # Corresponds to the JSON property `organization`
4618
+ # @return [String]
4619
+ attr_accessor :organization
4620
+
4621
+ # Optional. Postal code of the address. Not all countries use or require postal
4622
+ # codes to be present, but where they are used, they may trigger additional
4623
+ # validation with other parts of the address (e.g. state/zip validation in the U.
4624
+ # S.A.).
4625
+ # Corresponds to the JSON property `postalCode`
4626
+ # @return [String]
4627
+ attr_accessor :postal_code
4628
+
4629
+ # Optional. The recipient at the address. This field may, under certain
4630
+ # circumstances, contain multiline information. For example, it might contain "
4631
+ # care of" information.
4632
+ # Corresponds to the JSON property `recipients`
4633
+ # @return [Array<String>]
4634
+ attr_accessor :recipients
4635
+
4636
+ # Required. CLDR region code of the country/region of the address. This is never
4637
+ # inferred and it is up to the user to ensure the value is correct. See http://
4638
+ # cldr.unicode.org/ and http://www.unicode.org/cldr/charts/30/supplemental/
4639
+ # territory_information.html for details. Example: "CH" for Switzerland.
4640
+ # Corresponds to the JSON property `regionCode`
4641
+ # @return [String]
4642
+ attr_accessor :region_code
4643
+
4644
+ # The schema revision of the `PostalAddress`. This must be set to 0, which is
4645
+ # the latest revision. All new revisions **must** be backward compatible with
4646
+ # old revisions.
4647
+ # Corresponds to the JSON property `revision`
4648
+ # @return [Fixnum]
4649
+ attr_accessor :revision
4650
+
4651
+ # Optional. Additional, country-specific, sorting code. This is not used in most
4652
+ # regions. Where it is used, the value is either a string like "CEDEX",
4653
+ # optionally followed by a number (e.g. "CEDEX 7"), or just a number alone,
4654
+ # representing the "sector code" (Jamaica), "delivery area indicator" (Malawi)
4655
+ # or "post office indicator" (e.g. Côte d'Ivoire).
4656
+ # Corresponds to the JSON property `sortingCode`
4657
+ # @return [String]
4658
+ attr_accessor :sorting_code
4659
+
4660
+ # Optional. Sublocality of the address. For example, this can be neighborhoods,
4661
+ # boroughs, districts.
4662
+ # Corresponds to the JSON property `sublocality`
4663
+ # @return [String]
4664
+ attr_accessor :sublocality
4665
+
4666
+ def initialize(**args)
4667
+ update!(**args)
4668
+ end
4669
+
4670
+ # Update properties of this object
4671
+ def update!(**args)
4672
+ @address_lines = args[:address_lines] if args.key?(:address_lines)
4673
+ @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
4674
+ @language_code = args[:language_code] if args.key?(:language_code)
4675
+ @locality = args[:locality] if args.key?(:locality)
4676
+ @organization = args[:organization] if args.key?(:organization)
4677
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
4678
+ @recipients = args[:recipients] if args.key?(:recipients)
4679
+ @region_code = args[:region_code] if args.key?(:region_code)
4680
+ @revision = args[:revision] if args.key?(:revision)
4681
+ @sorting_code = args[:sorting_code] if args.key?(:sorting_code)
4682
+ @sublocality = args[:sublocality] if args.key?(:sublocality)
4683
+ end
4684
+ end
4685
+
3633
4686
  # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
3634
4687
  # time-zones).
3635
4688
  class GoogleTypeTimeZone