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