google-api-client 0.43.0 → 0.48.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/autoapprove.yml +49 -0
- data/.github/workflows/release-please.yml +77 -0
- data/.gitignore +2 -0
- data/.kokoro/trampoline.sh +0 -0
- data/CHANGELOG.md +1066 -184
- data/Gemfile +1 -0
- data/Rakefile +31 -3
- data/api_list_config.yaml +8 -0
- data/api_names.yaml +1 -0
- data/bin/generate-api +77 -15
- data/docs/oauth-server.md +4 -6
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
- data/generated/google/apis/accessapproval_v1/classes.rb +60 -86
- data/generated/google/apis/accessapproval_v1/service.rb +93 -132
- data/generated/google/apis/accessapproval_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +266 -236
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +30 -0
- data/generated/google/apis/accesscontextmanager_v1/service.rb +308 -171
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +153 -184
- data/generated/google/apis/accesscontextmanager_v1beta/service.rb +82 -111
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +47 -36
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +72 -2
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +33 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +16 -4
- data/generated/google/apis/admin_datatransfer_v1/service.rb +30 -48
- data/generated/google/apis/admin_datatransfer_v1.rb +6 -4
- data/generated/google/apis/admin_directory_v1/classes.rb +344 -242
- data/generated/google/apis/admin_directory_v1/representations.rb +62 -39
- data/generated/google/apis/admin_directory_v1/service.rb +607 -998
- data/generated/google/apis/admin_directory_v1.rb +6 -8
- data/generated/google/apis/admin_reports_v1/classes.rb +31 -33
- data/generated/google/apis/admin_reports_v1/service.rb +131 -187
- data/generated/google/apis/admin_reports_v1.rb +6 -5
- data/generated/google/apis/admob_v1/classes.rb +31 -31
- data/generated/google/apis/admob_v1/service.rb +2 -1
- data/generated/google/apis/admob_v1.rb +6 -2
- data/generated/google/apis/adsense_v1_4/service.rb +4 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
- data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
- data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2134 -0
- data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
- data/generated/google/apis/analyticsdata_v1alpha/classes.rb +1655 -0
- data/generated/google/apis/analyticsdata_v1alpha/representations.rb +806 -0
- data/generated/google/apis/analyticsdata_v1alpha/service.rb +261 -0
- data/generated/google/apis/analyticsdata_v1alpha.rb +37 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +2 -2
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +115 -75
- data/generated/google/apis/androidmanagement_v1/representations.rb +17 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +9 -1
- data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v3/service.rb +2 -2
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/apigateway_v1beta/classes.rb +1162 -0
- data/generated/google/apis/{memcache_v1 → apigateway_v1beta}/representations.rb +156 -157
- data/generated/google/apis/apigateway_v1beta/service.rb +1172 -0
- data/generated/google/apis/apigateway_v1beta.rb +34 -0
- data/generated/google/apis/apigee_v1/classes.rb +630 -88
- data/generated/google/apis/apigee_v1/representations.rb +209 -1
- data/generated/google/apis/apigee_v1/service.rb +401 -74
- data/generated/google/apis/apigee_v1.rb +6 -7
- data/generated/google/apis/appengine_v1/classes.rb +96 -59
- data/generated/google/apis/appengine_v1/representations.rb +17 -0
- data/generated/google/apis/appengine_v1/service.rb +38 -47
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1alpha/classes.rb +9 -11
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +103 -59
- data/generated/google/apis/appengine_v1beta/representations.rb +18 -0
- data/generated/google/apis/appengine_v1beta/service.rb +37 -47
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appsmarket_v2/classes.rb +14 -16
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/area120tables_v1alpha1/classes.rb +423 -0
- data/generated/google/apis/area120tables_v1alpha1/representations.rb +248 -0
- data/generated/google/apis/area120tables_v1alpha1/service.rb +381 -0
- data/generated/google/apis/area120tables_v1alpha1.rb +46 -0
- data/generated/google/apis/artifactregistry_v1beta1/classes.rb +249 -337
- data/generated/google/apis/artifactregistry_v1beta1/representations.rb +2 -0
- data/generated/google/apis/artifactregistry_v1beta1/service.rb +44 -57
- data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +722 -0
- data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +359 -0
- data/generated/google/apis/assuredworkloads_v1beta1/service.rb +328 -0
- data/generated/google/apis/{accessapproval_v1beta1.rb → assuredworkloads_v1beta1.rb} +8 -8
- data/generated/google/apis/bigquery_v2/classes.rb +593 -576
- data/generated/google/apis/bigquery_v2/representations.rb +85 -0
- data/generated/google/apis/bigquery_v2/service.rb +79 -41
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +192 -337
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +29 -32
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +132 -158
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +232 -282
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +116 -123
- data/generated/google/apis/bigqueryreservation_v1/representations.rb +2 -0
- data/generated/google/apis/bigqueryreservation_v1/service.rb +137 -183
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +88 -100
- data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +77 -100
- data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +93 -98
- data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +2 -0
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +114 -151
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1/classes.rb +137 -119
- data/generated/google/apis/bigtableadmin_v1/representations.rb +29 -0
- data/generated/google/apis/bigtableadmin_v1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +455 -607
- data/generated/google/apis/bigtableadmin_v2/representations.rb +29 -0
- data/generated/google/apis/bigtableadmin_v2/service.rb +194 -247
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/billingbudgets_v1/classes.rb +373 -0
- data/generated/google/apis/billingbudgets_v1/representations.rb +171 -0
- data/generated/google/apis/billingbudgets_v1/service.rb +249 -0
- data/generated/google/apis/billingbudgets_v1.rb +38 -0
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +27 -6
- data/generated/google/apis/billingbudgets_v1beta1/representations.rb +2 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +4 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +434 -355
- data/generated/google/apis/binaryauthorization_v1/representations.rb +75 -0
- data/generated/google/apis/binaryauthorization_v1/service.rb +109 -89
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +434 -355
- data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +75 -0
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +109 -89
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/books_v1/service.rb +54 -54
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +13 -10
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +173 -116
- data/generated/google/apis/chat_v1/representations.rb +36 -0
- data/generated/google/apis/chat_v1/service.rb +30 -42
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +18 -32
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -3
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +153 -21
- data/generated/google/apis/classroom_v1/representations.rb +43 -0
- data/generated/google/apis/classroom_v1/service.rb +240 -0
- data/generated/google/apis/classroom_v1.rb +7 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +1461 -1039
- data/generated/google/apis/cloudasset_v1/representations.rb +320 -0
- data/generated/google/apis/cloudasset_v1/service.rb +296 -167
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +531 -777
- data/generated/google/apis/cloudasset_v1beta1/service.rb +59 -75
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +204 -349
- data/generated/google/apis/cloudasset_v1p1beta1/service.rb +35 -47
- data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +222 -276
- data/generated/google/apis/cloudasset_v1p4beta1/service.rb +75 -93
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +481 -720
- data/generated/google/apis/cloudasset_v1p5beta1/service.rb +25 -28
- data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +285 -446
- data/generated/google/apis/cloudbilling_v1/service.rb +104 -124
- data/generated/google/apis/cloudbilling_v1.rb +7 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +339 -344
- data/generated/google/apis/cloudbuild_v1/representations.rb +8 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +277 -67
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +291 -329
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +2 -0
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +15 -18
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +277 -313
- data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +2 -0
- data/generated/google/apis/cloudbuild_v1alpha2/service.rb +22 -28
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +185 -252
- data/generated/google/apis/clouddebugger_v2/service.rb +53 -59
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +127 -156
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +53 -69
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +335 -494
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +79 -93
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +989 -107
- data/generated/google/apis/cloudidentity_v1/representations.rb +371 -0
- data/generated/google/apis/cloudidentity_v1/service.rb +883 -88
- data/generated/google/apis/cloudidentity_v1.rb +4 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1236 -307
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +424 -21
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +921 -96
- data/generated/google/apis/cloudidentity_v1beta1.rb +4 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +270 -373
- data/generated/google/apis/cloudiot_v1/representations.rb +1 -0
- data/generated/google/apis/cloudiot_v1/service.rb +147 -154
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +509 -692
- data/generated/google/apis/cloudkms_v1/representations.rb +18 -0
- data/generated/google/apis/cloudkms_v1/service.rb +170 -216
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudprofiler_v2/classes.rb +28 -33
- data/generated/google/apis/cloudprofiler_v2/service.rb +17 -19
- data/generated/google/apis/cloudprofiler_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +14 -7
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +62 -60
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +11 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +26 -25
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +7 -0
- data/generated/google/apis/cloudresourcemanager_v2/representations.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +7 -7
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +7 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +7 -7
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +272 -383
- data/generated/google/apis/cloudscheduler_v1/service.rb +45 -62
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +273 -384
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +45 -62
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +651 -781
- data/generated/google/apis/cloudsearch_v1/representations.rb +15 -0
- data/generated/google/apis/cloudsearch_v1/service.rb +286 -326
- data/generated/google/apis/cloudsearch_v1.rb +2 -2
- data/generated/google/apis/cloudshell_v1/classes.rb +256 -105
- data/generated/google/apis/cloudshell_v1/representations.rb +143 -10
- data/generated/google/apis/cloudshell_v1/service.rb +198 -25
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +69 -78
- data/generated/google/apis/cloudshell_v1alpha1/service.rb +20 -24
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +612 -933
- data/generated/google/apis/cloudtasks_v2/representations.rb +1 -0
- data/generated/google/apis/cloudtasks_v2/service.rb +146 -217
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +608 -964
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +178 -270
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +616 -938
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +146 -217
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +39 -61
- data/generated/google/apis/cloudtrace_v1/service.rb +37 -51
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +92 -107
- data/generated/google/apis/cloudtrace_v2/service.rb +8 -11
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2beta1/classes.rb +23 -33
- data/generated/google/apis/cloudtrace_v2beta1/service.rb +30 -37
- data/generated/google/apis/cloudtrace_v2beta1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +189 -242
- data/generated/google/apis/composer_v1/service.rb +79 -150
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +203 -262
- data/generated/google/apis/composer_v1beta1/service.rb +94 -179
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +1227 -186
- data/generated/google/apis/compute_alpha/representations.rb +235 -8
- data/generated/google/apis/compute_alpha/service.rb +2009 -1024
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1080 -108
- data/generated/google/apis/compute_beta/representations.rb +212 -2
- data/generated/google/apis/compute_beta/service.rb +1413 -741
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1512 -106
- data/generated/google/apis/compute_v1/representations.rb +470 -1
- data/generated/google/apis/compute_v1/service.rb +1625 -285
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +982 -965
- data/generated/google/apis/container_v1/representations.rb +60 -0
- data/generated/google/apis/container_v1/service.rb +435 -502
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +1106 -1044
- data/generated/google/apis/container_v1beta1/representations.rb +91 -0
- data/generated/google/apis/container_v1beta1/service.rb +403 -466
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +463 -596
- data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/containeranalysis_v1alpha1/service.rb +149 -169
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +461 -613
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +1 -0
- data/generated/google/apis/containeranalysis_v1beta1/service.rb +75 -90
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +515 -1219
- data/generated/google/apis/content_v2/service.rb +377 -650
- data/generated/google/apis/content_v2.rb +3 -4
- data/generated/google/apis/content_v2_1/classes.rb +1108 -1058
- data/generated/google/apis/content_v2_1/representations.rb +288 -0
- data/generated/google/apis/content_v2_1/service.rb +987 -795
- data/generated/google/apis/content_v2_1.rb +3 -4
- data/generated/google/apis/customsearch_v1/service.rb +2 -2
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +413 -573
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +6 -0
- data/generated/google/apis/datacatalog_v1beta1/service.rb +319 -440
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +1174 -973
- data/generated/google/apis/dataflow_v1b3/representations.rb +148 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +308 -257
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/datafusion_v1/classes.rb +283 -397
- data/generated/google/apis/datafusion_v1/representations.rb +5 -0
- data/generated/google/apis/datafusion_v1/service.rb +76 -89
- data/generated/google/apis/datafusion_v1.rb +5 -8
- data/generated/google/apis/datafusion_v1beta1/classes.rb +283 -397
- data/generated/google/apis/datafusion_v1beta1/representations.rb +5 -0
- data/generated/google/apis/datafusion_v1beta1/service.rb +81 -95
- data/generated/google/apis/datafusion_v1beta1.rb +5 -8
- data/generated/google/apis/datalabeling_v1beta1/classes.rb +6207 -0
- data/generated/google/apis/datalabeling_v1beta1/representations.rb +3156 -0
- data/generated/google/apis/datalabeling_v1beta1/service.rb +1762 -0
- data/generated/google/apis/datalabeling_v1beta1.rb +34 -0
- data/generated/google/apis/dataproc_v1/classes.rb +97 -13
- data/generated/google/apis/dataproc_v1/representations.rb +34 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +117 -9
- data/generated/google/apis/dataproc_v1beta2/representations.rb +49 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +334 -476
- data/generated/google/apis/datastore_v1/service.rb +52 -63
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1/classes.rb +150 -217
- data/generated/google/apis/datastore_v1beta1/service.rb +11 -12
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +259 -375
- data/generated/google/apis/datastore_v1beta3/service.rb +1 -2
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +203 -558
- data/generated/google/apis/deploymentmanager_v2/representations.rb +0 -132
- data/generated/google/apis/deploymentmanager_v2/service.rb +169 -213
- data/generated/google/apis/deploymentmanager_v2.rb +6 -4
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +247 -609
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +0 -132
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +278 -359
- data/generated/google/apis/deploymentmanager_v2beta.rb +6 -5
- data/generated/google/apis/dfareporting_v3_3/classes.rb +162 -339
- data/generated/google/apis/dfareporting_v3_3/service.rb +646 -1262
- data/generated/google/apis/dfareporting_v3_3.rb +2 -2
- data/generated/google/apis/dfareporting_v3_4/classes.rb +184 -350
- data/generated/google/apis/dfareporting_v3_4/representations.rb +1 -0
- data/generated/google/apis/dfareporting_v3_4/service.rb +681 -1261
- data/generated/google/apis/dfareporting_v3_4.rb +2 -2
- data/generated/google/apis/dialogflow_v2/classes.rb +746 -217
- data/generated/google/apis/dialogflow_v2/representations.rb +318 -67
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +764 -233
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +318 -67
- data/generated/google/apis/dialogflow_v2beta1/service.rb +556 -331
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +8816 -0
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +3725 -0
- data/generated/google/apis/dialogflow_v3beta1/service.rb +2825 -0
- data/generated/google/apis/dialogflow_v3beta1.rb +38 -0
- data/generated/google/apis/digitalassetlinks_v1/classes.rb +66 -92
- data/generated/google/apis/digitalassetlinks_v1/service.rb +131 -188
- data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +271 -38
- data/generated/google/apis/displayvideo_v1/representations.rb +83 -0
- data/generated/google/apis/displayvideo_v1/service.rb +287 -32
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1beta/classes.rb +146 -0
- data/generated/google/apis/displayvideo_v1beta/representations.rb +72 -0
- data/generated/google/apis/displayvideo_v1beta/service.rb +161 -0
- data/generated/google/apis/displayvideo_v1beta.rb +38 -0
- data/generated/google/apis/displayvideo_v1beta2/classes.rb +146 -0
- data/generated/google/apis/displayvideo_v1beta2/representations.rb +72 -0
- data/generated/google/apis/displayvideo_v1beta2/service.rb +130 -0
- data/generated/google/apis/displayvideo_v1beta2.rb +38 -0
- data/generated/google/apis/displayvideo_v1dev/classes.rb +146 -0
- data/generated/google/apis/displayvideo_v1dev/representations.rb +72 -0
- data/generated/google/apis/displayvideo_v1dev/service.rb +130 -0
- data/generated/google/apis/displayvideo_v1dev.rb +38 -0
- data/generated/google/apis/dlp_v2/classes.rb +1111 -1310
- data/generated/google/apis/dlp_v2/representations.rb +16 -0
- data/generated/google/apis/dlp_v2/service.rb +962 -905
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +356 -198
- data/generated/google/apis/dns_v1/representations.rb +83 -0
- data/generated/google/apis/dns_v1/service.rb +83 -98
- data/generated/google/apis/dns_v1.rb +2 -2
- data/generated/google/apis/dns_v1beta2/classes.rb +362 -206
- data/generated/google/apis/dns_v1beta2/representations.rb +83 -0
- data/generated/google/apis/dns_v1beta2/service.rb +83 -98
- data/generated/google/apis/dns_v1beta2.rb +2 -2
- data/generated/google/apis/docs_v1/classes.rb +894 -1229
- data/generated/google/apis/docs_v1/service.rb +17 -22
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/documentai_v1beta2/classes.rb +2253 -824
- data/generated/google/apis/documentai_v1beta2/representations.rb +701 -0
- data/generated/google/apis/documentai_v1beta2/service.rb +22 -24
- data/generated/google/apis/documentai_v1beta2.rb +1 -1
- data/generated/google/apis/documentai_v1beta3/classes.rb +6149 -0
- data/generated/google/apis/documentai_v1beta3/representations.rb +2666 -0
- data/generated/google/apis/documentai_v1beta3/service.rb +263 -0
- data/generated/google/apis/{securitycenter_v1p1alpha1.rb → documentai_v1beta3.rb} +11 -10
- data/generated/google/apis/domains_v1alpha2/classes.rb +1540 -0
- data/generated/google/apis/domains_v1alpha2/representations.rb +606 -0
- data/generated/google/apis/domains_v1alpha2/service.rb +805 -0
- data/generated/google/apis/domains_v1alpha2.rb +34 -0
- data/generated/google/apis/domains_v1beta1/classes.rb +1540 -0
- data/generated/google/apis/domains_v1beta1/representations.rb +606 -0
- data/generated/google/apis/domains_v1beta1/service.rb +805 -0
- data/generated/google/apis/domains_v1beta1.rb +34 -0
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -12
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +33 -64
- data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -2
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +13 -20
- data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +33 -64
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +3 -2
- data/generated/google/apis/doubleclicksearch_v2/service.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +18 -7
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v2/service.rb +79 -15
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +18 -8
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/drive_v3/service.rb +59 -11
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/eventarc_v1beta1/classes.rb +931 -0
- data/generated/google/apis/eventarc_v1beta1/representations.rb +379 -0
- data/generated/google/apis/{memcache_v1 → eventarc_v1beta1}/service.rb +236 -215
- data/generated/google/apis/eventarc_v1beta1.rb +34 -0
- data/generated/google/apis/file_v1/classes.rb +155 -174
- data/generated/google/apis/file_v1/service.rb +43 -52
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +335 -194
- data/generated/google/apis/file_v1beta1/representations.rb +55 -0
- data/generated/google/apis/file_v1beta1/service.rb +267 -55
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +33 -51
- data/generated/google/apis/firebase_v1beta1/representations.rb +2 -16
- data/generated/google/apis/firebase_v1beta1/service.rb +21 -1
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +188 -0
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +83 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +418 -4
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebaseml_v1beta2/classes.rb +8 -8
- data/generated/google/apis/firebaseml_v1beta2/representations.rb +1 -1
- data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +102 -137
- data/generated/google/apis/firebaserules_v1/service.rb +87 -110
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +406 -502
- data/generated/google/apis/firestore_v1/service.rb +165 -201
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +338 -413
- data/generated/google/apis/firestore_v1beta1/service.rb +106 -122
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta2/classes.rb +135 -165
- data/generated/google/apis/firestore_v1beta2/service.rb +65 -86
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +982 -0
- data/generated/google/apis/fitness_v1/representations.rb +398 -0
- data/generated/google/apis/fitness_v1/service.rb +628 -0
- data/generated/google/apis/fitness_v1.rb +97 -0
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -3
- data/generated/google/apis/games_configuration_v1configuration/service.rb +6 -6
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +14 -20
- data/generated/google/apis/games_management_v1management/service.rb +35 -36
- data/generated/google/apis/games_management_v1management.rb +2 -3
- data/generated/google/apis/games_v1/classes.rb +376 -83
- data/generated/google/apis/games_v1/representations.rb +118 -0
- data/generated/google/apis/games_v1/service.rb +118 -90
- data/generated/google/apis/games_v1.rb +2 -3
- data/generated/google/apis/gameservices_v1/classes.rb +22 -14
- data/generated/google/apis/gameservices_v1/representations.rb +1 -0
- data/generated/google/apis/gameservices_v1/service.rb +54 -51
- data/generated/google/apis/gameservices_v1.rb +1 -1
- data/generated/google/apis/gameservices_v1beta/classes.rb +22 -14
- data/generated/google/apis/gameservices_v1beta/representations.rb +1 -0
- data/generated/google/apis/gameservices_v1beta/service.rb +54 -51
- data/generated/google/apis/gameservices_v1beta.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +70 -76
- data/generated/google/apis/genomics_v1/service.rb +28 -43
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +223 -290
- data/generated/google/apis/genomics_v1alpha2/service.rb +54 -76
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +356 -275
- data/generated/google/apis/genomics_v2alpha1/representations.rb +48 -0
- data/generated/google/apis/genomics_v2alpha1/service.rb +47 -66
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +37 -43
- data/generated/google/apis/gmail_v1/service.rb +5 -4
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +11 -11
- data/generated/google/apis/gmailpostmastertools_v1beta1.rb +2 -2
- data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
- data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
- data/generated/google/apis/groupsmigration_v1/service.rb +100 -0
- data/generated/google/apis/groupsmigration_v1.rb +35 -0
- data/generated/google/apis/healthcare_v1/classes.rb +637 -826
- data/generated/google/apis/healthcare_v1/representations.rb +32 -0
- data/generated/google/apis/healthcare_v1/service.rb +842 -855
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +1937 -1299
- data/generated/google/apis/healthcare_v1beta1/representations.rb +534 -65
- data/generated/google/apis/healthcare_v1beta1/service.rb +2534 -1293
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/homegraph_v1/classes.rb +76 -164
- data/generated/google/apis/homegraph_v1/service.rb +23 -35
- data/generated/google/apis/homegraph_v1.rb +4 -1
- data/generated/google/apis/iam_v1/classes.rb +395 -592
- data/generated/google/apis/iam_v1/representations.rb +1 -0
- data/generated/google/apis/iam_v1/service.rb +427 -555
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/classes.rb +75 -85
- data/generated/google/apis/iamcredentials_v1/service.rb +14 -13
- data/generated/google/apis/iamcredentials_v1.rb +3 -2
- data/generated/google/apis/iap_v1/classes.rb +253 -355
- data/generated/google/apis/iap_v1/representations.rb +1 -0
- data/generated/google/apis/iap_v1/service.rb +61 -71
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +164 -254
- data/generated/google/apis/iap_v1beta1/representations.rb +1 -0
- data/generated/google/apis/iap_v1beta1/service.rb +17 -19
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/indexing_v3/classes.rb +11 -11
- data/generated/google/apis/indexing_v3.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +1584 -1086
- data/generated/google/apis/jobs_v2/representations.rb +272 -0
- data/generated/google/apis/jobs_v2/service.rb +85 -126
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +1559 -980
- data/generated/google/apis/jobs_v3/representations.rb +272 -0
- data/generated/google/apis/jobs_v3/service.rb +101 -139
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +1521 -1023
- data/generated/google/apis/jobs_v3p1beta1/representations.rb +257 -0
- data/generated/google/apis/jobs_v3p1beta1/service.rb +103 -142
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/kgsearch_v1/classes.rb +4 -4
- data/generated/google/apis/kgsearch_v1/service.rb +11 -11
- data/generated/google/apis/kgsearch_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/classes.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +56 -86
- data/generated/google/apis/licensing_v1.rb +4 -3
- data/generated/google/apis/lifesciences_v2beta/classes.rb +366 -290
- data/generated/google/apis/lifesciences_v2beta/representations.rb +47 -0
- data/generated/google/apis/lifesciences_v2beta/service.rb +30 -42
- data/generated/google/apis/lifesciences_v2beta.rb +1 -1
- data/generated/google/apis/localservices_v1/classes.rb +426 -0
- data/generated/google/apis/localservices_v1/representations.rb +174 -0
- data/generated/google/apis/localservices_v1/service.rb +199 -0
- data/generated/google/apis/{appsactivity_v1.rb → localservices_v1.rb} +8 -11
- data/generated/google/apis/logging_v2/classes.rb +306 -232
- data/generated/google/apis/logging_v2/representations.rb +79 -0
- data/generated/google/apis/logging_v2/service.rb +3307 -1579
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/managedidentities_v1/classes.rb +8 -1
- data/generated/google/apis/managedidentities_v1/representations.rb +1 -0
- data/generated/google/apis/managedidentities_v1/service.rb +1 -4
- data/generated/google/apis/managedidentities_v1.rb +1 -1
- data/generated/google/apis/managedidentities_v1alpha1/classes.rb +87 -1
- data/generated/google/apis/managedidentities_v1alpha1/representations.rb +34 -0
- data/generated/google/apis/managedidentities_v1alpha1/service.rb +83 -5
- data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
- data/generated/google/apis/managedidentities_v1beta1/classes.rb +88 -1
- data/generated/google/apis/managedidentities_v1beta1/representations.rb +34 -0
- data/generated/google/apis/managedidentities_v1beta1/service.rb +83 -5
- data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +99 -109
- data/generated/google/apis/manufacturers_v1/service.rb +44 -55
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +171 -250
- data/generated/google/apis/memcache_v1beta2/representations.rb +0 -19
- data/generated/google/apis/memcache_v1beta2/service.rb +60 -73
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1122 -1149
- data/generated/google/apis/ml_v1/representations.rb +82 -0
- data/generated/google/apis/ml_v1/service.rb +194 -253
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/monitoring_v1/classes.rb +107 -26
- data/generated/google/apis/monitoring_v1/representations.rb +35 -0
- data/generated/google/apis/monitoring_v1/service.rb +10 -11
- data/generated/google/apis/monitoring_v1.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +303 -345
- data/generated/google/apis/monitoring_v3/representations.rb +18 -0
- data/generated/google/apis/monitoring_v3/service.rb +176 -146
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/networkmanagement_v1/classes.rb +273 -429
- data/generated/google/apis/networkmanagement_v1/service.rb +97 -120
- data/generated/google/apis/networkmanagement_v1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +456 -429
- data/generated/google/apis/networkmanagement_v1beta1/representations.rb +63 -0
- data/generated/google/apis/networkmanagement_v1beta1/service.rb +97 -120
- data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
- data/generated/google/apis/osconfig_v1/classes.rb +154 -902
- data/generated/google/apis/osconfig_v1/representations.rb +0 -337
- data/generated/google/apis/osconfig_v1/service.rb +26 -31
- data/generated/google/apis/osconfig_v1.rb +3 -3
- data/generated/google/apis/osconfig_v1beta/classes.rb +327 -411
- data/generated/google/apis/osconfig_v1beta/service.rb +43 -56
- data/generated/google/apis/osconfig_v1beta.rb +3 -3
- data/generated/google/apis/oslogin_v1/classes.rb +14 -12
- data/generated/google/apis/oslogin_v1/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1/service.rb +12 -16
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +16 -14
- data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +17 -17
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +14 -12
- data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1beta/service.rb +12 -16
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5/classes.rb +18 -24
- data/generated/google/apis/pagespeedonline_v5/service.rb +3 -4
- data/generated/google/apis/pagespeedonline_v5.rb +2 -2
- data/generated/google/apis/people_v1/classes.rb +173 -63
- data/generated/google/apis/people_v1/representations.rb +41 -0
- data/generated/google/apis/people_v1/service.rb +63 -61
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/playablelocations_v3/classes.rb +114 -161
- data/generated/google/apis/playablelocations_v3/service.rb +10 -10
- data/generated/google/apis/playablelocations_v3.rb +1 -1
- data/generated/google/apis/playcustomapp_v1/service.rb +2 -2
- data/generated/google/apis/playcustomapp_v1.rb +1 -1
- data/generated/google/apis/poly_v1/classes.rb +65 -79
- data/generated/google/apis/poly_v1/service.rb +50 -63
- data/generated/google/apis/poly_v1.rb +3 -4
- data/generated/google/apis/privateca_v1beta1/classes.rb +2466 -0
- data/generated/google/apis/privateca_v1beta1/representations.rb +996 -0
- data/generated/google/apis/privateca_v1beta1/service.rb +1487 -0
- data/generated/google/apis/privateca_v1beta1.rb +34 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +26 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +14 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +644 -56
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +399 -518
- data/generated/google/apis/pubsub_v1/representations.rb +2 -0
- data/generated/google/apis/pubsub_v1/service.rb +221 -247
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1beta1a/classes.rb +71 -86
- data/generated/google/apis/pubsub_v1beta1a/service.rb +31 -38
- data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +251 -354
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +96 -108
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsublite_v1/classes.rb +461 -0
- data/generated/google/apis/pubsublite_v1/representations.rb +261 -0
- data/generated/google/apis/pubsublite_v1/service.rb +558 -0
- data/generated/google/apis/{memcache_v1.rb → pubsublite_v1.rb} +8 -9
- data/generated/google/apis/realtimebidding_v1/classes.rb +84 -123
- data/generated/google/apis/realtimebidding_v1/representations.rb +18 -32
- data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
- data/generated/google/apis/realtimebidding_v1.rb +1 -1
- data/generated/google/apis/recommendationengine_v1beta1/classes.rb +367 -456
- data/generated/google/apis/recommendationengine_v1beta1/representations.rb +25 -16
- data/generated/google/apis/recommendationengine_v1beta1/service.rb +140 -206
- data/generated/google/apis/recommendationengine_v1beta1.rb +1 -1
- data/generated/google/apis/recommender_v1/classes.rb +1 -1
- data/generated/google/apis/recommender_v1/service.rb +4 -2
- data/generated/google/apis/recommender_v1.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/classes.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/service.rb +4 -2
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +91 -513
- data/generated/google/apis/redis_v1/representations.rb +0 -139
- data/generated/google/apis/redis_v1/service.rb +92 -109
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +123 -517
- data/generated/google/apis/redis_v1beta1/representations.rb +12 -137
- data/generated/google/apis/redis_v1beta1/service.rb +126 -109
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +957 -1078
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +62 -0
- data/generated/google/apis/remotebuildexecution_v1/service.rb +26 -33
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +952 -1071
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +62 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +103 -65
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +1105 -1250
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +62 -0
- data/generated/google/apis/remotebuildexecution_v2/service.rb +147 -206
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +151 -219
- data/generated/google/apis/reseller_v1/service.rb +122 -173
- data/generated/google/apis/reseller_v1.rb +2 -2
- data/generated/google/apis/run_v1/classes.rb +19 -138
- data/generated/google/apis/run_v1/representations.rb +1 -62
- data/generated/google/apis/run_v1/service.rb +0 -342
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +1 -1
- data/generated/google/apis/run_v1alpha1/representations.rb +1 -1
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1beta1/classes.rb +3 -2
- data/generated/google/apis/run_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +301 -412
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +1 -0
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +135 -159
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/safebrowsing_v4/classes.rb +55 -64
- data/generated/google/apis/safebrowsing_v4/service.rb +4 -4
- data/generated/google/apis/safebrowsing_v4.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/classes.rb +26 -0
- data/generated/google/apis/sasportal_v1alpha1/representations.rb +14 -0
- data/generated/google/apis/sasportal_v1alpha1/service.rb +644 -56
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +88 -111
- data/generated/google/apis/script_v1/service.rb +63 -69
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
- data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
- data/generated/google/apis/searchconsole_v1/service.rb +287 -0
- data/generated/google/apis/searchconsole_v1.rb +7 -1
- data/generated/google/apis/secretmanager_v1/classes.rb +378 -365
- data/generated/google/apis/secretmanager_v1/representations.rb +92 -0
- data/generated/google/apis/secretmanager_v1/service.rb +66 -82
- data/generated/google/apis/secretmanager_v1.rb +1 -1
- data/generated/google/apis/secretmanager_v1beta1/classes.rb +217 -363
- data/generated/google/apis/secretmanager_v1beta1/representations.rb +1 -0
- data/generated/google/apis/secretmanager_v1beta1/service.rb +66 -82
- data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +20 -204
- data/generated/google/apis/securitycenter_v1/representations.rb +1 -72
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +22 -204
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +1 -72
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/classes.rb +275 -291
- data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/representations.rb +83 -84
- data/generated/google/apis/securitycenter_v1beta2/service.rb +1494 -0
- data/generated/google/apis/{securitycenter_v1p1beta1.rb → securitycenter_v1beta2.rb} +6 -6
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +35 -123
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -18
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +32 -30
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +24 -112
- data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +0 -18
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +601 -642
- data/generated/google/apis/servicecontrol_v1/representations.rb +10 -0
- data/generated/google/apis/servicecontrol_v1/service.rb +36 -46
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v2/classes.rb +343 -325
- data/generated/google/apis/servicecontrol_v2/representations.rb +8 -0
- data/generated/google/apis/servicecontrol_v2/service.rb +33 -43
- data/generated/google/apis/servicecontrol_v2.rb +1 -1
- data/generated/google/apis/servicedirectory_v1beta1/classes.rb +221 -333
- data/generated/google/apis/servicedirectory_v1beta1/representations.rb +1 -0
- data/generated/google/apis/servicedirectory_v1beta1/service.rb +94 -129
- data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1244 -2174
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -31
- data/generated/google/apis/servicemanagement_v1/service.rb +141 -228
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +278 -121
- data/generated/google/apis/servicenetworking_v1/representations.rb +115 -15
- data/generated/google/apis/servicenetworking_v1/service.rb +118 -2
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +213 -112
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +84 -14
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +57 -111
- data/generated/google/apis/serviceusage_v1/representations.rb +4 -18
- data/generated/google/apis/serviceusage_v1/service.rb +5 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +122 -112
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +23 -18
- data/generated/google/apis/serviceusage_v1beta1/service.rb +36 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4029 -5014
- data/generated/google/apis/sheets_v4/representations.rb +625 -0
- data/generated/google/apis/sheets_v4/service.rb +113 -149
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +841 -1114
- data/generated/google/apis/slides_v1/service.rb +23 -30
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/smartdevicemanagement_v1/classes.rb +273 -0
- data/generated/google/apis/smartdevicemanagement_v1/representations.rb +157 -0
- data/generated/google/apis/smartdevicemanagement_v1/service.rb +304 -0
- data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
- data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
- data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +1553 -2157
- data/generated/google/apis/spanner_v1/representations.rb +1 -0
- data/generated/google/apis/spanner_v1/service.rb +443 -618
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +174 -220
- data/generated/google/apis/speech_v1/service.rb +27 -32
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +253 -306
- data/generated/google/apis/speech_v1p1beta1/service.rb +27 -32
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v2beta1/classes.rb +66 -76
- data/generated/google/apis/speech_v2beta1/service.rb +10 -12
- data/generated/google/apis/speech_v2beta1.rb +1 -1
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/classes.rb +537 -452
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/representations.rb +142 -87
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/service.rb +295 -300
- data/generated/google/apis/{sql_v1beta4.rb → sqladmin_v1beta4.rb} +5 -5
- data/generated/google/apis/storage_v1/classes.rb +10 -17
- data/generated/google/apis/storage_v1/representations.rb +2 -3
- data/generated/google/apis/storage_v1/service.rb +3 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +301 -349
- data/generated/google/apis/storagetransfer_v1/representations.rb +13 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +53 -72
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +110 -152
- data/generated/google/apis/streetviewpublish_v1/service.rb +94 -177
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/sts_v1/classes.rb +121 -0
- data/generated/google/apis/sts_v1/representations.rb +59 -0
- data/generated/google/apis/sts_v1/service.rb +90 -0
- data/generated/google/apis/sts_v1.rb +32 -0
- data/generated/google/apis/sts_v1beta/classes.rb +191 -0
- data/generated/google/apis/sts_v1beta/representations.rb +61 -0
- data/generated/google/apis/sts_v1beta/service.rb +92 -0
- data/generated/google/apis/sts_v1beta.rb +32 -0
- data/generated/google/apis/tagmanager_v1/service.rb +2 -2
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v2/classes.rb +12 -0
- data/generated/google/apis/tagmanager_v2/representations.rb +3 -0
- data/generated/google/apis/tagmanager_v2/service.rb +2 -2
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/tasks_v1/classes.rb +21 -22
- data/generated/google/apis/tasks_v1/service.rb +19 -19
- data/generated/google/apis/tasks_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +384 -390
- data/generated/google/apis/testing_v1/representations.rb +23 -0
- data/generated/google/apis/testing_v1/service.rb +22 -28
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1/classes.rb +51 -57
- data/generated/google/apis/texttospeech_v1/service.rb +9 -10
- data/generated/google/apis/texttospeech_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1/classes.rb +96 -57
- data/generated/google/apis/texttospeech_v1beta1/representations.rb +19 -0
- data/generated/google/apis/texttospeech_v1beta1/service.rb +9 -10
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +20 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +13 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +57 -3
- data/generated/google/apis/tpu_v1/representations.rb +19 -0
- data/generated/google/apis/tpu_v1/service.rb +8 -8
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +57 -3
- data/generated/google/apis/tpu_v1alpha1/representations.rb +19 -0
- data/generated/google/apis/tpu_v1alpha1/service.rb +8 -8
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/trafficdirector_v2/classes.rb +1347 -0
- data/generated/google/apis/trafficdirector_v2/representations.rb +620 -0
- data/generated/google/apis/trafficdirector_v2/service.rb +89 -0
- data/generated/google/apis/trafficdirector_v2.rb +34 -0
- data/generated/google/apis/translate_v3/classes.rb +151 -177
- data/generated/google/apis/translate_v3/service.rb +122 -151
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3beta1/classes.rb +150 -170
- data/generated/google/apis/translate_v3beta1/service.rb +122 -151
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +413 -103
- data/generated/google/apis/vault_v1/representations.rb +162 -0
- data/generated/google/apis/vault_v1/service.rb +182 -37
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vectortile_v1/classes.rb +185 -267
- data/generated/google/apis/vectortile_v1/service.rb +75 -88
- data/generated/google/apis/vectortile_v1.rb +1 -1
- data/generated/google/apis/verifiedaccess_v1/classes.rb +20 -27
- data/generated/google/apis/verifiedaccess_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +1493 -935
- data/generated/google/apis/videointelligence_v1/representations.rb +402 -2
- data/generated/google/apis/videointelligence_v1/service.rb +38 -77
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +1488 -928
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +402 -2
- data/generated/google/apis/videointelligence_v1beta2/service.rb +4 -4
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1482 -922
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +402 -2
- data/generated/google/apis/videointelligence_v1p1beta1/service.rb +4 -4
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1485 -925
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +402 -2
- data/generated/google/apis/videointelligence_v1p2beta1/service.rb +4 -4
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1410 -937
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +368 -2
- data/generated/google/apis/videointelligence_v1p3beta1/service.rb +4 -4
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +16 -16
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +16 -16
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +16 -16
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/webfonts_v1/classes.rb +1 -2
- data/generated/google/apis/webfonts_v1/service.rb +2 -4
- data/generated/google/apis/webfonts_v1.rb +2 -3
- data/generated/google/apis/websecurityscanner_v1.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
- data/generated/google/apis/workflowexecutions_v1beta/classes.rb +155 -0
- data/generated/google/apis/workflowexecutions_v1beta/representations.rb +88 -0
- data/generated/google/apis/{securitycenter_v1p1alpha1 → workflowexecutions_v1beta}/service.rb +73 -69
- data/generated/google/apis/workflowexecutions_v1beta.rb +34 -0
- data/generated/google/apis/workflows_v1beta/classes.rb +406 -0
- data/generated/google/apis/workflows_v1beta/representations.rb +173 -0
- data/generated/google/apis/workflows_v1beta/service.rb +438 -0
- data/generated/google/apis/workflows_v1beta.rb +35 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +0 -586
- data/generated/google/apis/youtube_v3/representations.rb +0 -269
- data/generated/google/apis/youtube_v3/service.rb +3 -120
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/google-api-client.gemspec +25 -24
- data/lib/google/apis/core/api_command.rb +1 -0
- data/lib/google/apis/core/http_command.rb +2 -1
- data/lib/google/apis/options.rb +8 -5
- data/lib/google/apis/version.rb +1 -1
- data/synth.py +40 -0
- metadata +134 -41
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +0 -417
- data/generated/google/apis/accessapproval_v1beta1/representations.rb +0 -203
- data/generated/google/apis/accessapproval_v1beta1/service.rb +0 -857
- data/generated/google/apis/appsactivity_v1/classes.rb +0 -415
- data/generated/google/apis/appsactivity_v1/representations.rb +0 -209
- data/generated/google/apis/appsactivity_v1/service.rb +0 -126
- data/generated/google/apis/dns_v2beta1/classes.rb +0 -1447
- data/generated/google/apis/dns_v2beta1/representations.rb +0 -588
- data/generated/google/apis/dns_v2beta1/service.rb +0 -928
- data/generated/google/apis/dns_v2beta1.rb +0 -43
- data/generated/google/apis/memcache_v1/classes.rb +0 -1157
- data/generated/google/apis/plus_v1/classes.rb +0 -2094
- data/generated/google/apis/plus_v1/representations.rb +0 -907
- data/generated/google/apis/plus_v1/service.rb +0 -451
- data/generated/google/apis/plus_v1.rb +0 -43
- data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +0 -2059
- data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +0 -789
- data/generated/google/apis/securitycenter_v1p1beta1/service.rb +0 -1243
- data/generated/google/apis/storage_v1beta2/classes.rb +0 -1047
- data/generated/google/apis/storage_v1beta2/representations.rb +0 -425
- data/generated/google/apis/storage_v1beta2/service.rb +0 -1667
- data/generated/google/apis/storage_v1beta2.rb +0 -40
@@ -22,8 +22,295 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module DocumentaiV1beta2
|
24
24
|
|
25
|
-
#
|
26
|
-
|
25
|
+
# The long running operation metadata for CreateLabelerPool.
|
26
|
+
class GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# The creation time of the operation.
|
30
|
+
# Corresponds to the JSON property `createTime`
|
31
|
+
# @return [String]
|
32
|
+
attr_accessor :create_time
|
33
|
+
|
34
|
+
# Used only when Operation.done is false.
|
35
|
+
# Corresponds to the JSON property `state`
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :state
|
38
|
+
|
39
|
+
# A message providing more details about the current state of processing. For
|
40
|
+
# example, the error message if the operation is failed.
|
41
|
+
# Corresponds to the JSON property `stateMessage`
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :state_message
|
44
|
+
|
45
|
+
# The last update time of the operation.
|
46
|
+
# Corresponds to the JSON property `updateTime`
|
47
|
+
# @return [String]
|
48
|
+
attr_accessor :update_time
|
49
|
+
|
50
|
+
def initialize(**args)
|
51
|
+
update!(**args)
|
52
|
+
end
|
53
|
+
|
54
|
+
# Update properties of this object
|
55
|
+
def update!(**args)
|
56
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
57
|
+
@state = args[:state] if args.key?(:state)
|
58
|
+
@state_message = args[:state_message] if args.key?(:state_message)
|
59
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# The metadata that represents a processor version being created.
|
64
|
+
class GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata
|
65
|
+
include Google::Apis::Core::Hashable
|
66
|
+
|
67
|
+
# The creation time of the operation.
|
68
|
+
# Corresponds to the JSON property `createTime`
|
69
|
+
# @return [String]
|
70
|
+
attr_accessor :create_time
|
71
|
+
|
72
|
+
# The state of the current disable processor operation.
|
73
|
+
# Corresponds to the JSON property `state`
|
74
|
+
# @return [String]
|
75
|
+
attr_accessor :state
|
76
|
+
|
77
|
+
# The last update time of the operation.
|
78
|
+
# Corresponds to the JSON property `updateTime`
|
79
|
+
# @return [String]
|
80
|
+
attr_accessor :update_time
|
81
|
+
|
82
|
+
def initialize(**args)
|
83
|
+
update!(**args)
|
84
|
+
end
|
85
|
+
|
86
|
+
# Update properties of this object
|
87
|
+
def update!(**args)
|
88
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
89
|
+
@state = args[:state] if args.key?(:state)
|
90
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
# The long running operation metadata for DeleteLabelerPool.
|
95
|
+
class GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata
|
96
|
+
include Google::Apis::Core::Hashable
|
97
|
+
|
98
|
+
# The creation time of the operation.
|
99
|
+
# Corresponds to the JSON property `createTime`
|
100
|
+
# @return [String]
|
101
|
+
attr_accessor :create_time
|
102
|
+
|
103
|
+
# Used only when Operation.done is false.
|
104
|
+
# Corresponds to the JSON property `state`
|
105
|
+
# @return [String]
|
106
|
+
attr_accessor :state
|
107
|
+
|
108
|
+
# A message providing more details about the current state of processing. For
|
109
|
+
# example, the error message if the operation is failed.
|
110
|
+
# Corresponds to the JSON property `stateMessage`
|
111
|
+
# @return [String]
|
112
|
+
attr_accessor :state_message
|
113
|
+
|
114
|
+
# The last update time of the operation.
|
115
|
+
# Corresponds to the JSON property `updateTime`
|
116
|
+
# @return [String]
|
117
|
+
attr_accessor :update_time
|
118
|
+
|
119
|
+
def initialize(**args)
|
120
|
+
update!(**args)
|
121
|
+
end
|
122
|
+
|
123
|
+
# Update properties of this object
|
124
|
+
def update!(**args)
|
125
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
126
|
+
@state = args[:state] if args.key?(:state)
|
127
|
+
@state_message = args[:state_message] if args.key?(:state_message)
|
128
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# The long running operation metadata for delete processor method.
|
133
|
+
class GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata
|
134
|
+
include Google::Apis::Core::Hashable
|
135
|
+
|
136
|
+
# The creation time of the operation.
|
137
|
+
# Corresponds to the JSON property `createTime`
|
138
|
+
# @return [String]
|
139
|
+
attr_accessor :create_time
|
140
|
+
|
141
|
+
# The state of the current delete processor operation.
|
142
|
+
# Corresponds to the JSON property `state`
|
143
|
+
# @return [String]
|
144
|
+
attr_accessor :state
|
145
|
+
|
146
|
+
# A message providing more details about the current state of processing. For
|
147
|
+
# example, the error message if the operation is failed.
|
148
|
+
# Corresponds to the JSON property `stateMessage`
|
149
|
+
# @return [String]
|
150
|
+
attr_accessor :state_message
|
151
|
+
|
152
|
+
# The last update time of the operation.
|
153
|
+
# Corresponds to the JSON property `updateTime`
|
154
|
+
# @return [String]
|
155
|
+
attr_accessor :update_time
|
156
|
+
|
157
|
+
def initialize(**args)
|
158
|
+
update!(**args)
|
159
|
+
end
|
160
|
+
|
161
|
+
# Update properties of this object
|
162
|
+
def update!(**args)
|
163
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
164
|
+
@state = args[:state] if args.key?(:state)
|
165
|
+
@state_message = args[:state_message] if args.key?(:state_message)
|
166
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
# The long running operation metadata for disable processor method.
|
171
|
+
class GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata
|
172
|
+
include Google::Apis::Core::Hashable
|
173
|
+
|
174
|
+
# The creation time of the operation.
|
175
|
+
# Corresponds to the JSON property `createTime`
|
176
|
+
# @return [String]
|
177
|
+
attr_accessor :create_time
|
178
|
+
|
179
|
+
# The state of the current disable processor operation.
|
180
|
+
# Corresponds to the JSON property `state`
|
181
|
+
# @return [String]
|
182
|
+
attr_accessor :state
|
183
|
+
|
184
|
+
# A message providing more details about the current state of processing. For
|
185
|
+
# example, the error message if the operation is failed.
|
186
|
+
# Corresponds to the JSON property `stateMessage`
|
187
|
+
# @return [String]
|
188
|
+
attr_accessor :state_message
|
189
|
+
|
190
|
+
# The last update time of the operation.
|
191
|
+
# Corresponds to the JSON property `updateTime`
|
192
|
+
# @return [String]
|
193
|
+
attr_accessor :update_time
|
194
|
+
|
195
|
+
def initialize(**args)
|
196
|
+
update!(**args)
|
197
|
+
end
|
198
|
+
|
199
|
+
# Update properties of this object
|
200
|
+
def update!(**args)
|
201
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
202
|
+
@state = args[:state] if args.key?(:state)
|
203
|
+
@state_message = args[:state_message] if args.key?(:state_message)
|
204
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
# Response message for the disable processor method. Intentionally empty proto
|
209
|
+
# for adding fields in future.
|
210
|
+
class GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse
|
211
|
+
include Google::Apis::Core::Hashable
|
212
|
+
|
213
|
+
def initialize(**args)
|
214
|
+
update!(**args)
|
215
|
+
end
|
216
|
+
|
217
|
+
# Update properties of this object
|
218
|
+
def update!(**args)
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
# The long running operation metadata for enable processor method.
|
223
|
+
class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
|
224
|
+
include Google::Apis::Core::Hashable
|
225
|
+
|
226
|
+
# The creation time of the operation.
|
227
|
+
# Corresponds to the JSON property `createTime`
|
228
|
+
# @return [String]
|
229
|
+
attr_accessor :create_time
|
230
|
+
|
231
|
+
# The state of the current enable processor operation.
|
232
|
+
# Corresponds to the JSON property `state`
|
233
|
+
# @return [String]
|
234
|
+
attr_accessor :state
|
235
|
+
|
236
|
+
# A message providing more details about the current state of processing. For
|
237
|
+
# example, the error message if the operation is failed.
|
238
|
+
# Corresponds to the JSON property `stateMessage`
|
239
|
+
# @return [String]
|
240
|
+
attr_accessor :state_message
|
241
|
+
|
242
|
+
# The last update time of the operation.
|
243
|
+
# Corresponds to the JSON property `updateTime`
|
244
|
+
# @return [String]
|
245
|
+
attr_accessor :update_time
|
246
|
+
|
247
|
+
def initialize(**args)
|
248
|
+
update!(**args)
|
249
|
+
end
|
250
|
+
|
251
|
+
# Update properties of this object
|
252
|
+
def update!(**args)
|
253
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
254
|
+
@state = args[:state] if args.key?(:state)
|
255
|
+
@state_message = args[:state_message] if args.key?(:state_message)
|
256
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
260
|
+
# Response message for the enable processor method. Intentionally empty proto
|
261
|
+
# for adding fields in future.
|
262
|
+
class GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse
|
263
|
+
include Google::Apis::Core::Hashable
|
264
|
+
|
265
|
+
def initialize(**args)
|
266
|
+
update!(**args)
|
267
|
+
end
|
268
|
+
|
269
|
+
# Update properties of this object
|
270
|
+
def update!(**args)
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
274
|
+
# The long running operation metadata for UpdateLabelerPool.
|
275
|
+
class GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata
|
276
|
+
include Google::Apis::Core::Hashable
|
277
|
+
|
278
|
+
# The creation time of the operation.
|
279
|
+
# Corresponds to the JSON property `createTime`
|
280
|
+
# @return [String]
|
281
|
+
attr_accessor :create_time
|
282
|
+
|
283
|
+
# Used only when Operation.done is false.
|
284
|
+
# Corresponds to the JSON property `state`
|
285
|
+
# @return [String]
|
286
|
+
attr_accessor :state
|
287
|
+
|
288
|
+
# A message providing more details about the current state of processing. For
|
289
|
+
# example, the error message if the operation is failed.
|
290
|
+
# Corresponds to the JSON property `stateMessage`
|
291
|
+
# @return [String]
|
292
|
+
attr_accessor :state_message
|
293
|
+
|
294
|
+
# The last update time of the operation.
|
295
|
+
# Corresponds to the JSON property `updateTime`
|
296
|
+
# @return [String]
|
297
|
+
attr_accessor :update_time
|
298
|
+
|
299
|
+
def initialize(**args)
|
300
|
+
update!(**args)
|
301
|
+
end
|
302
|
+
|
303
|
+
# Update properties of this object
|
304
|
+
def update!(**args)
|
305
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
306
|
+
@state = args[:state] if args.key?(:state)
|
307
|
+
@state_message = args[:state_message] if args.key?(:state_message)
|
308
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
309
|
+
end
|
310
|
+
end
|
311
|
+
|
312
|
+
# Response to an batch document processing request. This is returned in the LRO
|
313
|
+
# Operation after the operation is complete.
|
27
314
|
class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
|
28
315
|
include Google::Apis::Core::Hashable
|
29
316
|
|
@@ -68,23 +355,22 @@ module Google
|
|
68
355
|
end
|
69
356
|
|
70
357
|
# Document represents the canonical document resource in Document Understanding
|
71
|
-
# AI.
|
72
|
-
#
|
73
|
-
#
|
74
|
-
# optimize for quality.
|
358
|
+
# AI. It is an interchange format that provides insights into documents and
|
359
|
+
# allows for collaboration between users and Document Understanding AI to
|
360
|
+
# iterate and optimize for quality.
|
75
361
|
class GoogleCloudDocumentaiV1beta1Document
|
76
362
|
include Google::Apis::Core::Hashable
|
77
363
|
|
78
|
-
# Inline document content, represented as a stream of bytes.
|
79
|
-
#
|
80
|
-
#
|
364
|
+
# Inline document content, represented as a stream of bytes. Note: As with all `
|
365
|
+
# bytes` fields, protobuffers use a pure binary representation, whereas JSON
|
366
|
+
# representations use base64.
|
81
367
|
# Corresponds to the JSON property `content`
|
82
368
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
83
369
|
# @return [String]
|
84
370
|
attr_accessor :content
|
85
371
|
|
86
|
-
# A list of entities detected on Document.text. For document shards,
|
87
|
-
#
|
372
|
+
# A list of entities detected on Document.text. For document shards, entities in
|
373
|
+
# this list may cross shard boundaries.
|
88
374
|
# Corresponds to the JSON property `entities`
|
89
375
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentEntity>]
|
90
376
|
attr_accessor :entities
|
@@ -94,19 +380,19 @@ module Google
|
|
94
380
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentEntityRelation>]
|
95
381
|
attr_accessor :entity_relations
|
96
382
|
|
97
|
-
# The `Status` type defines a logical error model that is suitable for
|
98
|
-
#
|
99
|
-
#
|
100
|
-
#
|
101
|
-
#
|
102
|
-
#
|
383
|
+
# The `Status` type defines a logical error model that is suitable for different
|
384
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
385
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
386
|
+
# data: error code, error message, and error details. You can find out more
|
387
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
388
|
+
# //cloud.google.com/apis/design/errors).
|
103
389
|
# Corresponds to the JSON property `error`
|
104
390
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleRpcStatus]
|
105
391
|
attr_accessor :error
|
106
392
|
|
107
393
|
# An IANA published MIME type (also referred to as media type). For more
|
108
|
-
# information, see
|
109
|
-
#
|
394
|
+
# information, see https://www.iana.org/assignments/media-types/media-types.
|
395
|
+
# xhtml.
|
110
396
|
# Corresponds to the JSON property `mimeType`
|
111
397
|
# @return [String]
|
112
398
|
attr_accessor :mime_type
|
@@ -116,9 +402,13 @@ module Google
|
|
116
402
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPage>]
|
117
403
|
attr_accessor :pages
|
118
404
|
|
119
|
-
#
|
120
|
-
#
|
121
|
-
#
|
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
|
+
|
410
|
+
# For a large document, sharding may be performed to produce several document
|
411
|
+
# shards. Each document shard contains this field to detail which shard it is.
|
122
412
|
# Corresponds to the JSON property `shardInfo`
|
123
413
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentShardInfo]
|
124
414
|
attr_accessor :shard_info
|
@@ -128,21 +418,27 @@ module Google
|
|
128
418
|
# @return [String]
|
129
419
|
attr_accessor :text
|
130
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
|
+
|
131
428
|
# Styles for the Document.text.
|
132
429
|
# Corresponds to the JSON property `textStyles`
|
133
430
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyle>]
|
134
431
|
attr_accessor :text_styles
|
135
432
|
|
136
|
-
# A list of translations on Document.text. For document shards,
|
137
|
-
#
|
433
|
+
# A list of translations on Document.text. For document shards, translations in
|
434
|
+
# this list may cross shard boundaries.
|
138
435
|
# Corresponds to the JSON property `translations`
|
139
436
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTranslation>]
|
140
437
|
attr_accessor :translations
|
141
438
|
|
142
|
-
# Currently supports Google Cloud Storage URI of the form
|
143
|
-
#
|
144
|
-
#
|
145
|
-
# URIs](https://cloud.google.com/storage/docs/reference-uris) for more
|
439
|
+
# Currently supports Google Cloud Storage URI of the form `gs://bucket_name/
|
440
|
+
# object_name`. Object versioning is not supported. See [Google Cloud Storage
|
441
|
+
# Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more
|
146
442
|
# info.
|
147
443
|
# Corresponds to the JSON property `uri`
|
148
444
|
# @return [String]
|
@@ -160,8 +456,10 @@ module Google
|
|
160
456
|
@error = args[:error] if args.key?(:error)
|
161
457
|
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
162
458
|
@pages = args[:pages] if args.key?(:pages)
|
459
|
+
@revisions = args[:revisions] if args.key?(:revisions)
|
163
460
|
@shard_info = args[:shard_info] if args.key?(:shard_info)
|
164
461
|
@text = args[:text] if args.key?(:text)
|
462
|
+
@text_changes = args[:text_changes] if args.key?(:text_changes)
|
165
463
|
@text_styles = args[:text_styles] if args.key?(:text_styles)
|
166
464
|
@translations = args[:translations] if args.key?(:translations)
|
167
465
|
@uri = args[:uri] if args.key?(:uri)
|
@@ -178,7 +476,13 @@ module Google
|
|
178
476
|
# @return [Float]
|
179
477
|
attr_accessor :confidence
|
180
478
|
|
181
|
-
#
|
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
|
+
|
485
|
+
# Deprecated. Use `id` field instead.
|
182
486
|
# Corresponds to the JSON property `mentionId`
|
183
487
|
# @return [String]
|
184
488
|
attr_accessor :mention_id
|
@@ -188,6 +492,36 @@ module Google
|
|
188
492
|
# @return [String]
|
189
493
|
attr_accessor :mention_text
|
190
494
|
|
495
|
+
# Parsed and normalized entity value.
|
496
|
+
# Corresponds to the JSON property `normalizedValue`
|
497
|
+
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue]
|
498
|
+
attr_accessor :normalized_value
|
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
|
+
|
519
|
+
# Optional. Whether the entity will be redacted for de-identification purposes.
|
520
|
+
# Corresponds to the JSON property `redacted`
|
521
|
+
# @return [Boolean]
|
522
|
+
attr_accessor :redacted
|
523
|
+
alias_method :redacted?, :redacted
|
524
|
+
|
191
525
|
# Text reference indexing into the Document.text.
|
192
526
|
# Corresponds to the JSON property `textAnchor`
|
193
527
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
|
@@ -205,13 +539,91 @@ module Google
|
|
205
539
|
# Update properties of this object
|
206
540
|
def update!(**args)
|
207
541
|
@confidence = args[:confidence] if args.key?(:confidence)
|
542
|
+
@id = args[:id] if args.key?(:id)
|
208
543
|
@mention_id = args[:mention_id] if args.key?(:mention_id)
|
209
544
|
@mention_text = args[:mention_text] if args.key?(:mention_text)
|
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)
|
549
|
+
@redacted = args[:redacted] if args.key?(:redacted)
|
210
550
|
@text_anchor = args[:text_anchor] if args.key?(:text_anchor)
|
211
551
|
@type = args[:type] if args.key?(:type)
|
212
552
|
end
|
213
553
|
end
|
214
554
|
|
555
|
+
# Parsed and normalized entity value.
|
556
|
+
class GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue
|
557
|
+
include Google::Apis::Core::Hashable
|
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
|
+
|
573
|
+
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
|
574
|
+
# and time zone are either specified elsewhere or are not significant. The date
|
575
|
+
# is relative to the Proleptic Gregorian Calendar. This can represent: * A full
|
576
|
+
# date, with non-zero year, month and day values * A month and day value, with a
|
577
|
+
# zero year, e.g. an anniversary * A year on its own, with zero month and day
|
578
|
+
# values * A year and month value, with a zero day, e.g. a credit card
|
579
|
+
# expiration date Related types are google.type.TimeOfDay and `google.protobuf.
|
580
|
+
# Timestamp`.
|
581
|
+
# Corresponds to the JSON property `dateValue`
|
582
|
+
# @return [Google::Apis::DocumentaiV1beta2::GoogleTypeDate]
|
583
|
+
attr_accessor :date_value
|
584
|
+
|
585
|
+
# Represents civil time in one of a few possible ways: * When utc_offset is set
|
586
|
+
# and time_zone is unset: a civil time on a calendar day with a particular
|
587
|
+
# offset from UTC. * When time_zone is set and utc_offset is unset: a civil time
|
588
|
+
# on a calendar day in a particular time zone. * When neither time_zone nor
|
589
|
+
# utc_offset is set: a civil time on a calendar day in local time. The date is
|
590
|
+
# relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is
|
591
|
+
# considered not to have a specific year. month and day must have valid, non-
|
592
|
+
# zero values. This type is more flexible than some applications may want. Make
|
593
|
+
# sure to document and validate your application's limitations.
|
594
|
+
# Corresponds to the JSON property `datetimeValue`
|
595
|
+
# @return [Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime]
|
596
|
+
attr_accessor :datetime_value
|
597
|
+
|
598
|
+
# Represents an amount of money with its currency type.
|
599
|
+
# Corresponds to the JSON property `moneyValue`
|
600
|
+
# @return [Google::Apis::DocumentaiV1beta2::GoogleTypeMoney]
|
601
|
+
attr_accessor :money_value
|
602
|
+
|
603
|
+
# Required. Normalized entity value stored as a string. This field is populated
|
604
|
+
# for supported document type (e.g. Invoice). For some entity types, one of
|
605
|
+
# respective 'structured_value' fields may also be populated. - Money/Currency
|
606
|
+
# type (`money_value`) is in the ISO 4217 text format. - Date type (`date_value`)
|
607
|
+
# is in the ISO 8601 text format. - Datetime type (`datetime_value`) is in the
|
608
|
+
# ISO 8601 text format.
|
609
|
+
# Corresponds to the JSON property `text`
|
610
|
+
# @return [String]
|
611
|
+
attr_accessor :text
|
612
|
+
|
613
|
+
def initialize(**args)
|
614
|
+
update!(**args)
|
615
|
+
end
|
616
|
+
|
617
|
+
# Update properties of this object
|
618
|
+
def update!(**args)
|
619
|
+
@address_value = args[:address_value] if args.key?(:address_value)
|
620
|
+
@date_value = args[:date_value] if args.key?(:date_value)
|
621
|
+
@datetime_value = args[:datetime_value] if args.key?(:datetime_value)
|
622
|
+
@money_value = args[:money_value] if args.key?(:money_value)
|
623
|
+
@text = args[:text] if args.key?(:text)
|
624
|
+
end
|
625
|
+
end
|
626
|
+
|
215
627
|
# Relationship between Entities.
|
216
628
|
class GoogleCloudDocumentaiV1beta1DocumentEntityRelation
|
217
629
|
include Google::Apis::Core::Hashable
|
@@ -247,9 +659,9 @@ module Google
|
|
247
659
|
class GoogleCloudDocumentaiV1beta1DocumentPage
|
248
660
|
include Google::Apis::Core::Hashable
|
249
661
|
|
250
|
-
# A list of visually detected text blocks on the page.
|
251
|
-
#
|
252
|
-
#
|
662
|
+
# A list of visually detected text blocks on the page. A block has a set of
|
663
|
+
# lines (collected into paragraphs) that have a common line-spacing and
|
664
|
+
# orientation.
|
253
665
|
# Corresponds to the JSON property `blocks`
|
254
666
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageBlock>]
|
255
667
|
attr_accessor :blocks
|
@@ -269,26 +681,30 @@ module Google
|
|
269
681
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageFormField>]
|
270
682
|
attr_accessor :form_fields
|
271
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
|
+
|
272
689
|
# Visual element describing a layout unit on a page.
|
273
690
|
# Corresponds to the JSON property `layout`
|
274
691
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
|
275
692
|
attr_accessor :layout
|
276
693
|
|
277
|
-
# A list of visually detected text lines on the page.
|
278
|
-
#
|
694
|
+
# A list of visually detected text lines on the page. A collection of tokens
|
695
|
+
# that a human would perceive as a line.
|
279
696
|
# Corresponds to the JSON property `lines`
|
280
697
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLine>]
|
281
698
|
attr_accessor :lines
|
282
699
|
|
283
|
-
# 1-based index for current Page in a parent Document.
|
284
|
-
#
|
285
|
-
# processing.
|
700
|
+
# 1-based index for current Page in a parent Document. Useful when a page is
|
701
|
+
# taken out of a Document for individual processing.
|
286
702
|
# Corresponds to the JSON property `pageNumber`
|
287
703
|
# @return [Fixnum]
|
288
704
|
attr_accessor :page_number
|
289
705
|
|
290
|
-
# A list of visually detected text paragraphs on the page.
|
291
|
-
#
|
706
|
+
# A list of visually detected text paragraphs on the page. A collection of lines
|
707
|
+
# that a human would perceive as a paragraph.
|
292
708
|
# Corresponds to the JSON property `paragraphs`
|
293
709
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageParagraph>]
|
294
710
|
attr_accessor :paragraphs
|
@@ -303,8 +719,14 @@ module Google
|
|
303
719
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageToken>]
|
304
720
|
attr_accessor :tokens
|
305
721
|
|
306
|
-
#
|
307
|
-
#
|
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
|
+
|
728
|
+
# A list of detected non-text visual elements e.g. checkbox, signature etc. on
|
729
|
+
# the page.
|
308
730
|
# Corresponds to the JSON property `visualElements`
|
309
731
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageVisualElement>]
|
310
732
|
attr_accessor :visual_elements
|
@@ -319,18 +741,78 @@ module Google
|
|
319
741
|
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
320
742
|
@dimension = args[:dimension] if args.key?(:dimension)
|
321
743
|
@form_fields = args[:form_fields] if args.key?(:form_fields)
|
744
|
+
@image = args[:image] if args.key?(:image)
|
322
745
|
@layout = args[:layout] if args.key?(:layout)
|
323
746
|
@lines = args[:lines] if args.key?(:lines)
|
324
747
|
@page_number = args[:page_number] if args.key?(:page_number)
|
325
748
|
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
326
749
|
@tables = args[:tables] if args.key?(:tables)
|
327
750
|
@tokens = args[:tokens] if args.key?(:tokens)
|
751
|
+
@transforms = args[:transforms] if args.key?(:transforms)
|
328
752
|
@visual_elements = args[:visual_elements] if args.key?(:visual_elements)
|
329
753
|
end
|
330
754
|
end
|
331
755
|
|
332
|
-
#
|
333
|
-
#
|
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
|
+
|
814
|
+
# A block has a set of lines (collected into paragraphs) that have a common line-
|
815
|
+
# spacing and orientation.
|
334
816
|
class GoogleCloudDocumentaiV1beta1DocumentPageBlock
|
335
817
|
include Google::Apis::Core::Hashable
|
336
818
|
|
@@ -344,6 +826,12 @@ module Google
|
|
344
826
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
|
345
827
|
attr_accessor :layout
|
346
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
|
+
|
347
835
|
def initialize(**args)
|
348
836
|
update!(**args)
|
349
837
|
end
|
@@ -352,6 +840,7 @@ module Google
|
|
352
840
|
def update!(**args)
|
353
841
|
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
354
842
|
@layout = args[:layout] if args.key?(:layout)
|
843
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
355
844
|
end
|
356
845
|
end
|
357
846
|
|
@@ -364,9 +853,8 @@ module Google
|
|
364
853
|
# @return [Float]
|
365
854
|
attr_accessor :confidence
|
366
855
|
|
367
|
-
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
368
|
-
#
|
369
|
-
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
856
|
+
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
|
857
|
+
# see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
370
858
|
# Corresponds to the JSON property `languageCode`
|
371
859
|
# @return [String]
|
372
860
|
attr_accessor :language_code
|
@@ -437,6 +925,13 @@ module Google
|
|
437
925
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
|
438
926
|
attr_accessor :value_detected_languages
|
439
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
|
+
|
440
935
|
def initialize(**args)
|
441
936
|
update!(**args)
|
442
937
|
end
|
@@ -447,6 +942,45 @@ module Google
|
|
447
942
|
@field_value = args[:field_value] if args.key?(:field_value)
|
448
943
|
@name_detected_languages = args[:name_detected_languages] if args.key?(:name_detected_languages)
|
449
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)
|
450
984
|
end
|
451
985
|
end
|
452
986
|
|
@@ -459,9 +993,9 @@ module Google
|
|
459
993
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1BoundingPoly]
|
460
994
|
attr_accessor :bounding_poly
|
461
995
|
|
462
|
-
# Confidence of the current Layout within context of the object this
|
463
|
-
#
|
464
|
-
#
|
996
|
+
# Confidence of the current Layout within context of the object this layout is
|
997
|
+
# for. e.g. confidence can be for a single token, a table, a visual element, etc.
|
998
|
+
# depending on context. Range [0, 1].
|
465
999
|
# Corresponds to the JSON property `confidence`
|
466
1000
|
# @return [Float]
|
467
1001
|
attr_accessor :confidence
|
@@ -489,8 +1023,8 @@ module Google
|
|
489
1023
|
end
|
490
1024
|
end
|
491
1025
|
|
492
|
-
# A collection of tokens that a human would perceive as a line.
|
493
|
-
#
|
1026
|
+
# A collection of tokens that a human would perceive as a line. Does not cross
|
1027
|
+
# column boundaries, can be horizontal, vertical, etc.
|
494
1028
|
class GoogleCloudDocumentaiV1beta1DocumentPageLine
|
495
1029
|
include Google::Apis::Core::Hashable
|
496
1030
|
|
@@ -504,6 +1038,12 @@ module Google
|
|
504
1038
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
|
505
1039
|
attr_accessor :layout
|
506
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
|
+
|
507
1047
|
def initialize(**args)
|
508
1048
|
update!(**args)
|
509
1049
|
end
|
@@ -512,6 +1052,49 @@ module Google
|
|
512
1052
|
def update!(**args)
|
513
1053
|
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
514
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)
|
515
1098
|
end
|
516
1099
|
end
|
517
1100
|
|
@@ -529,6 +1112,12 @@ module Google
|
|
529
1112
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
|
530
1113
|
attr_accessor :layout
|
531
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
|
+
|
532
1121
|
def initialize(**args)
|
533
1122
|
update!(**args)
|
534
1123
|
end
|
@@ -537,6 +1126,7 @@ module Google
|
|
537
1126
|
def update!(**args)
|
538
1127
|
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
539
1128
|
@layout = args[:layout] if args.key?(:layout)
|
1129
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
540
1130
|
end
|
541
1131
|
end
|
542
1132
|
|
@@ -652,6 +1242,12 @@ module Google
|
|
652
1242
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
|
653
1243
|
attr_accessor :layout
|
654
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
|
+
|
655
1251
|
def initialize(**args)
|
656
1252
|
update!(**args)
|
657
1253
|
end
|
@@ -661,6 +1257,7 @@ module Google
|
|
661
1257
|
@detected_break = args[:detected_break] if args.key?(:detected_break)
|
662
1258
|
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
663
1259
|
@layout = args[:layout] if args.key?(:layout)
|
1260
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
664
1261
|
end
|
665
1262
|
end
|
666
1263
|
|
@@ -683,25 +1280,167 @@ module Google
|
|
683
1280
|
end
|
684
1281
|
end
|
685
1282
|
|
686
|
-
# Detected non-text visual elements e.g. checkbox, signature etc. on the
|
687
|
-
# page.
|
1283
|
+
# Detected non-text visual elements e.g. checkbox, signature etc. on the page.
|
688
1284
|
class GoogleCloudDocumentaiV1beta1DocumentPageVisualElement
|
689
1285
|
include Google::Apis::Core::Hashable
|
690
1286
|
|
691
|
-
# A list of detected languages together with confidence.
|
692
|
-
# Corresponds to the JSON property `detectedLanguages`
|
693
|
-
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
|
694
|
-
attr_accessor :detected_languages
|
1287
|
+
# A list of detected languages together with confidence.
|
1288
|
+
# Corresponds to the JSON property `detectedLanguages`
|
1289
|
+
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
|
1290
|
+
attr_accessor :detected_languages
|
1291
|
+
|
1292
|
+
# Visual element describing a layout unit on a page.
|
1293
|
+
# Corresponds to the JSON property `layout`
|
1294
|
+
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
|
1295
|
+
attr_accessor :layout
|
1296
|
+
|
1297
|
+
# Type of the VisualElement.
|
1298
|
+
# Corresponds to the JSON property `type`
|
1299
|
+
# @return [String]
|
1300
|
+
attr_accessor :type
|
1301
|
+
|
1302
|
+
def initialize(**args)
|
1303
|
+
update!(**args)
|
1304
|
+
end
|
1305
|
+
|
1306
|
+
# Update properties of this object
|
1307
|
+
def update!(**args)
|
1308
|
+
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
1309
|
+
@layout = args[:layout] if args.key?(:layout)
|
1310
|
+
@type = args[:type] if args.key?(:type)
|
1311
|
+
end
|
1312
|
+
end
|
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
|
695
1433
|
|
696
|
-
#
|
697
|
-
# Corresponds to the JSON property `
|
698
|
-
# @return [
|
699
|
-
attr_accessor :
|
1434
|
+
# Human review state. e.g. `requested`, `succeeded`, `rejected`.
|
1435
|
+
# Corresponds to the JSON property `state`
|
1436
|
+
# @return [String]
|
1437
|
+
attr_accessor :state
|
700
1438
|
|
701
|
-
#
|
702
|
-
#
|
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`
|
703
1442
|
# @return [String]
|
704
|
-
attr_accessor :
|
1443
|
+
attr_accessor :state_message
|
705
1444
|
|
706
1445
|
def initialize(**args)
|
707
1446
|
update!(**args)
|
@@ -709,15 +1448,13 @@ module Google
|
|
709
1448
|
|
710
1449
|
# Update properties of this object
|
711
1450
|
def update!(**args)
|
712
|
-
@
|
713
|
-
@
|
714
|
-
@type = args[:type] if args.key?(:type)
|
1451
|
+
@state = args[:state] if args.key?(:state)
|
1452
|
+
@state_message = args[:state_message] if args.key?(:state_message)
|
715
1453
|
end
|
716
1454
|
end
|
717
1455
|
|
718
|
-
# For a large document, sharding may be performed to produce several
|
719
|
-
#
|
720
|
-
# shard it is.
|
1456
|
+
# For a large document, sharding may be performed to produce several document
|
1457
|
+
# shards. Each document shard contains this field to detail which shard it is.
|
721
1458
|
class GoogleCloudDocumentaiV1beta1DocumentShardInfo
|
722
1459
|
include Google::Apis::Core::Hashable
|
723
1460
|
|
@@ -731,8 +1468,8 @@ module Google
|
|
731
1468
|
# @return [Fixnum]
|
732
1469
|
attr_accessor :shard_index
|
733
1470
|
|
734
|
-
# The index of the first character in Document.text in the overall
|
735
|
-
#
|
1471
|
+
# The index of the first character in Document.text in the overall document
|
1472
|
+
# global text.
|
736
1473
|
# Corresponds to the JSON property `textOffset`
|
737
1474
|
# @return [Fixnum]
|
738
1475
|
attr_accessor :text_offset
|
@@ -749,227 +1486,105 @@ module Google
|
|
749
1486
|
end
|
750
1487
|
end
|
751
1488
|
|
752
|
-
# Annotation for common text style attributes. This adheres to CSS
|
753
|
-
#
|
1489
|
+
# Annotation for common text style attributes. This adheres to CSS conventions
|
1490
|
+
# as much as possible.
|
754
1491
|
class GoogleCloudDocumentaiV1beta1DocumentStyle
|
755
1492
|
include Google::Apis::Core::Hashable
|
756
1493
|
|
757
1494
|
# Represents a color in the RGBA color space. This representation is designed
|
758
1495
|
# for simplicity of conversion to/from color representations in various
|
759
|
-
# languages over compactness; for example, the fields of this representation
|
760
|
-
#
|
761
|
-
#
|
762
|
-
# method in iOS; and, with just a little work, it can be easily formatted into
|
763
|
-
#
|
764
|
-
#
|
765
|
-
#
|
766
|
-
#
|
767
|
-
#
|
768
|
-
#
|
769
|
-
#
|
770
|
-
#
|
771
|
-
#
|
772
|
-
#
|
773
|
-
#
|
774
|
-
#
|
775
|
-
# float
|
776
|
-
#
|
777
|
-
#
|
778
|
-
#
|
779
|
-
#
|
780
|
-
# protocolor
|
781
|
-
# protocolor
|
782
|
-
# alpha
|
783
|
-
# `
|
784
|
-
#
|
785
|
-
#
|
786
|
-
#
|
787
|
-
#
|
788
|
-
#
|
789
|
-
#
|
790
|
-
#
|
791
|
-
# .
|
792
|
-
# .
|
793
|
-
# .
|
794
|
-
#
|
795
|
-
#
|
796
|
-
#
|
797
|
-
#
|
798
|
-
#
|
799
|
-
#
|
800
|
-
# .
|
801
|
-
#
|
802
|
-
# `
|
803
|
-
# return resultBuilder.build();
|
804
|
-
# `
|
805
|
-
# // ...
|
806
|
-
# Example (iOS / Obj-C):
|
807
|
-
# // ...
|
808
|
-
# static UIColor* fromProto(Color* protocolor) `
|
809
|
-
# float red = [protocolor red];
|
810
|
-
# float green = [protocolor green];
|
811
|
-
# float blue = [protocolor blue];
|
812
|
-
# FloatValue* alpha_wrapper = [protocolor alpha];
|
813
|
-
# float alpha = 1.0;
|
814
|
-
# if (alpha_wrapper != nil) `
|
815
|
-
# alpha = [alpha_wrapper value];
|
816
|
-
# `
|
817
|
-
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
|
818
|
-
# `
|
819
|
-
# static Color* toProto(UIColor* color) `
|
820
|
-
# CGFloat red, green, blue, alpha;
|
821
|
-
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
|
822
|
-
# return nil;
|
823
|
-
# `
|
824
|
-
# Color* result = [[Color alloc] init];
|
825
|
-
# [result setRed:red];
|
826
|
-
# [result setGreen:green];
|
827
|
-
# [result setBlue:blue];
|
828
|
-
# if (alpha <= 0.9999) `
|
829
|
-
# [result setAlpha:floatWrapperWithValue(alpha)];
|
830
|
-
# `
|
831
|
-
# [result autorelease];
|
832
|
-
# return result;
|
833
|
-
# `
|
834
|
-
# // ...
|
835
|
-
# Example (JavaScript):
|
836
|
-
# // ...
|
837
|
-
# var protoToCssColor = function(rgb_color) `
|
838
|
-
# var redFrac = rgb_color.red || 0.0;
|
839
|
-
# var greenFrac = rgb_color.green || 0.0;
|
840
|
-
# var blueFrac = rgb_color.blue || 0.0;
|
841
|
-
# var red = Math.floor(redFrac * 255);
|
842
|
-
# var green = Math.floor(greenFrac * 255);
|
843
|
-
# var blue = Math.floor(blueFrac * 255);
|
844
|
-
# if (!('alpha' in rgb_color)) `
|
845
|
-
# return rgbToCssColor_(red, green, blue);
|
846
|
-
# `
|
847
|
-
# var alphaFrac = rgb_color.alpha.value || 0.0;
|
848
|
-
# var rgbParams = [red, green, blue].join(',');
|
849
|
-
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
|
850
|
-
# `;
|
851
|
-
# var rgbToCssColor_ = function(red, green, blue) `
|
852
|
-
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
|
853
|
-
# var hexString = rgbNumber.toString(16);
|
854
|
-
# var missingZeros = 6 - hexString.length;
|
855
|
-
# var resultBuilder = ['#'];
|
856
|
-
# for (var i = 0; i < missingZeros; i++) `
|
857
|
-
# resultBuilder.push('0');
|
858
|
-
# `
|
859
|
-
# resultBuilder.push(hexString);
|
860
|
-
# return resultBuilder.join('');
|
861
|
-
# `;
|
862
|
-
# // ...
|
1496
|
+
# languages over compactness; for example, the fields of this representation can
|
1497
|
+
# be trivially provided to the constructor of "java.awt.Color" in Java; it can
|
1498
|
+
# also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
1499
|
+
# method in iOS; and, with just a little work, it can be easily formatted into a
|
1500
|
+
# CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
|
1501
|
+
# information about the absolute color space that should be used to interpret
|
1502
|
+
# the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
|
1503
|
+
# applications SHOULD assume the sRGB color space. Note: when color equality
|
1504
|
+
# needs to be decided, implementations, unless documented otherwise, will treat
|
1505
|
+
# two colors to be equal if all their red, green, blue and alpha values each
|
1506
|
+
# differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
|
1507
|
+
# public static java.awt.Color fromProto(Color protocolor) ` float alpha =
|
1508
|
+
# protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
|
1509
|
+
# java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
|
1510
|
+
# ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
|
1511
|
+
# float) color.getRed(); float green = (float) color.getGreen(); float blue = (
|
1512
|
+
# float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
|
1513
|
+
# = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
|
1514
|
+
# .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
|
1515
|
+
# ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
|
1516
|
+
# denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
|
1517
|
+
# Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
|
1518
|
+
# protocolor red]; float green = [protocolor green]; float blue = [protocolor
|
1519
|
+
# blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
|
1520
|
+
# alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
|
1521
|
+
# colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
|
1522
|
+
# UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
|
1523
|
+
# green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
|
1524
|
+
# alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
|
1525
|
+
# blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
|
1526
|
+
# [result autorelease]; return result; ` // ... Example (JavaScript): // ...
|
1527
|
+
# var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
|
1528
|
+
# var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
|
1529
|
+
# var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
|
1530
|
+
# var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
|
1531
|
+
# rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
|
1532
|
+
# 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
|
1533
|
+
# ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
|
1534
|
+
# ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
|
1535
|
+
# hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
|
1536
|
+
# var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
|
1537
|
+
# resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
|
1538
|
+
# join(''); `; // ...
|
863
1539
|
# Corresponds to the JSON property `backgroundColor`
|
864
1540
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
|
865
1541
|
attr_accessor :background_color
|
866
1542
|
|
867
1543
|
# Represents a color in the RGBA color space. This representation is designed
|
868
1544
|
# for simplicity of conversion to/from color representations in various
|
869
|
-
# languages over compactness; for example, the fields of this representation
|
870
|
-
#
|
871
|
-
#
|
872
|
-
# method in iOS; and, with just a little work, it can be easily formatted into
|
873
|
-
#
|
874
|
-
#
|
875
|
-
#
|
876
|
-
#
|
877
|
-
#
|
878
|
-
#
|
879
|
-
#
|
880
|
-
#
|
881
|
-
#
|
882
|
-
#
|
883
|
-
#
|
884
|
-
#
|
885
|
-
# float
|
886
|
-
#
|
887
|
-
#
|
888
|
-
#
|
889
|
-
#
|
890
|
-
# protocolor
|
891
|
-
# protocolor
|
892
|
-
# alpha
|
893
|
-
# `
|
894
|
-
#
|
895
|
-
#
|
896
|
-
#
|
897
|
-
#
|
898
|
-
#
|
899
|
-
#
|
900
|
-
#
|
901
|
-
# .
|
902
|
-
# .
|
903
|
-
# .
|
904
|
-
#
|
905
|
-
#
|
906
|
-
#
|
907
|
-
#
|
908
|
-
#
|
909
|
-
#
|
910
|
-
# .
|
911
|
-
#
|
912
|
-
# `
|
913
|
-
# return resultBuilder.build();
|
914
|
-
# `
|
915
|
-
# // ...
|
916
|
-
# Example (iOS / Obj-C):
|
917
|
-
# // ...
|
918
|
-
# static UIColor* fromProto(Color* protocolor) `
|
919
|
-
# float red = [protocolor red];
|
920
|
-
# float green = [protocolor green];
|
921
|
-
# float blue = [protocolor blue];
|
922
|
-
# FloatValue* alpha_wrapper = [protocolor alpha];
|
923
|
-
# float alpha = 1.0;
|
924
|
-
# if (alpha_wrapper != nil) `
|
925
|
-
# alpha = [alpha_wrapper value];
|
926
|
-
# `
|
927
|
-
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
|
928
|
-
# `
|
929
|
-
# static Color* toProto(UIColor* color) `
|
930
|
-
# CGFloat red, green, blue, alpha;
|
931
|
-
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
|
932
|
-
# return nil;
|
933
|
-
# `
|
934
|
-
# Color* result = [[Color alloc] init];
|
935
|
-
# [result setRed:red];
|
936
|
-
# [result setGreen:green];
|
937
|
-
# [result setBlue:blue];
|
938
|
-
# if (alpha <= 0.9999) `
|
939
|
-
# [result setAlpha:floatWrapperWithValue(alpha)];
|
940
|
-
# `
|
941
|
-
# [result autorelease];
|
942
|
-
# return result;
|
943
|
-
# `
|
944
|
-
# // ...
|
945
|
-
# Example (JavaScript):
|
946
|
-
# // ...
|
947
|
-
# var protoToCssColor = function(rgb_color) `
|
948
|
-
# var redFrac = rgb_color.red || 0.0;
|
949
|
-
# var greenFrac = rgb_color.green || 0.0;
|
950
|
-
# var blueFrac = rgb_color.blue || 0.0;
|
951
|
-
# var red = Math.floor(redFrac * 255);
|
952
|
-
# var green = Math.floor(greenFrac * 255);
|
953
|
-
# var blue = Math.floor(blueFrac * 255);
|
954
|
-
# if (!('alpha' in rgb_color)) `
|
955
|
-
# return rgbToCssColor_(red, green, blue);
|
956
|
-
# `
|
957
|
-
# var alphaFrac = rgb_color.alpha.value || 0.0;
|
958
|
-
# var rgbParams = [red, green, blue].join(',');
|
959
|
-
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
|
960
|
-
# `;
|
961
|
-
# var rgbToCssColor_ = function(red, green, blue) `
|
962
|
-
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
|
963
|
-
# var hexString = rgbNumber.toString(16);
|
964
|
-
# var missingZeros = 6 - hexString.length;
|
965
|
-
# var resultBuilder = ['#'];
|
966
|
-
# for (var i = 0; i < missingZeros; i++) `
|
967
|
-
# resultBuilder.push('0');
|
968
|
-
# `
|
969
|
-
# resultBuilder.push(hexString);
|
970
|
-
# return resultBuilder.join('');
|
971
|
-
# `;
|
972
|
-
# // ...
|
1545
|
+
# languages over compactness; for example, the fields of this representation can
|
1546
|
+
# be trivially provided to the constructor of "java.awt.Color" in Java; it can
|
1547
|
+
# also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
1548
|
+
# method in iOS; and, with just a little work, it can be easily formatted into a
|
1549
|
+
# CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
|
1550
|
+
# information about the absolute color space that should be used to interpret
|
1551
|
+
# the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
|
1552
|
+
# applications SHOULD assume the sRGB color space. Note: when color equality
|
1553
|
+
# needs to be decided, implementations, unless documented otherwise, will treat
|
1554
|
+
# two colors to be equal if all their red, green, blue and alpha values each
|
1555
|
+
# differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
|
1556
|
+
# public static java.awt.Color fromProto(Color protocolor) ` float alpha =
|
1557
|
+
# protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
|
1558
|
+
# java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
|
1559
|
+
# ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
|
1560
|
+
# float) color.getRed(); float green = (float) color.getGreen(); float blue = (
|
1561
|
+
# float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
|
1562
|
+
# = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
|
1563
|
+
# .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
|
1564
|
+
# ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
|
1565
|
+
# denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
|
1566
|
+
# Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
|
1567
|
+
# protocolor red]; float green = [protocolor green]; float blue = [protocolor
|
1568
|
+
# blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
|
1569
|
+
# alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
|
1570
|
+
# colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
|
1571
|
+
# UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
|
1572
|
+
# green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
|
1573
|
+
# alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
|
1574
|
+
# blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
|
1575
|
+
# [result autorelease]; return result; ` // ... Example (JavaScript): // ...
|
1576
|
+
# var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
|
1577
|
+
# var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
|
1578
|
+
# var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
|
1579
|
+
# var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
|
1580
|
+
# rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
|
1581
|
+
# 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
|
1582
|
+
# ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
|
1583
|
+
# ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
|
1584
|
+
# hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
|
1585
|
+
# var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
|
1586
|
+
# resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
|
1587
|
+
# join(''); `; // ...
|
973
1588
|
# Corresponds to the JSON property `color`
|
974
1589
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
|
975
1590
|
attr_accessor :color
|
@@ -979,8 +1594,8 @@ module Google
|
|
979
1594
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyleFontSize]
|
980
1595
|
attr_accessor :font_size
|
981
1596
|
|
982
|
-
# Font weight. Possible values are normal, bold, bolder, and lighter.
|
983
|
-
#
|
1597
|
+
# Font weight. Possible values are normal, bold, bolder, and lighter. https://
|
1598
|
+
# www.w3schools.com/cssref/pr_font_weight.asp
|
984
1599
|
# Corresponds to the JSON property `fontWeight`
|
985
1600
|
# @return [String]
|
986
1601
|
attr_accessor :font_weight
|
@@ -990,15 +1605,14 @@ module Google
|
|
990
1605
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
|
991
1606
|
attr_accessor :text_anchor
|
992
1607
|
|
993
|
-
# Text decoration. Follows CSS standard.
|
994
|
-
#
|
995
|
-
# https://www.w3schools.com/cssref/pr_text_text-decoration.asp
|
1608
|
+
# Text decoration. Follows CSS standard. https://www.w3schools.com/cssref/
|
1609
|
+
# pr_text_text-decoration.asp
|
996
1610
|
# Corresponds to the JSON property `textDecoration`
|
997
1611
|
# @return [String]
|
998
1612
|
attr_accessor :text_decoration
|
999
1613
|
|
1000
|
-
# Text style. Possible values are normal, italic, and oblique.
|
1001
|
-
#
|
1614
|
+
# Text style. Possible values are normal, italic, and oblique. https://www.
|
1615
|
+
# w3schools.com/cssref/pr_font_font-style.asp
|
1002
1616
|
# Corresponds to the JSON property `textStyle`
|
1003
1617
|
# @return [String]
|
1004
1618
|
attr_accessor :text_style
|
@@ -1048,6 +1662,12 @@ module Google
|
|
1048
1662
|
class GoogleCloudDocumentaiV1beta1DocumentTextAnchor
|
1049
1663
|
include Google::Apis::Core::Hashable
|
1050
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
|
+
|
1051
1671
|
# The text segments from the Document.text.
|
1052
1672
|
# Corresponds to the JSON property `textSegments`
|
1053
1673
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment>]
|
@@ -1059,18 +1679,18 @@ module Google
|
|
1059
1679
|
|
1060
1680
|
# Update properties of this object
|
1061
1681
|
def update!(**args)
|
1682
|
+
@content = args[:content] if args.key?(:content)
|
1062
1683
|
@text_segments = args[:text_segments] if args.key?(:text_segments)
|
1063
1684
|
end
|
1064
1685
|
end
|
1065
1686
|
|
1066
|
-
# A text segment in the Document.text. The indices may be out of bounds
|
1067
|
-
#
|
1068
|
-
#
|
1687
|
+
# A text segment in the Document.text. The indices may be out of bounds which
|
1688
|
+
# indicate that the text extends into another document shard for large sharded
|
1689
|
+
# documents. See ShardInfo.text_offset
|
1069
1690
|
class GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment
|
1070
1691
|
include Google::Apis::Core::Hashable
|
1071
1692
|
|
1072
|
-
# TextSegment half open end UTF-8 char index in the
|
1073
|
-
# Document.text.
|
1693
|
+
# TextSegment half open end UTF-8 char index in the Document.text.
|
1074
1694
|
# Corresponds to the JSON property `endIndex`
|
1075
1695
|
# @return [Fixnum]
|
1076
1696
|
attr_accessor :end_index
|
@@ -1091,17 +1711,52 @@ module Google
|
|
1091
1711
|
end
|
1092
1712
|
end
|
1093
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
|
+
|
1094
1745
|
# A translation of the text segment.
|
1095
1746
|
class GoogleCloudDocumentaiV1beta1DocumentTranslation
|
1096
1747
|
include Google::Apis::Core::Hashable
|
1097
1748
|
|
1098
|
-
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
1099
|
-
#
|
1100
|
-
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
1749
|
+
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
|
1750
|
+
# see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
1101
1751
|
# Corresponds to the JSON property `languageCode`
|
1102
1752
|
# @return [String]
|
1103
1753
|
attr_accessor :language_code
|
1104
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
|
+
|
1105
1760
|
# Text reference indexing into the Document.text.
|
1106
1761
|
# Corresponds to the JSON property `textAnchor`
|
1107
1762
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextAnchor]
|
@@ -1119,6 +1774,7 @@ module Google
|
|
1119
1774
|
# Update properties of this object
|
1120
1775
|
def update!(**args)
|
1121
1776
|
@language_code = args[:language_code] if args.key?(:language_code)
|
1777
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
1122
1778
|
@text_anchor = args[:text_anchor] if args.key?(:text_anchor)
|
1123
1779
|
@translated_text = args[:translated_text] if args.key?(:translated_text)
|
1124
1780
|
end
|
@@ -1172,11 +1828,9 @@ module Google
|
|
1172
1828
|
attr_accessor :gcs_source
|
1173
1829
|
|
1174
1830
|
# Required. Mimetype of the input. Current supported mimetypes are application/
|
1175
|
-
# pdf,
|
1176
|
-
#
|
1177
|
-
#
|
1178
|
-
# ProcessDocumentRequest.automl_params field set. The JSON file needs to
|
1179
|
-
# be in Document format.
|
1831
|
+
# pdf, image/tiff, and image/gif. In addition, application/json type is
|
1832
|
+
# supported for requests with ProcessDocumentRequest.automl_params field set.
|
1833
|
+
# The JSON file needs to be in Document format.
|
1180
1834
|
# Corresponds to the JSON property `mimeType`
|
1181
1835
|
# @return [String]
|
1182
1836
|
attr_accessor :mime_type
|
@@ -1192,9 +1846,8 @@ module Google
|
|
1192
1846
|
end
|
1193
1847
|
end
|
1194
1848
|
|
1195
|
-
# A vertex represents a 2D point in the image.
|
1196
|
-
#
|
1197
|
-
# and range from 0 to 1.
|
1849
|
+
# A vertex represents a 2D point in the image. NOTE: the normalized vertex
|
1850
|
+
# coordinates are relative to the original image and range from 0 to 1.
|
1198
1851
|
class GoogleCloudDocumentaiV1beta1NormalizedVertex
|
1199
1852
|
include Google::Apis::Core::Hashable
|
1200
1853
|
|
@@ -1266,18 +1919,14 @@ module Google
|
|
1266
1919
|
attr_accessor :gcs_destination
|
1267
1920
|
|
1268
1921
|
# The max number of pages to include into each output Document shard JSON on
|
1269
|
-
# Google Cloud Storage.
|
1270
|
-
#
|
1271
|
-
#
|
1272
|
-
#
|
1273
|
-
#
|
1274
|
-
#
|
1275
|
-
#
|
1276
|
-
#
|
1277
|
-
# <prefix>pages-001-to-050.json
|
1278
|
-
# <prefix>pages-051-to-100.json
|
1279
|
-
# <prefix>pages-101-to-150.json
|
1280
|
-
# <prefix>pages-151-to-157.json
|
1922
|
+
# Google Cloud Storage. The valid range is [1, 100]. If not specified, the
|
1923
|
+
# default value is 20. For example, for one pdf file with 100 pages, 100 parsed
|
1924
|
+
# pages will be produced. If `pages_per_shard` = 20, then 5 Document shard JSON
|
1925
|
+
# files each containing 20 parsed pages will be written under the prefix
|
1926
|
+
# OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where x and y
|
1927
|
+
# are 1-indexed page numbers. Example GCS outputs with 157 pages and
|
1928
|
+
# pages_per_shard = 50: pages-001-to-050.json pages-051-to-100.json pages-101-to-
|
1929
|
+
# 150.json pages-151-to-157.json
|
1281
1930
|
# Corresponds to the JSON property `pagesPerShard`
|
1282
1931
|
# @return [Fixnum]
|
1283
1932
|
attr_accessor :pages_per_shard
|
@@ -1318,8 +1967,8 @@ module Google
|
|
1318
1967
|
end
|
1319
1968
|
end
|
1320
1969
|
|
1321
|
-
# A vertex represents a 2D point in the image.
|
1322
|
-
#
|
1970
|
+
# A vertex represents a 2D point in the image. NOTE: the vertex coordinates are
|
1971
|
+
# in the same scale as the original image.
|
1323
1972
|
class GoogleCloudDocumentaiV1beta1Vertex
|
1324
1973
|
include Google::Apis::Core::Hashable
|
1325
1974
|
|
@@ -1348,8 +1997,8 @@ module Google
|
|
1348
1997
|
class GoogleCloudDocumentaiV1beta2AutoMlParams
|
1349
1998
|
include Google::Apis::Core::Hashable
|
1350
1999
|
|
1351
|
-
# Resource name of the AutoML model.
|
1352
|
-
#
|
2000
|
+
# Resource name of the AutoML model. Format: `projects/`project-id`/locations/`
|
2001
|
+
# location-id`/models/`model-id``.
|
1353
2002
|
# Corresponds to the JSON property `model`
|
1354
2003
|
# @return [String]
|
1355
2004
|
attr_accessor :model
|
@@ -1364,8 +2013,8 @@ module Google
|
|
1364
2013
|
end
|
1365
2014
|
end
|
1366
2015
|
|
1367
|
-
# Request to batch process documents as an asynchronous operation. The output
|
1368
|
-
#
|
2016
|
+
# Request to batch process documents as an asynchronous operation. The output is
|
2017
|
+
# written to Cloud Storage as JSON in the [Document] format.
|
1369
2018
|
class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsRequest
|
1370
2019
|
include Google::Apis::Core::Hashable
|
1371
2020
|
|
@@ -1384,8 +2033,8 @@ module Google
|
|
1384
2033
|
end
|
1385
2034
|
end
|
1386
2035
|
|
1387
|
-
# Response to an batch document processing request. This is returned in
|
1388
|
-
#
|
2036
|
+
# Response to an batch document processing request. This is returned in the LRO
|
2037
|
+
# Operation after the operation is complete.
|
1389
2038
|
class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
|
1390
2039
|
include Google::Apis::Core::Hashable
|
1391
2040
|
|
@@ -1430,23 +2079,22 @@ module Google
|
|
1430
2079
|
end
|
1431
2080
|
|
1432
2081
|
# Document represents the canonical document resource in Document Understanding
|
1433
|
-
# AI.
|
1434
|
-
#
|
1435
|
-
#
|
1436
|
-
# optimize for quality.
|
2082
|
+
# AI. It is an interchange format that provides insights into documents and
|
2083
|
+
# allows for collaboration between users and Document Understanding AI to
|
2084
|
+
# iterate and optimize for quality.
|
1437
2085
|
class GoogleCloudDocumentaiV1beta2Document
|
1438
2086
|
include Google::Apis::Core::Hashable
|
1439
2087
|
|
1440
|
-
# Inline document content, represented as a stream of bytes.
|
1441
|
-
#
|
1442
|
-
#
|
2088
|
+
# Inline document content, represented as a stream of bytes. Note: As with all `
|
2089
|
+
# bytes` fields, protobuffers use a pure binary representation, whereas JSON
|
2090
|
+
# representations use base64.
|
1443
2091
|
# Corresponds to the JSON property `content`
|
1444
2092
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1445
2093
|
# @return [String]
|
1446
2094
|
attr_accessor :content
|
1447
2095
|
|
1448
|
-
# A list of entities detected on Document.text. For document shards,
|
1449
|
-
#
|
2096
|
+
# A list of entities detected on Document.text. For document shards, entities in
|
2097
|
+
# this list may cross shard boundaries.
|
1450
2098
|
# Corresponds to the JSON property `entities`
|
1451
2099
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentEntity>]
|
1452
2100
|
attr_accessor :entities
|
@@ -1456,12 +2104,12 @@ module Google
|
|
1456
2104
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentEntityRelation>]
|
1457
2105
|
attr_accessor :entity_relations
|
1458
2106
|
|
1459
|
-
# The `Status` type defines a logical error model that is suitable for
|
1460
|
-
#
|
1461
|
-
#
|
1462
|
-
#
|
1463
|
-
#
|
1464
|
-
#
|
2107
|
+
# The `Status` type defines a logical error model that is suitable for different
|
2108
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
2109
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
2110
|
+
# data: error code, error message, and error details. You can find out more
|
2111
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
2112
|
+
# //cloud.google.com/apis/design/errors).
|
1465
2113
|
# Corresponds to the JSON property `error`
|
1466
2114
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleRpcStatus]
|
1467
2115
|
attr_accessor :error
|
@@ -1472,8 +2120,8 @@ module Google
|
|
1472
2120
|
attr_accessor :labels
|
1473
2121
|
|
1474
2122
|
# An IANA published MIME type (also referred to as media type). For more
|
1475
|
-
# information, see
|
1476
|
-
#
|
2123
|
+
# information, see https://www.iana.org/assignments/media-types/media-types.
|
2124
|
+
# xhtml.
|
1477
2125
|
# Corresponds to the JSON property `mimeType`
|
1478
2126
|
# @return [String]
|
1479
2127
|
attr_accessor :mime_type
|
@@ -1483,9 +2131,13 @@ module Google
|
|
1483
2131
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPage>]
|
1484
2132
|
attr_accessor :pages
|
1485
2133
|
|
1486
|
-
#
|
1487
|
-
#
|
1488
|
-
#
|
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
|
+
|
2139
|
+
# For a large document, sharding may be performed to produce several document
|
2140
|
+
# shards. Each document shard contains this field to detail which shard it is.
|
1489
2141
|
# Corresponds to the JSON property `shardInfo`
|
1490
2142
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentShardInfo]
|
1491
2143
|
attr_accessor :shard_info
|
@@ -1495,21 +2147,27 @@ module Google
|
|
1495
2147
|
# @return [String]
|
1496
2148
|
attr_accessor :text
|
1497
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
|
+
|
1498
2157
|
# Styles for the Document.text.
|
1499
2158
|
# Corresponds to the JSON property `textStyles`
|
1500
2159
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyle>]
|
1501
2160
|
attr_accessor :text_styles
|
1502
2161
|
|
1503
|
-
# A list of translations on Document.text. For document shards,
|
1504
|
-
#
|
2162
|
+
# A list of translations on Document.text. For document shards, translations in
|
2163
|
+
# this list may cross shard boundaries.
|
1505
2164
|
# Corresponds to the JSON property `translations`
|
1506
2165
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTranslation>]
|
1507
2166
|
attr_accessor :translations
|
1508
2167
|
|
1509
|
-
# Currently supports Google Cloud Storage URI of the form
|
1510
|
-
#
|
1511
|
-
#
|
1512
|
-
# URIs](https://cloud.google.com/storage/docs/reference-uris) for more
|
2168
|
+
# Currently supports Google Cloud Storage URI of the form `gs://bucket_name/
|
2169
|
+
# object_name`. Object versioning is not supported. See [Google Cloud Storage
|
2170
|
+
# Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more
|
1513
2171
|
# info.
|
1514
2172
|
# Corresponds to the JSON property `uri`
|
1515
2173
|
# @return [String]
|
@@ -1528,8 +2186,10 @@ module Google
|
|
1528
2186
|
@labels = args[:labels] if args.key?(:labels)
|
1529
2187
|
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
1530
2188
|
@pages = args[:pages] if args.key?(:pages)
|
2189
|
+
@revisions = args[:revisions] if args.key?(:revisions)
|
1531
2190
|
@shard_info = args[:shard_info] if args.key?(:shard_info)
|
1532
2191
|
@text = args[:text] if args.key?(:text)
|
2192
|
+
@text_changes = args[:text_changes] if args.key?(:text_changes)
|
1533
2193
|
@text_styles = args[:text_styles] if args.key?(:text_styles)
|
1534
2194
|
@translations = args[:translations] if args.key?(:translations)
|
1535
2195
|
@uri = args[:uri] if args.key?(:uri)
|
@@ -1546,7 +2206,13 @@ module Google
|
|
1546
2206
|
# @return [Float]
|
1547
2207
|
attr_accessor :confidence
|
1548
2208
|
|
1549
|
-
#
|
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
|
+
|
2215
|
+
# Deprecated. Use `id` field instead.
|
1550
2216
|
# Corresponds to the JSON property `mentionId`
|
1551
2217
|
# @return [String]
|
1552
2218
|
attr_accessor :mention_id
|
@@ -1556,6 +2222,36 @@ module Google
|
|
1556
2222
|
# @return [String]
|
1557
2223
|
attr_accessor :mention_text
|
1558
2224
|
|
2225
|
+
# Parsed and normalized entity value.
|
2226
|
+
# Corresponds to the JSON property `normalizedValue`
|
2227
|
+
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue]
|
2228
|
+
attr_accessor :normalized_value
|
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
|
+
|
2249
|
+
# Optional. Whether the entity will be redacted for de-identification purposes.
|
2250
|
+
# Corresponds to the JSON property `redacted`
|
2251
|
+
# @return [Boolean]
|
2252
|
+
attr_accessor :redacted
|
2253
|
+
alias_method :redacted?, :redacted
|
2254
|
+
|
1559
2255
|
# Text reference indexing into the Document.text.
|
1560
2256
|
# Corresponds to the JSON property `textAnchor`
|
1561
2257
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor]
|
@@ -1573,13 +2269,91 @@ module Google
|
|
1573
2269
|
# Update properties of this object
|
1574
2270
|
def update!(**args)
|
1575
2271
|
@confidence = args[:confidence] if args.key?(:confidence)
|
2272
|
+
@id = args[:id] if args.key?(:id)
|
1576
2273
|
@mention_id = args[:mention_id] if args.key?(:mention_id)
|
1577
2274
|
@mention_text = args[:mention_text] if args.key?(:mention_text)
|
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)
|
2279
|
+
@redacted = args[:redacted] if args.key?(:redacted)
|
1578
2280
|
@text_anchor = args[:text_anchor] if args.key?(:text_anchor)
|
1579
2281
|
@type = args[:type] if args.key?(:type)
|
1580
2282
|
end
|
1581
2283
|
end
|
1582
2284
|
|
2285
|
+
# Parsed and normalized entity value.
|
2286
|
+
class GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue
|
2287
|
+
include Google::Apis::Core::Hashable
|
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
|
+
|
2303
|
+
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
|
2304
|
+
# and time zone are either specified elsewhere or are not significant. The date
|
2305
|
+
# is relative to the Proleptic Gregorian Calendar. This can represent: * A full
|
2306
|
+
# date, with non-zero year, month and day values * A month and day value, with a
|
2307
|
+
# zero year, e.g. an anniversary * A year on its own, with zero month and day
|
2308
|
+
# values * A year and month value, with a zero day, e.g. a credit card
|
2309
|
+
# expiration date Related types are google.type.TimeOfDay and `google.protobuf.
|
2310
|
+
# Timestamp`.
|
2311
|
+
# Corresponds to the JSON property `dateValue`
|
2312
|
+
# @return [Google::Apis::DocumentaiV1beta2::GoogleTypeDate]
|
2313
|
+
attr_accessor :date_value
|
2314
|
+
|
2315
|
+
# Represents civil time in one of a few possible ways: * When utc_offset is set
|
2316
|
+
# and time_zone is unset: a civil time on a calendar day with a particular
|
2317
|
+
# offset from UTC. * When time_zone is set and utc_offset is unset: a civil time
|
2318
|
+
# on a calendar day in a particular time zone. * When neither time_zone nor
|
2319
|
+
# utc_offset is set: a civil time on a calendar day in local time. The date is
|
2320
|
+
# relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is
|
2321
|
+
# considered not to have a specific year. month and day must have valid, non-
|
2322
|
+
# zero values. This type is more flexible than some applications may want. Make
|
2323
|
+
# sure to document and validate your application's limitations.
|
2324
|
+
# Corresponds to the JSON property `datetimeValue`
|
2325
|
+
# @return [Google::Apis::DocumentaiV1beta2::GoogleTypeDateTime]
|
2326
|
+
attr_accessor :datetime_value
|
2327
|
+
|
2328
|
+
# Represents an amount of money with its currency type.
|
2329
|
+
# Corresponds to the JSON property `moneyValue`
|
2330
|
+
# @return [Google::Apis::DocumentaiV1beta2::GoogleTypeMoney]
|
2331
|
+
attr_accessor :money_value
|
2332
|
+
|
2333
|
+
# Required. Normalized entity value stored as a string. This field is populated
|
2334
|
+
# for supported document type (e.g. Invoice). For some entity types, one of
|
2335
|
+
# respective 'structured_value' fields may also be populated. - Money/Currency
|
2336
|
+
# type (`money_value`) is in the ISO 4217 text format. - Date type (`date_value`)
|
2337
|
+
# is in the ISO 8601 text format. - Datetime type (`datetime_value`) is in the
|
2338
|
+
# ISO 8601 text format.
|
2339
|
+
# Corresponds to the JSON property `text`
|
2340
|
+
# @return [String]
|
2341
|
+
attr_accessor :text
|
2342
|
+
|
2343
|
+
def initialize(**args)
|
2344
|
+
update!(**args)
|
2345
|
+
end
|
2346
|
+
|
2347
|
+
# Update properties of this object
|
2348
|
+
def update!(**args)
|
2349
|
+
@address_value = args[:address_value] if args.key?(:address_value)
|
2350
|
+
@date_value = args[:date_value] if args.key?(:date_value)
|
2351
|
+
@datetime_value = args[:datetime_value] if args.key?(:datetime_value)
|
2352
|
+
@money_value = args[:money_value] if args.key?(:money_value)
|
2353
|
+
@text = args[:text] if args.key?(:text)
|
2354
|
+
end
|
2355
|
+
end
|
2356
|
+
|
1583
2357
|
# Relationship between Entities.
|
1584
2358
|
class GoogleCloudDocumentaiV1beta2DocumentEntityRelation
|
1585
2359
|
include Google::Apis::Core::Hashable
|
@@ -1611,17 +2385,16 @@ module Google
|
|
1611
2385
|
end
|
1612
2386
|
end
|
1613
2387
|
|
1614
|
-
# Label attaches schema information and/or other metadata to segments within
|
1615
|
-
#
|
1616
|
-
# different
|
1617
|
-
#
|
2388
|
+
# Label attaches schema information and/or other metadata to segments within a
|
2389
|
+
# Document. Multiple Labels on a single field can denote either different labels,
|
2390
|
+
# different instances of the same label created at different times, or some
|
2391
|
+
# combination of both.
|
1618
2392
|
class GoogleCloudDocumentaiV1beta2DocumentLabel
|
1619
2393
|
include Google::Apis::Core::Hashable
|
1620
2394
|
|
1621
|
-
# Label is generated AutoML model. This field stores the full resource
|
1622
|
-
#
|
1623
|
-
#
|
1624
|
-
# `projects/`project-id`/locations/`location-id`/models/`model-id``
|
2395
|
+
# Label is generated AutoML model. This field stores the full resource name of
|
2396
|
+
# the AutoML model. Format: `projects/`project-id`/locations/`location-id`/
|
2397
|
+
# models/`model-id``
|
1625
2398
|
# Corresponds to the JSON property `automlModel`
|
1626
2399
|
# @return [String]
|
1627
2400
|
attr_accessor :automl_model
|
@@ -1631,9 +2404,8 @@ module Google
|
|
1631
2404
|
# @return [Float]
|
1632
2405
|
attr_accessor :confidence
|
1633
2406
|
|
1634
|
-
# Name of the label.
|
1635
|
-
#
|
1636
|
-
# field represents the name of the category.
|
2407
|
+
# Name of the label. When the label is generated from AutoML Text Classification
|
2408
|
+
# model, this field represents the name of the category.
|
1637
2409
|
# Corresponds to the JSON property `name`
|
1638
2410
|
# @return [String]
|
1639
2411
|
attr_accessor :name
|
@@ -1654,9 +2426,9 @@ module Google
|
|
1654
2426
|
class GoogleCloudDocumentaiV1beta2DocumentPage
|
1655
2427
|
include Google::Apis::Core::Hashable
|
1656
2428
|
|
1657
|
-
# A list of visually detected text blocks on the page.
|
1658
|
-
#
|
1659
|
-
#
|
2429
|
+
# A list of visually detected text blocks on the page. A block has a set of
|
2430
|
+
# lines (collected into paragraphs) that have a common line-spacing and
|
2431
|
+
# orientation.
|
1660
2432
|
# Corresponds to the JSON property `blocks`
|
1661
2433
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageBlock>]
|
1662
2434
|
attr_accessor :blocks
|
@@ -1676,26 +2448,30 @@ module Google
|
|
1676
2448
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageFormField>]
|
1677
2449
|
attr_accessor :form_fields
|
1678
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
|
+
|
1679
2456
|
# Visual element describing a layout unit on a page.
|
1680
2457
|
# Corresponds to the JSON property `layout`
|
1681
2458
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
|
1682
2459
|
attr_accessor :layout
|
1683
2460
|
|
1684
|
-
# A list of visually detected text lines on the page.
|
1685
|
-
#
|
2461
|
+
# A list of visually detected text lines on the page. A collection of tokens
|
2462
|
+
# that a human would perceive as a line.
|
1686
2463
|
# Corresponds to the JSON property `lines`
|
1687
2464
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLine>]
|
1688
2465
|
attr_accessor :lines
|
1689
2466
|
|
1690
|
-
# 1-based index for current Page in a parent Document.
|
1691
|
-
#
|
1692
|
-
# processing.
|
2467
|
+
# 1-based index for current Page in a parent Document. Useful when a page is
|
2468
|
+
# taken out of a Document for individual processing.
|
1693
2469
|
# Corresponds to the JSON property `pageNumber`
|
1694
2470
|
# @return [Fixnum]
|
1695
2471
|
attr_accessor :page_number
|
1696
2472
|
|
1697
|
-
# A list of visually detected text paragraphs on the page.
|
1698
|
-
#
|
2473
|
+
# A list of visually detected text paragraphs on the page. A collection of lines
|
2474
|
+
# that a human would perceive as a paragraph.
|
1699
2475
|
# Corresponds to the JSON property `paragraphs`
|
1700
2476
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageParagraph>]
|
1701
2477
|
attr_accessor :paragraphs
|
@@ -1710,8 +2486,14 @@ module Google
|
|
1710
2486
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageToken>]
|
1711
2487
|
attr_accessor :tokens
|
1712
2488
|
|
1713
|
-
#
|
1714
|
-
#
|
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
|
+
|
2495
|
+
# A list of detected non-text visual elements e.g. checkbox, signature etc. on
|
2496
|
+
# the page.
|
1715
2497
|
# Corresponds to the JSON property `visualElements`
|
1716
2498
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageVisualElement>]
|
1717
2499
|
attr_accessor :visual_elements
|
@@ -1726,18 +2508,78 @@ module Google
|
|
1726
2508
|
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
1727
2509
|
@dimension = args[:dimension] if args.key?(:dimension)
|
1728
2510
|
@form_fields = args[:form_fields] if args.key?(:form_fields)
|
2511
|
+
@image = args[:image] if args.key?(:image)
|
1729
2512
|
@layout = args[:layout] if args.key?(:layout)
|
1730
2513
|
@lines = args[:lines] if args.key?(:lines)
|
1731
2514
|
@page_number = args[:page_number] if args.key?(:page_number)
|
1732
2515
|
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
1733
2516
|
@tables = args[:tables] if args.key?(:tables)
|
1734
2517
|
@tokens = args[:tokens] if args.key?(:tokens)
|
2518
|
+
@transforms = args[:transforms] if args.key?(:transforms)
|
1735
2519
|
@visual_elements = args[:visual_elements] if args.key?(:visual_elements)
|
1736
2520
|
end
|
1737
2521
|
end
|
1738
2522
|
|
1739
|
-
#
|
1740
|
-
#
|
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
|
2527
|
+
include Google::Apis::Core::Hashable
|
2528
|
+
|
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.
|
1741
2583
|
class GoogleCloudDocumentaiV1beta2DocumentPageBlock
|
1742
2584
|
include Google::Apis::Core::Hashable
|
1743
2585
|
|
@@ -1751,6 +2593,12 @@ module Google
|
|
1751
2593
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
|
1752
2594
|
attr_accessor :layout
|
1753
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
|
+
|
1754
2602
|
def initialize(**args)
|
1755
2603
|
update!(**args)
|
1756
2604
|
end
|
@@ -1759,6 +2607,7 @@ module Google
|
|
1759
2607
|
def update!(**args)
|
1760
2608
|
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
1761
2609
|
@layout = args[:layout] if args.key?(:layout)
|
2610
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
1762
2611
|
end
|
1763
2612
|
end
|
1764
2613
|
|
@@ -1771,9 +2620,8 @@ module Google
|
|
1771
2620
|
# @return [Float]
|
1772
2621
|
attr_accessor :confidence
|
1773
2622
|
|
1774
|
-
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
1775
|
-
#
|
1776
|
-
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
2623
|
+
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
|
2624
|
+
# see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
1777
2625
|
# Corresponds to the JSON property `languageCode`
|
1778
2626
|
# @return [String]
|
1779
2627
|
attr_accessor :language_code
|
@@ -1844,11 +2692,9 @@ module Google
|
|
1844
2692
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
|
1845
2693
|
attr_accessor :value_detected_languages
|
1846
2694
|
|
1847
|
-
# If the value is non-textual, this field represents the type. Current
|
1848
|
-
#
|
1849
|
-
# -
|
1850
|
-
# - "unfilled_checkbox"
|
1851
|
-
# - "filled_checkbox"
|
2695
|
+
# If the value is non-textual, this field represents the type. Current valid
|
2696
|
+
# values are: - blank (this indicates the field_value is normal text) - "
|
2697
|
+
# unfilled_checkbox" - "filled_checkbox"
|
1852
2698
|
# Corresponds to the JSON property `valueType`
|
1853
2699
|
# @return [String]
|
1854
2700
|
attr_accessor :value_type
|
@@ -1867,6 +2713,44 @@ module Google
|
|
1867
2713
|
end
|
1868
2714
|
end
|
1869
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
|
+
|
1870
2754
|
# Visual element describing a layout unit on a page.
|
1871
2755
|
class GoogleCloudDocumentaiV1beta2DocumentPageLayout
|
1872
2756
|
include Google::Apis::Core::Hashable
|
@@ -1876,9 +2760,9 @@ module Google
|
|
1876
2760
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BoundingPoly]
|
1877
2761
|
attr_accessor :bounding_poly
|
1878
2762
|
|
1879
|
-
# Confidence of the current Layout within context of the object this
|
1880
|
-
#
|
1881
|
-
#
|
2763
|
+
# Confidence of the current Layout within context of the object this layout is
|
2764
|
+
# for. e.g. confidence can be for a single token, a table, a visual element, etc.
|
2765
|
+
# depending on context. Range [0, 1].
|
1882
2766
|
# Corresponds to the JSON property `confidence`
|
1883
2767
|
# @return [Float]
|
1884
2768
|
attr_accessor :confidence
|
@@ -1906,8 +2790,8 @@ module Google
|
|
1906
2790
|
end
|
1907
2791
|
end
|
1908
2792
|
|
1909
|
-
# A collection of tokens that a human would perceive as a line.
|
1910
|
-
#
|
2793
|
+
# A collection of tokens that a human would perceive as a line. Does not cross
|
2794
|
+
# column boundaries, can be horizontal, vertical, etc.
|
1911
2795
|
class GoogleCloudDocumentaiV1beta2DocumentPageLine
|
1912
2796
|
include Google::Apis::Core::Hashable
|
1913
2797
|
|
@@ -1921,6 +2805,12 @@ module Google
|
|
1921
2805
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
|
1922
2806
|
attr_accessor :layout
|
1923
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
|
+
|
1924
2814
|
def initialize(**args)
|
1925
2815
|
update!(**args)
|
1926
2816
|
end
|
@@ -1929,6 +2819,49 @@ module Google
|
|
1929
2819
|
def update!(**args)
|
1930
2820
|
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
1931
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)
|
1932
2865
|
end
|
1933
2866
|
end
|
1934
2867
|
|
@@ -1946,6 +2879,12 @@ module Google
|
|
1946
2879
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
|
1947
2880
|
attr_accessor :layout
|
1948
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
|
+
|
1949
2888
|
def initialize(**args)
|
1950
2889
|
update!(**args)
|
1951
2890
|
end
|
@@ -1954,6 +2893,7 @@ module Google
|
|
1954
2893
|
def update!(**args)
|
1955
2894
|
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
1956
2895
|
@layout = args[:layout] if args.key?(:layout)
|
2896
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
1957
2897
|
end
|
1958
2898
|
end
|
1959
2899
|
|
@@ -2069,6 +3009,12 @@ module Google
|
|
2069
3009
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
|
2070
3010
|
attr_accessor :layout
|
2071
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
|
+
|
2072
3018
|
def initialize(**args)
|
2073
3019
|
update!(**args)
|
2074
3020
|
end
|
@@ -2078,6 +3024,7 @@ module Google
|
|
2078
3024
|
@detected_break = args[:detected_break] if args.key?(:detected_break)
|
2079
3025
|
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
2080
3026
|
@layout = args[:layout] if args.key?(:layout)
|
3027
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
2081
3028
|
end
|
2082
3029
|
end
|
2083
3030
|
|
@@ -2100,8 +3047,7 @@ module Google
|
|
2100
3047
|
end
|
2101
3048
|
end
|
2102
3049
|
|
2103
|
-
# Detected non-text visual elements e.g. checkbox, signature etc. on the
|
2104
|
-
# page.
|
3050
|
+
# Detected non-text visual elements e.g. checkbox, signature etc. on the page.
|
2105
3051
|
class GoogleCloudDocumentaiV1beta2DocumentPageVisualElement
|
2106
3052
|
include Google::Apis::Core::Hashable
|
2107
3053
|
|
@@ -2132,9 +3078,150 @@ module Google
|
|
2132
3078
|
end
|
2133
3079
|
end
|
2134
3080
|
|
2135
|
-
#
|
2136
|
-
#
|
2137
|
-
|
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
|
+
|
3223
|
+
# For a large document, sharding may be performed to produce several document
|
3224
|
+
# shards. Each document shard contains this field to detail which shard it is.
|
2138
3225
|
class GoogleCloudDocumentaiV1beta2DocumentShardInfo
|
2139
3226
|
include Google::Apis::Core::Hashable
|
2140
3227
|
|
@@ -2148,8 +3235,8 @@ module Google
|
|
2148
3235
|
# @return [Fixnum]
|
2149
3236
|
attr_accessor :shard_index
|
2150
3237
|
|
2151
|
-
# The index of the first character in Document.text in the overall
|
2152
|
-
#
|
3238
|
+
# The index of the first character in Document.text in the overall document
|
3239
|
+
# global text.
|
2153
3240
|
# Corresponds to the JSON property `textOffset`
|
2154
3241
|
# @return [Fixnum]
|
2155
3242
|
attr_accessor :text_offset
|
@@ -2166,227 +3253,105 @@ module Google
|
|
2166
3253
|
end
|
2167
3254
|
end
|
2168
3255
|
|
2169
|
-
# Annotation for common text style attributes. This adheres to CSS
|
2170
|
-
#
|
3256
|
+
# Annotation for common text style attributes. This adheres to CSS conventions
|
3257
|
+
# as much as possible.
|
2171
3258
|
class GoogleCloudDocumentaiV1beta2DocumentStyle
|
2172
3259
|
include Google::Apis::Core::Hashable
|
2173
3260
|
|
2174
3261
|
# Represents a color in the RGBA color space. This representation is designed
|
2175
3262
|
# for simplicity of conversion to/from color representations in various
|
2176
|
-
# languages over compactness; for example, the fields of this representation
|
2177
|
-
#
|
2178
|
-
#
|
2179
|
-
# method in iOS; and, with just a little work, it can be easily formatted into
|
2180
|
-
#
|
2181
|
-
#
|
2182
|
-
#
|
2183
|
-
#
|
2184
|
-
#
|
2185
|
-
#
|
2186
|
-
#
|
2187
|
-
#
|
2188
|
-
#
|
2189
|
-
#
|
2190
|
-
#
|
2191
|
-
#
|
2192
|
-
# float
|
2193
|
-
#
|
2194
|
-
#
|
2195
|
-
#
|
2196
|
-
#
|
2197
|
-
# protocolor
|
2198
|
-
# protocolor
|
2199
|
-
# alpha
|
2200
|
-
# `
|
2201
|
-
#
|
2202
|
-
#
|
2203
|
-
#
|
2204
|
-
#
|
2205
|
-
#
|
2206
|
-
#
|
2207
|
-
#
|
2208
|
-
# .
|
2209
|
-
# .
|
2210
|
-
# .
|
2211
|
-
#
|
2212
|
-
#
|
2213
|
-
#
|
2214
|
-
#
|
2215
|
-
#
|
2216
|
-
#
|
2217
|
-
# .
|
2218
|
-
#
|
2219
|
-
# `
|
2220
|
-
# return resultBuilder.build();
|
2221
|
-
# `
|
2222
|
-
# // ...
|
2223
|
-
# Example (iOS / Obj-C):
|
2224
|
-
# // ...
|
2225
|
-
# static UIColor* fromProto(Color* protocolor) `
|
2226
|
-
# float red = [protocolor red];
|
2227
|
-
# float green = [protocolor green];
|
2228
|
-
# float blue = [protocolor blue];
|
2229
|
-
# FloatValue* alpha_wrapper = [protocolor alpha];
|
2230
|
-
# float alpha = 1.0;
|
2231
|
-
# if (alpha_wrapper != nil) `
|
2232
|
-
# alpha = [alpha_wrapper value];
|
2233
|
-
# `
|
2234
|
-
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
|
2235
|
-
# `
|
2236
|
-
# static Color* toProto(UIColor* color) `
|
2237
|
-
# CGFloat red, green, blue, alpha;
|
2238
|
-
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
|
2239
|
-
# return nil;
|
2240
|
-
# `
|
2241
|
-
# Color* result = [[Color alloc] init];
|
2242
|
-
# [result setRed:red];
|
2243
|
-
# [result setGreen:green];
|
2244
|
-
# [result setBlue:blue];
|
2245
|
-
# if (alpha <= 0.9999) `
|
2246
|
-
# [result setAlpha:floatWrapperWithValue(alpha)];
|
2247
|
-
# `
|
2248
|
-
# [result autorelease];
|
2249
|
-
# return result;
|
2250
|
-
# `
|
2251
|
-
# // ...
|
2252
|
-
# Example (JavaScript):
|
2253
|
-
# // ...
|
2254
|
-
# var protoToCssColor = function(rgb_color) `
|
2255
|
-
# var redFrac = rgb_color.red || 0.0;
|
2256
|
-
# var greenFrac = rgb_color.green || 0.0;
|
2257
|
-
# var blueFrac = rgb_color.blue || 0.0;
|
2258
|
-
# var red = Math.floor(redFrac * 255);
|
2259
|
-
# var green = Math.floor(greenFrac * 255);
|
2260
|
-
# var blue = Math.floor(blueFrac * 255);
|
2261
|
-
# if (!('alpha' in rgb_color)) `
|
2262
|
-
# return rgbToCssColor_(red, green, blue);
|
2263
|
-
# `
|
2264
|
-
# var alphaFrac = rgb_color.alpha.value || 0.0;
|
2265
|
-
# var rgbParams = [red, green, blue].join(',');
|
2266
|
-
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
|
2267
|
-
# `;
|
2268
|
-
# var rgbToCssColor_ = function(red, green, blue) `
|
2269
|
-
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
|
2270
|
-
# var hexString = rgbNumber.toString(16);
|
2271
|
-
# var missingZeros = 6 - hexString.length;
|
2272
|
-
# var resultBuilder = ['#'];
|
2273
|
-
# for (var i = 0; i < missingZeros; i++) `
|
2274
|
-
# resultBuilder.push('0');
|
2275
|
-
# `
|
2276
|
-
# resultBuilder.push(hexString);
|
2277
|
-
# return resultBuilder.join('');
|
2278
|
-
# `;
|
2279
|
-
# // ...
|
3263
|
+
# languages over compactness; for example, the fields of this representation can
|
3264
|
+
# be trivially provided to the constructor of "java.awt.Color" in Java; it can
|
3265
|
+
# also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
3266
|
+
# method in iOS; and, with just a little work, it can be easily formatted into a
|
3267
|
+
# CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
|
3268
|
+
# information about the absolute color space that should be used to interpret
|
3269
|
+
# the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
|
3270
|
+
# applications SHOULD assume the sRGB color space. Note: when color equality
|
3271
|
+
# needs to be decided, implementations, unless documented otherwise, will treat
|
3272
|
+
# two colors to be equal if all their red, green, blue and alpha values each
|
3273
|
+
# differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
|
3274
|
+
# public static java.awt.Color fromProto(Color protocolor) ` float alpha =
|
3275
|
+
# protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
|
3276
|
+
# java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
|
3277
|
+
# ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
|
3278
|
+
# float) color.getRed(); float green = (float) color.getGreen(); float blue = (
|
3279
|
+
# float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
|
3280
|
+
# = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
|
3281
|
+
# .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
|
3282
|
+
# ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
|
3283
|
+
# denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
|
3284
|
+
# Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
|
3285
|
+
# protocolor red]; float green = [protocolor green]; float blue = [protocolor
|
3286
|
+
# blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
|
3287
|
+
# alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
|
3288
|
+
# colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
|
3289
|
+
# UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
|
3290
|
+
# green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
|
3291
|
+
# alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
|
3292
|
+
# blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
|
3293
|
+
# [result autorelease]; return result; ` // ... Example (JavaScript): // ...
|
3294
|
+
# var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
|
3295
|
+
# var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
|
3296
|
+
# var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
|
3297
|
+
# var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
|
3298
|
+
# rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
|
3299
|
+
# 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
|
3300
|
+
# ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
|
3301
|
+
# ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
|
3302
|
+
# hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
|
3303
|
+
# var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
|
3304
|
+
# resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
|
3305
|
+
# join(''); `; // ...
|
2280
3306
|
# Corresponds to the JSON property `backgroundColor`
|
2281
3307
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
|
2282
3308
|
attr_accessor :background_color
|
2283
3309
|
|
2284
3310
|
# Represents a color in the RGBA color space. This representation is designed
|
2285
3311
|
# for simplicity of conversion to/from color representations in various
|
2286
|
-
# languages over compactness; for example, the fields of this representation
|
2287
|
-
#
|
2288
|
-
#
|
2289
|
-
# method in iOS; and, with just a little work, it can be easily formatted into
|
2290
|
-
#
|
2291
|
-
#
|
2292
|
-
#
|
2293
|
-
#
|
2294
|
-
#
|
2295
|
-
#
|
2296
|
-
#
|
2297
|
-
#
|
2298
|
-
#
|
2299
|
-
#
|
2300
|
-
#
|
2301
|
-
#
|
2302
|
-
# float
|
2303
|
-
#
|
2304
|
-
#
|
2305
|
-
#
|
2306
|
-
#
|
2307
|
-
# protocolor
|
2308
|
-
# protocolor
|
2309
|
-
# alpha
|
2310
|
-
# `
|
2311
|
-
#
|
2312
|
-
#
|
2313
|
-
#
|
2314
|
-
#
|
2315
|
-
#
|
2316
|
-
#
|
2317
|
-
#
|
2318
|
-
# .
|
2319
|
-
# .
|
2320
|
-
# .
|
2321
|
-
#
|
2322
|
-
#
|
2323
|
-
#
|
2324
|
-
#
|
2325
|
-
#
|
2326
|
-
#
|
2327
|
-
# .
|
2328
|
-
#
|
2329
|
-
# `
|
2330
|
-
# return resultBuilder.build();
|
2331
|
-
# `
|
2332
|
-
# // ...
|
2333
|
-
# Example (iOS / Obj-C):
|
2334
|
-
# // ...
|
2335
|
-
# static UIColor* fromProto(Color* protocolor) `
|
2336
|
-
# float red = [protocolor red];
|
2337
|
-
# float green = [protocolor green];
|
2338
|
-
# float blue = [protocolor blue];
|
2339
|
-
# FloatValue* alpha_wrapper = [protocolor alpha];
|
2340
|
-
# float alpha = 1.0;
|
2341
|
-
# if (alpha_wrapper != nil) `
|
2342
|
-
# alpha = [alpha_wrapper value];
|
2343
|
-
# `
|
2344
|
-
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
|
2345
|
-
# `
|
2346
|
-
# static Color* toProto(UIColor* color) `
|
2347
|
-
# CGFloat red, green, blue, alpha;
|
2348
|
-
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
|
2349
|
-
# return nil;
|
2350
|
-
# `
|
2351
|
-
# Color* result = [[Color alloc] init];
|
2352
|
-
# [result setRed:red];
|
2353
|
-
# [result setGreen:green];
|
2354
|
-
# [result setBlue:blue];
|
2355
|
-
# if (alpha <= 0.9999) `
|
2356
|
-
# [result setAlpha:floatWrapperWithValue(alpha)];
|
2357
|
-
# `
|
2358
|
-
# [result autorelease];
|
2359
|
-
# return result;
|
2360
|
-
# `
|
2361
|
-
# // ...
|
2362
|
-
# Example (JavaScript):
|
2363
|
-
# // ...
|
2364
|
-
# var protoToCssColor = function(rgb_color) `
|
2365
|
-
# var redFrac = rgb_color.red || 0.0;
|
2366
|
-
# var greenFrac = rgb_color.green || 0.0;
|
2367
|
-
# var blueFrac = rgb_color.blue || 0.0;
|
2368
|
-
# var red = Math.floor(redFrac * 255);
|
2369
|
-
# var green = Math.floor(greenFrac * 255);
|
2370
|
-
# var blue = Math.floor(blueFrac * 255);
|
2371
|
-
# if (!('alpha' in rgb_color)) `
|
2372
|
-
# return rgbToCssColor_(red, green, blue);
|
2373
|
-
# `
|
2374
|
-
# var alphaFrac = rgb_color.alpha.value || 0.0;
|
2375
|
-
# var rgbParams = [red, green, blue].join(',');
|
2376
|
-
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
|
2377
|
-
# `;
|
2378
|
-
# var rgbToCssColor_ = function(red, green, blue) `
|
2379
|
-
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
|
2380
|
-
# var hexString = rgbNumber.toString(16);
|
2381
|
-
# var missingZeros = 6 - hexString.length;
|
2382
|
-
# var resultBuilder = ['#'];
|
2383
|
-
# for (var i = 0; i < missingZeros; i++) `
|
2384
|
-
# resultBuilder.push('0');
|
2385
|
-
# `
|
2386
|
-
# resultBuilder.push(hexString);
|
2387
|
-
# return resultBuilder.join('');
|
2388
|
-
# `;
|
2389
|
-
# // ...
|
3312
|
+
# languages over compactness; for example, the fields of this representation can
|
3313
|
+
# be trivially provided to the constructor of "java.awt.Color" in Java; it can
|
3314
|
+
# also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
3315
|
+
# method in iOS; and, with just a little work, it can be easily formatted into a
|
3316
|
+
# CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
|
3317
|
+
# information about the absolute color space that should be used to interpret
|
3318
|
+
# the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
|
3319
|
+
# applications SHOULD assume the sRGB color space. Note: when color equality
|
3320
|
+
# needs to be decided, implementations, unless documented otherwise, will treat
|
3321
|
+
# two colors to be equal if all their red, green, blue and alpha values each
|
3322
|
+
# differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
|
3323
|
+
# public static java.awt.Color fromProto(Color protocolor) ` float alpha =
|
3324
|
+
# protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
|
3325
|
+
# java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
|
3326
|
+
# ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
|
3327
|
+
# float) color.getRed(); float green = (float) color.getGreen(); float blue = (
|
3328
|
+
# float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
|
3329
|
+
# = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
|
3330
|
+
# .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
|
3331
|
+
# ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
|
3332
|
+
# denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
|
3333
|
+
# Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
|
3334
|
+
# protocolor red]; float green = [protocolor green]; float blue = [protocolor
|
3335
|
+
# blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
|
3336
|
+
# alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
|
3337
|
+
# colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
|
3338
|
+
# UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
|
3339
|
+
# green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
|
3340
|
+
# alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
|
3341
|
+
# blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
|
3342
|
+
# [result autorelease]; return result; ` // ... Example (JavaScript): // ...
|
3343
|
+
# var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
|
3344
|
+
# var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
|
3345
|
+
# var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
|
3346
|
+
# var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
|
3347
|
+
# rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
|
3348
|
+
# 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
|
3349
|
+
# ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
|
3350
|
+
# ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
|
3351
|
+
# hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
|
3352
|
+
# var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
|
3353
|
+
# resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
|
3354
|
+
# join(''); `; // ...
|
2390
3355
|
# Corresponds to the JSON property `color`
|
2391
3356
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
|
2392
3357
|
attr_accessor :color
|
@@ -2396,8 +3361,8 @@ module Google
|
|
2396
3361
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyleFontSize]
|
2397
3362
|
attr_accessor :font_size
|
2398
3363
|
|
2399
|
-
# Font weight. Possible values are normal, bold, bolder, and lighter.
|
2400
|
-
#
|
3364
|
+
# Font weight. Possible values are normal, bold, bolder, and lighter. https://
|
3365
|
+
# www.w3schools.com/cssref/pr_font_weight.asp
|
2401
3366
|
# Corresponds to the JSON property `fontWeight`
|
2402
3367
|
# @return [String]
|
2403
3368
|
attr_accessor :font_weight
|
@@ -2407,15 +3372,14 @@ module Google
|
|
2407
3372
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor]
|
2408
3373
|
attr_accessor :text_anchor
|
2409
3374
|
|
2410
|
-
# Text decoration. Follows CSS standard.
|
2411
|
-
#
|
2412
|
-
# https://www.w3schools.com/cssref/pr_text_text-decoration.asp
|
3375
|
+
# Text decoration. Follows CSS standard. https://www.w3schools.com/cssref/
|
3376
|
+
# pr_text_text-decoration.asp
|
2413
3377
|
# Corresponds to the JSON property `textDecoration`
|
2414
3378
|
# @return [String]
|
2415
3379
|
attr_accessor :text_decoration
|
2416
3380
|
|
2417
|
-
# Text style. Possible values are normal, italic, and oblique.
|
2418
|
-
#
|
3381
|
+
# Text style. Possible values are normal, italic, and oblique. https://www.
|
3382
|
+
# w3schools.com/cssref/pr_font_font-style.asp
|
2419
3383
|
# Corresponds to the JSON property `textStyle`
|
2420
3384
|
# @return [String]
|
2421
3385
|
attr_accessor :text_style
|
@@ -2465,6 +3429,12 @@ module Google
|
|
2465
3429
|
class GoogleCloudDocumentaiV1beta2DocumentTextAnchor
|
2466
3430
|
include Google::Apis::Core::Hashable
|
2467
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
|
+
|
2468
3438
|
# The text segments from the Document.text.
|
2469
3439
|
# Corresponds to the JSON property `textSegments`
|
2470
3440
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment>]
|
@@ -2476,18 +3446,18 @@ module Google
|
|
2476
3446
|
|
2477
3447
|
# Update properties of this object
|
2478
3448
|
def update!(**args)
|
3449
|
+
@content = args[:content] if args.key?(:content)
|
2479
3450
|
@text_segments = args[:text_segments] if args.key?(:text_segments)
|
2480
3451
|
end
|
2481
3452
|
end
|
2482
3453
|
|
2483
|
-
# A text segment in the Document.text. The indices may be out of bounds
|
2484
|
-
#
|
2485
|
-
#
|
3454
|
+
# A text segment in the Document.text. The indices may be out of bounds which
|
3455
|
+
# indicate that the text extends into another document shard for large sharded
|
3456
|
+
# documents. See ShardInfo.text_offset
|
2486
3457
|
class GoogleCloudDocumentaiV1beta2DocumentTextAnchorTextSegment
|
2487
3458
|
include Google::Apis::Core::Hashable
|
2488
3459
|
|
2489
|
-
# TextSegment half open end UTF-8 char index in the
|
2490
|
-
# Document.text.
|
3460
|
+
# TextSegment half open end UTF-8 char index in the Document.text.
|
2491
3461
|
# Corresponds to the JSON property `endIndex`
|
2492
3462
|
# @return [Fixnum]
|
2493
3463
|
attr_accessor :end_index
|
@@ -2508,17 +3478,52 @@ module Google
|
|
2508
3478
|
end
|
2509
3479
|
end
|
2510
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
|
+
|
2511
3512
|
# A translation of the text segment.
|
2512
3513
|
class GoogleCloudDocumentaiV1beta2DocumentTranslation
|
2513
3514
|
include Google::Apis::Core::Hashable
|
2514
3515
|
|
2515
|
-
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
2516
|
-
#
|
2517
|
-
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
3516
|
+
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
|
3517
|
+
# see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
2518
3518
|
# Corresponds to the JSON property `languageCode`
|
2519
3519
|
# @return [String]
|
2520
3520
|
attr_accessor :language_code
|
2521
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
|
+
|
2522
3527
|
# Text reference indexing into the Document.text.
|
2523
3528
|
# Corresponds to the JSON property `textAnchor`
|
2524
3529
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextAnchor]
|
@@ -2536,6 +3541,7 @@ module Google
|
|
2536
3541
|
# Update properties of this object
|
2537
3542
|
def update!(**args)
|
2538
3543
|
@language_code = args[:language_code] if args.key?(:language_code)
|
3544
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
2539
3545
|
@text_anchor = args[:text_anchor] if args.key?(:text_anchor)
|
2540
3546
|
@translated_text = args[:translated_text] if args.key?(:translated_text)
|
2541
3547
|
end
|
@@ -2551,8 +3557,8 @@ module Google
|
|
2551
3557
|
attr_accessor :enabled
|
2552
3558
|
alias_method :enabled?, :enabled
|
2553
3559
|
|
2554
|
-
# Model version of the entity extraction. Default is
|
2555
|
-
#
|
3560
|
+
# Model version of the entity extraction. Default is "builtin/stable". Specify "
|
3561
|
+
# builtin/latest" for the latest model.
|
2556
3562
|
# Corresponds to the JSON property `modelVersion`
|
2557
3563
|
# @return [String]
|
2558
3564
|
attr_accessor :model_version
|
@@ -2583,11 +3589,11 @@ module Google
|
|
2583
3589
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2KeyValuePairHint>]
|
2584
3590
|
attr_accessor :key_value_pair_hints
|
2585
3591
|
|
2586
|
-
# Model version of the form extraction system. Default is
|
2587
|
-
#
|
2588
|
-
#
|
2589
|
-
#
|
2590
|
-
#
|
3592
|
+
# Model version of the form extraction system. Default is "builtin/stable".
|
3593
|
+
# Specify "builtin/latest" for the latest model. For custom form models, specify:
|
3594
|
+
# “custom/`model_name`". Model name format is "bucket_name/path/to/modeldir"
|
3595
|
+
# corresponding to "gs://bucket_name/path/to/modeldir" where annotated examples
|
3596
|
+
# are stored.
|
2591
3597
|
# Corresponds to the JSON property `modelVersion`
|
2592
3598
|
# @return [String]
|
2593
3599
|
attr_accessor :model_version
|
@@ -2646,10 +3652,10 @@ module Google
|
|
2646
3652
|
class GoogleCloudDocumentaiV1beta2InputConfig
|
2647
3653
|
include Google::Apis::Core::Hashable
|
2648
3654
|
|
2649
|
-
# Content in bytes, represented as a stream of bytes.
|
2650
|
-
#
|
2651
|
-
#
|
2652
|
-
#
|
3655
|
+
# Content in bytes, represented as a stream of bytes. Note: As with all `bytes`
|
3656
|
+
# fields, proto buffer messages use a pure binary representation, whereas JSON
|
3657
|
+
# representations use base64. This field only works for synchronous
|
3658
|
+
# ProcessDocument method.
|
2653
3659
|
# Corresponds to the JSON property `contents`
|
2654
3660
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
2655
3661
|
# @return [String]
|
@@ -2661,11 +3667,9 @@ module Google
|
|
2661
3667
|
attr_accessor :gcs_source
|
2662
3668
|
|
2663
3669
|
# Required. Mimetype of the input. Current supported mimetypes are application/
|
2664
|
-
# pdf,
|
2665
|
-
#
|
2666
|
-
#
|
2667
|
-
# ProcessDocumentRequest.automl_params field set. The JSON file needs to
|
2668
|
-
# be in Document format.
|
3670
|
+
# pdf, image/tiff, and image/gif. In addition, application/json type is
|
3671
|
+
# supported for requests with ProcessDocumentRequest.automl_params field set.
|
3672
|
+
# The JSON file needs to be in Document format.
|
2669
3673
|
# Corresponds to the JSON property `mimeType`
|
2670
3674
|
# @return [String]
|
2671
3675
|
attr_accessor :mime_type
|
@@ -2691,10 +3695,9 @@ module Google
|
|
2691
3695
|
# @return [String]
|
2692
3696
|
attr_accessor :key
|
2693
3697
|
|
2694
|
-
# Type of the value. This is case-insensitive, and could be one of:
|
2695
|
-
#
|
2696
|
-
#
|
2697
|
-
# be ignored.
|
3698
|
+
# Type of the value. This is case-insensitive, and could be one of: ADDRESS,
|
3699
|
+
# LOCATION, ORGANIZATION, PERSON, PHONE_NUMBER, ID, NUMBER, EMAIL, PRICE, TERMS,
|
3700
|
+
# DATE, NAME. Types not in this list will be ignored.
|
2698
3701
|
# Corresponds to the JSON property `valueTypes`
|
2699
3702
|
# @return [Array<String>]
|
2700
3703
|
attr_accessor :value_types
|
@@ -2710,9 +3713,8 @@ module Google
|
|
2710
3713
|
end
|
2711
3714
|
end
|
2712
3715
|
|
2713
|
-
# A vertex represents a 2D point in the image.
|
2714
|
-
#
|
2715
|
-
# and range from 0 to 1.
|
3716
|
+
# A vertex represents a 2D point in the image. NOTE: the normalized vertex
|
3717
|
+
# coordinates are relative to the original image and range from 0 to 1.
|
2716
3718
|
class GoogleCloudDocumentaiV1beta2NormalizedVertex
|
2717
3719
|
include Google::Apis::Core::Hashable
|
2718
3720
|
|
@@ -2741,14 +3743,13 @@ module Google
|
|
2741
3743
|
class GoogleCloudDocumentaiV1beta2OcrParams
|
2742
3744
|
include Google::Apis::Core::Hashable
|
2743
3745
|
|
2744
|
-
# List of languages to use for OCR. In most cases, an empty value
|
2745
|
-
#
|
2746
|
-
#
|
2747
|
-
#
|
2748
|
-
#
|
2749
|
-
#
|
2750
|
-
#
|
2751
|
-
# supported languages.
|
3746
|
+
# List of languages to use for OCR. In most cases, an empty value yields the
|
3747
|
+
# best results since it enables automatic language detection. For languages
|
3748
|
+
# based on the Latin alphabet, setting `language_hints` is not needed. In rare
|
3749
|
+
# cases, when the language of the text in the image is known, setting a hint
|
3750
|
+
# will help get better results (although it will be a significant hindrance if
|
3751
|
+
# the hint is wrong). Document processing returns an error if one or more of the
|
3752
|
+
# specified languages is not one of the supported languages.
|
2752
3753
|
# Corresponds to the JSON property `languageHints`
|
2753
3754
|
# @return [Array<String>]
|
2754
3755
|
attr_accessor :language_hints
|
@@ -2810,18 +3811,14 @@ module Google
|
|
2810
3811
|
attr_accessor :gcs_destination
|
2811
3812
|
|
2812
3813
|
# The max number of pages to include into each output Document shard JSON on
|
2813
|
-
# Google Cloud Storage.
|
2814
|
-
#
|
2815
|
-
#
|
2816
|
-
#
|
2817
|
-
#
|
2818
|
-
#
|
2819
|
-
#
|
2820
|
-
#
|
2821
|
-
# <prefix>pages-001-to-050.json
|
2822
|
-
# <prefix>pages-051-to-100.json
|
2823
|
-
# <prefix>pages-101-to-150.json
|
2824
|
-
# <prefix>pages-151-to-157.json
|
3814
|
+
# Google Cloud Storage. The valid range is [1, 100]. If not specified, the
|
3815
|
+
# default value is 20. For example, for one pdf file with 100 pages, 100 parsed
|
3816
|
+
# pages will be produced. If `pages_per_shard` = 20, then 5 Document shard JSON
|
3817
|
+
# files each containing 20 parsed pages will be written under the prefix
|
3818
|
+
# OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where x and y
|
3819
|
+
# are 1-indexed page numbers. Example GCS outputs with 157 pages and
|
3820
|
+
# pages_per_shard = 50: pages-001-to-050.json pages-051-to-100.json pages-101-to-
|
3821
|
+
# 150.json pages-151-to-157.json
|
2825
3822
|
# Corresponds to the JSON property `pagesPerShard`
|
2826
3823
|
# @return [Fixnum]
|
2827
3824
|
attr_accessor :pages_per_shard
|
@@ -2846,9 +3843,9 @@ module Google
|
|
2846
3843
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2AutoMlParams]
|
2847
3844
|
attr_accessor :automl_params
|
2848
3845
|
|
2849
|
-
# Specifies a known document type for deeper structure detection. Valid
|
2850
|
-
#
|
2851
|
-
#
|
3846
|
+
# Specifies a known document type for deeper structure detection. Valid values
|
3847
|
+
# are currently "general" and "invoice". If not provided, "general"\ is used as
|
3848
|
+
# default. If any other value is given, the request is rejected.
|
2852
3849
|
# Corresponds to the JSON property `documentType`
|
2853
3850
|
# @return [String]
|
2854
3851
|
attr_accessor :document_type
|
@@ -2878,10 +3875,10 @@ module Google
|
|
2878
3875
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2OutputConfig]
|
2879
3876
|
attr_accessor :output_config
|
2880
3877
|
|
2881
|
-
# Target project and location to make a call.
|
2882
|
-
#
|
2883
|
-
#
|
2884
|
-
#
|
3878
|
+
# Target project and location to make a call. Format: `projects/`project-id`/
|
3879
|
+
# locations/`location-id``. If no location is specified, a region will be chosen
|
3880
|
+
# automatically. This field is only populated when used in ProcessDocument
|
3881
|
+
# method.
|
2885
3882
|
# Corresponds to the JSON property `parent`
|
2886
3883
|
# @return [String]
|
2887
3884
|
attr_accessor :parent
|
@@ -2944,8 +3941,7 @@ module Google
|
|
2944
3941
|
attr_accessor :bounding_box
|
2945
3942
|
|
2946
3943
|
# Optional. Page number for multi-paged inputs this hint applies to. If not
|
2947
|
-
# provided, this hint will apply to all pages by default. This value is
|
2948
|
-
# 1-based.
|
3944
|
+
# provided, this hint will apply to all pages by default. This value is 1-based.
|
2949
3945
|
# Corresponds to the JSON property `pageNumber`
|
2950
3946
|
# @return [Fixnum]
|
2951
3947
|
attr_accessor :page_number
|
@@ -2982,8 +3978,8 @@ module Google
|
|
2982
3978
|
# @return [String]
|
2983
3979
|
attr_accessor :model_version
|
2984
3980
|
|
2985
|
-
# Optional. Table bounding box hints that can be provided to complex cases
|
2986
|
-
#
|
3981
|
+
# Optional. Table bounding box hints that can be provided to complex cases which
|
3982
|
+
# our algorithm cannot locate the table(s) in.
|
2987
3983
|
# Corresponds to the JSON property `tableBoundHints`
|
2988
3984
|
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2TableBoundHint>]
|
2989
3985
|
attr_accessor :table_bound_hints
|
@@ -3001,8 +3997,8 @@ module Google
|
|
3001
3997
|
end
|
3002
3998
|
end
|
3003
3999
|
|
3004
|
-
# A vertex represents a 2D point in the image.
|
3005
|
-
#
|
4000
|
+
# A vertex represents a 2D point in the image. NOTE: the vertex coordinates are
|
4001
|
+
# in the same scale as the original image.
|
3006
4002
|
class GoogleCloudDocumentaiV1beta2Vertex
|
3007
4003
|
include Google::Apis::Core::Hashable
|
3008
4004
|
|
@@ -3027,52 +4023,213 @@ module Google
|
|
3027
4023
|
end
|
3028
4024
|
end
|
3029
4025
|
|
4026
|
+
# The long running operation metadata for batch process method.
|
4027
|
+
class GoogleCloudDocumentaiV1beta3BatchProcessMetadata
|
4028
|
+
include Google::Apis::Core::Hashable
|
4029
|
+
|
4030
|
+
# The creation time of the operation.
|
4031
|
+
# Corresponds to the JSON property `createTime`
|
4032
|
+
# @return [String]
|
4033
|
+
attr_accessor :create_time
|
4034
|
+
|
4035
|
+
# The list of response details of each document.
|
4036
|
+
# Corresponds to the JSON property `individualProcessStatuses`
|
4037
|
+
# @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus>]
|
4038
|
+
attr_accessor :individual_process_statuses
|
4039
|
+
|
4040
|
+
# The state of the current batch processing.
|
4041
|
+
# Corresponds to the JSON property `state`
|
4042
|
+
# @return [String]
|
4043
|
+
attr_accessor :state
|
4044
|
+
|
4045
|
+
# A message providing more details about the current state of processing. For
|
4046
|
+
# example, the error message if the operation is failed.
|
4047
|
+
# Corresponds to the JSON property `stateMessage`
|
4048
|
+
# @return [String]
|
4049
|
+
attr_accessor :state_message
|
4050
|
+
|
4051
|
+
# The last update time of the operation.
|
4052
|
+
# Corresponds to the JSON property `updateTime`
|
4053
|
+
# @return [String]
|
4054
|
+
attr_accessor :update_time
|
4055
|
+
|
4056
|
+
def initialize(**args)
|
4057
|
+
update!(**args)
|
4058
|
+
end
|
4059
|
+
|
4060
|
+
# Update properties of this object
|
4061
|
+
def update!(**args)
|
4062
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
4063
|
+
@individual_process_statuses = args[:individual_process_statuses] if args.key?(:individual_process_statuses)
|
4064
|
+
@state = args[:state] if args.key?(:state)
|
4065
|
+
@state_message = args[:state_message] if args.key?(:state_message)
|
4066
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
4067
|
+
end
|
4068
|
+
end
|
4069
|
+
|
4070
|
+
# The status of a each individual document in the batch process.
|
4071
|
+
class GoogleCloudDocumentaiV1beta3BatchProcessMetadataIndividualProcessStatus
|
4072
|
+
include Google::Apis::Core::Hashable
|
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
|
+
|
4082
|
+
# The source of the document, same as the [input_gcs_source] field in the
|
4083
|
+
# request when the batch process started. The batch process is started by take
|
4084
|
+
# snapshot of that document, since a user can move or change that document
|
4085
|
+
# during the process.
|
4086
|
+
# Corresponds to the JSON property `inputGcsSource`
|
4087
|
+
# @return [String]
|
4088
|
+
attr_accessor :input_gcs_source
|
4089
|
+
|
4090
|
+
# The output_gcs_destination (in the request as 'output_gcs_destination') of the
|
4091
|
+
# processed document if it was successful, otherwise empty.
|
4092
|
+
# Corresponds to the JSON property `outputGcsDestination`
|
4093
|
+
# @return [String]
|
4094
|
+
attr_accessor :output_gcs_destination
|
4095
|
+
|
4096
|
+
# The `Status` type defines a logical error model that is suitable for different
|
4097
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
4098
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
4099
|
+
# data: error code, error message, and error details. You can find out more
|
4100
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
4101
|
+
# //cloud.google.com/apis/design/errors).
|
4102
|
+
# Corresponds to the JSON property `status`
|
4103
|
+
# @return [Google::Apis::DocumentaiV1beta2::GoogleRpcStatus]
|
4104
|
+
attr_accessor :status
|
4105
|
+
|
4106
|
+
def initialize(**args)
|
4107
|
+
update!(**args)
|
4108
|
+
end
|
4109
|
+
|
4110
|
+
# Update properties of this object
|
4111
|
+
def update!(**args)
|
4112
|
+
@human_review_operation = args[:human_review_operation] if args.key?(:human_review_operation)
|
4113
|
+
@input_gcs_source = args[:input_gcs_source] if args.key?(:input_gcs_source)
|
4114
|
+
@output_gcs_destination = args[:output_gcs_destination] if args.key?(:output_gcs_destination)
|
4115
|
+
@status = args[:status] if args.key?(:status)
|
4116
|
+
end
|
4117
|
+
end
|
4118
|
+
|
4119
|
+
# Response message for batch process document method.
|
4120
|
+
class GoogleCloudDocumentaiV1beta3BatchProcessResponse
|
4121
|
+
include Google::Apis::Core::Hashable
|
4122
|
+
|
4123
|
+
def initialize(**args)
|
4124
|
+
update!(**args)
|
4125
|
+
end
|
4126
|
+
|
4127
|
+
# Update properties of this object
|
4128
|
+
def update!(**args)
|
4129
|
+
end
|
4130
|
+
end
|
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
|
+
|
3030
4189
|
# This resource represents a long-running operation that is the result of a
|
3031
4190
|
# network API call.
|
3032
4191
|
class GoogleLongrunningOperation
|
3033
4192
|
include Google::Apis::Core::Hashable
|
3034
4193
|
|
3035
|
-
# If the value is `false`, it means the operation is still in progress.
|
3036
|
-
#
|
3037
|
-
# available.
|
4194
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
4195
|
+
# , the operation is completed, and either `error` or `response` is available.
|
3038
4196
|
# Corresponds to the JSON property `done`
|
3039
4197
|
# @return [Boolean]
|
3040
4198
|
attr_accessor :done
|
3041
4199
|
alias_method :done?, :done
|
3042
4200
|
|
3043
|
-
# The `Status` type defines a logical error model that is suitable for
|
3044
|
-
#
|
3045
|
-
#
|
3046
|
-
#
|
3047
|
-
#
|
3048
|
-
#
|
4201
|
+
# The `Status` type defines a logical error model that is suitable for different
|
4202
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
4203
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
4204
|
+
# data: error code, error message, and error details. You can find out more
|
4205
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
4206
|
+
# //cloud.google.com/apis/design/errors).
|
3049
4207
|
# Corresponds to the JSON property `error`
|
3050
4208
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleRpcStatus]
|
3051
4209
|
attr_accessor :error
|
3052
4210
|
|
3053
|
-
# Service-specific metadata associated with the operation.
|
3054
|
-
#
|
3055
|
-
#
|
3056
|
-
#
|
4211
|
+
# Service-specific metadata associated with the operation. It typically contains
|
4212
|
+
# progress information and common metadata such as create time. Some services
|
4213
|
+
# might not provide such metadata. Any method that returns a long-running
|
4214
|
+
# operation should document the metadata type, if any.
|
3057
4215
|
# Corresponds to the JSON property `metadata`
|
3058
4216
|
# @return [Hash<String,Object>]
|
3059
4217
|
attr_accessor :metadata
|
3060
4218
|
|
3061
4219
|
# The server-assigned name, which is only unique within the same service that
|
3062
|
-
# originally returns it. If you use the default HTTP mapping, the
|
3063
|
-
#
|
4220
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
4221
|
+
# be a resource name ending with `operations/`unique_id``.
|
3064
4222
|
# Corresponds to the JSON property `name`
|
3065
4223
|
# @return [String]
|
3066
4224
|
attr_accessor :name
|
3067
4225
|
|
3068
|
-
# The normal response of the operation in case of success.
|
3069
|
-
# method returns no data on success, such as `Delete`, the response is
|
3070
|
-
#
|
3071
|
-
#
|
3072
|
-
#
|
3073
|
-
#
|
3074
|
-
#
|
3075
|
-
# `TakeSnapshotResponse`.
|
4226
|
+
# The normal response of the operation in case of success. If the original
|
4227
|
+
# method returns no data on success, such as `Delete`, the response is `google.
|
4228
|
+
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
4229
|
+
# the response should be the resource. For other methods, the response should
|
4230
|
+
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
4231
|
+
# example, if the original method name is `TakeSnapshot()`, the inferred
|
4232
|
+
# response type is `TakeSnapshotResponse`.
|
3076
4233
|
# Corresponds to the JSON property `response`
|
3077
4234
|
# @return [Hash<String,Object>]
|
3078
4235
|
attr_accessor :response
|
@@ -3091,12 +4248,29 @@ module Google
|
|
3091
4248
|
end
|
3092
4249
|
end
|
3093
4250
|
|
3094
|
-
#
|
3095
|
-
#
|
3096
|
-
#
|
3097
|
-
#
|
3098
|
-
#
|
3099
|
-
|
4251
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
4252
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
4253
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
4254
|
+
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
4255
|
+
# `Empty` is empty JSON object ````.
|
4256
|
+
class GoogleProtobufEmpty
|
4257
|
+
include Google::Apis::Core::Hashable
|
4258
|
+
|
4259
|
+
def initialize(**args)
|
4260
|
+
update!(**args)
|
4261
|
+
end
|
4262
|
+
|
4263
|
+
# Update properties of this object
|
4264
|
+
def update!(**args)
|
4265
|
+
end
|
4266
|
+
end
|
4267
|
+
|
4268
|
+
# The `Status` type defines a logical error model that is suitable for different
|
4269
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
4270
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
4271
|
+
# data: error code, error message, and error details. You can find out more
|
4272
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
4273
|
+
# //cloud.google.com/apis/design/errors).
|
3100
4274
|
class GoogleRpcStatus
|
3101
4275
|
include Google::Apis::Core::Hashable
|
3102
4276
|
|
@@ -3105,15 +4279,15 @@ module Google
|
|
3105
4279
|
# @return [Fixnum]
|
3106
4280
|
attr_accessor :code
|
3107
4281
|
|
3108
|
-
# A list of messages that carry the error details.
|
4282
|
+
# A list of messages that carry the error details. There is a common set of
|
3109
4283
|
# message types for APIs to use.
|
3110
4284
|
# Corresponds to the JSON property `details`
|
3111
4285
|
# @return [Array<Hash<String,Object>>]
|
3112
4286
|
attr_accessor :details
|
3113
4287
|
|
3114
|
-
# A developer-facing error message, which should be in English. Any
|
3115
|
-
#
|
3116
|
-
#
|
4288
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
4289
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
4290
|
+
# field, or localized by the client.
|
3117
4291
|
# Corresponds to the JSON property `message`
|
3118
4292
|
# @return [String]
|
3119
4293
|
attr_accessor :message
|
@@ -3132,122 +4306,61 @@ module Google
|
|
3132
4306
|
|
3133
4307
|
# Represents a color in the RGBA color space. This representation is designed
|
3134
4308
|
# for simplicity of conversion to/from color representations in various
|
3135
|
-
# languages over compactness; for example, the fields of this representation
|
3136
|
-
#
|
3137
|
-
#
|
3138
|
-
# method in iOS; and, with just a little work, it can be easily formatted into
|
3139
|
-
#
|
3140
|
-
#
|
3141
|
-
#
|
3142
|
-
#
|
3143
|
-
#
|
3144
|
-
#
|
3145
|
-
#
|
3146
|
-
#
|
3147
|
-
#
|
3148
|
-
#
|
3149
|
-
#
|
3150
|
-
#
|
3151
|
-
# float
|
3152
|
-
#
|
3153
|
-
#
|
3154
|
-
#
|
3155
|
-
#
|
3156
|
-
# protocolor
|
3157
|
-
# protocolor
|
3158
|
-
# alpha
|
3159
|
-
# `
|
3160
|
-
#
|
3161
|
-
#
|
3162
|
-
#
|
3163
|
-
#
|
3164
|
-
#
|
3165
|
-
#
|
3166
|
-
#
|
3167
|
-
# .
|
3168
|
-
# .
|
3169
|
-
# .
|
3170
|
-
#
|
3171
|
-
#
|
3172
|
-
#
|
3173
|
-
#
|
3174
|
-
#
|
3175
|
-
#
|
3176
|
-
# .
|
3177
|
-
#
|
3178
|
-
# `
|
3179
|
-
# return resultBuilder.build();
|
3180
|
-
# `
|
3181
|
-
# // ...
|
3182
|
-
# Example (iOS / Obj-C):
|
3183
|
-
# // ...
|
3184
|
-
# static UIColor* fromProto(Color* protocolor) `
|
3185
|
-
# float red = [protocolor red];
|
3186
|
-
# float green = [protocolor green];
|
3187
|
-
# float blue = [protocolor blue];
|
3188
|
-
# FloatValue* alpha_wrapper = [protocolor alpha];
|
3189
|
-
# float alpha = 1.0;
|
3190
|
-
# if (alpha_wrapper != nil) `
|
3191
|
-
# alpha = [alpha_wrapper value];
|
3192
|
-
# `
|
3193
|
-
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
|
3194
|
-
# `
|
3195
|
-
# static Color* toProto(UIColor* color) `
|
3196
|
-
# CGFloat red, green, blue, alpha;
|
3197
|
-
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
|
3198
|
-
# return nil;
|
3199
|
-
# `
|
3200
|
-
# Color* result = [[Color alloc] init];
|
3201
|
-
# [result setRed:red];
|
3202
|
-
# [result setGreen:green];
|
3203
|
-
# [result setBlue:blue];
|
3204
|
-
# if (alpha <= 0.9999) `
|
3205
|
-
# [result setAlpha:floatWrapperWithValue(alpha)];
|
3206
|
-
# `
|
3207
|
-
# [result autorelease];
|
3208
|
-
# return result;
|
3209
|
-
# `
|
3210
|
-
# // ...
|
3211
|
-
# Example (JavaScript):
|
3212
|
-
# // ...
|
3213
|
-
# var protoToCssColor = function(rgb_color) `
|
3214
|
-
# var redFrac = rgb_color.red || 0.0;
|
3215
|
-
# var greenFrac = rgb_color.green || 0.0;
|
3216
|
-
# var blueFrac = rgb_color.blue || 0.0;
|
3217
|
-
# var red = Math.floor(redFrac * 255);
|
3218
|
-
# var green = Math.floor(greenFrac * 255);
|
3219
|
-
# var blue = Math.floor(blueFrac * 255);
|
3220
|
-
# if (!('alpha' in rgb_color)) `
|
3221
|
-
# return rgbToCssColor_(red, green, blue);
|
3222
|
-
# `
|
3223
|
-
# var alphaFrac = rgb_color.alpha.value || 0.0;
|
3224
|
-
# var rgbParams = [red, green, blue].join(',');
|
3225
|
-
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
|
3226
|
-
# `;
|
3227
|
-
# var rgbToCssColor_ = function(red, green, blue) `
|
3228
|
-
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
|
3229
|
-
# var hexString = rgbNumber.toString(16);
|
3230
|
-
# var missingZeros = 6 - hexString.length;
|
3231
|
-
# var resultBuilder = ['#'];
|
3232
|
-
# for (var i = 0; i < missingZeros; i++) `
|
3233
|
-
# resultBuilder.push('0');
|
3234
|
-
# `
|
3235
|
-
# resultBuilder.push(hexString);
|
3236
|
-
# return resultBuilder.join('');
|
3237
|
-
# `;
|
3238
|
-
# // ...
|
4309
|
+
# languages over compactness; for example, the fields of this representation can
|
4310
|
+
# be trivially provided to the constructor of "java.awt.Color" in Java; it can
|
4311
|
+
# also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
4312
|
+
# method in iOS; and, with just a little work, it can be easily formatted into a
|
4313
|
+
# CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
|
4314
|
+
# information about the absolute color space that should be used to interpret
|
4315
|
+
# the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
|
4316
|
+
# applications SHOULD assume the sRGB color space. Note: when color equality
|
4317
|
+
# needs to be decided, implementations, unless documented otherwise, will treat
|
4318
|
+
# two colors to be equal if all their red, green, blue and alpha values each
|
4319
|
+
# differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
|
4320
|
+
# public static java.awt.Color fromProto(Color protocolor) ` float alpha =
|
4321
|
+
# protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
|
4322
|
+
# java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
|
4323
|
+
# ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
|
4324
|
+
# float) color.getRed(); float green = (float) color.getGreen(); float blue = (
|
4325
|
+
# float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
|
4326
|
+
# = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
|
4327
|
+
# .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
|
4328
|
+
# ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
|
4329
|
+
# denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
|
4330
|
+
# Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
|
4331
|
+
# protocolor red]; float green = [protocolor green]; float blue = [protocolor
|
4332
|
+
# blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
|
4333
|
+
# alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
|
4334
|
+
# colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
|
4335
|
+
# UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
|
4336
|
+
# green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
|
4337
|
+
# alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
|
4338
|
+
# blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
|
4339
|
+
# [result autorelease]; return result; ` // ... Example (JavaScript): // ...
|
4340
|
+
# var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
|
4341
|
+
# var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
|
4342
|
+
# var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
|
4343
|
+
# var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
|
4344
|
+
# rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
|
4345
|
+
# 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
|
4346
|
+
# ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
|
4347
|
+
# ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
|
4348
|
+
# hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
|
4349
|
+
# var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
|
4350
|
+
# resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
|
4351
|
+
# join(''); `; // ...
|
3239
4352
|
class GoogleTypeColor
|
3240
4353
|
include Google::Apis::Core::Hashable
|
3241
4354
|
|
3242
|
-
# The fraction of this color that should be applied to the pixel. That is,
|
3243
|
-
#
|
3244
|
-
#
|
3245
|
-
#
|
3246
|
-
#
|
3247
|
-
#
|
3248
|
-
#
|
3249
|
-
#
|
3250
|
-
#
|
4355
|
+
# The fraction of this color that should be applied to the pixel. That is, the
|
4356
|
+
# final pixel color is defined by the equation: pixel color = alpha * (this
|
4357
|
+
# color) + (1.0 - alpha) * (background color) This means that a value of 1.0
|
4358
|
+
# corresponds to a solid color, whereas a value of 0.0 corresponds to a
|
4359
|
+
# completely transparent color. This uses a wrapper message rather than a simple
|
4360
|
+
# float scalar so that it is possible to distinguish between a default value and
|
4361
|
+
# the value being unset. If omitted, this color object is to be rendered as a
|
4362
|
+
# solid color (as if the alpha value had been explicitly given with a value of 1.
|
4363
|
+
# 0).
|
3251
4364
|
# Corresponds to the JSON property `alpha`
|
3252
4365
|
# @return [Float]
|
3253
4366
|
attr_accessor :alpha
|
@@ -3279,6 +4392,322 @@ module Google
|
|
3279
4392
|
@red = args[:red] if args.key?(:red)
|
3280
4393
|
end
|
3281
4394
|
end
|
4395
|
+
|
4396
|
+
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
|
4397
|
+
# and time zone are either specified elsewhere or are not significant. The date
|
4398
|
+
# is relative to the Proleptic Gregorian Calendar. This can represent: * A full
|
4399
|
+
# date, with non-zero year, month and day values * A month and day value, with a
|
4400
|
+
# zero year, e.g. an anniversary * A year on its own, with zero month and day
|
4401
|
+
# values * A year and month value, with a zero day, e.g. a credit card
|
4402
|
+
# expiration date Related types are google.type.TimeOfDay and `google.protobuf.
|
4403
|
+
# Timestamp`.
|
4404
|
+
class GoogleTypeDate
|
4405
|
+
include Google::Apis::Core::Hashable
|
4406
|
+
|
4407
|
+
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
|
4408
|
+
# specifying a year by itself or a year and month where the day is not
|
4409
|
+
# significant.
|
4410
|
+
# Corresponds to the JSON property `day`
|
4411
|
+
# @return [Fixnum]
|
4412
|
+
attr_accessor :day
|
4413
|
+
|
4414
|
+
# Month of year. Must be from 1 to 12, or 0 if specifying a year without a month
|
4415
|
+
# and day.
|
4416
|
+
# Corresponds to the JSON property `month`
|
4417
|
+
# @return [Fixnum]
|
4418
|
+
attr_accessor :month
|
4419
|
+
|
4420
|
+
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
|
4421
|
+
# Corresponds to the JSON property `year`
|
4422
|
+
# @return [Fixnum]
|
4423
|
+
attr_accessor :year
|
4424
|
+
|
4425
|
+
def initialize(**args)
|
4426
|
+
update!(**args)
|
4427
|
+
end
|
4428
|
+
|
4429
|
+
# Update properties of this object
|
4430
|
+
def update!(**args)
|
4431
|
+
@day = args[:day] if args.key?(:day)
|
4432
|
+
@month = args[:month] if args.key?(:month)
|
4433
|
+
@year = args[:year] if args.key?(:year)
|
4434
|
+
end
|
4435
|
+
end
|
4436
|
+
|
4437
|
+
# Represents civil time in one of a few possible ways: * When utc_offset is set
|
4438
|
+
# and time_zone is unset: a civil time on a calendar day with a particular
|
4439
|
+
# offset from UTC. * When time_zone is set and utc_offset is unset: a civil time
|
4440
|
+
# on a calendar day in a particular time zone. * When neither time_zone nor
|
4441
|
+
# utc_offset is set: a civil time on a calendar day in local time. The date is
|
4442
|
+
# relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is
|
4443
|
+
# considered not to have a specific year. month and day must have valid, non-
|
4444
|
+
# zero values. This type is more flexible than some applications may want. Make
|
4445
|
+
# sure to document and validate your application's limitations.
|
4446
|
+
class GoogleTypeDateTime
|
4447
|
+
include Google::Apis::Core::Hashable
|
4448
|
+
|
4449
|
+
# Required. Day of month. Must be from 1 to 31 and valid for the year and month.
|
4450
|
+
# Corresponds to the JSON property `day`
|
4451
|
+
# @return [Fixnum]
|
4452
|
+
attr_accessor :day
|
4453
|
+
|
4454
|
+
# Required. Hours of day in 24 hour format. Should be from 0 to 23. An API may
|
4455
|
+
# choose to allow the value "24:00:00" for scenarios like business closing time.
|
4456
|
+
# Corresponds to the JSON property `hours`
|
4457
|
+
# @return [Fixnum]
|
4458
|
+
attr_accessor :hours
|
4459
|
+
|
4460
|
+
# Required. Minutes of hour of day. Must be from 0 to 59.
|
4461
|
+
# Corresponds to the JSON property `minutes`
|
4462
|
+
# @return [Fixnum]
|
4463
|
+
attr_accessor :minutes
|
4464
|
+
|
4465
|
+
# Required. Month of year. Must be from 1 to 12.
|
4466
|
+
# Corresponds to the JSON property `month`
|
4467
|
+
# @return [Fixnum]
|
4468
|
+
attr_accessor :month
|
4469
|
+
|
4470
|
+
# Required. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
|
4471
|
+
# Corresponds to the JSON property `nanos`
|
4472
|
+
# @return [Fixnum]
|
4473
|
+
attr_accessor :nanos
|
4474
|
+
|
4475
|
+
# Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
|
4476
|
+
# API may allow the value 60 if it allows leap-seconds.
|
4477
|
+
# Corresponds to the JSON property `seconds`
|
4478
|
+
# @return [Fixnum]
|
4479
|
+
attr_accessor :seconds
|
4480
|
+
|
4481
|
+
# Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
|
4482
|
+
# time-zones).
|
4483
|
+
# Corresponds to the JSON property `timeZone`
|
4484
|
+
# @return [Google::Apis::DocumentaiV1beta2::GoogleTypeTimeZone]
|
4485
|
+
attr_accessor :time_zone
|
4486
|
+
|
4487
|
+
# UTC offset. Must be whole seconds, between -18 hours and +18 hours. For
|
4488
|
+
# example, a UTC offset of -4:00 would be represented as ` seconds: -14400 `.
|
4489
|
+
# Corresponds to the JSON property `utcOffset`
|
4490
|
+
# @return [String]
|
4491
|
+
attr_accessor :utc_offset
|
4492
|
+
|
4493
|
+
# Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime
|
4494
|
+
# without a year.
|
4495
|
+
# Corresponds to the JSON property `year`
|
4496
|
+
# @return [Fixnum]
|
4497
|
+
attr_accessor :year
|
4498
|
+
|
4499
|
+
def initialize(**args)
|
4500
|
+
update!(**args)
|
4501
|
+
end
|
4502
|
+
|
4503
|
+
# Update properties of this object
|
4504
|
+
def update!(**args)
|
4505
|
+
@day = args[:day] if args.key?(:day)
|
4506
|
+
@hours = args[:hours] if args.key?(:hours)
|
4507
|
+
@minutes = args[:minutes] if args.key?(:minutes)
|
4508
|
+
@month = args[:month] if args.key?(:month)
|
4509
|
+
@nanos = args[:nanos] if args.key?(:nanos)
|
4510
|
+
@seconds = args[:seconds] if args.key?(:seconds)
|
4511
|
+
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
4512
|
+
@utc_offset = args[:utc_offset] if args.key?(:utc_offset)
|
4513
|
+
@year = args[:year] if args.key?(:year)
|
4514
|
+
end
|
4515
|
+
end
|
4516
|
+
|
4517
|
+
# Represents an amount of money with its currency type.
|
4518
|
+
class GoogleTypeMoney
|
4519
|
+
include Google::Apis::Core::Hashable
|
4520
|
+
|
4521
|
+
# The 3-letter currency code defined in ISO 4217.
|
4522
|
+
# Corresponds to the JSON property `currencyCode`
|
4523
|
+
# @return [String]
|
4524
|
+
attr_accessor :currency_code
|
4525
|
+
|
4526
|
+
# Number of nano (10^-9) units of the amount. The value must be between -999,999,
|
4527
|
+
# 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
|
4528
|
+
# positive or zero. If `units` is zero, `nanos` can be positive, zero, or
|
4529
|
+
# negative. If `units` is negative, `nanos` must be negative or zero. For
|
4530
|
+
# example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
|
4531
|
+
# Corresponds to the JSON property `nanos`
|
4532
|
+
# @return [Fixnum]
|
4533
|
+
attr_accessor :nanos
|
4534
|
+
|
4535
|
+
# The whole units of the amount. For example if `currencyCode` is `"USD"`, then
|
4536
|
+
# 1 unit is one US dollar.
|
4537
|
+
# Corresponds to the JSON property `units`
|
4538
|
+
# @return [Fixnum]
|
4539
|
+
attr_accessor :units
|
4540
|
+
|
4541
|
+
def initialize(**args)
|
4542
|
+
update!(**args)
|
4543
|
+
end
|
4544
|
+
|
4545
|
+
# Update properties of this object
|
4546
|
+
def update!(**args)
|
4547
|
+
@currency_code = args[:currency_code] if args.key?(:currency_code)
|
4548
|
+
@nanos = args[:nanos] if args.key?(:nanos)
|
4549
|
+
@units = args[:units] if args.key?(:units)
|
4550
|
+
end
|
4551
|
+
end
|
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
|
+
|
4686
|
+
# Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
|
4687
|
+
# time-zones).
|
4688
|
+
class GoogleTypeTimeZone
|
4689
|
+
include Google::Apis::Core::Hashable
|
4690
|
+
|
4691
|
+
# IANA Time Zone Database time zone, e.g. "America/New_York".
|
4692
|
+
# Corresponds to the JSON property `id`
|
4693
|
+
# @return [String]
|
4694
|
+
attr_accessor :id
|
4695
|
+
|
4696
|
+
# Optional. IANA Time Zone Database version number, e.g. "2019a".
|
4697
|
+
# Corresponds to the JSON property `version`
|
4698
|
+
# @return [String]
|
4699
|
+
attr_accessor :version
|
4700
|
+
|
4701
|
+
def initialize(**args)
|
4702
|
+
update!(**args)
|
4703
|
+
end
|
4704
|
+
|
4705
|
+
# Update properties of this object
|
4706
|
+
def update!(**args)
|
4707
|
+
@id = args[:id] if args.key?(:id)
|
4708
|
+
@version = args[:version] if args.key?(:version)
|
4709
|
+
end
|
4710
|
+
end
|
3282
4711
|
end
|
3283
4712
|
end
|
3284
4713
|
end
|