google-api-client 0.20.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +140 -0
- data/README.md +3 -12
- data/generated/google/apis/abusiveexperiencereport_v1.rb +2 -2
- data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +1 -0
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +11 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +24 -40
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +66 -110
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +117 -195
- data/generated/google/apis/adexchangeseller_v1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1/service.rb +36 -60
- data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +54 -90
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +45 -75
- data/generated/google/apis/adexperiencereport_v1.rb +2 -2
- data/generated/google/apis/adexperiencereport_v1/classes.rb +1 -0
- data/generated/google/apis/adexperiencereport_v1/service.rb +1 -1
- data/generated/google/apis/admin_datatransfer_v1/service.rb +18 -30
- data/generated/google/apis/admin_directory_v1.rb +3 -3
- data/generated/google/apis/admin_directory_v1/classes.rb +18 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +3 -0
- data/generated/google/apis/admin_directory_v1/service.rb +363 -577
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +21 -35
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/service.rb +117 -195
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +81 -135
- data/generated/google/apis/analytics_v2_4.rb +1 -1
- data/generated/google/apis/analytics_v2_4/service.rb +21 -35
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +32 -60
- data/generated/google/apis/analytics_v3/representations.rb +8 -12
- data/generated/google/apis/analytics_v3/service.rb +261 -435
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +2 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -12
- data/generated/google/apis/androidenterprise_v1/service.rb +254 -425
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +38 -6
- data/generated/google/apis/androidmanagement_v1/representations.rb +18 -0
- data/generated/google/apis/androidpublisher_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1/service.rb +9 -15
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1/service.rb +12 -20
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +102 -1
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +255 -286
- data/generated/google/apis/androidpublisher_v3.rb +34 -0
- data/generated/google/apis/androidpublisher_v3/classes.rb +1899 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +882 -0
- data/generated/google/apis/androidpublisher_v3/service.rb +2208 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +6 -10
- data/generated/google/apis/appsmarket_v2/service.rb +12 -20
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +18 -30
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +67 -9
- data/generated/google/apis/bigquery_v2/representations.rb +22 -0
- data/generated/google/apis/bigquery_v2/service.rb +69 -115
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +1 -2
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +2 -2
- data/generated/google/apis/blogger_v2/service.rb +30 -50
- data/generated/google/apis/blogger_v3/service.rb +102 -170
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/service.rb +156 -260
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +114 -190
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +6 -0
- data/generated/google/apis/chat_v1/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +18 -30
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +0 -69
- data/generated/google/apis/classroom_v1/representations.rb +0 -31
- data/generated/google/apis/classroom_v1/service.rb +0 -88
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +0 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +2 -1
- data/generated/google/apis/cloudfunctions_v1.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1/classes.rb +14 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1beta2.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +14 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +2 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +3 -4
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +29 -7
- data/generated/google/apis/cloudiot_v1/service.rb +398 -1
- data/generated/google/apis/cloudkms_v1.rb +2 -2
- data/generated/google/apis/cloudkms_v1/classes.rb +29 -7
- data/generated/google/apis/cloudkms_v1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +30 -8
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +5 -3
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +29 -7
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +29 -7
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +29 -7
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +39 -10
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +9 -11
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
- data/generated/google/apis/{dlp_v2beta1.rb → composer_v1beta1.rb} +9 -11
- data/generated/google/apis/composer_v1beta1/classes.rb +643 -0
- data/generated/google/apis/composer_v1beta1/representations.rb +195 -0
- data/generated/google/apis/composer_v1beta1/service.rb +462 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +3939 -2239
- data/generated/google/apis/compute_alpha/representations.rb +1063 -335
- data/generated/google/apis/compute_alpha/service.rb +3532 -3368
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +150 -53
- data/generated/google/apis/compute_beta/representations.rb +23 -0
- data/generated/google/apis/compute_beta/service.rb +1269 -2077
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +46 -43
- data/generated/google/apis/compute_v1/service.rb +1022 -1666
- data/generated/google/apis/container_v1.rb +2 -2
- data/generated/google/apis/container_v1/classes.rb +20 -15
- data/generated/google/apis/container_v1/representations.rb +1 -0
- data/generated/google/apis/container_v1/service.rb +33 -31
- data/generated/google/apis/container_v1beta1.rb +2 -2
- data/generated/google/apis/container_v1beta1/classes.rb +186 -14
- data/generated/google/apis/container_v1beta1/representations.rb +77 -0
- data/generated/google/apis/container_v1beta1/service.rb +111 -31
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +173 -8
- data/generated/google/apis/content_v2/representations.rb +71 -0
- data/generated/google/apis/content_v2/service.rb +246 -410
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +75 -8
- data/generated/google/apis/content_v2sandbox/representations.rb +33 -0
- data/generated/google/apis/content_v2sandbox/service.rb +63 -105
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +9 -15
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +15 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +6 -6
- data/generated/google/apis/dataproc_v1/service.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2.rb +2 -2
- data/generated/google/apis/dataproc_v1beta2/classes.rb +48 -13
- data/generated/google/apis/dataproc_v1beta2/representations.rb +12 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +1 -1
- data/generated/google/apis/datastore_v1.rb +2 -2
- data/generated/google/apis/datastore_v1/service.rb +1 -1
- data/generated/google/apis/datastore_v1beta1.rb +2 -2
- data/generated/google/apis/datastore_v1beta1/service.rb +1 -1
- data/generated/google/apis/datastore_v1beta3.rb +2 -2
- data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +118 -194
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +61 -99
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +103 -169
- data/generated/google/apis/dfareporting_v2_8/service.rb +618 -1030
- data/generated/google/apis/dfareporting_v3_0/service.rb +615 -1025
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +94 -24
- data/generated/google/apis/dialogflow_v2/representations.rb +13 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +94 -24
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +13 -0
- data/generated/google/apis/discovery_v1/service.rb +9 -15
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +116 -1572
- data/generated/google/apis/dlp_v2/representations.rb +673 -1405
- data/generated/google/apis/dlp_v2/service.rb +24 -24
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +7 -0
- data/generated/google/apis/dns_v1/representations.rb +1 -0
- data/generated/google/apis/dns_v1/service.rb +49 -81
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +7 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +1 -0
- data/generated/google/apis/dns_v1beta2/service.rb +49 -81
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +7 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +1 -0
- data/generated/google/apis/dns_v2beta1/service.rb +49 -81
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +30 -50
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/service.rb +33 -55
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +205 -341
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +120 -200
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +2 -2
- data/generated/google/apis/firestore_v1beta1/service.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +45 -75
- data/generated/google/apis/fusiontables_v1.rb +1 -1
- data/generated/google/apis/fusiontables_v1/service.rb +99 -165
- data/generated/google/apis/fusiontables_v2/service.rb +105 -175
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +42 -70
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/service.rb +84 -140
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/service.rb +162 -270
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +41 -7
- data/generated/google/apis/genomics_v1/representations.rb +1 -0
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +12 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +1 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +70 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +20 -0
- data/generated/google/apis/gmail_v1/service.rb +189 -315
- data/generated/google/apis/groupsmigration_v1/service.rb +6 -10
- data/generated/google/apis/groupssettings_v1/service.rb +12 -20
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +29 -7
- data/generated/google/apis/iam_v1/service.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/service.rb +63 -105
- data/generated/google/apis/jobs_v2.rb +38 -0
- data/generated/google/apis/jobs_v2/classes.rb +3378 -0
- data/generated/google/apis/jobs_v2/representations.rb +1067 -0
- data/generated/google/apis/jobs_v2/service.rb +754 -0
- data/generated/google/apis/licensing_v1/service.rb +24 -40
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +55 -5
- data/generated/google/apis/logging_v2/representations.rb +16 -0
- data/generated/google/apis/logging_v2/service.rb +6 -4
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +55 -5
- data/generated/google/apis/logging_v2beta1/representations.rb +16 -0
- data/generated/google/apis/logging_v2beta1/service.rb +6 -4
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +75 -125
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +65 -28
- data/generated/google/apis/ml_v1/representations.rb +1 -0
- data/generated/google/apis/ml_v1/service.rb +2 -2
- data/generated/google/apis/oauth2_v1.rb +1 -1
- data/generated/google/apis/oauth2_v1/service.rb +27 -45
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +15 -25
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1/classes.rb +6 -0
- data/generated/google/apis/oslogin_v1/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +7 -1
- data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +4 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +6 -0
- data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
- data/generated/google/apis/pagespeedonline_v1.rb +1 -1
- data/generated/google/apis/pagespeedonline_v1/service.rb +6 -10
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/service.rb +6 -10
- data/generated/google/apis/pagespeedonline_v4/service.rb +6 -10
- data/generated/google/apis/photoslibrary_v1.rb +49 -0
- data/generated/google/apis/photoslibrary_v1/classes.rb +1330 -0
- data/generated/google/apis/photoslibrary_v1/representations.rb +625 -0
- data/generated/google/apis/photoslibrary_v1/service.rb +399 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +6 -10
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +63 -105
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +30 -50
- data/generated/google/apis/pubsub_v1.rb +2 -2
- data/generated/google/apis/pubsub_v1/classes.rb +29 -7
- data/generated/google/apis/pubsub_v1/service.rb +1 -1
- data/generated/google/apis/pubsub_v1beta1a.rb +2 -2
- data/generated/google/apis/pubsub_v1beta1a/service.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2.rb +2 -2
- data/generated/google/apis/pubsub_v1beta2/classes.rb +29 -7
- data/generated/google/apis/pubsub_v1beta2/service.rb +1 -1
- data/generated/google/apis/{dlp_v2beta2.rb → redis_v1beta1.rb} +10 -11
- data/generated/google/apis/redis_v1beta1/classes.rb +681 -0
- data/generated/google/apis/redis_v1beta1/representations.rb +240 -0
- data/generated/google/apis/redis_v1beta1/service.rb +426 -0
- data/generated/google/apis/replicapool_v1beta1/service.rb +33 -55
- data/generated/google/apis/replicapool_v1beta2/service.rb +39 -65
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +33 -55
- data/generated/google/apis/reseller_v1/service.rb +54 -90
- data/generated/google/apis/resourceviews_v1beta1/service.rb +45 -75
- data/generated/google/apis/resourceviews_v1beta2/service.rb +36 -60
- data/generated/google/apis/runtimeconfig_v1.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +28 -6
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +1 -1
- data/generated/google/apis/script_v1.rb +8 -2
- data/generated/google/apis/script_v1/classes.rb +3 -3
- data/generated/google/apis/script_v1/service.rb +8 -2
- data/generated/google/apis/servicebroker_v1.rb +36 -0
- data/generated/google/apis/servicebroker_v1/classes.rb +240 -0
- data/generated/google/apis/servicebroker_v1/representations.rb +96 -0
- data/generated/google/apis/servicebroker_v1/service.rb +168 -0
- data/generated/google/apis/servicebroker_v1alpha1.rb +36 -0
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +939 -0
- data/generated/google/apis/servicebroker_v1alpha1/representations.rb +348 -0
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +728 -0
- data/generated/google/apis/servicebroker_v1beta1.rb +36 -0
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +1046 -0
- data/generated/google/apis/servicebroker_v1beta1/representations.rb +393 -0
- data/generated/google/apis/servicebroker_v1beta1/service.rb +917 -0
- data/generated/google/apis/servicecontrol_v1.rb +2 -2
- data/generated/google/apis/servicecontrol_v1/classes.rb +1 -0
- data/generated/google/apis/servicecontrol_v1/service.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +2 -2
- data/generated/google/apis/servicemanagement_v1/classes.rb +29 -7
- data/generated/google/apis/servicemanagement_v1/service.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +299 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +101 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +421 -0
- data/generated/google/apis/sheets_v4/representations.rb +120 -0
- data/generated/google/apis/site_verification_v1/service.rb +24 -40
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +6 -2
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +39 -12
- data/generated/google/apis/spanner_v1/service.rb +2 -2
- data/generated/google/apis/spectrum_v1explorer.rb +1 -1
- data/generated/google/apis/spectrum_v1explorer/service.rb +21 -35
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +12 -0
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/sqladmin_v1beta3.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta3/service.rb +75 -125
- data/generated/google/apis/sqladmin_v1beta4/service.rb +126 -210
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +3 -6
- data/generated/google/apis/storage_v1/service.rb +144 -240
- data/generated/google/apis/storage_v1beta1.rb +1 -1
- data/generated/google/apis/storage_v1beta1/service.rb +75 -125
- data/generated/google/apis/storage_v1beta2.rb +1 -1
- data/generated/google/apis/storage_v1beta2/service.rb +105 -175
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +4 -3
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/surveys_v2/classes.rb +19 -122
- data/generated/google/apis/surveys_v2/representations.rb +0 -38
- data/generated/google/apis/surveys_v2/service.rb +27 -157
- data/generated/google/apis/tagmanager_v1/service.rb +153 -255
- data/generated/google/apis/tagmanager_v2/service.rb +222 -370
- data/generated/google/apis/tasks_v1/service.rb +45 -75
- data/generated/google/apis/texttospeech_v1beta1.rb +2 -2
- data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/service.rb +75 -125
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/urlshortener_v1/service.rb +12 -20
- data/generated/google/apis/vault_v1.rb +2 -2
- data/generated/google/apis/vault_v1/service.rb +1 -1
- data/generated/google/apis/videointelligence_v1.rb +34 -0
- data/generated/google/apis/videointelligence_v1/classes.rb +2149 -0
- data/generated/google/apis/videointelligence_v1/representations.rb +972 -0
- data/generated/google/apis/videointelligence_v1/service.rb +246 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +18 -18
- data/generated/google/apis/{taskqueue_v1beta2.rb → videointelligence_v1beta2.rb} +10 -13
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +2092 -0
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +933 -0
- data/generated/google/apis/videointelligence_v1beta2/service.rb +92 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1441 -62
- data/generated/google/apis/vision_v1/representations.rb +582 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1441 -62
- data/generated/google/apis/vision_v1p1beta1/representations.rb +582 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +63 -3
- data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
- data/generated/google/apis/webfonts_v1/service.rb +6 -10
- data/generated/google/apis/webmasters_v3/service.rb +42 -70
- data/generated/google/apis/websecurityscanner_v1alpha.rb +34 -0
- data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +760 -0
- data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +354 -0
- data/generated/google/apis/websecurityscanner_v1alpha/service.rb +548 -0
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +27 -45
- data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +27 -45
- data/generated/google/apis/youtube_analytics_v2.rb +46 -0
- data/generated/google/apis/youtube_analytics_v2/classes.rb +532 -0
- data/generated/google/apis/youtube_analytics_v2/representations.rb +232 -0
- data/generated/google/apis/youtube_analytics_v2/service.rb +478 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +225 -375
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +0 -168
- data/generated/google/apis/youtube_v3/representations.rb +0 -62
- data/generated/google/apis/youtube_v3/service.rb +216 -415
- data/lib/google/apis/generator/helpers.rb +3 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +50 -38
- data/generated/google/apis/dlp_v2beta1/classes.rb +0 -3820
- data/generated/google/apis/dlp_v2beta1/representations.rb +0 -1879
- data/generated/google/apis/dlp_v2beta1/service.rb +0 -603
- data/generated/google/apis/dlp_v2beta2/classes.rb +0 -6386
- data/generated/google/apis/dlp_v2beta2/representations.rb +0 -3085
- data/generated/google/apis/dlp_v2beta2/service.rb +0 -1332
- data/generated/google/apis/prediction_v1_2.rb +0 -44
- data/generated/google/apis/prediction_v1_2/classes.rb +0 -237
- data/generated/google/apis/prediction_v1_2/representations.rb +0 -133
- data/generated/google/apis/prediction_v1_2/service.rb +0 -287
- data/generated/google/apis/prediction_v1_3.rb +0 -44
- data/generated/google/apis/prediction_v1_3/classes.rb +0 -286
- data/generated/google/apis/prediction_v1_3/representations.rb +0 -139
- data/generated/google/apis/prediction_v1_3/service.rb +0 -284
- data/generated/google/apis/prediction_v1_4.rb +0 -44
- data/generated/google/apis/prediction_v1_4/classes.rb +0 -336
- data/generated/google/apis/prediction_v1_4/representations.rb +0 -158
- data/generated/google/apis/prediction_v1_4/service.rb +0 -284
- data/generated/google/apis/prediction_v1_5.rb +0 -44
- data/generated/google/apis/prediction_v1_5/classes.rb +0 -708
- data/generated/google/apis/prediction_v1_5/representations.rb +0 -352
- data/generated/google/apis/prediction_v1_5/service.rb +0 -357
- data/generated/google/apis/prediction_v1_6.rb +0 -47
- data/generated/google/apis/prediction_v1_6/classes.rb +0 -751
- data/generated/google/apis/prediction_v1_6/representations.rb +0 -369
- data/generated/google/apis/prediction_v1_6/service.rb +0 -381
- data/generated/google/apis/taskqueue_v1beta1.rb +0 -37
- data/generated/google/apis/taskqueue_v1beta1/classes.rb +0 -242
- data/generated/google/apis/taskqueue_v1beta1/representations.rb +0 -124
- data/generated/google/apis/taskqueue_v1beta1/service.rb +0 -269
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +0 -254
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +0 -126
- data/generated/google/apis/taskqueue_v1beta2/service.rb +0 -409
|
@@ -27,7 +27,7 @@ module Google
|
|
|
27
27
|
# @see https://cloud.google.com/vision/
|
|
28
28
|
module VisionV1p1beta1
|
|
29
29
|
VERSION = 'V1p1beta1'
|
|
30
|
-
REVISION = '
|
|
30
|
+
REVISION = '20180416'
|
|
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'
|
|
@@ -1701,6 +1701,164 @@ module Google
|
|
|
1701
1701
|
end
|
|
1702
1702
|
end
|
|
1703
1703
|
|
|
1704
|
+
# Response to a single file annotation request. A file may contain one or more
|
|
1705
|
+
# images, which individually have their own responses.
|
|
1706
|
+
class GoogleCloudVisionV1p2beta1AnnotateFileResponse
|
|
1707
|
+
include Google::Apis::Core::Hashable
|
|
1708
|
+
|
|
1709
|
+
# The desired input location and metadata.
|
|
1710
|
+
# Corresponds to the JSON property `inputConfig`
|
|
1711
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1InputConfig]
|
|
1712
|
+
attr_accessor :input_config
|
|
1713
|
+
|
|
1714
|
+
# Individual responses to images found within the file.
|
|
1715
|
+
# Corresponds to the JSON property `responses`
|
|
1716
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1AnnotateImageResponse>]
|
|
1717
|
+
attr_accessor :responses
|
|
1718
|
+
|
|
1719
|
+
def initialize(**args)
|
|
1720
|
+
update!(**args)
|
|
1721
|
+
end
|
|
1722
|
+
|
|
1723
|
+
# Update properties of this object
|
|
1724
|
+
def update!(**args)
|
|
1725
|
+
@input_config = args[:input_config] if args.key?(:input_config)
|
|
1726
|
+
@responses = args[:responses] if args.key?(:responses)
|
|
1727
|
+
end
|
|
1728
|
+
end
|
|
1729
|
+
|
|
1730
|
+
# Response to an image annotation request.
|
|
1731
|
+
class GoogleCloudVisionV1p2beta1AnnotateImageResponse
|
|
1732
|
+
include Google::Apis::Core::Hashable
|
|
1733
|
+
|
|
1734
|
+
# If an image was produced from a file (e.g. a PDF), this message gives
|
|
1735
|
+
# information about the source of that image.
|
|
1736
|
+
# Corresponds to the JSON property `context`
|
|
1737
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ImageAnnotationContext]
|
|
1738
|
+
attr_accessor :context
|
|
1739
|
+
|
|
1740
|
+
# Set of crop hints that are used to generate new crops when serving images.
|
|
1741
|
+
# Corresponds to the JSON property `cropHintsAnnotation`
|
|
1742
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1CropHintsAnnotation]
|
|
1743
|
+
attr_accessor :crop_hints_annotation
|
|
1744
|
+
|
|
1745
|
+
# The `Status` type defines a logical error model that is suitable for different
|
|
1746
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
|
1747
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
1748
|
+
# - Simple to use and understand for most users
|
|
1749
|
+
# - Flexible enough to meet unexpected needs
|
|
1750
|
+
# # Overview
|
|
1751
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
|
1752
|
+
# and error details. The error code should be an enum value of
|
|
1753
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
1754
|
+
# error message should be a developer-facing English message that helps
|
|
1755
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
1756
|
+
# error message is needed, put the localized message in the error details or
|
|
1757
|
+
# localize it in the client. The optional error details may contain arbitrary
|
|
1758
|
+
# information about the error. There is a predefined set of error detail types
|
|
1759
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
|
1760
|
+
# # Language mapping
|
|
1761
|
+
# The `Status` message is the logical representation of the error model, but it
|
|
1762
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
|
1763
|
+
# exposed in different client libraries and different wire protocols, it can be
|
|
1764
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
|
1765
|
+
# in Java, but more likely mapped to some error codes in C.
|
|
1766
|
+
# # Other uses
|
|
1767
|
+
# The error model and the `Status` message can be used in a variety of
|
|
1768
|
+
# environments, either with or without APIs, to provide a
|
|
1769
|
+
# consistent developer experience across different environments.
|
|
1770
|
+
# Example uses of this error model include:
|
|
1771
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
|
1772
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
|
1773
|
+
# errors.
|
|
1774
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
|
1775
|
+
# have a `Status` message for error reporting.
|
|
1776
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
|
1777
|
+
# `Status` message should be used directly inside batch response, one for
|
|
1778
|
+
# each error sub-response.
|
|
1779
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
|
1780
|
+
# results in its response, the status of those operations should be
|
|
1781
|
+
# represented directly using the `Status` message.
|
|
1782
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
|
1783
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
|
1784
|
+
# Corresponds to the JSON property `error`
|
|
1785
|
+
# @return [Google::Apis::VisionV1p1beta1::Status]
|
|
1786
|
+
attr_accessor :error
|
|
1787
|
+
|
|
1788
|
+
# If present, face detection has completed successfully.
|
|
1789
|
+
# Corresponds to the JSON property `faceAnnotations`
|
|
1790
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1FaceAnnotation>]
|
|
1791
|
+
attr_accessor :face_annotations
|
|
1792
|
+
|
|
1793
|
+
# TextAnnotation contains a structured representation of OCR extracted text.
|
|
1794
|
+
# The hierarchy of an OCR extracted text structure is like this:
|
|
1795
|
+
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
|
1796
|
+
# Each structural component, starting from Page, may further have their own
|
|
1797
|
+
# properties. Properties describe detected languages, breaks etc.. Please refer
|
|
1798
|
+
# to the TextAnnotation.TextProperty message definition below for more
|
|
1799
|
+
# detail.
|
|
1800
|
+
# Corresponds to the JSON property `fullTextAnnotation`
|
|
1801
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotation]
|
|
1802
|
+
attr_accessor :full_text_annotation
|
|
1803
|
+
|
|
1804
|
+
# Stores image properties, such as dominant colors.
|
|
1805
|
+
# Corresponds to the JSON property `imagePropertiesAnnotation`
|
|
1806
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ImageProperties]
|
|
1807
|
+
attr_accessor :image_properties_annotation
|
|
1808
|
+
|
|
1809
|
+
# If present, label detection has completed successfully.
|
|
1810
|
+
# Corresponds to the JSON property `labelAnnotations`
|
|
1811
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
|
|
1812
|
+
attr_accessor :label_annotations
|
|
1813
|
+
|
|
1814
|
+
# If present, landmark detection has completed successfully.
|
|
1815
|
+
# Corresponds to the JSON property `landmarkAnnotations`
|
|
1816
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
|
|
1817
|
+
attr_accessor :landmark_annotations
|
|
1818
|
+
|
|
1819
|
+
# If present, logo detection has completed successfully.
|
|
1820
|
+
# Corresponds to the JSON property `logoAnnotations`
|
|
1821
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
|
|
1822
|
+
attr_accessor :logo_annotations
|
|
1823
|
+
|
|
1824
|
+
# Set of features pertaining to the image, computed by computer vision
|
|
1825
|
+
# methods over safe-search verticals (for example, adult, spoof, medical,
|
|
1826
|
+
# violence).
|
|
1827
|
+
# Corresponds to the JSON property `safeSearchAnnotation`
|
|
1828
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1SafeSearchAnnotation]
|
|
1829
|
+
attr_accessor :safe_search_annotation
|
|
1830
|
+
|
|
1831
|
+
# If present, text (OCR) detection has completed successfully.
|
|
1832
|
+
# Corresponds to the JSON property `textAnnotations`
|
|
1833
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
|
|
1834
|
+
attr_accessor :text_annotations
|
|
1835
|
+
|
|
1836
|
+
# Relevant information for the image from the Internet.
|
|
1837
|
+
# Corresponds to the JSON property `webDetection`
|
|
1838
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetection]
|
|
1839
|
+
attr_accessor :web_detection
|
|
1840
|
+
|
|
1841
|
+
def initialize(**args)
|
|
1842
|
+
update!(**args)
|
|
1843
|
+
end
|
|
1844
|
+
|
|
1845
|
+
# Update properties of this object
|
|
1846
|
+
def update!(**args)
|
|
1847
|
+
@context = args[:context] if args.key?(:context)
|
|
1848
|
+
@crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
|
|
1849
|
+
@error = args[:error] if args.key?(:error)
|
|
1850
|
+
@face_annotations = args[:face_annotations] if args.key?(:face_annotations)
|
|
1851
|
+
@full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
|
|
1852
|
+
@image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
|
|
1853
|
+
@label_annotations = args[:label_annotations] if args.key?(:label_annotations)
|
|
1854
|
+
@landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
|
|
1855
|
+
@logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
|
|
1856
|
+
@safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
|
|
1857
|
+
@text_annotations = args[:text_annotations] if args.key?(:text_annotations)
|
|
1858
|
+
@web_detection = args[:web_detection] if args.key?(:web_detection)
|
|
1859
|
+
end
|
|
1860
|
+
end
|
|
1861
|
+
|
|
1704
1862
|
# The response for a single offline file annotation request.
|
|
1705
1863
|
class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse
|
|
1706
1864
|
include Google::Apis::Core::Hashable
|
|
@@ -1740,25 +1898,34 @@ module Google
|
|
|
1740
1898
|
end
|
|
1741
1899
|
end
|
|
1742
1900
|
|
|
1743
|
-
#
|
|
1744
|
-
class
|
|
1901
|
+
# Logical element on the page.
|
|
1902
|
+
class GoogleCloudVisionV1p2beta1Block
|
|
1745
1903
|
include Google::Apis::Core::Hashable
|
|
1746
1904
|
|
|
1747
|
-
#
|
|
1748
|
-
#
|
|
1749
|
-
# can either represent a single file, or a prefix for multiple outputs.
|
|
1750
|
-
# Prefixes must end in a `/`.
|
|
1751
|
-
# Examples:
|
|
1752
|
-
# * File: gs://bucket-name/filename.json
|
|
1753
|
-
# * Prefix: gs://bucket-name/prefix/here/
|
|
1754
|
-
# * File: gs://bucket-name/prefix/here
|
|
1755
|
-
# If multiple outputs, each response is still AnnotateFileResponse, each of
|
|
1756
|
-
# which contains some subset of the full list of AnnotateImageResponse.
|
|
1757
|
-
# Multiple outputs can happen if, for example, the output JSON is too large
|
|
1758
|
-
# and overflows into multiple sharded files.
|
|
1759
|
-
# Corresponds to the JSON property `uri`
|
|
1905
|
+
# Detected block type (text, image etc) for this block.
|
|
1906
|
+
# Corresponds to the JSON property `blockType`
|
|
1760
1907
|
# @return [String]
|
|
1761
|
-
attr_accessor :
|
|
1908
|
+
attr_accessor :block_type
|
|
1909
|
+
|
|
1910
|
+
# A bounding polygon for the detected image annotation.
|
|
1911
|
+
# Corresponds to the JSON property `boundingBox`
|
|
1912
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
|
1913
|
+
attr_accessor :bounding_box
|
|
1914
|
+
|
|
1915
|
+
# Confidence of the OCR results on the block. Range [0, 1].
|
|
1916
|
+
# Corresponds to the JSON property `confidence`
|
|
1917
|
+
# @return [Float]
|
|
1918
|
+
attr_accessor :confidence
|
|
1919
|
+
|
|
1920
|
+
# List of paragraphs in this block (if this blocks is of type text).
|
|
1921
|
+
# Corresponds to the JSON property `paragraphs`
|
|
1922
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Paragraph>]
|
|
1923
|
+
attr_accessor :paragraphs
|
|
1924
|
+
|
|
1925
|
+
# Additional information detected on the structural component.
|
|
1926
|
+
# Corresponds to the JSON property `property`
|
|
1927
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
|
|
1928
|
+
attr_accessor :property
|
|
1762
1929
|
|
|
1763
1930
|
def initialize(**args)
|
|
1764
1931
|
update!(**args)
|
|
@@ -1766,28 +1933,27 @@ module Google
|
|
|
1766
1933
|
|
|
1767
1934
|
# Update properties of this object
|
|
1768
1935
|
def update!(**args)
|
|
1769
|
-
@
|
|
1936
|
+
@block_type = args[:block_type] if args.key?(:block_type)
|
|
1937
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
|
1938
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
|
1939
|
+
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
|
1940
|
+
@property = args[:property] if args.key?(:property)
|
|
1770
1941
|
end
|
|
1771
1942
|
end
|
|
1772
1943
|
|
|
1773
|
-
#
|
|
1774
|
-
class
|
|
1944
|
+
# A bounding polygon for the detected image annotation.
|
|
1945
|
+
class GoogleCloudVisionV1p2beta1BoundingPoly
|
|
1775
1946
|
include Google::Apis::Core::Hashable
|
|
1776
1947
|
|
|
1777
|
-
# The
|
|
1778
|
-
# Corresponds to the JSON property `
|
|
1779
|
-
# @return [
|
|
1780
|
-
attr_accessor :
|
|
1781
|
-
|
|
1782
|
-
# Current state of the batch operation.
|
|
1783
|
-
# Corresponds to the JSON property `state`
|
|
1784
|
-
# @return [String]
|
|
1785
|
-
attr_accessor :state
|
|
1948
|
+
# The bounding polygon normalized vertices.
|
|
1949
|
+
# Corresponds to the JSON property `normalizedVertices`
|
|
1950
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1NormalizedVertex>]
|
|
1951
|
+
attr_accessor :normalized_vertices
|
|
1786
1952
|
|
|
1787
|
-
# The
|
|
1788
|
-
# Corresponds to the JSON property `
|
|
1789
|
-
# @return [
|
|
1790
|
-
attr_accessor :
|
|
1953
|
+
# The bounding polygon vertices.
|
|
1954
|
+
# Corresponds to the JSON property `vertices`
|
|
1955
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Vertex>]
|
|
1956
|
+
attr_accessor :vertices
|
|
1791
1957
|
|
|
1792
1958
|
def initialize(**args)
|
|
1793
1959
|
update!(**args)
|
|
@@ -1795,41 +1961,1254 @@ module Google
|
|
|
1795
1961
|
|
|
1796
1962
|
# Update properties of this object
|
|
1797
1963
|
def update!(**args)
|
|
1798
|
-
@
|
|
1799
|
-
@
|
|
1800
|
-
@update_time = args[:update_time] if args.key?(:update_time)
|
|
1964
|
+
@normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
|
|
1965
|
+
@vertices = args[:vertices] if args.key?(:vertices)
|
|
1801
1966
|
end
|
|
1802
1967
|
end
|
|
1803
1968
|
|
|
1804
|
-
#
|
|
1805
|
-
|
|
1969
|
+
# Color information consists of RGB channels, score, and the fraction of
|
|
1970
|
+
# the image that the color occupies in the image.
|
|
1971
|
+
class GoogleCloudVisionV1p2beta1ColorInfo
|
|
1806
1972
|
include Google::Apis::Core::Hashable
|
|
1807
1973
|
|
|
1808
|
-
#
|
|
1809
|
-
#
|
|
1810
|
-
#
|
|
1811
|
-
# be
|
|
1812
|
-
#
|
|
1813
|
-
#
|
|
1814
|
-
#
|
|
1815
|
-
#
|
|
1816
|
-
#
|
|
1817
|
-
#
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
#
|
|
1821
|
-
#
|
|
1822
|
-
#
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
#
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1974
|
+
# Represents a color in the RGBA color space. This representation is designed
|
|
1975
|
+
# for simplicity of conversion to/from color representations in various
|
|
1976
|
+
# languages over compactness; for example, the fields of this representation
|
|
1977
|
+
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
|
|
1978
|
+
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
|
1979
|
+
# method in iOS; and, with just a little work, it can be easily formatted into
|
|
1980
|
+
# a CSS "rgba()" string in JavaScript, as well. Here are some examples:
|
|
1981
|
+
# Example (Java):
|
|
1982
|
+
# import com.google.type.Color;
|
|
1983
|
+
# // ...
|
|
1984
|
+
# public static java.awt.Color fromProto(Color protocolor) `
|
|
1985
|
+
# float alpha = protocolor.hasAlpha()
|
|
1986
|
+
# ? protocolor.getAlpha().getValue()
|
|
1987
|
+
# : 1.0;
|
|
1988
|
+
# return new java.awt.Color(
|
|
1989
|
+
# protocolor.getRed(),
|
|
1990
|
+
# protocolor.getGreen(),
|
|
1991
|
+
# protocolor.getBlue(),
|
|
1992
|
+
# alpha);
|
|
1993
|
+
# `
|
|
1994
|
+
# public static Color toProto(java.awt.Color color) `
|
|
1995
|
+
# float red = (float) color.getRed();
|
|
1996
|
+
# float green = (float) color.getGreen();
|
|
1997
|
+
# float blue = (float) color.getBlue();
|
|
1998
|
+
# float denominator = 255.0;
|
|
1999
|
+
# Color.Builder resultBuilder =
|
|
2000
|
+
# Color
|
|
2001
|
+
# .newBuilder()
|
|
2002
|
+
# .setRed(red / denominator)
|
|
2003
|
+
# .setGreen(green / denominator)
|
|
2004
|
+
# .setBlue(blue / denominator);
|
|
2005
|
+
# int alpha = color.getAlpha();
|
|
2006
|
+
# if (alpha != 255) `
|
|
2007
|
+
# result.setAlpha(
|
|
2008
|
+
# FloatValue
|
|
2009
|
+
# .newBuilder()
|
|
2010
|
+
# .setValue(((float) alpha) / denominator)
|
|
2011
|
+
# .build());
|
|
2012
|
+
# `
|
|
2013
|
+
# return resultBuilder.build();
|
|
2014
|
+
# `
|
|
2015
|
+
# // ...
|
|
2016
|
+
# Example (iOS / Obj-C):
|
|
2017
|
+
# // ...
|
|
2018
|
+
# static UIColor* fromProto(Color* protocolor) `
|
|
2019
|
+
# float red = [protocolor red];
|
|
2020
|
+
# float green = [protocolor green];
|
|
2021
|
+
# float blue = [protocolor blue];
|
|
2022
|
+
# FloatValue* alpha_wrapper = [protocolor alpha];
|
|
2023
|
+
# float alpha = 1.0;
|
|
2024
|
+
# if (alpha_wrapper != nil) `
|
|
2025
|
+
# alpha = [alpha_wrapper value];
|
|
2026
|
+
# `
|
|
2027
|
+
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
|
|
2028
|
+
# `
|
|
2029
|
+
# static Color* toProto(UIColor* color) `
|
|
2030
|
+
# CGFloat red, green, blue, alpha;
|
|
2031
|
+
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
|
|
2032
|
+
# return nil;
|
|
2033
|
+
# `
|
|
2034
|
+
# Color* result = [Color alloc] init];
|
|
2035
|
+
# [result setRed:red];
|
|
2036
|
+
# [result setGreen:green];
|
|
2037
|
+
# [result setBlue:blue];
|
|
2038
|
+
# if (alpha <= 0.9999) `
|
|
2039
|
+
# [result setAlpha:floatWrapperWithValue(alpha)];
|
|
2040
|
+
# `
|
|
2041
|
+
# [result autorelease];
|
|
2042
|
+
# return result;
|
|
2043
|
+
# `
|
|
2044
|
+
# // ...
|
|
2045
|
+
# Example (JavaScript):
|
|
2046
|
+
# // ...
|
|
2047
|
+
# var protoToCssColor = function(rgb_color) `
|
|
2048
|
+
# var redFrac = rgb_color.red || 0.0;
|
|
2049
|
+
# var greenFrac = rgb_color.green || 0.0;
|
|
2050
|
+
# var blueFrac = rgb_color.blue || 0.0;
|
|
2051
|
+
# var red = Math.floor(redFrac * 255);
|
|
2052
|
+
# var green = Math.floor(greenFrac * 255);
|
|
2053
|
+
# var blue = Math.floor(blueFrac * 255);
|
|
2054
|
+
# if (!('alpha' in rgb_color)) `
|
|
2055
|
+
# return rgbToCssColor_(red, green, blue);
|
|
2056
|
+
# `
|
|
2057
|
+
# var alphaFrac = rgb_color.alpha.value || 0.0;
|
|
2058
|
+
# var rgbParams = [red, green, blue].join(',');
|
|
2059
|
+
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
|
|
2060
|
+
# `;
|
|
2061
|
+
# var rgbToCssColor_ = function(red, green, blue) `
|
|
2062
|
+
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
|
|
2063
|
+
# var hexString = rgbNumber.toString(16);
|
|
2064
|
+
# var missingZeros = 6 - hexString.length;
|
|
2065
|
+
# var resultBuilder = ['#'];
|
|
2066
|
+
# for (var i = 0; i < missingZeros; i++) `
|
|
2067
|
+
# resultBuilder.push('0');
|
|
2068
|
+
# `
|
|
2069
|
+
# resultBuilder.push(hexString);
|
|
2070
|
+
# return resultBuilder.join('');
|
|
2071
|
+
# `;
|
|
2072
|
+
# // ...
|
|
2073
|
+
# Corresponds to the JSON property `color`
|
|
2074
|
+
# @return [Google::Apis::VisionV1p1beta1::Color]
|
|
2075
|
+
attr_accessor :color
|
|
2076
|
+
|
|
2077
|
+
# The fraction of pixels the color occupies in the image.
|
|
2078
|
+
# Value in range [0, 1].
|
|
2079
|
+
# Corresponds to the JSON property `pixelFraction`
|
|
2080
|
+
# @return [Float]
|
|
2081
|
+
attr_accessor :pixel_fraction
|
|
2082
|
+
|
|
2083
|
+
# Image-specific score for this color. Value in range [0, 1].
|
|
2084
|
+
# Corresponds to the JSON property `score`
|
|
2085
|
+
# @return [Float]
|
|
2086
|
+
attr_accessor :score
|
|
2087
|
+
|
|
2088
|
+
def initialize(**args)
|
|
2089
|
+
update!(**args)
|
|
2090
|
+
end
|
|
2091
|
+
|
|
2092
|
+
# Update properties of this object
|
|
2093
|
+
def update!(**args)
|
|
2094
|
+
@color = args[:color] if args.key?(:color)
|
|
2095
|
+
@pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction)
|
|
2096
|
+
@score = args[:score] if args.key?(:score)
|
|
2097
|
+
end
|
|
2098
|
+
end
|
|
2099
|
+
|
|
2100
|
+
# Single crop hint that is used to generate a new crop when serving an image.
|
|
2101
|
+
class GoogleCloudVisionV1p2beta1CropHint
|
|
2102
|
+
include Google::Apis::Core::Hashable
|
|
2103
|
+
|
|
2104
|
+
# A bounding polygon for the detected image annotation.
|
|
2105
|
+
# Corresponds to the JSON property `boundingPoly`
|
|
2106
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
|
2107
|
+
attr_accessor :bounding_poly
|
|
2108
|
+
|
|
2109
|
+
# Confidence of this being a salient region. Range [0, 1].
|
|
2110
|
+
# Corresponds to the JSON property `confidence`
|
|
2111
|
+
# @return [Float]
|
|
2112
|
+
attr_accessor :confidence
|
|
2113
|
+
|
|
2114
|
+
# Fraction of importance of this salient region with respect to the original
|
|
2115
|
+
# image.
|
|
2116
|
+
# Corresponds to the JSON property `importanceFraction`
|
|
2117
|
+
# @return [Float]
|
|
2118
|
+
attr_accessor :importance_fraction
|
|
2119
|
+
|
|
2120
|
+
def initialize(**args)
|
|
2121
|
+
update!(**args)
|
|
2122
|
+
end
|
|
2123
|
+
|
|
2124
|
+
# Update properties of this object
|
|
2125
|
+
def update!(**args)
|
|
2126
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
|
2127
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
|
2128
|
+
@importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction)
|
|
2129
|
+
end
|
|
2130
|
+
end
|
|
2131
|
+
|
|
2132
|
+
# Set of crop hints that are used to generate new crops when serving images.
|
|
2133
|
+
class GoogleCloudVisionV1p2beta1CropHintsAnnotation
|
|
2134
|
+
include Google::Apis::Core::Hashable
|
|
2135
|
+
|
|
2136
|
+
# Crop hint results.
|
|
2137
|
+
# Corresponds to the JSON property `cropHints`
|
|
2138
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1CropHint>]
|
|
2139
|
+
attr_accessor :crop_hints
|
|
2140
|
+
|
|
2141
|
+
def initialize(**args)
|
|
2142
|
+
update!(**args)
|
|
2143
|
+
end
|
|
2144
|
+
|
|
2145
|
+
# Update properties of this object
|
|
2146
|
+
def update!(**args)
|
|
2147
|
+
@crop_hints = args[:crop_hints] if args.key?(:crop_hints)
|
|
2148
|
+
end
|
|
2149
|
+
end
|
|
2150
|
+
|
|
2151
|
+
# Set of dominant colors and their corresponding scores.
|
|
2152
|
+
class GoogleCloudVisionV1p2beta1DominantColorsAnnotation
|
|
2153
|
+
include Google::Apis::Core::Hashable
|
|
2154
|
+
|
|
2155
|
+
# RGB color values with their score and pixel fraction.
|
|
2156
|
+
# Corresponds to the JSON property `colors`
|
|
2157
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1ColorInfo>]
|
|
2158
|
+
attr_accessor :colors
|
|
2159
|
+
|
|
2160
|
+
def initialize(**args)
|
|
2161
|
+
update!(**args)
|
|
2162
|
+
end
|
|
2163
|
+
|
|
2164
|
+
# Update properties of this object
|
|
2165
|
+
def update!(**args)
|
|
2166
|
+
@colors = args[:colors] if args.key?(:colors)
|
|
2167
|
+
end
|
|
2168
|
+
end
|
|
2169
|
+
|
|
2170
|
+
# Set of detected entity features.
|
|
2171
|
+
class GoogleCloudVisionV1p2beta1EntityAnnotation
|
|
2172
|
+
include Google::Apis::Core::Hashable
|
|
2173
|
+
|
|
2174
|
+
# A bounding polygon for the detected image annotation.
|
|
2175
|
+
# Corresponds to the JSON property `boundingPoly`
|
|
2176
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
|
2177
|
+
attr_accessor :bounding_poly
|
|
2178
|
+
|
|
2179
|
+
# **Deprecated. Use `score` instead.**
|
|
2180
|
+
# The accuracy of the entity detection in an image.
|
|
2181
|
+
# For example, for an image in which the "Eiffel Tower" entity is detected,
|
|
2182
|
+
# this field represents the confidence that there is a tower in the query
|
|
2183
|
+
# image. Range [0, 1].
|
|
2184
|
+
# Corresponds to the JSON property `confidence`
|
|
2185
|
+
# @return [Float]
|
|
2186
|
+
attr_accessor :confidence
|
|
2187
|
+
|
|
2188
|
+
# Entity textual description, expressed in its `locale` language.
|
|
2189
|
+
# Corresponds to the JSON property `description`
|
|
2190
|
+
# @return [String]
|
|
2191
|
+
attr_accessor :description
|
|
2192
|
+
|
|
2193
|
+
# The language code for the locale in which the entity textual
|
|
2194
|
+
# `description` is expressed.
|
|
2195
|
+
# Corresponds to the JSON property `locale`
|
|
2196
|
+
# @return [String]
|
|
2197
|
+
attr_accessor :locale
|
|
2198
|
+
|
|
2199
|
+
# The location information for the detected entity. Multiple
|
|
2200
|
+
# `LocationInfo` elements can be present because one location may
|
|
2201
|
+
# indicate the location of the scene in the image, and another location
|
|
2202
|
+
# may indicate the location of the place where the image was taken.
|
|
2203
|
+
# Location information is usually present for landmarks.
|
|
2204
|
+
# Corresponds to the JSON property `locations`
|
|
2205
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1LocationInfo>]
|
|
2206
|
+
attr_accessor :locations
|
|
2207
|
+
|
|
2208
|
+
# Opaque entity ID. Some IDs may be available in
|
|
2209
|
+
# [Google Knowledge Graph Search
|
|
2210
|
+
# API](https://developers.google.com/knowledge-graph/).
|
|
2211
|
+
# Corresponds to the JSON property `mid`
|
|
2212
|
+
# @return [String]
|
|
2213
|
+
attr_accessor :mid
|
|
2214
|
+
|
|
2215
|
+
# Some entities may have optional user-supplied `Property` (name/value)
|
|
2216
|
+
# fields, such a score or string that qualifies the entity.
|
|
2217
|
+
# Corresponds to the JSON property `properties`
|
|
2218
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Property>]
|
|
2219
|
+
attr_accessor :properties
|
|
2220
|
+
|
|
2221
|
+
# Overall score of the result. Range [0, 1].
|
|
2222
|
+
# Corresponds to the JSON property `score`
|
|
2223
|
+
# @return [Float]
|
|
2224
|
+
attr_accessor :score
|
|
2225
|
+
|
|
2226
|
+
# The relevancy of the ICA (Image Content Annotation) label to the
|
|
2227
|
+
# image. For example, the relevancy of "tower" is likely higher to an image
|
|
2228
|
+
# containing the detected "Eiffel Tower" than to an image containing a
|
|
2229
|
+
# detected distant towering building, even though the confidence that
|
|
2230
|
+
# there is a tower in each image may be the same. Range [0, 1].
|
|
2231
|
+
# Corresponds to the JSON property `topicality`
|
|
2232
|
+
# @return [Float]
|
|
2233
|
+
attr_accessor :topicality
|
|
2234
|
+
|
|
2235
|
+
def initialize(**args)
|
|
2236
|
+
update!(**args)
|
|
2237
|
+
end
|
|
2238
|
+
|
|
2239
|
+
# Update properties of this object
|
|
2240
|
+
def update!(**args)
|
|
2241
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
|
2242
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
|
2243
|
+
@description = args[:description] if args.key?(:description)
|
|
2244
|
+
@locale = args[:locale] if args.key?(:locale)
|
|
2245
|
+
@locations = args[:locations] if args.key?(:locations)
|
|
2246
|
+
@mid = args[:mid] if args.key?(:mid)
|
|
2247
|
+
@properties = args[:properties] if args.key?(:properties)
|
|
2248
|
+
@score = args[:score] if args.key?(:score)
|
|
2249
|
+
@topicality = args[:topicality] if args.key?(:topicality)
|
|
2250
|
+
end
|
|
2251
|
+
end
|
|
2252
|
+
|
|
2253
|
+
# A face annotation object contains the results of face detection.
|
|
2254
|
+
class GoogleCloudVisionV1p2beta1FaceAnnotation
|
|
2255
|
+
include Google::Apis::Core::Hashable
|
|
2256
|
+
|
|
2257
|
+
# Anger likelihood.
|
|
2258
|
+
# Corresponds to the JSON property `angerLikelihood`
|
|
2259
|
+
# @return [String]
|
|
2260
|
+
attr_accessor :anger_likelihood
|
|
2261
|
+
|
|
2262
|
+
# Blurred likelihood.
|
|
2263
|
+
# Corresponds to the JSON property `blurredLikelihood`
|
|
2264
|
+
# @return [String]
|
|
2265
|
+
attr_accessor :blurred_likelihood
|
|
2266
|
+
|
|
2267
|
+
# A bounding polygon for the detected image annotation.
|
|
2268
|
+
# Corresponds to the JSON property `boundingPoly`
|
|
2269
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
|
2270
|
+
attr_accessor :bounding_poly
|
|
2271
|
+
|
|
2272
|
+
# Detection confidence. Range [0, 1].
|
|
2273
|
+
# Corresponds to the JSON property `detectionConfidence`
|
|
2274
|
+
# @return [Float]
|
|
2275
|
+
attr_accessor :detection_confidence
|
|
2276
|
+
|
|
2277
|
+
# A bounding polygon for the detected image annotation.
|
|
2278
|
+
# Corresponds to the JSON property `fdBoundingPoly`
|
|
2279
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
|
2280
|
+
attr_accessor :fd_bounding_poly
|
|
2281
|
+
|
|
2282
|
+
# Headwear likelihood.
|
|
2283
|
+
# Corresponds to the JSON property `headwearLikelihood`
|
|
2284
|
+
# @return [String]
|
|
2285
|
+
attr_accessor :headwear_likelihood
|
|
2286
|
+
|
|
2287
|
+
# Joy likelihood.
|
|
2288
|
+
# Corresponds to the JSON property `joyLikelihood`
|
|
2289
|
+
# @return [String]
|
|
2290
|
+
attr_accessor :joy_likelihood
|
|
2291
|
+
|
|
2292
|
+
# Face landmarking confidence. Range [0, 1].
|
|
2293
|
+
# Corresponds to the JSON property `landmarkingConfidence`
|
|
2294
|
+
# @return [Float]
|
|
2295
|
+
attr_accessor :landmarking_confidence
|
|
2296
|
+
|
|
2297
|
+
# Detected face landmarks.
|
|
2298
|
+
# Corresponds to the JSON property `landmarks`
|
|
2299
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1FaceAnnotationLandmark>]
|
|
2300
|
+
attr_accessor :landmarks
|
|
2301
|
+
|
|
2302
|
+
# Yaw angle, which indicates the leftward/rightward angle that the face is
|
|
2303
|
+
# pointing relative to the vertical plane perpendicular to the image. Range
|
|
2304
|
+
# [-180,180].
|
|
2305
|
+
# Corresponds to the JSON property `panAngle`
|
|
2306
|
+
# @return [Float]
|
|
2307
|
+
attr_accessor :pan_angle
|
|
2308
|
+
|
|
2309
|
+
# Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
|
|
2310
|
+
# of the face relative to the image vertical about the axis perpendicular to
|
|
2311
|
+
# the face. Range [-180,180].
|
|
2312
|
+
# Corresponds to the JSON property `rollAngle`
|
|
2313
|
+
# @return [Float]
|
|
2314
|
+
attr_accessor :roll_angle
|
|
2315
|
+
|
|
2316
|
+
# Sorrow likelihood.
|
|
2317
|
+
# Corresponds to the JSON property `sorrowLikelihood`
|
|
2318
|
+
# @return [String]
|
|
2319
|
+
attr_accessor :sorrow_likelihood
|
|
2320
|
+
|
|
2321
|
+
# Surprise likelihood.
|
|
2322
|
+
# Corresponds to the JSON property `surpriseLikelihood`
|
|
2323
|
+
# @return [String]
|
|
2324
|
+
attr_accessor :surprise_likelihood
|
|
2325
|
+
|
|
2326
|
+
# Pitch angle, which indicates the upwards/downwards angle that the face is
|
|
2327
|
+
# pointing relative to the image's horizontal plane. Range [-180,180].
|
|
2328
|
+
# Corresponds to the JSON property `tiltAngle`
|
|
2329
|
+
# @return [Float]
|
|
2330
|
+
attr_accessor :tilt_angle
|
|
2331
|
+
|
|
2332
|
+
# Under-exposed likelihood.
|
|
2333
|
+
# Corresponds to the JSON property `underExposedLikelihood`
|
|
2334
|
+
# @return [String]
|
|
2335
|
+
attr_accessor :under_exposed_likelihood
|
|
2336
|
+
|
|
2337
|
+
def initialize(**args)
|
|
2338
|
+
update!(**args)
|
|
2339
|
+
end
|
|
2340
|
+
|
|
2341
|
+
# Update properties of this object
|
|
2342
|
+
def update!(**args)
|
|
2343
|
+
@anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood)
|
|
2344
|
+
@blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood)
|
|
2345
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
|
2346
|
+
@detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence)
|
|
2347
|
+
@fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly)
|
|
2348
|
+
@headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood)
|
|
2349
|
+
@joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood)
|
|
2350
|
+
@landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
|
|
2351
|
+
@landmarks = args[:landmarks] if args.key?(:landmarks)
|
|
2352
|
+
@pan_angle = args[:pan_angle] if args.key?(:pan_angle)
|
|
2353
|
+
@roll_angle = args[:roll_angle] if args.key?(:roll_angle)
|
|
2354
|
+
@sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood)
|
|
2355
|
+
@surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
|
|
2356
|
+
@tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle)
|
|
2357
|
+
@under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood)
|
|
2358
|
+
end
|
|
2359
|
+
end
|
|
2360
|
+
|
|
2361
|
+
# A face-specific landmark (for example, a face feature).
|
|
2362
|
+
class GoogleCloudVisionV1p2beta1FaceAnnotationLandmark
|
|
2363
|
+
include Google::Apis::Core::Hashable
|
|
2364
|
+
|
|
2365
|
+
# A 3D position in the image, used primarily for Face detection landmarks.
|
|
2366
|
+
# A valid Position must have both x and y coordinates.
|
|
2367
|
+
# The position coordinates are in the same scale as the original image.
|
|
2368
|
+
# Corresponds to the JSON property `position`
|
|
2369
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Position]
|
|
2370
|
+
attr_accessor :position
|
|
2371
|
+
|
|
2372
|
+
# Face landmark type.
|
|
2373
|
+
# Corresponds to the JSON property `type`
|
|
2374
|
+
# @return [String]
|
|
2375
|
+
attr_accessor :type
|
|
2376
|
+
|
|
2377
|
+
def initialize(**args)
|
|
2378
|
+
update!(**args)
|
|
2379
|
+
end
|
|
2380
|
+
|
|
2381
|
+
# Update properties of this object
|
|
2382
|
+
def update!(**args)
|
|
2383
|
+
@position = args[:position] if args.key?(:position)
|
|
2384
|
+
@type = args[:type] if args.key?(:type)
|
|
2385
|
+
end
|
|
2386
|
+
end
|
|
2387
|
+
|
|
2388
|
+
# The Google Cloud Storage location where the output will be written to.
|
|
2389
|
+
class GoogleCloudVisionV1p2beta1GcsDestination
|
|
2390
|
+
include Google::Apis::Core::Hashable
|
|
2391
|
+
|
|
2392
|
+
# Google Cloud Storage URI where the results will be stored. Results will
|
|
2393
|
+
# be in JSON format and preceded by its corresponding input URI. This field
|
|
2394
|
+
# can either represent a single file, or a prefix for multiple outputs.
|
|
2395
|
+
# Prefixes must end in a `/`.
|
|
2396
|
+
# Examples:
|
|
2397
|
+
# * File: gs://bucket-name/filename.json
|
|
2398
|
+
# * Prefix: gs://bucket-name/prefix/here/
|
|
2399
|
+
# * File: gs://bucket-name/prefix/here
|
|
2400
|
+
# If multiple outputs, each response is still AnnotateFileResponse, each of
|
|
2401
|
+
# which contains some subset of the full list of AnnotateImageResponse.
|
|
2402
|
+
# Multiple outputs can happen if, for example, the output JSON is too large
|
|
2403
|
+
# and overflows into multiple sharded files.
|
|
2404
|
+
# Corresponds to the JSON property `uri`
|
|
2405
|
+
# @return [String]
|
|
2406
|
+
attr_accessor :uri
|
|
2407
|
+
|
|
2408
|
+
def initialize(**args)
|
|
2409
|
+
update!(**args)
|
|
2410
|
+
end
|
|
2411
|
+
|
|
2412
|
+
# Update properties of this object
|
|
2413
|
+
def update!(**args)
|
|
2414
|
+
@uri = args[:uri] if args.key?(:uri)
|
|
2415
|
+
end
|
|
2416
|
+
end
|
|
2417
|
+
|
|
2418
|
+
# The Google Cloud Storage location where the input will be read from.
|
|
2419
|
+
class GoogleCloudVisionV1p2beta1GcsSource
|
|
2420
|
+
include Google::Apis::Core::Hashable
|
|
2421
|
+
|
|
2422
|
+
# Google Cloud Storage URI for the input file. This must only be a
|
|
2423
|
+
# Google Cloud Storage object. Wildcards are not currently supported.
|
|
2424
|
+
# Corresponds to the JSON property `uri`
|
|
2425
|
+
# @return [String]
|
|
2426
|
+
attr_accessor :uri
|
|
2427
|
+
|
|
2428
|
+
def initialize(**args)
|
|
2429
|
+
update!(**args)
|
|
2430
|
+
end
|
|
2431
|
+
|
|
2432
|
+
# Update properties of this object
|
|
2433
|
+
def update!(**args)
|
|
2434
|
+
@uri = args[:uri] if args.key?(:uri)
|
|
2435
|
+
end
|
|
2436
|
+
end
|
|
2437
|
+
|
|
2438
|
+
# If an image was produced from a file (e.g. a PDF), this message gives
|
|
2439
|
+
# information about the source of that image.
|
|
2440
|
+
class GoogleCloudVisionV1p2beta1ImageAnnotationContext
|
|
2441
|
+
include Google::Apis::Core::Hashable
|
|
2442
|
+
|
|
2443
|
+
# If the file was a PDF or TIFF, this field gives the page number within
|
|
2444
|
+
# the file used to produce the image.
|
|
2445
|
+
# Corresponds to the JSON property `pageNumber`
|
|
2446
|
+
# @return [Fixnum]
|
|
2447
|
+
attr_accessor :page_number
|
|
2448
|
+
|
|
2449
|
+
# The URI of the file used to produce the image.
|
|
2450
|
+
# Corresponds to the JSON property `uri`
|
|
2451
|
+
# @return [String]
|
|
2452
|
+
attr_accessor :uri
|
|
2453
|
+
|
|
2454
|
+
def initialize(**args)
|
|
2455
|
+
update!(**args)
|
|
2456
|
+
end
|
|
2457
|
+
|
|
2458
|
+
# Update properties of this object
|
|
2459
|
+
def update!(**args)
|
|
2460
|
+
@page_number = args[:page_number] if args.key?(:page_number)
|
|
2461
|
+
@uri = args[:uri] if args.key?(:uri)
|
|
2462
|
+
end
|
|
2463
|
+
end
|
|
2464
|
+
|
|
2465
|
+
# Stores image properties, such as dominant colors.
|
|
2466
|
+
class GoogleCloudVisionV1p2beta1ImageProperties
|
|
2467
|
+
include Google::Apis::Core::Hashable
|
|
2468
|
+
|
|
2469
|
+
# Set of dominant colors and their corresponding scores.
|
|
2470
|
+
# Corresponds to the JSON property `dominantColors`
|
|
2471
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1DominantColorsAnnotation]
|
|
2472
|
+
attr_accessor :dominant_colors
|
|
2473
|
+
|
|
2474
|
+
def initialize(**args)
|
|
2475
|
+
update!(**args)
|
|
2476
|
+
end
|
|
2477
|
+
|
|
2478
|
+
# Update properties of this object
|
|
2479
|
+
def update!(**args)
|
|
2480
|
+
@dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
|
|
2481
|
+
end
|
|
2482
|
+
end
|
|
2483
|
+
|
|
2484
|
+
# The desired input location and metadata.
|
|
2485
|
+
class GoogleCloudVisionV1p2beta1InputConfig
|
|
2486
|
+
include Google::Apis::Core::Hashable
|
|
2487
|
+
|
|
2488
|
+
# The Google Cloud Storage location where the input will be read from.
|
|
2489
|
+
# Corresponds to the JSON property `gcsSource`
|
|
2490
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1GcsSource]
|
|
2491
|
+
attr_accessor :gcs_source
|
|
2492
|
+
|
|
2493
|
+
# The type of the file. Currently only "application/pdf" and "image/tiff"
|
|
2494
|
+
# are supported. Wildcards are not supported.
|
|
2495
|
+
# Corresponds to the JSON property `mimeType`
|
|
2496
|
+
# @return [String]
|
|
2497
|
+
attr_accessor :mime_type
|
|
2498
|
+
|
|
2499
|
+
def initialize(**args)
|
|
2500
|
+
update!(**args)
|
|
2501
|
+
end
|
|
2502
|
+
|
|
2503
|
+
# Update properties of this object
|
|
2504
|
+
def update!(**args)
|
|
2505
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
|
2506
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
|
2507
|
+
end
|
|
2508
|
+
end
|
|
2509
|
+
|
|
2510
|
+
# Detected entity location information.
|
|
2511
|
+
class GoogleCloudVisionV1p2beta1LocationInfo
|
|
2512
|
+
include Google::Apis::Core::Hashable
|
|
2513
|
+
|
|
2514
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
|
2515
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
|
2516
|
+
# specified otherwise, this must conform to the
|
|
2517
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
|
2518
|
+
# standard</a>. Values must be within normalized ranges.
|
|
2519
|
+
# Corresponds to the JSON property `latLng`
|
|
2520
|
+
# @return [Google::Apis::VisionV1p1beta1::LatLng]
|
|
2521
|
+
attr_accessor :lat_lng
|
|
2522
|
+
|
|
2523
|
+
def initialize(**args)
|
|
2524
|
+
update!(**args)
|
|
2525
|
+
end
|
|
2526
|
+
|
|
2527
|
+
# Update properties of this object
|
|
2528
|
+
def update!(**args)
|
|
2529
|
+
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
|
2530
|
+
end
|
|
2531
|
+
end
|
|
2532
|
+
|
|
2533
|
+
# A vertex represents a 2D point in the image.
|
|
2534
|
+
# NOTE: the normalized vertex coordinates are relative to the original image
|
|
2535
|
+
# and range from 0 to 1.
|
|
2536
|
+
class GoogleCloudVisionV1p2beta1NormalizedVertex
|
|
2537
|
+
include Google::Apis::Core::Hashable
|
|
2538
|
+
|
|
2539
|
+
# X coordinate.
|
|
2540
|
+
# Corresponds to the JSON property `x`
|
|
2541
|
+
# @return [Float]
|
|
2542
|
+
attr_accessor :x
|
|
2543
|
+
|
|
2544
|
+
# Y coordinate.
|
|
2545
|
+
# Corresponds to the JSON property `y`
|
|
2546
|
+
# @return [Float]
|
|
2547
|
+
attr_accessor :y
|
|
2548
|
+
|
|
2549
|
+
def initialize(**args)
|
|
2550
|
+
update!(**args)
|
|
2551
|
+
end
|
|
2552
|
+
|
|
2553
|
+
# Update properties of this object
|
|
2554
|
+
def update!(**args)
|
|
2555
|
+
@x = args[:x] if args.key?(:x)
|
|
2556
|
+
@y = args[:y] if args.key?(:y)
|
|
2557
|
+
end
|
|
2558
|
+
end
|
|
2559
|
+
|
|
2560
|
+
# Contains metadata for the BatchAnnotateImages operation.
|
|
2561
|
+
class GoogleCloudVisionV1p2beta1OperationMetadata
|
|
2562
|
+
include Google::Apis::Core::Hashable
|
|
2563
|
+
|
|
2564
|
+
# The time when the batch request was received.
|
|
2565
|
+
# Corresponds to the JSON property `createTime`
|
|
2566
|
+
# @return [String]
|
|
2567
|
+
attr_accessor :create_time
|
|
2568
|
+
|
|
2569
|
+
# Current state of the batch operation.
|
|
2570
|
+
# Corresponds to the JSON property `state`
|
|
2571
|
+
# @return [String]
|
|
2572
|
+
attr_accessor :state
|
|
2573
|
+
|
|
2574
|
+
# The time when the operation result was last updated.
|
|
2575
|
+
# Corresponds to the JSON property `updateTime`
|
|
2576
|
+
# @return [String]
|
|
2577
|
+
attr_accessor :update_time
|
|
2578
|
+
|
|
2579
|
+
def initialize(**args)
|
|
2580
|
+
update!(**args)
|
|
2581
|
+
end
|
|
2582
|
+
|
|
2583
|
+
# Update properties of this object
|
|
2584
|
+
def update!(**args)
|
|
2585
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
2586
|
+
@state = args[:state] if args.key?(:state)
|
|
2587
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
|
2588
|
+
end
|
|
2589
|
+
end
|
|
2590
|
+
|
|
2591
|
+
# The desired output location and metadata.
|
|
2592
|
+
class GoogleCloudVisionV1p2beta1OutputConfig
|
|
2593
|
+
include Google::Apis::Core::Hashable
|
|
2594
|
+
|
|
2595
|
+
# The max number of response protos to put into each output JSON file on
|
|
2596
|
+
# Google Cloud Storage.
|
|
2597
|
+
# The valid range is [1, 100]. If not specified, the default value is 20.
|
|
2598
|
+
# For example, for one pdf file with 100 pages, 100 response protos will
|
|
2599
|
+
# be generated. If `batch_size` = 20, then 5 json files each
|
|
2600
|
+
# containing 20 response protos will be written under the prefix
|
|
2601
|
+
# `gcs_destination`.`uri`.
|
|
2602
|
+
# Currently, batch_size only applies to GcsDestination, with potential future
|
|
2603
|
+
# support for other output configurations.
|
|
2604
|
+
# Corresponds to the JSON property `batchSize`
|
|
2605
|
+
# @return [Fixnum]
|
|
2606
|
+
attr_accessor :batch_size
|
|
2607
|
+
|
|
2608
|
+
# The Google Cloud Storage location where the output will be written to.
|
|
2609
|
+
# Corresponds to the JSON property `gcsDestination`
|
|
2610
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1GcsDestination]
|
|
2611
|
+
attr_accessor :gcs_destination
|
|
2612
|
+
|
|
2613
|
+
def initialize(**args)
|
|
2614
|
+
update!(**args)
|
|
2615
|
+
end
|
|
2616
|
+
|
|
2617
|
+
# Update properties of this object
|
|
2618
|
+
def update!(**args)
|
|
2619
|
+
@batch_size = args[:batch_size] if args.key?(:batch_size)
|
|
2620
|
+
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
|
|
2621
|
+
end
|
|
2622
|
+
end
|
|
2623
|
+
|
|
2624
|
+
# Detected page from OCR.
|
|
2625
|
+
class GoogleCloudVisionV1p2beta1Page
|
|
2626
|
+
include Google::Apis::Core::Hashable
|
|
2627
|
+
|
|
2628
|
+
# List of blocks of text, images etc on this page.
|
|
2629
|
+
# Corresponds to the JSON property `blocks`
|
|
2630
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Block>]
|
|
2631
|
+
attr_accessor :blocks
|
|
2632
|
+
|
|
2633
|
+
# Confidence of the OCR results on the page. Range [0, 1].
|
|
2634
|
+
# Corresponds to the JSON property `confidence`
|
|
2635
|
+
# @return [Float]
|
|
2636
|
+
attr_accessor :confidence
|
|
2637
|
+
|
|
2638
|
+
# Page height. For PDFs the unit is points. For images (including
|
|
2639
|
+
# TIFFs) the unit is pixels.
|
|
2640
|
+
# Corresponds to the JSON property `height`
|
|
2641
|
+
# @return [Fixnum]
|
|
2642
|
+
attr_accessor :height
|
|
2643
|
+
|
|
2644
|
+
# Additional information detected on the structural component.
|
|
2645
|
+
# Corresponds to the JSON property `property`
|
|
2646
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
|
|
2647
|
+
attr_accessor :property
|
|
2648
|
+
|
|
2649
|
+
# Page width. For PDFs the unit is points. For images (including
|
|
2650
|
+
# TIFFs) the unit is pixels.
|
|
2651
|
+
# Corresponds to the JSON property `width`
|
|
2652
|
+
# @return [Fixnum]
|
|
2653
|
+
attr_accessor :width
|
|
2654
|
+
|
|
2655
|
+
def initialize(**args)
|
|
2656
|
+
update!(**args)
|
|
2657
|
+
end
|
|
2658
|
+
|
|
2659
|
+
# Update properties of this object
|
|
2660
|
+
def update!(**args)
|
|
2661
|
+
@blocks = args[:blocks] if args.key?(:blocks)
|
|
2662
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
|
2663
|
+
@height = args[:height] if args.key?(:height)
|
|
2664
|
+
@property = args[:property] if args.key?(:property)
|
|
2665
|
+
@width = args[:width] if args.key?(:width)
|
|
2666
|
+
end
|
|
2667
|
+
end
|
|
2668
|
+
|
|
2669
|
+
# Structural unit of text representing a number of words in certain order.
|
|
2670
|
+
class GoogleCloudVisionV1p2beta1Paragraph
|
|
2671
|
+
include Google::Apis::Core::Hashable
|
|
2672
|
+
|
|
2673
|
+
# A bounding polygon for the detected image annotation.
|
|
2674
|
+
# Corresponds to the JSON property `boundingBox`
|
|
2675
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
|
2676
|
+
attr_accessor :bounding_box
|
|
2677
|
+
|
|
2678
|
+
# Confidence of the OCR results for the paragraph. Range [0, 1].
|
|
2679
|
+
# Corresponds to the JSON property `confidence`
|
|
2680
|
+
# @return [Float]
|
|
2681
|
+
attr_accessor :confidence
|
|
2682
|
+
|
|
2683
|
+
# Additional information detected on the structural component.
|
|
2684
|
+
# Corresponds to the JSON property `property`
|
|
2685
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
|
|
2686
|
+
attr_accessor :property
|
|
2687
|
+
|
|
2688
|
+
# List of words in this paragraph.
|
|
2689
|
+
# Corresponds to the JSON property `words`
|
|
2690
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Word>]
|
|
2691
|
+
attr_accessor :words
|
|
2692
|
+
|
|
2693
|
+
def initialize(**args)
|
|
2694
|
+
update!(**args)
|
|
2695
|
+
end
|
|
2696
|
+
|
|
2697
|
+
# Update properties of this object
|
|
2698
|
+
def update!(**args)
|
|
2699
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
|
2700
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
|
2701
|
+
@property = args[:property] if args.key?(:property)
|
|
2702
|
+
@words = args[:words] if args.key?(:words)
|
|
2703
|
+
end
|
|
2704
|
+
end
|
|
2705
|
+
|
|
2706
|
+
# A 3D position in the image, used primarily for Face detection landmarks.
|
|
2707
|
+
# A valid Position must have both x and y coordinates.
|
|
2708
|
+
# The position coordinates are in the same scale as the original image.
|
|
2709
|
+
class GoogleCloudVisionV1p2beta1Position
|
|
2710
|
+
include Google::Apis::Core::Hashable
|
|
2711
|
+
|
|
2712
|
+
# X coordinate.
|
|
2713
|
+
# Corresponds to the JSON property `x`
|
|
2714
|
+
# @return [Float]
|
|
2715
|
+
attr_accessor :x
|
|
2716
|
+
|
|
2717
|
+
# Y coordinate.
|
|
2718
|
+
# Corresponds to the JSON property `y`
|
|
2719
|
+
# @return [Float]
|
|
2720
|
+
attr_accessor :y
|
|
2721
|
+
|
|
2722
|
+
# Z coordinate (or depth).
|
|
2723
|
+
# Corresponds to the JSON property `z`
|
|
2724
|
+
# @return [Float]
|
|
2725
|
+
attr_accessor :z
|
|
2726
|
+
|
|
2727
|
+
def initialize(**args)
|
|
2728
|
+
update!(**args)
|
|
2729
|
+
end
|
|
2730
|
+
|
|
2731
|
+
# Update properties of this object
|
|
2732
|
+
def update!(**args)
|
|
2733
|
+
@x = args[:x] if args.key?(:x)
|
|
2734
|
+
@y = args[:y] if args.key?(:y)
|
|
2735
|
+
@z = args[:z] if args.key?(:z)
|
|
2736
|
+
end
|
|
2737
|
+
end
|
|
2738
|
+
|
|
2739
|
+
# A `Property` consists of a user-supplied name/value pair.
|
|
2740
|
+
class GoogleCloudVisionV1p2beta1Property
|
|
2741
|
+
include Google::Apis::Core::Hashable
|
|
2742
|
+
|
|
2743
|
+
# Name of the property.
|
|
2744
|
+
# Corresponds to the JSON property `name`
|
|
2745
|
+
# @return [String]
|
|
2746
|
+
attr_accessor :name
|
|
2747
|
+
|
|
2748
|
+
# Value of numeric properties.
|
|
2749
|
+
# Corresponds to the JSON property `uint64Value`
|
|
2750
|
+
# @return [Fixnum]
|
|
2751
|
+
attr_accessor :uint64_value
|
|
2752
|
+
|
|
2753
|
+
# Value of the property.
|
|
2754
|
+
# Corresponds to the JSON property `value`
|
|
2755
|
+
# @return [String]
|
|
2756
|
+
attr_accessor :value
|
|
2757
|
+
|
|
2758
|
+
def initialize(**args)
|
|
2759
|
+
update!(**args)
|
|
2760
|
+
end
|
|
2761
|
+
|
|
2762
|
+
# Update properties of this object
|
|
2763
|
+
def update!(**args)
|
|
2764
|
+
@name = args[:name] if args.key?(:name)
|
|
2765
|
+
@uint64_value = args[:uint64_value] if args.key?(:uint64_value)
|
|
2766
|
+
@value = args[:value] if args.key?(:value)
|
|
2767
|
+
end
|
|
2768
|
+
end
|
|
2769
|
+
|
|
2770
|
+
# Set of features pertaining to the image, computed by computer vision
|
|
2771
|
+
# methods over safe-search verticals (for example, adult, spoof, medical,
|
|
2772
|
+
# violence).
|
|
2773
|
+
class GoogleCloudVisionV1p2beta1SafeSearchAnnotation
|
|
2774
|
+
include Google::Apis::Core::Hashable
|
|
2775
|
+
|
|
2776
|
+
# Represents the adult content likelihood for the image. Adult content may
|
|
2777
|
+
# contain elements such as nudity, pornographic images or cartoons, or
|
|
2778
|
+
# sexual activities.
|
|
2779
|
+
# Corresponds to the JSON property `adult`
|
|
2780
|
+
# @return [String]
|
|
2781
|
+
attr_accessor :adult
|
|
2782
|
+
|
|
2783
|
+
# Likelihood that this is a medical image.
|
|
2784
|
+
# Corresponds to the JSON property `medical`
|
|
2785
|
+
# @return [String]
|
|
2786
|
+
attr_accessor :medical
|
|
2787
|
+
|
|
2788
|
+
# Likelihood that the request image contains racy content. Racy content may
|
|
2789
|
+
# include (but is not limited to) skimpy or sheer clothing, strategically
|
|
2790
|
+
# covered nudity, lewd or provocative poses, or close-ups of sensitive
|
|
2791
|
+
# body areas.
|
|
2792
|
+
# Corresponds to the JSON property `racy`
|
|
2793
|
+
# @return [String]
|
|
2794
|
+
attr_accessor :racy
|
|
2795
|
+
|
|
2796
|
+
# Spoof likelihood. The likelihood that an modification
|
|
2797
|
+
# was made to the image's canonical version to make it appear
|
|
2798
|
+
# funny or offensive.
|
|
2799
|
+
# Corresponds to the JSON property `spoof`
|
|
2800
|
+
# @return [String]
|
|
2801
|
+
attr_accessor :spoof
|
|
2802
|
+
|
|
2803
|
+
# Likelihood that this image contains violent content.
|
|
2804
|
+
# Corresponds to the JSON property `violence`
|
|
2805
|
+
# @return [String]
|
|
2806
|
+
attr_accessor :violence
|
|
2807
|
+
|
|
2808
|
+
def initialize(**args)
|
|
2809
|
+
update!(**args)
|
|
2810
|
+
end
|
|
2811
|
+
|
|
2812
|
+
# Update properties of this object
|
|
2813
|
+
def update!(**args)
|
|
2814
|
+
@adult = args[:adult] if args.key?(:adult)
|
|
2815
|
+
@medical = args[:medical] if args.key?(:medical)
|
|
2816
|
+
@racy = args[:racy] if args.key?(:racy)
|
|
2817
|
+
@spoof = args[:spoof] if args.key?(:spoof)
|
|
2818
|
+
@violence = args[:violence] if args.key?(:violence)
|
|
2819
|
+
end
|
|
2820
|
+
end
|
|
2821
|
+
|
|
2822
|
+
# A single symbol representation.
|
|
2823
|
+
class GoogleCloudVisionV1p2beta1Symbol
|
|
2824
|
+
include Google::Apis::Core::Hashable
|
|
2825
|
+
|
|
2826
|
+
# A bounding polygon for the detected image annotation.
|
|
2827
|
+
# Corresponds to the JSON property `boundingBox`
|
|
2828
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
|
2829
|
+
attr_accessor :bounding_box
|
|
2830
|
+
|
|
2831
|
+
# Confidence of the OCR results for the symbol. Range [0, 1].
|
|
2832
|
+
# Corresponds to the JSON property `confidence`
|
|
2833
|
+
# @return [Float]
|
|
2834
|
+
attr_accessor :confidence
|
|
2835
|
+
|
|
2836
|
+
# Additional information detected on the structural component.
|
|
2837
|
+
# Corresponds to the JSON property `property`
|
|
2838
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
|
|
2839
|
+
attr_accessor :property
|
|
2840
|
+
|
|
2841
|
+
# The actual UTF-8 representation of the symbol.
|
|
2842
|
+
# Corresponds to the JSON property `text`
|
|
2843
|
+
# @return [String]
|
|
2844
|
+
attr_accessor :text
|
|
2845
|
+
|
|
2846
|
+
def initialize(**args)
|
|
2847
|
+
update!(**args)
|
|
2848
|
+
end
|
|
2849
|
+
|
|
2850
|
+
# Update properties of this object
|
|
2851
|
+
def update!(**args)
|
|
2852
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
|
2853
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
|
2854
|
+
@property = args[:property] if args.key?(:property)
|
|
2855
|
+
@text = args[:text] if args.key?(:text)
|
|
2856
|
+
end
|
|
2857
|
+
end
|
|
2858
|
+
|
|
2859
|
+
# TextAnnotation contains a structured representation of OCR extracted text.
|
|
2860
|
+
# The hierarchy of an OCR extracted text structure is like this:
|
|
2861
|
+
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
|
2862
|
+
# Each structural component, starting from Page, may further have their own
|
|
2863
|
+
# properties. Properties describe detected languages, breaks etc.. Please refer
|
|
2864
|
+
# to the TextAnnotation.TextProperty message definition below for more
|
|
2865
|
+
# detail.
|
|
2866
|
+
class GoogleCloudVisionV1p2beta1TextAnnotation
|
|
2867
|
+
include Google::Apis::Core::Hashable
|
|
2868
|
+
|
|
2869
|
+
# List of pages detected by OCR.
|
|
2870
|
+
# Corresponds to the JSON property `pages`
|
|
2871
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Page>]
|
|
2872
|
+
attr_accessor :pages
|
|
2873
|
+
|
|
2874
|
+
# UTF-8 text detected on the pages.
|
|
2875
|
+
# Corresponds to the JSON property `text`
|
|
2876
|
+
# @return [String]
|
|
2877
|
+
attr_accessor :text
|
|
2878
|
+
|
|
2879
|
+
def initialize(**args)
|
|
2880
|
+
update!(**args)
|
|
2881
|
+
end
|
|
2882
|
+
|
|
2883
|
+
# Update properties of this object
|
|
2884
|
+
def update!(**args)
|
|
2885
|
+
@pages = args[:pages] if args.key?(:pages)
|
|
2886
|
+
@text = args[:text] if args.key?(:text)
|
|
2887
|
+
end
|
|
2888
|
+
end
|
|
2889
|
+
|
|
2890
|
+
# Detected start or end of a structural component.
|
|
2891
|
+
class GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak
|
|
2892
|
+
include Google::Apis::Core::Hashable
|
|
2893
|
+
|
|
2894
|
+
# True if break prepends the element.
|
|
2895
|
+
# Corresponds to the JSON property `isPrefix`
|
|
2896
|
+
# @return [Boolean]
|
|
2897
|
+
attr_accessor :is_prefix
|
|
2898
|
+
alias_method :is_prefix?, :is_prefix
|
|
2899
|
+
|
|
2900
|
+
# Detected break type.
|
|
2901
|
+
# Corresponds to the JSON property `type`
|
|
2902
|
+
# @return [String]
|
|
2903
|
+
attr_accessor :type
|
|
2904
|
+
|
|
2905
|
+
def initialize(**args)
|
|
2906
|
+
update!(**args)
|
|
2907
|
+
end
|
|
2908
|
+
|
|
2909
|
+
# Update properties of this object
|
|
2910
|
+
def update!(**args)
|
|
2911
|
+
@is_prefix = args[:is_prefix] if args.key?(:is_prefix)
|
|
2912
|
+
@type = args[:type] if args.key?(:type)
|
|
2913
|
+
end
|
|
2914
|
+
end
|
|
2915
|
+
|
|
2916
|
+
# Detected language for a structural component.
|
|
2917
|
+
class GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage
|
|
2918
|
+
include Google::Apis::Core::Hashable
|
|
2919
|
+
|
|
2920
|
+
# Confidence of detected language. Range [0, 1].
|
|
2921
|
+
# Corresponds to the JSON property `confidence`
|
|
2922
|
+
# @return [Float]
|
|
2923
|
+
attr_accessor :confidence
|
|
2924
|
+
|
|
2925
|
+
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
|
2926
|
+
# information, see
|
|
2927
|
+
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
|
2928
|
+
# Corresponds to the JSON property `languageCode`
|
|
2929
|
+
# @return [String]
|
|
2930
|
+
attr_accessor :language_code
|
|
2931
|
+
|
|
2932
|
+
def initialize(**args)
|
|
2933
|
+
update!(**args)
|
|
2934
|
+
end
|
|
2935
|
+
|
|
2936
|
+
# Update properties of this object
|
|
2937
|
+
def update!(**args)
|
|
2938
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
|
2939
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
|
2940
|
+
end
|
|
2941
|
+
end
|
|
2942
|
+
|
|
2943
|
+
# Additional information detected on the structural component.
|
|
2944
|
+
class GoogleCloudVisionV1p2beta1TextAnnotationTextProperty
|
|
2945
|
+
include Google::Apis::Core::Hashable
|
|
2946
|
+
|
|
2947
|
+
# Detected start or end of a structural component.
|
|
2948
|
+
# Corresponds to the JSON property `detectedBreak`
|
|
2949
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak]
|
|
2950
|
+
attr_accessor :detected_break
|
|
2951
|
+
|
|
2952
|
+
# A list of detected languages together with confidence.
|
|
2953
|
+
# Corresponds to the JSON property `detectedLanguages`
|
|
2954
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage>]
|
|
2955
|
+
attr_accessor :detected_languages
|
|
2956
|
+
|
|
2957
|
+
def initialize(**args)
|
|
2958
|
+
update!(**args)
|
|
2959
|
+
end
|
|
2960
|
+
|
|
2961
|
+
# Update properties of this object
|
|
2962
|
+
def update!(**args)
|
|
2963
|
+
@detected_break = args[:detected_break] if args.key?(:detected_break)
|
|
2964
|
+
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
|
2965
|
+
end
|
|
2966
|
+
end
|
|
2967
|
+
|
|
2968
|
+
# A vertex represents a 2D point in the image.
|
|
2969
|
+
# NOTE: the vertex coordinates are in the same scale as the original image.
|
|
2970
|
+
class GoogleCloudVisionV1p2beta1Vertex
|
|
2971
|
+
include Google::Apis::Core::Hashable
|
|
2972
|
+
|
|
2973
|
+
# X coordinate.
|
|
2974
|
+
# Corresponds to the JSON property `x`
|
|
2975
|
+
# @return [Fixnum]
|
|
2976
|
+
attr_accessor :x
|
|
2977
|
+
|
|
2978
|
+
# Y coordinate.
|
|
2979
|
+
# Corresponds to the JSON property `y`
|
|
2980
|
+
# @return [Fixnum]
|
|
2981
|
+
attr_accessor :y
|
|
2982
|
+
|
|
2983
|
+
def initialize(**args)
|
|
2984
|
+
update!(**args)
|
|
2985
|
+
end
|
|
2986
|
+
|
|
2987
|
+
# Update properties of this object
|
|
2988
|
+
def update!(**args)
|
|
2989
|
+
@x = args[:x] if args.key?(:x)
|
|
2990
|
+
@y = args[:y] if args.key?(:y)
|
|
2991
|
+
end
|
|
2992
|
+
end
|
|
2993
|
+
|
|
2994
|
+
# Relevant information for the image from the Internet.
|
|
2995
|
+
class GoogleCloudVisionV1p2beta1WebDetection
|
|
2996
|
+
include Google::Apis::Core::Hashable
|
|
2997
|
+
|
|
2998
|
+
# Best guess text labels for the request image.
|
|
2999
|
+
# Corresponds to the JSON property `bestGuessLabels`
|
|
3000
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebLabel>]
|
|
3001
|
+
attr_accessor :best_guess_labels
|
|
3002
|
+
|
|
3003
|
+
# Fully matching images from the Internet.
|
|
3004
|
+
# Can include resized copies of the query image.
|
|
3005
|
+
# Corresponds to the JSON property `fullMatchingImages`
|
|
3006
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
|
|
3007
|
+
attr_accessor :full_matching_images
|
|
3008
|
+
|
|
3009
|
+
# Web pages containing the matching images from the Internet.
|
|
3010
|
+
# Corresponds to the JSON property `pagesWithMatchingImages`
|
|
3011
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebPage>]
|
|
3012
|
+
attr_accessor :pages_with_matching_images
|
|
3013
|
+
|
|
3014
|
+
# Partial matching images from the Internet.
|
|
3015
|
+
# Those images are similar enough to share some key-point features. For
|
|
3016
|
+
# example an original image will likely have partial matching for its crops.
|
|
3017
|
+
# Corresponds to the JSON property `partialMatchingImages`
|
|
3018
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
|
|
3019
|
+
attr_accessor :partial_matching_images
|
|
3020
|
+
|
|
3021
|
+
# The visually similar image results.
|
|
3022
|
+
# Corresponds to the JSON property `visuallySimilarImages`
|
|
3023
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
|
|
3024
|
+
attr_accessor :visually_similar_images
|
|
3025
|
+
|
|
3026
|
+
# Deduced entities from similar images on the Internet.
|
|
3027
|
+
# Corresponds to the JSON property `webEntities`
|
|
3028
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebEntity>]
|
|
3029
|
+
attr_accessor :web_entities
|
|
3030
|
+
|
|
3031
|
+
def initialize(**args)
|
|
3032
|
+
update!(**args)
|
|
3033
|
+
end
|
|
3034
|
+
|
|
3035
|
+
# Update properties of this object
|
|
3036
|
+
def update!(**args)
|
|
3037
|
+
@best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
|
|
3038
|
+
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
|
3039
|
+
@pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
|
|
3040
|
+
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
|
3041
|
+
@visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
|
|
3042
|
+
@web_entities = args[:web_entities] if args.key?(:web_entities)
|
|
3043
|
+
end
|
|
3044
|
+
end
|
|
3045
|
+
|
|
3046
|
+
# Entity deduced from similar images on the Internet.
|
|
3047
|
+
class GoogleCloudVisionV1p2beta1WebDetectionWebEntity
|
|
3048
|
+
include Google::Apis::Core::Hashable
|
|
3049
|
+
|
|
3050
|
+
# Canonical description of the entity, in English.
|
|
3051
|
+
# Corresponds to the JSON property `description`
|
|
3052
|
+
# @return [String]
|
|
3053
|
+
attr_accessor :description
|
|
3054
|
+
|
|
3055
|
+
# Opaque entity ID.
|
|
3056
|
+
# Corresponds to the JSON property `entityId`
|
|
3057
|
+
# @return [String]
|
|
3058
|
+
attr_accessor :entity_id
|
|
3059
|
+
|
|
3060
|
+
# Overall relevancy score for the entity.
|
|
3061
|
+
# Not normalized and not comparable across different image queries.
|
|
3062
|
+
# Corresponds to the JSON property `score`
|
|
3063
|
+
# @return [Float]
|
|
3064
|
+
attr_accessor :score
|
|
3065
|
+
|
|
3066
|
+
def initialize(**args)
|
|
3067
|
+
update!(**args)
|
|
3068
|
+
end
|
|
3069
|
+
|
|
3070
|
+
# Update properties of this object
|
|
3071
|
+
def update!(**args)
|
|
3072
|
+
@description = args[:description] if args.key?(:description)
|
|
3073
|
+
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
|
3074
|
+
@score = args[:score] if args.key?(:score)
|
|
3075
|
+
end
|
|
3076
|
+
end
|
|
3077
|
+
|
|
3078
|
+
# Metadata for online images.
|
|
3079
|
+
class GoogleCloudVisionV1p2beta1WebDetectionWebImage
|
|
3080
|
+
include Google::Apis::Core::Hashable
|
|
3081
|
+
|
|
3082
|
+
# (Deprecated) Overall relevancy score for the image.
|
|
3083
|
+
# Corresponds to the JSON property `score`
|
|
3084
|
+
# @return [Float]
|
|
3085
|
+
attr_accessor :score
|
|
3086
|
+
|
|
3087
|
+
# The result image URL.
|
|
3088
|
+
# Corresponds to the JSON property `url`
|
|
3089
|
+
# @return [String]
|
|
3090
|
+
attr_accessor :url
|
|
3091
|
+
|
|
3092
|
+
def initialize(**args)
|
|
3093
|
+
update!(**args)
|
|
3094
|
+
end
|
|
3095
|
+
|
|
3096
|
+
# Update properties of this object
|
|
3097
|
+
def update!(**args)
|
|
3098
|
+
@score = args[:score] if args.key?(:score)
|
|
3099
|
+
@url = args[:url] if args.key?(:url)
|
|
3100
|
+
end
|
|
3101
|
+
end
|
|
3102
|
+
|
|
3103
|
+
# Label to provide extra metadata for the web detection.
|
|
3104
|
+
class GoogleCloudVisionV1p2beta1WebDetectionWebLabel
|
|
3105
|
+
include Google::Apis::Core::Hashable
|
|
3106
|
+
|
|
3107
|
+
# Label for extra metadata.
|
|
3108
|
+
# Corresponds to the JSON property `label`
|
|
3109
|
+
# @return [String]
|
|
3110
|
+
attr_accessor :label
|
|
3111
|
+
|
|
3112
|
+
# The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
|
|
3113
|
+
# For more information, see
|
|
3114
|
+
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
|
3115
|
+
# Corresponds to the JSON property `languageCode`
|
|
3116
|
+
# @return [String]
|
|
3117
|
+
attr_accessor :language_code
|
|
3118
|
+
|
|
3119
|
+
def initialize(**args)
|
|
3120
|
+
update!(**args)
|
|
3121
|
+
end
|
|
3122
|
+
|
|
3123
|
+
# Update properties of this object
|
|
3124
|
+
def update!(**args)
|
|
3125
|
+
@label = args[:label] if args.key?(:label)
|
|
3126
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
|
3127
|
+
end
|
|
3128
|
+
end
|
|
3129
|
+
|
|
3130
|
+
# Metadata for web pages.
|
|
3131
|
+
class GoogleCloudVisionV1p2beta1WebDetectionWebPage
|
|
3132
|
+
include Google::Apis::Core::Hashable
|
|
3133
|
+
|
|
3134
|
+
# Fully matching images on the page.
|
|
3135
|
+
# Can include resized copies of the query image.
|
|
3136
|
+
# Corresponds to the JSON property `fullMatchingImages`
|
|
3137
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
|
|
3138
|
+
attr_accessor :full_matching_images
|
|
3139
|
+
|
|
3140
|
+
# Title for the web page, may contain HTML markups.
|
|
3141
|
+
# Corresponds to the JSON property `pageTitle`
|
|
3142
|
+
# @return [String]
|
|
3143
|
+
attr_accessor :page_title
|
|
3144
|
+
|
|
3145
|
+
# Partial matching images on the page.
|
|
3146
|
+
# Those images are similar enough to share some key-point features. For
|
|
3147
|
+
# example an original image will likely have partial matching for its
|
|
3148
|
+
# crops.
|
|
3149
|
+
# Corresponds to the JSON property `partialMatchingImages`
|
|
3150
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
|
|
3151
|
+
attr_accessor :partial_matching_images
|
|
3152
|
+
|
|
3153
|
+
# (Deprecated) Overall relevancy score for the web page.
|
|
3154
|
+
# Corresponds to the JSON property `score`
|
|
3155
|
+
# @return [Float]
|
|
3156
|
+
attr_accessor :score
|
|
3157
|
+
|
|
3158
|
+
# The result web page URL.
|
|
3159
|
+
# Corresponds to the JSON property `url`
|
|
3160
|
+
# @return [String]
|
|
3161
|
+
attr_accessor :url
|
|
3162
|
+
|
|
3163
|
+
def initialize(**args)
|
|
3164
|
+
update!(**args)
|
|
3165
|
+
end
|
|
3166
|
+
|
|
3167
|
+
# Update properties of this object
|
|
3168
|
+
def update!(**args)
|
|
3169
|
+
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
|
3170
|
+
@page_title = args[:page_title] if args.key?(:page_title)
|
|
3171
|
+
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
|
3172
|
+
@score = args[:score] if args.key?(:score)
|
|
3173
|
+
@url = args[:url] if args.key?(:url)
|
|
3174
|
+
end
|
|
3175
|
+
end
|
|
3176
|
+
|
|
3177
|
+
# A word representation.
|
|
3178
|
+
class GoogleCloudVisionV1p2beta1Word
|
|
3179
|
+
include Google::Apis::Core::Hashable
|
|
3180
|
+
|
|
3181
|
+
# A bounding polygon for the detected image annotation.
|
|
3182
|
+
# Corresponds to the JSON property `boundingBox`
|
|
3183
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
|
3184
|
+
attr_accessor :bounding_box
|
|
3185
|
+
|
|
3186
|
+
# Confidence of the OCR results for the word. Range [0, 1].
|
|
3187
|
+
# Corresponds to the JSON property `confidence`
|
|
3188
|
+
# @return [Float]
|
|
3189
|
+
attr_accessor :confidence
|
|
3190
|
+
|
|
3191
|
+
# Additional information detected on the structural component.
|
|
3192
|
+
# Corresponds to the JSON property `property`
|
|
3193
|
+
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
|
|
3194
|
+
attr_accessor :property
|
|
3195
|
+
|
|
3196
|
+
# List of symbols in the word.
|
|
3197
|
+
# The order of the symbols follows the natural reading order.
|
|
3198
|
+
# Corresponds to the JSON property `symbols`
|
|
3199
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1Symbol>]
|
|
3200
|
+
attr_accessor :symbols
|
|
3201
|
+
|
|
3202
|
+
def initialize(**args)
|
|
3203
|
+
update!(**args)
|
|
3204
|
+
end
|
|
3205
|
+
|
|
3206
|
+
# Update properties of this object
|
|
3207
|
+
def update!(**args)
|
|
3208
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
|
3209
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
|
3210
|
+
@property = args[:property] if args.key?(:property)
|
|
3211
|
+
@symbols = args[:symbols] if args.key?(:symbols)
|
|
1833
3212
|
end
|
|
1834
3213
|
end
|
|
1835
3214
|
|