google-api-client 0.23.4 → 0.23.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +171 -0
- data/Gemfile +1 -0
- data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +7 -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_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +7 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +13 -1
- data/generated/google/apis/adsense_v1_4/representations.rb +2 -0
- data/generated/google/apis/adsense_v1_4/service.rb +36 -0
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v2_4.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +68 -0
- data/generated/google/apis/analytics_v3/representations.rb +31 -0
- data/generated/google/apis/analytics_v3/service.rb +33 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +108 -28
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +32 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +73 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +0 -70
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +2 -5
- data/generated/google/apis/androidpublisher_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +3 -4
- data/generated/google/apis/appsactivity_v1.rb +2 -2
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +103 -61
- data/generated/google/apis/bigquery_v2/representations.rb +17 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1.rb +35 -0
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +597 -0
- data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +238 -0
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +523 -0
- data/generated/google/apis/blogger_v2.rb +1 -1
- data/generated/google/apis/blogger_v3.rb +1 -1
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +7 -0
- data/generated/google/apis/books_v1/representations.rb +1 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +44 -12
- data/generated/google/apis/calendar_v3/service.rb +7 -7
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +641 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +215 -0
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +25 -0
- data/generated/google/apis/classroom_v1/representations.rb +15 -0
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +85 -10
- data/generated/google/apis/cloudbilling_v1/representations.rb +18 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +3 -13
- data/generated/google/apis/cloudbuild_v1.rb +4 -4
- data/generated/google/apis/cloudbuild_v1/classes.rb +37 -3
- data/generated/google/apis/cloudbuild_v1/representations.rb +3 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +3 -3
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +8 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +1 -0
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +4 -5
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +56 -0
- data/generated/google/apis/cloudiot_v1/representations.rb +18 -0
- data/generated/google/apis/cloudiot_v1/service.rb +355 -0
- data/generated/google/apis/cloudkms_v1.rb +6 -3
- data/generated/google/apis/cloudkms_v1/classes.rb +340 -14
- data/generated/google/apis/cloudkms_v1/representations.rb +147 -0
- data/generated/google/apis/cloudkms_v1/service.rb +126 -6
- data/generated/google/apis/cloudprofiler_v2.rb +3 -3
- data/generated/google/apis/cloudprofiler_v2/classes.rb +0 -6
- data/generated/google/apis/cloudprofiler_v2/representations.rb +0 -2
- data/generated/google/apis/cloudprofiler_v2/service.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +57 -1
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +18 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +56 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +18 -0
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +57 -1
- data/generated/google/apis/cloudresourcemanager_v2/representations.rb +18 -0
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +57 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +18 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +28 -0
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +14 -0
- data/generated/google/apis/cloudshell_v1alpha1/service.rb +37 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +2 -2
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +167 -103
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +18 -0
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +28 -21
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/{spectrum_v1explorer.rb → composer_v1.rb} +12 -9
- data/generated/google/apis/composer_v1/classes.rb +640 -0
- data/generated/google/apis/composer_v1/representations.rb +195 -0
- data/generated/google/apis/composer_v1/service.rb +462 -0
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +13 -10
- data/generated/google/apis/composer_v1beta1/service.rb +6 -6
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +5135 -4250
- data/generated/google/apis/compute_alpha/representations.rb +644 -216
- data/generated/google/apis/compute_alpha/service.rb +2308 -1655
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1070 -62
- data/generated/google/apis/compute_beta/representations.rb +435 -0
- data/generated/google/apis/compute_beta/service.rb +1758 -321
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1984 -210
- data/generated/google/apis/compute_v1/representations.rb +754 -9
- data/generated/google/apis/compute_v1/service.rb +1299 -12
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +43 -0
- data/generated/google/apis/container_v1/representations.rb +17 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +193 -231
- data/generated/google/apis/container_v1beta1/representations.rb +72 -82
- data/generated/google/apis/container_v1beta1/service.rb +0 -112
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +199 -29
- data/generated/google/apis/content_v2/representations.rb +59 -0
- data/generated/google/apis/content_v2/service.rb +8 -3
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +32 -19
- data/generated/google/apis/content_v2sandbox/representations.rb +1 -0
- data/generated/google/apis/content_v2sandbox/service.rb +8 -3
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +7 -7
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +112 -43
- data/generated/google/apis/dataproc_v1beta2/representations.rb +19 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +140 -0
- data/generated/google/apis/datastore_v1/representations.rb +65 -0
- data/generated/google/apis/datastore_v1/service.rb +74 -0
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1/classes.rb +31 -0
- data/generated/google/apis/datastore_v1beta1/representations.rb +17 -0
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +31 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/dfareporting_v2_8.rb +1 -1
- data/generated/google/apis/dfareporting_v3_0.rb +1 -1
- data/generated/google/apis/dfareporting_v3_1.rb +1 -1
- data/generated/google/apis/dfareporting_v3_2.rb +40 -0
- data/generated/google/apis/dfareporting_v3_2/classes.rb +12297 -0
- data/generated/google/apis/dfareporting_v3_2/representations.rb +4397 -0
- data/generated/google/apis/dfareporting_v3_2/service.rb +8790 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +304 -12
- data/generated/google/apis/dialogflow_v2/representations.rb +113 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +656 -26
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +248 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +556 -0
- data/generated/google/apis/discovery_v1.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +357 -6
- data/generated/google/apis/dlp_v2/representations.rb +161 -0
- data/generated/google/apis/dlp_v2/service.rb +366 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +0 -7
- data/generated/google/apis/dns_v1/representations.rb +0 -1
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +0 -7
- data/generated/google/apis/dns_v1beta2/representations.rb +0 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +0 -7
- data/generated/google/apis/dns_v2beta1/representations.rb +0 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +3 -2
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/firestore_v1.rb +37 -0
- data/generated/google/apis/firestore_v1/classes.rb +324 -0
- data/generated/google/apis/firestore_v1/representations.rb +130 -0
- data/generated/google/apis/firestore_v1/service.rb +282 -0
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +290 -0
- data/generated/google/apis/firestore_v1beta1/representations.rb +128 -0
- data/generated/google/apis/firestore_v1beta1/service.rb +79 -0
- data/generated/google/apis/firestore_v1beta2.rb +37 -0
- data/generated/google/apis/firestore_v1beta2/classes.rb +531 -0
- data/generated/google/apis/firestore_v1beta2/representations.rb +189 -0
- data/generated/google/apis/firestore_v1beta2/service.rb +213 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fusiontables_v1.rb +1 -1
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +113 -36
- data/generated/google/apis/genomics_v1/representations.rb +31 -0
- data/generated/google/apis/genomics_v1/service.rb +2 -0
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +57 -36
- data/generated/google/apis/genomics_v1alpha2/representations.rb +13 -0
- data/generated/google/apis/genomics_v1alpha2/service.rb +2 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +252 -137
- data/generated/google/apis/genomics_v2alpha1/representations.rb +50 -0
- data/generated/google/apis/genomics_v2alpha1/service.rb +7 -5
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/groupsmigration_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +258 -3
- data/generated/google/apis/iam_v1/representations.rb +73 -0
- data/generated/google/apis/iam_v1/service.rb +50 -2
- data/generated/google/apis/iamcredentials_v1.rb +2 -2
- data/generated/google/apis/iamcredentials_v1/classes.rb +2 -2
- data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +34 -0
- data/generated/google/apis/iap_v1beta1/classes.rb +440 -0
- data/generated/google/apis/iap_v1beta1/representations.rb +158 -0
- data/generated/google/apis/iap_v1beta1/service.rb +398 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/jobs_v2.rb +3 -3
- data/generated/google/apis/jobs_v2/classes.rb +61 -5
- data/generated/google/apis/jobs_v2/representations.rb +18 -0
- data/generated/google/apis/jobs_v2/service.rb +3 -3
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/logging_v2.rb +2 -2
- data/generated/google/apis/logging_v2/classes.rb +64 -58
- data/generated/google/apis/logging_v2/representations.rb +1 -0
- data/generated/google/apis/logging_v2/service.rb +39 -40
- data/generated/google/apis/logging_v2beta1.rb +2 -2
- data/generated/google/apis/logging_v2beta1/classes.rb +59 -53
- data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
- data/generated/google/apis/logging_v2beta1/service.rb +15 -16
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +87 -0
- data/generated/google/apis/ml_v1/representations.rb +34 -0
- data/generated/google/apis/ml_v1/service.rb +53 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +68 -15
- data/generated/google/apis/monitoring_v3/representations.rb +26 -0
- data/generated/google/apis/mybusiness_v3/classes.rb +1 -1
- data/generated/google/apis/oauth2_v1.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v1.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v4.rb +1 -1
- data/generated/google/apis/playcustomapp_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/poly_v1.rb +4 -3
- data/generated/google/apis/poly_v1/classes.rb +28 -0
- data/generated/google/apis/poly_v1/representations.rb +15 -0
- data/generated/google/apis/poly_v1/service.rb +3 -2
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +63 -8
- data/generated/google/apis/pubsub_v1/representations.rb +18 -0
- data/generated/google/apis/pubsub_v1/service.rb +7 -8
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +56 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +18 -0
- data/generated/google/apis/redis_v1beta1.rb +2 -2
- data/generated/google/apis/redis_v1beta1/classes.rb +38 -119
- data/generated/google/apis/redis_v1beta1/representations.rb +10 -43
- data/generated/google/apis/redis_v1beta1/service.rb +73 -1
- data/generated/google/apis/replicapool_v1beta1.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +1 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +57 -1
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +18 -0
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +1 -57
- data/generated/google/apis/script_v1/representations.rb +0 -32
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +56 -1
- data/generated/google/apis/servicebroker_v1/representations.rb +18 -0
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +56 -1
- data/generated/google/apis/servicebroker_v1alpha1/representations.rb +18 -0
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +56 -1
- data/generated/google/apis/servicebroker_v1beta1/representations.rb +18 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +13 -4
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +259 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +68 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +68 -4
- data/generated/google/apis/servicemanagement_v1/representations.rb +19 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +13 -4
- data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +13 -4
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +12 -3
- data/generated/google/apis/serviceuser_v1/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +22 -22
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +56 -1
- data/generated/google/apis/sourcerepo_v1/representations.rb +18 -0
- data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
- data/generated/google/apis/sqladmin_v1beta3/classes.rb +1632 -0
- data/generated/google/apis/sqladmin_v1beta3/representations.rb +733 -0
- data/generated/google/apis/sqladmin_v1beta3/service.rb +995 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +4 -4
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +30 -14
- data/generated/google/apis/sqladmin_v1beta4/service.rb +7 -7
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1beta1.rb +1 -1
- data/generated/google/apis/storage_v1beta2.rb +1 -1
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/tasks_v1.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +2 -2
- data/generated/google/apis/texttospeech_v1.rb +34 -0
- data/generated/google/apis/texttospeech_v1/classes.rb +278 -0
- data/generated/google/apis/texttospeech_v1/representations.rb +133 -0
- data/generated/google/apis/texttospeech_v1/service.rb +127 -0
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -2
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +0 -12
- data/generated/google/apis/toolresults_v1beta3/representations.rb +0 -2
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +0 -13
- data/generated/google/apis/tpu_v1/representations.rb +0 -12
- data/generated/google/apis/tpu_v1/service.rb +0 -33
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +0 -13
- data/generated/google/apis/tpu_v1alpha1/representations.rb +0 -12
- data/generated/google/apis/tpu_v1alpha1/service.rb +0 -33
- data/generated/google/apis/urlshortener_v1.rb +1 -1
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +803 -0
- data/generated/google/apis/vault_v1/representations.rb +384 -0
- data/generated/google/apis/vault_v1/service.rb +211 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +3342 -227
- data/generated/google/apis/vision_v1/representations.rb +1696 -365
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1826 -94
- data/generated/google/apis/vision_v1p1beta1/representations.rb +754 -1
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +3712 -597
- data/generated/google/apis/vision_v1p2beta1/representations.rb +1606 -275
- data/generated/google/apis/webfonts_v1.rb +1 -1
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +58 -2
- data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +32 -0
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/lib/google/apis/core/http_command.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +34 -6
- data/generated/google/apis/spectrum_v1explorer/classes.rb +0 -1612
- data/generated/google/apis/spectrum_v1explorer/representations.rb +0 -611
- data/generated/google/apis/spectrum_v1explorer/service.rb +0 -271
@@ -384,6 +384,179 @@ module Google
|
|
384
384
|
execute_or_queue_command(command, &block)
|
385
385
|
end
|
386
386
|
|
387
|
+
# Creates an Export.
|
388
|
+
# @param [String] matter_id
|
389
|
+
# The matter ID.
|
390
|
+
# @param [Google::Apis::VaultV1::Export] export_object
|
391
|
+
# @param [String] fields
|
392
|
+
# Selector specifying which fields to include in a partial response.
|
393
|
+
# @param [String] quota_user
|
394
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
395
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
396
|
+
# @param [Google::Apis::RequestOptions] options
|
397
|
+
# Request-specific options
|
398
|
+
#
|
399
|
+
# @yield [result, err] Result & error if block supplied
|
400
|
+
# @yieldparam result [Google::Apis::VaultV1::Export] parsed result object
|
401
|
+
# @yieldparam err [StandardError] error object if request failed
|
402
|
+
#
|
403
|
+
# @return [Google::Apis::VaultV1::Export]
|
404
|
+
#
|
405
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
406
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
407
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
408
|
+
def create_matter_export(matter_id, export_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
409
|
+
command = make_simple_command(:post, 'v1/matters/{matterId}/exports', options)
|
410
|
+
command.request_representation = Google::Apis::VaultV1::Export::Representation
|
411
|
+
command.request_object = export_object
|
412
|
+
command.response_representation = Google::Apis::VaultV1::Export::Representation
|
413
|
+
command.response_class = Google::Apis::VaultV1::Export
|
414
|
+
command.params['matterId'] = matter_id unless matter_id.nil?
|
415
|
+
command.query['fields'] = fields unless fields.nil?
|
416
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
417
|
+
execute_or_queue_command(command, &block)
|
418
|
+
end
|
419
|
+
|
420
|
+
# Deletes an Export.
|
421
|
+
# @param [String] matter_id
|
422
|
+
# The matter ID.
|
423
|
+
# @param [String] export_id
|
424
|
+
# The export ID.
|
425
|
+
# @param [String] fields
|
426
|
+
# Selector specifying which fields to include in a partial response.
|
427
|
+
# @param [String] quota_user
|
428
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
429
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
430
|
+
# @param [Google::Apis::RequestOptions] options
|
431
|
+
# Request-specific options
|
432
|
+
#
|
433
|
+
# @yield [result, err] Result & error if block supplied
|
434
|
+
# @yieldparam result [Google::Apis::VaultV1::Empty] parsed result object
|
435
|
+
# @yieldparam err [StandardError] error object if request failed
|
436
|
+
#
|
437
|
+
# @return [Google::Apis::VaultV1::Empty]
|
438
|
+
#
|
439
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
440
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
441
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
442
|
+
def delete_matter_export(matter_id, export_id, fields: nil, quota_user: nil, options: nil, &block)
|
443
|
+
command = make_simple_command(:delete, 'v1/matters/{matterId}/exports/{exportId}', options)
|
444
|
+
command.response_representation = Google::Apis::VaultV1::Empty::Representation
|
445
|
+
command.response_class = Google::Apis::VaultV1::Empty
|
446
|
+
command.params['matterId'] = matter_id unless matter_id.nil?
|
447
|
+
command.params['exportId'] = export_id unless export_id.nil?
|
448
|
+
command.query['fields'] = fields unless fields.nil?
|
449
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
450
|
+
execute_or_queue_command(command, &block)
|
451
|
+
end
|
452
|
+
|
453
|
+
# Gets an Export.
|
454
|
+
# @param [String] matter_id
|
455
|
+
# The matter ID.
|
456
|
+
# @param [String] export_id
|
457
|
+
# The export ID.
|
458
|
+
# @param [String] fields
|
459
|
+
# Selector specifying which fields to include in a partial response.
|
460
|
+
# @param [String] quota_user
|
461
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
462
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
463
|
+
# @param [Google::Apis::RequestOptions] options
|
464
|
+
# Request-specific options
|
465
|
+
#
|
466
|
+
# @yield [result, err] Result & error if block supplied
|
467
|
+
# @yieldparam result [Google::Apis::VaultV1::Export] parsed result object
|
468
|
+
# @yieldparam err [StandardError] error object if request failed
|
469
|
+
#
|
470
|
+
# @return [Google::Apis::VaultV1::Export]
|
471
|
+
#
|
472
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
473
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
474
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
475
|
+
def get_matter_export(matter_id, export_id, fields: nil, quota_user: nil, options: nil, &block)
|
476
|
+
command = make_simple_command(:get, 'v1/matters/{matterId}/exports/{exportId}', options)
|
477
|
+
command.response_representation = Google::Apis::VaultV1::Export::Representation
|
478
|
+
command.response_class = Google::Apis::VaultV1::Export
|
479
|
+
command.params['matterId'] = matter_id unless matter_id.nil?
|
480
|
+
command.params['exportId'] = export_id unless export_id.nil?
|
481
|
+
command.query['fields'] = fields unless fields.nil?
|
482
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
483
|
+
execute_or_queue_command(command, &block)
|
484
|
+
end
|
485
|
+
|
486
|
+
# Lists Exports.
|
487
|
+
# @param [String] matter_id
|
488
|
+
# The matter ID.
|
489
|
+
# @param [Fixnum] page_size
|
490
|
+
# The number of exports to return in the response.
|
491
|
+
# @param [String] page_token
|
492
|
+
# The pagination token as returned in the response.
|
493
|
+
# @param [String] fields
|
494
|
+
# Selector specifying which fields to include in a partial response.
|
495
|
+
# @param [String] quota_user
|
496
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
497
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
498
|
+
# @param [Google::Apis::RequestOptions] options
|
499
|
+
# Request-specific options
|
500
|
+
#
|
501
|
+
# @yield [result, err] Result & error if block supplied
|
502
|
+
# @yieldparam result [Google::Apis::VaultV1::ListExportsResponse] parsed result object
|
503
|
+
# @yieldparam err [StandardError] error object if request failed
|
504
|
+
#
|
505
|
+
# @return [Google::Apis::VaultV1::ListExportsResponse]
|
506
|
+
#
|
507
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
508
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
509
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
510
|
+
def list_matter_exports(matter_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
511
|
+
command = make_simple_command(:get, 'v1/matters/{matterId}/exports', options)
|
512
|
+
command.response_representation = Google::Apis::VaultV1::ListExportsResponse::Representation
|
513
|
+
command.response_class = Google::Apis::VaultV1::ListExportsResponse
|
514
|
+
command.params['matterId'] = matter_id unless matter_id.nil?
|
515
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
516
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
517
|
+
command.query['fields'] = fields unless fields.nil?
|
518
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
519
|
+
execute_or_queue_command(command, &block)
|
520
|
+
end
|
521
|
+
|
522
|
+
# Adds HeldAccounts to a hold. Returns a list of accounts that have been
|
523
|
+
# successfully added. Accounts can only be added to an existing account-based
|
524
|
+
# hold.
|
525
|
+
# @param [String] matter_id
|
526
|
+
# The matter ID.
|
527
|
+
# @param [String] hold_id
|
528
|
+
# The hold ID.
|
529
|
+
# @param [Google::Apis::VaultV1::AddHeldAccountsRequest] add_held_accounts_request_object
|
530
|
+
# @param [String] fields
|
531
|
+
# Selector specifying which fields to include in a partial response.
|
532
|
+
# @param [String] quota_user
|
533
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
534
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
535
|
+
# @param [Google::Apis::RequestOptions] options
|
536
|
+
# Request-specific options
|
537
|
+
#
|
538
|
+
# @yield [result, err] Result & error if block supplied
|
539
|
+
# @yieldparam result [Google::Apis::VaultV1::AddHeldAccountsResponse] parsed result object
|
540
|
+
# @yieldparam err [StandardError] error object if request failed
|
541
|
+
#
|
542
|
+
# @return [Google::Apis::VaultV1::AddHeldAccountsResponse]
|
543
|
+
#
|
544
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
545
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
546
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
547
|
+
def add_hold_held_accounts(matter_id, hold_id, add_held_accounts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
548
|
+
command = make_simple_command(:post, 'v1/matters/{matterId}/holds/{holdId}:addHeldAccounts', options)
|
549
|
+
command.request_representation = Google::Apis::VaultV1::AddHeldAccountsRequest::Representation
|
550
|
+
command.request_object = add_held_accounts_request_object
|
551
|
+
command.response_representation = Google::Apis::VaultV1::AddHeldAccountsResponse::Representation
|
552
|
+
command.response_class = Google::Apis::VaultV1::AddHeldAccountsResponse
|
553
|
+
command.params['matterId'] = matter_id unless matter_id.nil?
|
554
|
+
command.params['holdId'] = hold_id unless hold_id.nil?
|
555
|
+
command.query['fields'] = fields unless fields.nil?
|
556
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
557
|
+
execute_or_queue_command(command, &block)
|
558
|
+
end
|
559
|
+
|
387
560
|
# Creates a hold in the given matter.
|
388
561
|
# @param [String] matter_id
|
389
562
|
# The matter ID.
|
@@ -528,6 +701,44 @@ module Google
|
|
528
701
|
execute_or_queue_command(command, &block)
|
529
702
|
end
|
530
703
|
|
704
|
+
# Removes HeldAccounts from a hold. Returns a list of statuses in the same
|
705
|
+
# order as the request. If this request leaves the hold with no held
|
706
|
+
# accounts, the hold will not apply to any accounts.
|
707
|
+
# @param [String] matter_id
|
708
|
+
# The matter ID.
|
709
|
+
# @param [String] hold_id
|
710
|
+
# The hold ID.
|
711
|
+
# @param [Google::Apis::VaultV1::RemoveHeldAccountsRequest] remove_held_accounts_request_object
|
712
|
+
# @param [String] fields
|
713
|
+
# Selector specifying which fields to include in a partial response.
|
714
|
+
# @param [String] quota_user
|
715
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
716
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
717
|
+
# @param [Google::Apis::RequestOptions] options
|
718
|
+
# Request-specific options
|
719
|
+
#
|
720
|
+
# @yield [result, err] Result & error if block supplied
|
721
|
+
# @yieldparam result [Google::Apis::VaultV1::RemoveHeldAccountsResponse] parsed result object
|
722
|
+
# @yieldparam err [StandardError] error object if request failed
|
723
|
+
#
|
724
|
+
# @return [Google::Apis::VaultV1::RemoveHeldAccountsResponse]
|
725
|
+
#
|
726
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
727
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
728
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
729
|
+
def remove_hold_held_accounts(matter_id, hold_id, remove_held_accounts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
730
|
+
command = make_simple_command(:post, 'v1/matters/{matterId}/holds/{holdId}:removeHeldAccounts', options)
|
731
|
+
command.request_representation = Google::Apis::VaultV1::RemoveHeldAccountsRequest::Representation
|
732
|
+
command.request_object = remove_held_accounts_request_object
|
733
|
+
command.response_representation = Google::Apis::VaultV1::RemoveHeldAccountsResponse::Representation
|
734
|
+
command.response_class = Google::Apis::VaultV1::RemoveHeldAccountsResponse
|
735
|
+
command.params['matterId'] = matter_id unless matter_id.nil?
|
736
|
+
command.params['holdId'] = hold_id unless hold_id.nil?
|
737
|
+
command.query['fields'] = fields unless fields.nil?
|
738
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
739
|
+
execute_or_queue_command(command, &block)
|
740
|
+
end
|
741
|
+
|
531
742
|
# Updates the OU and/or query parameters of a hold. You cannot add accounts
|
532
743
|
# to a hold that covers an OU, nor can you add OUs to a hold that covers
|
533
744
|
# individual accounts. Accounts listed in the hold will be ignored.
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/vision/
|
28
28
|
module VisionV1
|
29
29
|
VERSION = 'V1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20180817'
|
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'
|
@@ -487,7 +487,7 @@ module Google
|
|
487
487
|
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
|
488
488
|
# return nil;
|
489
489
|
# `
|
490
|
-
# Color* result = [Color alloc] init];
|
490
|
+
# Color* result = [[Color alloc] init];
|
491
491
|
# [result setRed:red];
|
492
492
|
# [result setGreen:green];
|
493
493
|
# [result setBlue:blue];
|
@@ -635,7 +635,7 @@ module Google
|
|
635
635
|
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
|
636
636
|
# return nil;
|
637
637
|
# `
|
638
|
-
# Color* result = [Color alloc] init];
|
638
|
+
# Color* result = [[Color alloc] init];
|
639
639
|
# [result setRed:red];
|
640
640
|
# [result setGreen:green];
|
641
641
|
# [result setBlue:blue];
|
@@ -1146,17 +1146,17 @@ module Google
|
|
1146
1146
|
|
1147
1147
|
# Response to a single file annotation request. A file may contain one or more
|
1148
1148
|
# images, which individually have their own responses.
|
1149
|
-
class
|
1149
|
+
class GoogleCloudVisionV1p1beta1AnnotateFileResponse
|
1150
1150
|
include Google::Apis::Core::Hashable
|
1151
1151
|
|
1152
1152
|
# The desired input location and metadata.
|
1153
1153
|
# Corresponds to the JSON property `inputConfig`
|
1154
|
-
# @return [Google::Apis::VisionV1::
|
1154
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1InputConfig]
|
1155
1155
|
attr_accessor :input_config
|
1156
1156
|
|
1157
1157
|
# Individual responses to images found within the file.
|
1158
1158
|
# Corresponds to the JSON property `responses`
|
1159
|
-
# @return [Array<Google::Apis::VisionV1::
|
1159
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1AnnotateImageResponse>]
|
1160
1160
|
attr_accessor :responses
|
1161
1161
|
|
1162
1162
|
def initialize(**args)
|
@@ -1171,18 +1171,18 @@ module Google
|
|
1171
1171
|
end
|
1172
1172
|
|
1173
1173
|
# Response to an image annotation request.
|
1174
|
-
class
|
1174
|
+
class GoogleCloudVisionV1p1beta1AnnotateImageResponse
|
1175
1175
|
include Google::Apis::Core::Hashable
|
1176
1176
|
|
1177
1177
|
# If an image was produced from a file (e.g. a PDF), this message gives
|
1178
1178
|
# information about the source of that image.
|
1179
1179
|
# Corresponds to the JSON property `context`
|
1180
|
-
# @return [Google::Apis::VisionV1::
|
1180
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ImageAnnotationContext]
|
1181
1181
|
attr_accessor :context
|
1182
1182
|
|
1183
1183
|
# Set of crop hints that are used to generate new crops when serving images.
|
1184
1184
|
# Corresponds to the JSON property `cropHintsAnnotation`
|
1185
|
-
# @return [Google::Apis::VisionV1::
|
1185
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1CropHintsAnnotation]
|
1186
1186
|
attr_accessor :crop_hints_annotation
|
1187
1187
|
|
1188
1188
|
# The `Status` type defines a logical error model that is suitable for different
|
@@ -1230,7 +1230,7 @@ module Google
|
|
1230
1230
|
|
1231
1231
|
# If present, face detection has completed successfully.
|
1232
1232
|
# Corresponds to the JSON property `faceAnnotations`
|
1233
|
-
# @return [Array<Google::Apis::VisionV1::
|
1233
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1FaceAnnotation>]
|
1234
1234
|
attr_accessor :face_annotations
|
1235
1235
|
|
1236
1236
|
# TextAnnotation contains a structured representation of OCR extracted text.
|
@@ -1241,44 +1241,44 @@ module Google
|
|
1241
1241
|
# to the TextAnnotation.TextProperty message definition below for more
|
1242
1242
|
# detail.
|
1243
1243
|
# Corresponds to the JSON property `fullTextAnnotation`
|
1244
|
-
# @return [Google::Apis::VisionV1::
|
1244
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotation]
|
1245
1245
|
attr_accessor :full_text_annotation
|
1246
1246
|
|
1247
1247
|
# Stores image properties, such as dominant colors.
|
1248
1248
|
# Corresponds to the JSON property `imagePropertiesAnnotation`
|
1249
|
-
# @return [Google::Apis::VisionV1::
|
1249
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ImageProperties]
|
1250
1250
|
attr_accessor :image_properties_annotation
|
1251
1251
|
|
1252
1252
|
# If present, label detection has completed successfully.
|
1253
1253
|
# Corresponds to the JSON property `labelAnnotations`
|
1254
|
-
# @return [Array<Google::Apis::VisionV1::
|
1254
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation>]
|
1255
1255
|
attr_accessor :label_annotations
|
1256
1256
|
|
1257
1257
|
# If present, landmark detection has completed successfully.
|
1258
1258
|
# Corresponds to the JSON property `landmarkAnnotations`
|
1259
|
-
# @return [Array<Google::Apis::VisionV1::
|
1259
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation>]
|
1260
1260
|
attr_accessor :landmark_annotations
|
1261
1261
|
|
1262
1262
|
# If present, logo detection has completed successfully.
|
1263
1263
|
# Corresponds to the JSON property `logoAnnotations`
|
1264
|
-
# @return [Array<Google::Apis::VisionV1::
|
1264
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation>]
|
1265
1265
|
attr_accessor :logo_annotations
|
1266
1266
|
|
1267
1267
|
# Set of features pertaining to the image, computed by computer vision
|
1268
1268
|
# methods over safe-search verticals (for example, adult, spoof, medical,
|
1269
1269
|
# violence).
|
1270
1270
|
# Corresponds to the JSON property `safeSearchAnnotation`
|
1271
|
-
# @return [Google::Apis::VisionV1::
|
1271
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1SafeSearchAnnotation]
|
1272
1272
|
attr_accessor :safe_search_annotation
|
1273
1273
|
|
1274
1274
|
# If present, text (OCR) detection has completed successfully.
|
1275
1275
|
# Corresponds to the JSON property `textAnnotations`
|
1276
|
-
# @return [Array<Google::Apis::VisionV1::
|
1276
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation>]
|
1277
1277
|
attr_accessor :text_annotations
|
1278
1278
|
|
1279
1279
|
# Relevant information for the image from the Internet.
|
1280
1280
|
# Corresponds to the JSON property `webDetection`
|
1281
|
-
# @return [Google::Apis::VisionV1::
|
1281
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetection]
|
1282
1282
|
attr_accessor :web_detection
|
1283
1283
|
|
1284
1284
|
def initialize(**args)
|
@@ -1303,12 +1303,12 @@ module Google
|
|
1303
1303
|
end
|
1304
1304
|
|
1305
1305
|
# The response for a single offline file annotation request.
|
1306
|
-
class
|
1306
|
+
class GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse
|
1307
1307
|
include Google::Apis::Core::Hashable
|
1308
1308
|
|
1309
1309
|
# The desired output location and metadata.
|
1310
1310
|
# Corresponds to the JSON property `outputConfig`
|
1311
|
-
# @return [Google::Apis::VisionV1::
|
1311
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1OutputConfig]
|
1312
1312
|
attr_accessor :output_config
|
1313
1313
|
|
1314
1314
|
def initialize(**args)
|
@@ -1322,13 +1322,13 @@ module Google
|
|
1322
1322
|
end
|
1323
1323
|
|
1324
1324
|
# Response to an async batch file annotation request.
|
1325
|
-
class
|
1325
|
+
class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse
|
1326
1326
|
include Google::Apis::Core::Hashable
|
1327
1327
|
|
1328
1328
|
# The list of file annotation responses, one for each request in
|
1329
1329
|
# AsyncBatchAnnotateFilesRequest.
|
1330
1330
|
# Corresponds to the JSON property `responses`
|
1331
|
-
# @return [Array<Google::Apis::VisionV1::
|
1331
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse>]
|
1332
1332
|
attr_accessor :responses
|
1333
1333
|
|
1334
1334
|
def initialize(**args)
|
@@ -1342,7 +1342,7 @@ module Google
|
|
1342
1342
|
end
|
1343
1343
|
|
1344
1344
|
# Logical element on the page.
|
1345
|
-
class
|
1345
|
+
class GoogleCloudVisionV1p1beta1Block
|
1346
1346
|
include Google::Apis::Core::Hashable
|
1347
1347
|
|
1348
1348
|
# Detected block type (text, image etc) for this block.
|
@@ -1352,7 +1352,7 @@ module Google
|
|
1352
1352
|
|
1353
1353
|
# A bounding polygon for the detected image annotation.
|
1354
1354
|
# Corresponds to the JSON property `boundingBox`
|
1355
|
-
# @return [Google::Apis::VisionV1::
|
1355
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly]
|
1356
1356
|
attr_accessor :bounding_box
|
1357
1357
|
|
1358
1358
|
# Confidence of the OCR results on the block. Range [0, 1].
|
@@ -1362,12 +1362,12 @@ module Google
|
|
1362
1362
|
|
1363
1363
|
# List of paragraphs in this block (if this blocks is of type text).
|
1364
1364
|
# Corresponds to the JSON property `paragraphs`
|
1365
|
-
# @return [Array<Google::Apis::VisionV1::
|
1365
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Paragraph>]
|
1366
1366
|
attr_accessor :paragraphs
|
1367
1367
|
|
1368
1368
|
# Additional information detected on the structural component.
|
1369
1369
|
# Corresponds to the JSON property `property`
|
1370
|
-
# @return [Google::Apis::VisionV1::
|
1370
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty]
|
1371
1371
|
attr_accessor :property
|
1372
1372
|
|
1373
1373
|
def initialize(**args)
|
@@ -1385,17 +1385,12 @@ module Google
|
|
1385
1385
|
end
|
1386
1386
|
|
1387
1387
|
# A bounding polygon for the detected image annotation.
|
1388
|
-
class
|
1388
|
+
class GoogleCloudVisionV1p1beta1BoundingPoly
|
1389
1389
|
include Google::Apis::Core::Hashable
|
1390
1390
|
|
1391
|
-
# The bounding polygon normalized vertices.
|
1392
|
-
# Corresponds to the JSON property `normalizedVertices`
|
1393
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1NormalizedVertex>]
|
1394
|
-
attr_accessor :normalized_vertices
|
1395
|
-
|
1396
1391
|
# The bounding polygon vertices.
|
1397
1392
|
# Corresponds to the JSON property `vertices`
|
1398
|
-
# @return [Array<Google::Apis::VisionV1::
|
1393
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Vertex>]
|
1399
1394
|
attr_accessor :vertices
|
1400
1395
|
|
1401
1396
|
def initialize(**args)
|
@@ -1404,14 +1399,13 @@ module Google
|
|
1404
1399
|
|
1405
1400
|
# Update properties of this object
|
1406
1401
|
def update!(**args)
|
1407
|
-
@normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
|
1408
1402
|
@vertices = args[:vertices] if args.key?(:vertices)
|
1409
1403
|
end
|
1410
1404
|
end
|
1411
1405
|
|
1412
1406
|
# Color information consists of RGB channels, score, and the fraction of
|
1413
1407
|
# the image that the color occupies in the image.
|
1414
|
-
class
|
1408
|
+
class GoogleCloudVisionV1p1beta1ColorInfo
|
1415
1409
|
include Google::Apis::Core::Hashable
|
1416
1410
|
|
1417
1411
|
# Represents a color in the RGBA color space. This representation is designed
|
@@ -1474,7 +1468,7 @@ module Google
|
|
1474
1468
|
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
|
1475
1469
|
# return nil;
|
1476
1470
|
# `
|
1477
|
-
# Color* result = [Color alloc] init];
|
1471
|
+
# Color* result = [[Color alloc] init];
|
1478
1472
|
# [result setRed:red];
|
1479
1473
|
# [result setGreen:green];
|
1480
1474
|
# [result setBlue:blue];
|
@@ -1541,12 +1535,12 @@ module Google
|
|
1541
1535
|
end
|
1542
1536
|
|
1543
1537
|
# Single crop hint that is used to generate a new crop when serving an image.
|
1544
|
-
class
|
1538
|
+
class GoogleCloudVisionV1p1beta1CropHint
|
1545
1539
|
include Google::Apis::Core::Hashable
|
1546
1540
|
|
1547
1541
|
# A bounding polygon for the detected image annotation.
|
1548
1542
|
# Corresponds to the JSON property `boundingPoly`
|
1549
|
-
# @return [Google::Apis::VisionV1::
|
1543
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly]
|
1550
1544
|
attr_accessor :bounding_poly
|
1551
1545
|
|
1552
1546
|
# Confidence of this being a salient region. Range [0, 1].
|
@@ -1573,12 +1567,12 @@ module Google
|
|
1573
1567
|
end
|
1574
1568
|
|
1575
1569
|
# Set of crop hints that are used to generate new crops when serving images.
|
1576
|
-
class
|
1570
|
+
class GoogleCloudVisionV1p1beta1CropHintsAnnotation
|
1577
1571
|
include Google::Apis::Core::Hashable
|
1578
1572
|
|
1579
1573
|
# Crop hint results.
|
1580
1574
|
# Corresponds to the JSON property `cropHints`
|
1581
|
-
# @return [Array<Google::Apis::VisionV1::
|
1575
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1CropHint>]
|
1582
1576
|
attr_accessor :crop_hints
|
1583
1577
|
|
1584
1578
|
def initialize(**args)
|
@@ -1592,12 +1586,12 @@ module Google
|
|
1592
1586
|
end
|
1593
1587
|
|
1594
1588
|
# Set of dominant colors and their corresponding scores.
|
1595
|
-
class
|
1589
|
+
class GoogleCloudVisionV1p1beta1DominantColorsAnnotation
|
1596
1590
|
include Google::Apis::Core::Hashable
|
1597
1591
|
|
1598
1592
|
# RGB color values with their score and pixel fraction.
|
1599
1593
|
# Corresponds to the JSON property `colors`
|
1600
|
-
# @return [Array<Google::Apis::VisionV1::
|
1594
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ColorInfo>]
|
1601
1595
|
attr_accessor :colors
|
1602
1596
|
|
1603
1597
|
def initialize(**args)
|
@@ -1611,12 +1605,12 @@ module Google
|
|
1611
1605
|
end
|
1612
1606
|
|
1613
1607
|
# Set of detected entity features.
|
1614
|
-
class
|
1608
|
+
class GoogleCloudVisionV1p1beta1EntityAnnotation
|
1615
1609
|
include Google::Apis::Core::Hashable
|
1616
1610
|
|
1617
1611
|
# A bounding polygon for the detected image annotation.
|
1618
1612
|
# Corresponds to the JSON property `boundingPoly`
|
1619
|
-
# @return [Google::Apis::VisionV1::
|
1613
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly]
|
1620
1614
|
attr_accessor :bounding_poly
|
1621
1615
|
|
1622
1616
|
# **Deprecated. Use `score` instead.**
|
@@ -1645,7 +1639,7 @@ module Google
|
|
1645
1639
|
# may indicate the location of the place where the image was taken.
|
1646
1640
|
# Location information is usually present for landmarks.
|
1647
1641
|
# Corresponds to the JSON property `locations`
|
1648
|
-
# @return [Array<Google::Apis::VisionV1::
|
1642
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1LocationInfo>]
|
1649
1643
|
attr_accessor :locations
|
1650
1644
|
|
1651
1645
|
# Opaque entity ID. Some IDs may be available in
|
@@ -1658,7 +1652,7 @@ module Google
|
|
1658
1652
|
# Some entities may have optional user-supplied `Property` (name/value)
|
1659
1653
|
# fields, such a score or string that qualifies the entity.
|
1660
1654
|
# Corresponds to the JSON property `properties`
|
1661
|
-
# @return [Array<Google::Apis::VisionV1::
|
1655
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Property>]
|
1662
1656
|
attr_accessor :properties
|
1663
1657
|
|
1664
1658
|
# Overall score of the result. Range [0, 1].
|
@@ -1694,7 +1688,7 @@ module Google
|
|
1694
1688
|
end
|
1695
1689
|
|
1696
1690
|
# A face annotation object contains the results of face detection.
|
1697
|
-
class
|
1691
|
+
class GoogleCloudVisionV1p1beta1FaceAnnotation
|
1698
1692
|
include Google::Apis::Core::Hashable
|
1699
1693
|
|
1700
1694
|
# Anger likelihood.
|
@@ -1709,7 +1703,7 @@ module Google
|
|
1709
1703
|
|
1710
1704
|
# A bounding polygon for the detected image annotation.
|
1711
1705
|
# Corresponds to the JSON property `boundingPoly`
|
1712
|
-
# @return [Google::Apis::VisionV1::
|
1706
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly]
|
1713
1707
|
attr_accessor :bounding_poly
|
1714
1708
|
|
1715
1709
|
# Detection confidence. Range [0, 1].
|
@@ -1719,7 +1713,7 @@ module Google
|
|
1719
1713
|
|
1720
1714
|
# A bounding polygon for the detected image annotation.
|
1721
1715
|
# Corresponds to the JSON property `fdBoundingPoly`
|
1722
|
-
# @return [Google::Apis::VisionV1::
|
1716
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly]
|
1723
1717
|
attr_accessor :fd_bounding_poly
|
1724
1718
|
|
1725
1719
|
# Headwear likelihood.
|
@@ -1739,7 +1733,7 @@ module Google
|
|
1739
1733
|
|
1740
1734
|
# Detected face landmarks.
|
1741
1735
|
# Corresponds to the JSON property `landmarks`
|
1742
|
-
# @return [Array<Google::Apis::VisionV1::
|
1736
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1FaceAnnotationLandmark>]
|
1743
1737
|
attr_accessor :landmarks
|
1744
1738
|
|
1745
1739
|
# Yaw angle, which indicates the leftward/rightward angle that the face is
|
@@ -1802,14 +1796,14 @@ module Google
|
|
1802
1796
|
end
|
1803
1797
|
|
1804
1798
|
# A face-specific landmark (for example, a face feature).
|
1805
|
-
class
|
1799
|
+
class GoogleCloudVisionV1p1beta1FaceAnnotationLandmark
|
1806
1800
|
include Google::Apis::Core::Hashable
|
1807
1801
|
|
1808
1802
|
# A 3D position in the image, used primarily for Face detection landmarks.
|
1809
1803
|
# A valid Position must have both x and y coordinates.
|
1810
1804
|
# The position coordinates are in the same scale as the original image.
|
1811
1805
|
# Corresponds to the JSON property `position`
|
1812
|
-
# @return [Google::Apis::VisionV1::
|
1806
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Position]
|
1813
1807
|
attr_accessor :position
|
1814
1808
|
|
1815
1809
|
# Face landmark type.
|
@@ -1829,7 +1823,7 @@ module Google
|
|
1829
1823
|
end
|
1830
1824
|
|
1831
1825
|
# The Google Cloud Storage location where the output will be written to.
|
1832
|
-
class
|
1826
|
+
class GoogleCloudVisionV1p1beta1GcsDestination
|
1833
1827
|
include Google::Apis::Core::Hashable
|
1834
1828
|
|
1835
1829
|
# Google Cloud Storage URI where the results will be stored. Results will
|
@@ -1859,7 +1853,7 @@ module Google
|
|
1859
1853
|
end
|
1860
1854
|
|
1861
1855
|
# The Google Cloud Storage location where the input will be read from.
|
1862
|
-
class
|
1856
|
+
class GoogleCloudVisionV1p1beta1GcsSource
|
1863
1857
|
include Google::Apis::Core::Hashable
|
1864
1858
|
|
1865
1859
|
# Google Cloud Storage URI for the input file. This must only be a
|
@@ -1880,7 +1874,7 @@ module Google
|
|
1880
1874
|
|
1881
1875
|
# If an image was produced from a file (e.g. a PDF), this message gives
|
1882
1876
|
# information about the source of that image.
|
1883
|
-
class
|
1877
|
+
class GoogleCloudVisionV1p1beta1ImageAnnotationContext
|
1884
1878
|
include Google::Apis::Core::Hashable
|
1885
1879
|
|
1886
1880
|
# If the file was a PDF or TIFF, this field gives the page number within
|
@@ -1906,12 +1900,12 @@ module Google
|
|
1906
1900
|
end
|
1907
1901
|
|
1908
1902
|
# Stores image properties, such as dominant colors.
|
1909
|
-
class
|
1903
|
+
class GoogleCloudVisionV1p1beta1ImageProperties
|
1910
1904
|
include Google::Apis::Core::Hashable
|
1911
1905
|
|
1912
1906
|
# Set of dominant colors and their corresponding scores.
|
1913
1907
|
# Corresponds to the JSON property `dominantColors`
|
1914
|
-
# @return [Google::Apis::VisionV1::
|
1908
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1DominantColorsAnnotation]
|
1915
1909
|
attr_accessor :dominant_colors
|
1916
1910
|
|
1917
1911
|
def initialize(**args)
|
@@ -1925,12 +1919,12 @@ module Google
|
|
1925
1919
|
end
|
1926
1920
|
|
1927
1921
|
# The desired input location and metadata.
|
1928
|
-
class
|
1922
|
+
class GoogleCloudVisionV1p1beta1InputConfig
|
1929
1923
|
include Google::Apis::Core::Hashable
|
1930
1924
|
|
1931
1925
|
# The Google Cloud Storage location where the input will be read from.
|
1932
1926
|
# Corresponds to the JSON property `gcsSource`
|
1933
|
-
# @return [Google::Apis::VisionV1::
|
1927
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1GcsSource]
|
1934
1928
|
attr_accessor :gcs_source
|
1935
1929
|
|
1936
1930
|
# The type of the file. Currently only "application/pdf" and "image/tiff"
|
@@ -1951,7 +1945,7 @@ module Google
|
|
1951
1945
|
end
|
1952
1946
|
|
1953
1947
|
# Detected entity location information.
|
1954
|
-
class
|
1948
|
+
class GoogleCloudVisionV1p1beta1LocationInfo
|
1955
1949
|
include Google::Apis::Core::Hashable
|
1956
1950
|
|
1957
1951
|
# An object representing a latitude/longitude pair. This is expressed as a pair
|
@@ -1973,35 +1967,8 @@ module Google
|
|
1973
1967
|
end
|
1974
1968
|
end
|
1975
1969
|
|
1976
|
-
# A vertex represents a 2D point in the image.
|
1977
|
-
# NOTE: the normalized vertex coordinates are relative to the original image
|
1978
|
-
# and range from 0 to 1.
|
1979
|
-
class GoogleCloudVisionV1p2beta1NormalizedVertex
|
1980
|
-
include Google::Apis::Core::Hashable
|
1981
|
-
|
1982
|
-
# X coordinate.
|
1983
|
-
# Corresponds to the JSON property `x`
|
1984
|
-
# @return [Float]
|
1985
|
-
attr_accessor :x
|
1986
|
-
|
1987
|
-
# Y coordinate.
|
1988
|
-
# Corresponds to the JSON property `y`
|
1989
|
-
# @return [Float]
|
1990
|
-
attr_accessor :y
|
1991
|
-
|
1992
|
-
def initialize(**args)
|
1993
|
-
update!(**args)
|
1994
|
-
end
|
1995
|
-
|
1996
|
-
# Update properties of this object
|
1997
|
-
def update!(**args)
|
1998
|
-
@x = args[:x] if args.key?(:x)
|
1999
|
-
@y = args[:y] if args.key?(:y)
|
2000
|
-
end
|
2001
|
-
end
|
2002
|
-
|
2003
1970
|
# Contains metadata for the BatchAnnotateImages operation.
|
2004
|
-
class
|
1971
|
+
class GoogleCloudVisionV1p1beta1OperationMetadata
|
2005
1972
|
include Google::Apis::Core::Hashable
|
2006
1973
|
|
2007
1974
|
# The time when the batch request was received.
|
@@ -2032,7 +1999,7 @@ module Google
|
|
2032
1999
|
end
|
2033
2000
|
|
2034
2001
|
# The desired output location and metadata.
|
2035
|
-
class
|
2002
|
+
class GoogleCloudVisionV1p1beta1OutputConfig
|
2036
2003
|
include Google::Apis::Core::Hashable
|
2037
2004
|
|
2038
2005
|
# The max number of response protos to put into each output JSON file on
|
@@ -2050,7 +2017,7 @@ module Google
|
|
2050
2017
|
|
2051
2018
|
# The Google Cloud Storage location where the output will be written to.
|
2052
2019
|
# Corresponds to the JSON property `gcsDestination`
|
2053
|
-
# @return [Google::Apis::VisionV1::
|
2020
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1GcsDestination]
|
2054
2021
|
attr_accessor :gcs_destination
|
2055
2022
|
|
2056
2023
|
def initialize(**args)
|
@@ -2065,12 +2032,12 @@ module Google
|
|
2065
2032
|
end
|
2066
2033
|
|
2067
2034
|
# Detected page from OCR.
|
2068
|
-
class
|
2035
|
+
class GoogleCloudVisionV1p1beta1Page
|
2069
2036
|
include Google::Apis::Core::Hashable
|
2070
2037
|
|
2071
2038
|
# List of blocks of text, images etc on this page.
|
2072
2039
|
# Corresponds to the JSON property `blocks`
|
2073
|
-
# @return [Array<Google::Apis::VisionV1::
|
2040
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Block>]
|
2074
2041
|
attr_accessor :blocks
|
2075
2042
|
|
2076
2043
|
# Confidence of the OCR results on the page. Range [0, 1].
|
@@ -2086,7 +2053,7 @@ module Google
|
|
2086
2053
|
|
2087
2054
|
# Additional information detected on the structural component.
|
2088
2055
|
# Corresponds to the JSON property `property`
|
2089
|
-
# @return [Google::Apis::VisionV1::
|
2056
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty]
|
2090
2057
|
attr_accessor :property
|
2091
2058
|
|
2092
2059
|
# Page width. For PDFs the unit is points. For images (including
|
@@ -2110,12 +2077,12 @@ module Google
|
|
2110
2077
|
end
|
2111
2078
|
|
2112
2079
|
# Structural unit of text representing a number of words in certain order.
|
2113
|
-
class
|
2080
|
+
class GoogleCloudVisionV1p1beta1Paragraph
|
2114
2081
|
include Google::Apis::Core::Hashable
|
2115
2082
|
|
2116
2083
|
# A bounding polygon for the detected image annotation.
|
2117
2084
|
# Corresponds to the JSON property `boundingBox`
|
2118
|
-
# @return [Google::Apis::VisionV1::
|
2085
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly]
|
2119
2086
|
attr_accessor :bounding_box
|
2120
2087
|
|
2121
2088
|
# Confidence of the OCR results for the paragraph. Range [0, 1].
|
@@ -2125,12 +2092,12 @@ module Google
|
|
2125
2092
|
|
2126
2093
|
# Additional information detected on the structural component.
|
2127
2094
|
# Corresponds to the JSON property `property`
|
2128
|
-
# @return [Google::Apis::VisionV1::
|
2095
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty]
|
2129
2096
|
attr_accessor :property
|
2130
2097
|
|
2131
2098
|
# List of words in this paragraph.
|
2132
2099
|
# Corresponds to the JSON property `words`
|
2133
|
-
# @return [Array<Google::Apis::VisionV1::
|
2100
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Word>]
|
2134
2101
|
attr_accessor :words
|
2135
2102
|
|
2136
2103
|
def initialize(**args)
|
@@ -2149,7 +2116,7 @@ module Google
|
|
2149
2116
|
# A 3D position in the image, used primarily for Face detection landmarks.
|
2150
2117
|
# A valid Position must have both x and y coordinates.
|
2151
2118
|
# The position coordinates are in the same scale as the original image.
|
2152
|
-
class
|
2119
|
+
class GoogleCloudVisionV1p1beta1Position
|
2153
2120
|
include Google::Apis::Core::Hashable
|
2154
2121
|
|
2155
2122
|
# X coordinate.
|
@@ -2180,7 +2147,7 @@ module Google
|
|
2180
2147
|
end
|
2181
2148
|
|
2182
2149
|
# A `Property` consists of a user-supplied name/value pair.
|
2183
|
-
class
|
2150
|
+
class GoogleCloudVisionV1p1beta1Property
|
2184
2151
|
include Google::Apis::Core::Hashable
|
2185
2152
|
|
2186
2153
|
# Name of the property.
|
@@ -2213,7 +2180,7 @@ module Google
|
|
2213
2180
|
# Set of features pertaining to the image, computed by computer vision
|
2214
2181
|
# methods over safe-search verticals (for example, adult, spoof, medical,
|
2215
2182
|
# violence).
|
2216
|
-
class
|
2183
|
+
class GoogleCloudVisionV1p1beta1SafeSearchAnnotation
|
2217
2184
|
include Google::Apis::Core::Hashable
|
2218
2185
|
|
2219
2186
|
# Represents the adult content likelihood for the image. Adult content may
|
@@ -2263,12 +2230,12 @@ module Google
|
|
2263
2230
|
end
|
2264
2231
|
|
2265
2232
|
# A single symbol representation.
|
2266
|
-
class
|
2233
|
+
class GoogleCloudVisionV1p1beta1Symbol
|
2267
2234
|
include Google::Apis::Core::Hashable
|
2268
2235
|
|
2269
2236
|
# A bounding polygon for the detected image annotation.
|
2270
2237
|
# Corresponds to the JSON property `boundingBox`
|
2271
|
-
# @return [Google::Apis::VisionV1::
|
2238
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly]
|
2272
2239
|
attr_accessor :bounding_box
|
2273
2240
|
|
2274
2241
|
# Confidence of the OCR results for the symbol. Range [0, 1].
|
@@ -2278,7 +2245,7 @@ module Google
|
|
2278
2245
|
|
2279
2246
|
# Additional information detected on the structural component.
|
2280
2247
|
# Corresponds to the JSON property `property`
|
2281
|
-
# @return [Google::Apis::VisionV1::
|
2248
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty]
|
2282
2249
|
attr_accessor :property
|
2283
2250
|
|
2284
2251
|
# The actual UTF-8 representation of the symbol.
|
@@ -2306,12 +2273,12 @@ module Google
|
|
2306
2273
|
# properties. Properties describe detected languages, breaks etc.. Please refer
|
2307
2274
|
# to the TextAnnotation.TextProperty message definition below for more
|
2308
2275
|
# detail.
|
2309
|
-
class
|
2276
|
+
class GoogleCloudVisionV1p1beta1TextAnnotation
|
2310
2277
|
include Google::Apis::Core::Hashable
|
2311
2278
|
|
2312
2279
|
# List of pages detected by OCR.
|
2313
2280
|
# Corresponds to the JSON property `pages`
|
2314
|
-
# @return [Array<Google::Apis::VisionV1::
|
2281
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Page>]
|
2315
2282
|
attr_accessor :pages
|
2316
2283
|
|
2317
2284
|
# UTF-8 text detected on the pages.
|
@@ -2331,7 +2298,7 @@ module Google
|
|
2331
2298
|
end
|
2332
2299
|
|
2333
2300
|
# Detected start or end of a structural component.
|
2334
|
-
class
|
2301
|
+
class GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak
|
2335
2302
|
include Google::Apis::Core::Hashable
|
2336
2303
|
|
2337
2304
|
# True if break prepends the element.
|
@@ -2357,7 +2324,7 @@ module Google
|
|
2357
2324
|
end
|
2358
2325
|
|
2359
2326
|
# Detected language for a structural component.
|
2360
|
-
class
|
2327
|
+
class GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage
|
2361
2328
|
include Google::Apis::Core::Hashable
|
2362
2329
|
|
2363
2330
|
# Confidence of detected language. Range [0, 1].
|
@@ -2384,17 +2351,17 @@ module Google
|
|
2384
2351
|
end
|
2385
2352
|
|
2386
2353
|
# Additional information detected on the structural component.
|
2387
|
-
class
|
2354
|
+
class GoogleCloudVisionV1p1beta1TextAnnotationTextProperty
|
2388
2355
|
include Google::Apis::Core::Hashable
|
2389
2356
|
|
2390
2357
|
# Detected start or end of a structural component.
|
2391
2358
|
# Corresponds to the JSON property `detectedBreak`
|
2392
|
-
# @return [Google::Apis::VisionV1::
|
2359
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak]
|
2393
2360
|
attr_accessor :detected_break
|
2394
2361
|
|
2395
2362
|
# A list of detected languages together with confidence.
|
2396
2363
|
# Corresponds to the JSON property `detectedLanguages`
|
2397
|
-
# @return [Array<Google::Apis::VisionV1::
|
2364
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage>]
|
2398
2365
|
attr_accessor :detected_languages
|
2399
2366
|
|
2400
2367
|
def initialize(**args)
|
@@ -2410,7 +2377,7 @@ module Google
|
|
2410
2377
|
|
2411
2378
|
# A vertex represents a 2D point in the image.
|
2412
2379
|
# NOTE: the vertex coordinates are in the same scale as the original image.
|
2413
|
-
class
|
2380
|
+
class GoogleCloudVisionV1p1beta1Vertex
|
2414
2381
|
include Google::Apis::Core::Hashable
|
2415
2382
|
|
2416
2383
|
# X coordinate.
|
@@ -2435,41 +2402,41 @@ module Google
|
|
2435
2402
|
end
|
2436
2403
|
|
2437
2404
|
# Relevant information for the image from the Internet.
|
2438
|
-
class
|
2405
|
+
class GoogleCloudVisionV1p1beta1WebDetection
|
2439
2406
|
include Google::Apis::Core::Hashable
|
2440
2407
|
|
2441
2408
|
# The service's best guess as to the topic of the request image.
|
2442
2409
|
# Inferred from similar images on the open web.
|
2443
2410
|
# Corresponds to the JSON property `bestGuessLabels`
|
2444
|
-
# @return [Array<Google::Apis::VisionV1::
|
2411
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebLabel>]
|
2445
2412
|
attr_accessor :best_guess_labels
|
2446
2413
|
|
2447
2414
|
# Fully matching images from the Internet.
|
2448
2415
|
# Can include resized copies of the query image.
|
2449
2416
|
# Corresponds to the JSON property `fullMatchingImages`
|
2450
|
-
# @return [Array<Google::Apis::VisionV1::
|
2417
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebImage>]
|
2451
2418
|
attr_accessor :full_matching_images
|
2452
2419
|
|
2453
2420
|
# Web pages containing the matching images from the Internet.
|
2454
2421
|
# Corresponds to the JSON property `pagesWithMatchingImages`
|
2455
|
-
# @return [Array<Google::Apis::VisionV1::
|
2422
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebPage>]
|
2456
2423
|
attr_accessor :pages_with_matching_images
|
2457
2424
|
|
2458
2425
|
# Partial matching images from the Internet.
|
2459
2426
|
# Those images are similar enough to share some key-point features. For
|
2460
2427
|
# example an original image will likely have partial matching for its crops.
|
2461
2428
|
# Corresponds to the JSON property `partialMatchingImages`
|
2462
|
-
# @return [Array<Google::Apis::VisionV1::
|
2429
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebImage>]
|
2463
2430
|
attr_accessor :partial_matching_images
|
2464
2431
|
|
2465
2432
|
# The visually similar image results.
|
2466
2433
|
# Corresponds to the JSON property `visuallySimilarImages`
|
2467
|
-
# @return [Array<Google::Apis::VisionV1::
|
2434
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebImage>]
|
2468
2435
|
attr_accessor :visually_similar_images
|
2469
2436
|
|
2470
2437
|
# Deduced entities from similar images on the Internet.
|
2471
2438
|
# Corresponds to the JSON property `webEntities`
|
2472
|
-
# @return [Array<Google::Apis::VisionV1::
|
2439
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebEntity>]
|
2473
2440
|
attr_accessor :web_entities
|
2474
2441
|
|
2475
2442
|
def initialize(**args)
|
@@ -2488,7 +2455,7 @@ module Google
|
|
2488
2455
|
end
|
2489
2456
|
|
2490
2457
|
# Entity deduced from similar images on the Internet.
|
2491
|
-
class
|
2458
|
+
class GoogleCloudVisionV1p1beta1WebDetectionWebEntity
|
2492
2459
|
include Google::Apis::Core::Hashable
|
2493
2460
|
|
2494
2461
|
# Canonical description of the entity, in English.
|
@@ -2520,7 +2487,7 @@ module Google
|
|
2520
2487
|
end
|
2521
2488
|
|
2522
2489
|
# Metadata for online images.
|
2523
|
-
class
|
2490
|
+
class GoogleCloudVisionV1p1beta1WebDetectionWebImage
|
2524
2491
|
include Google::Apis::Core::Hashable
|
2525
2492
|
|
2526
2493
|
# (Deprecated) Overall relevancy score for the image.
|
@@ -2545,7 +2512,7 @@ module Google
|
|
2545
2512
|
end
|
2546
2513
|
|
2547
2514
|
# Label to provide extra metadata for the web detection.
|
2548
|
-
class
|
2515
|
+
class GoogleCloudVisionV1p1beta1WebDetectionWebLabel
|
2549
2516
|
include Google::Apis::Core::Hashable
|
2550
2517
|
|
2551
2518
|
# Label for extra metadata.
|
@@ -2572,13 +2539,13 @@ module Google
|
|
2572
2539
|
end
|
2573
2540
|
|
2574
2541
|
# Metadata for web pages.
|
2575
|
-
class
|
2542
|
+
class GoogleCloudVisionV1p1beta1WebDetectionWebPage
|
2576
2543
|
include Google::Apis::Core::Hashable
|
2577
2544
|
|
2578
2545
|
# Fully matching images on the page.
|
2579
2546
|
# Can include resized copies of the query image.
|
2580
2547
|
# Corresponds to the JSON property `fullMatchingImages`
|
2581
|
-
# @return [Array<Google::Apis::VisionV1::
|
2548
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebImage>]
|
2582
2549
|
attr_accessor :full_matching_images
|
2583
2550
|
|
2584
2551
|
# Title for the web page, may contain HTML markups.
|
@@ -2591,7 +2558,7 @@ module Google
|
|
2591
2558
|
# example an original image will likely have partial matching for its
|
2592
2559
|
# crops.
|
2593
2560
|
# Corresponds to the JSON property `partialMatchingImages`
|
2594
|
-
# @return [Array<Google::Apis::VisionV1::
|
2561
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1WebDetectionWebImage>]
|
2595
2562
|
attr_accessor :partial_matching_images
|
2596
2563
|
|
2597
2564
|
# (Deprecated) Overall relevancy score for the web page.
|
@@ -2619,12 +2586,12 @@ module Google
|
|
2619
2586
|
end
|
2620
2587
|
|
2621
2588
|
# A word representation.
|
2622
|
-
class
|
2589
|
+
class GoogleCloudVisionV1p1beta1Word
|
2623
2590
|
include Google::Apis::Core::Hashable
|
2624
2591
|
|
2625
2592
|
# A bounding polygon for the detected image annotation.
|
2626
2593
|
# Corresponds to the JSON property `boundingBox`
|
2627
|
-
# @return [Google::Apis::VisionV1::
|
2594
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly]
|
2628
2595
|
attr_accessor :bounding_box
|
2629
2596
|
|
2630
2597
|
# Confidence of the OCR results for the word. Range [0, 1].
|
@@ -2634,13 +2601,13 @@ module Google
|
|
2634
2601
|
|
2635
2602
|
# Additional information detected on the structural component.
|
2636
2603
|
# Corresponds to the JSON property `property`
|
2637
|
-
# @return [Google::Apis::VisionV1::
|
2604
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty]
|
2638
2605
|
attr_accessor :property
|
2639
2606
|
|
2640
2607
|
# List of symbols in the word.
|
2641
2608
|
# The order of the symbols follows the natural reading order.
|
2642
2609
|
# Corresponds to the JSON property `symbols`
|
2643
|
-
# @return [Array<Google::Apis::VisionV1::
|
2610
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Symbol>]
|
2644
2611
|
attr_accessor :symbols
|
2645
2612
|
|
2646
2613
|
def initialize(**args)
|
@@ -2656,27 +2623,20 @@ module Google
|
|
2656
2623
|
end
|
2657
2624
|
end
|
2658
2625
|
|
2659
|
-
#
|
2660
|
-
#
|
2661
|
-
|
2662
|
-
class GoogleCloudVisionV1p3beta1BatchOperationMetadata
|
2626
|
+
# Response to a single file annotation request. A file may contain one or more
|
2627
|
+
# images, which individually have their own responses.
|
2628
|
+
class GoogleCloudVisionV1p2beta1AnnotateFileResponse
|
2663
2629
|
include Google::Apis::Core::Hashable
|
2664
2630
|
|
2665
|
-
# The
|
2666
|
-
#
|
2667
|
-
#
|
2668
|
-
|
2669
|
-
attr_accessor :end_time
|
2670
|
-
|
2671
|
-
# The current state of the batch operation.
|
2672
|
-
# Corresponds to the JSON property `state`
|
2673
|
-
# @return [String]
|
2674
|
-
attr_accessor :state
|
2631
|
+
# The desired input location and metadata.
|
2632
|
+
# Corresponds to the JSON property `inputConfig`
|
2633
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1InputConfig]
|
2634
|
+
attr_accessor :input_config
|
2675
2635
|
|
2676
|
-
#
|
2677
|
-
# Corresponds to the JSON property `
|
2678
|
-
# @return [
|
2679
|
-
attr_accessor :
|
2636
|
+
# Individual responses to images found within the file.
|
2637
|
+
# Corresponds to the JSON property `responses`
|
2638
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1AnnotateImageResponse>]
|
2639
|
+
attr_accessor :responses
|
2680
2640
|
|
2681
2641
|
def initialize(**args)
|
2682
2642
|
update!(**args)
|
@@ -2684,50 +2644,2337 @@ module Google
|
|
2684
2644
|
|
2685
2645
|
# Update properties of this object
|
2686
2646
|
def update!(**args)
|
2687
|
-
@
|
2688
|
-
@
|
2689
|
-
@submit_time = args[:submit_time] if args.key?(:submit_time)
|
2647
|
+
@input_config = args[:input_config] if args.key?(:input_config)
|
2648
|
+
@responses = args[:responses] if args.key?(:responses)
|
2690
2649
|
end
|
2691
2650
|
end
|
2692
2651
|
|
2693
|
-
#
|
2694
|
-
class
|
2652
|
+
# Response to an image annotation request.
|
2653
|
+
class GoogleCloudVisionV1p2beta1AnnotateImageResponse
|
2695
2654
|
include Google::Apis::Core::Hashable
|
2696
2655
|
|
2697
|
-
#
|
2698
|
-
#
|
2699
|
-
#
|
2700
|
-
|
2701
|
-
|
2702
|
-
# The bounding polygon vertices.
|
2703
|
-
# Corresponds to the JSON property `vertices`
|
2704
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Vertex>]
|
2705
|
-
attr_accessor :vertices
|
2656
|
+
# If an image was produced from a file (e.g. a PDF), this message gives
|
2657
|
+
# information about the source of that image.
|
2658
|
+
# Corresponds to the JSON property `context`
|
2659
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ImageAnnotationContext]
|
2660
|
+
attr_accessor :context
|
2706
2661
|
|
2707
|
-
|
2708
|
-
|
2709
|
-
|
2662
|
+
# Set of crop hints that are used to generate new crops when serving images.
|
2663
|
+
# Corresponds to the JSON property `cropHintsAnnotation`
|
2664
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1CropHintsAnnotation]
|
2665
|
+
attr_accessor :crop_hints_annotation
|
2710
2666
|
|
2711
|
-
#
|
2712
|
-
|
2713
|
-
|
2714
|
-
|
2715
|
-
|
2716
|
-
|
2667
|
+
# The `Status` type defines a logical error model that is suitable for different
|
2668
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
2669
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
2670
|
+
# - Simple to use and understand for most users
|
2671
|
+
# - Flexible enough to meet unexpected needs
|
2672
|
+
# # Overview
|
2673
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
2674
|
+
# and error details. The error code should be an enum value of
|
2675
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
2676
|
+
# error message should be a developer-facing English message that helps
|
2677
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
2678
|
+
# error message is needed, put the localized message in the error details or
|
2679
|
+
# localize it in the client. The optional error details may contain arbitrary
|
2680
|
+
# information about the error. There is a predefined set of error detail types
|
2681
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
2682
|
+
# # Language mapping
|
2683
|
+
# The `Status` message is the logical representation of the error model, but it
|
2684
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
2685
|
+
# exposed in different client libraries and different wire protocols, it can be
|
2686
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
2687
|
+
# in Java, but more likely mapped to some error codes in C.
|
2688
|
+
# # Other uses
|
2689
|
+
# The error model and the `Status` message can be used in a variety of
|
2690
|
+
# environments, either with or without APIs, to provide a
|
2691
|
+
# consistent developer experience across different environments.
|
2692
|
+
# Example uses of this error model include:
|
2693
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
2694
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
2695
|
+
# errors.
|
2696
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
2697
|
+
# have a `Status` message for error reporting.
|
2698
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
2699
|
+
# `Status` message should be used directly inside batch response, one for
|
2700
|
+
# each error sub-response.
|
2701
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
2702
|
+
# results in its response, the status of those operations should be
|
2703
|
+
# represented directly using the `Status` message.
|
2704
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
2705
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
2706
|
+
# Corresponds to the JSON property `error`
|
2707
|
+
# @return [Google::Apis::VisionV1::Status]
|
2708
|
+
attr_accessor :error
|
2717
2709
|
|
2718
|
-
|
2719
|
-
|
2720
|
-
|
2721
|
-
|
2722
|
-
class GoogleCloudVisionV1p3beta1ImportProductSetsResponse
|
2723
|
-
include Google::Apis::Core::Hashable
|
2710
|
+
# If present, face detection has completed successfully.
|
2711
|
+
# Corresponds to the JSON property `faceAnnotations`
|
2712
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1FaceAnnotation>]
|
2713
|
+
attr_accessor :face_annotations
|
2724
2714
|
|
2725
|
-
#
|
2726
|
-
#
|
2727
|
-
#
|
2728
|
-
|
2715
|
+
# TextAnnotation contains a structured representation of OCR extracted text.
|
2716
|
+
# The hierarchy of an OCR extracted text structure is like this:
|
2717
|
+
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
2718
|
+
# Each structural component, starting from Page, may further have their own
|
2719
|
+
# properties. Properties describe detected languages, breaks etc.. Please refer
|
2720
|
+
# to the TextAnnotation.TextProperty message definition below for more
|
2721
|
+
# detail.
|
2722
|
+
# Corresponds to the JSON property `fullTextAnnotation`
|
2723
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotation]
|
2724
|
+
attr_accessor :full_text_annotation
|
2729
2725
|
|
2730
|
-
#
|
2726
|
+
# Stores image properties, such as dominant colors.
|
2727
|
+
# Corresponds to the JSON property `imagePropertiesAnnotation`
|
2728
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ImageProperties]
|
2729
|
+
attr_accessor :image_properties_annotation
|
2730
|
+
|
2731
|
+
# If present, label detection has completed successfully.
|
2732
|
+
# Corresponds to the JSON property `labelAnnotations`
|
2733
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
|
2734
|
+
attr_accessor :label_annotations
|
2735
|
+
|
2736
|
+
# If present, landmark detection has completed successfully.
|
2737
|
+
# Corresponds to the JSON property `landmarkAnnotations`
|
2738
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
|
2739
|
+
attr_accessor :landmark_annotations
|
2740
|
+
|
2741
|
+
# If present, logo detection has completed successfully.
|
2742
|
+
# Corresponds to the JSON property `logoAnnotations`
|
2743
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
|
2744
|
+
attr_accessor :logo_annotations
|
2745
|
+
|
2746
|
+
# Set of features pertaining to the image, computed by computer vision
|
2747
|
+
# methods over safe-search verticals (for example, adult, spoof, medical,
|
2748
|
+
# violence).
|
2749
|
+
# Corresponds to the JSON property `safeSearchAnnotation`
|
2750
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1SafeSearchAnnotation]
|
2751
|
+
attr_accessor :safe_search_annotation
|
2752
|
+
|
2753
|
+
# If present, text (OCR) detection has completed successfully.
|
2754
|
+
# Corresponds to the JSON property `textAnnotations`
|
2755
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
|
2756
|
+
attr_accessor :text_annotations
|
2757
|
+
|
2758
|
+
# Relevant information for the image from the Internet.
|
2759
|
+
# Corresponds to the JSON property `webDetection`
|
2760
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetection]
|
2761
|
+
attr_accessor :web_detection
|
2762
|
+
|
2763
|
+
def initialize(**args)
|
2764
|
+
update!(**args)
|
2765
|
+
end
|
2766
|
+
|
2767
|
+
# Update properties of this object
|
2768
|
+
def update!(**args)
|
2769
|
+
@context = args[:context] if args.key?(:context)
|
2770
|
+
@crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
|
2771
|
+
@error = args[:error] if args.key?(:error)
|
2772
|
+
@face_annotations = args[:face_annotations] if args.key?(:face_annotations)
|
2773
|
+
@full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
|
2774
|
+
@image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
|
2775
|
+
@label_annotations = args[:label_annotations] if args.key?(:label_annotations)
|
2776
|
+
@landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
|
2777
|
+
@logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
|
2778
|
+
@safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
|
2779
|
+
@text_annotations = args[:text_annotations] if args.key?(:text_annotations)
|
2780
|
+
@web_detection = args[:web_detection] if args.key?(:web_detection)
|
2781
|
+
end
|
2782
|
+
end
|
2783
|
+
|
2784
|
+
# The response for a single offline file annotation request.
|
2785
|
+
class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse
|
2786
|
+
include Google::Apis::Core::Hashable
|
2787
|
+
|
2788
|
+
# The desired output location and metadata.
|
2789
|
+
# Corresponds to the JSON property `outputConfig`
|
2790
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1OutputConfig]
|
2791
|
+
attr_accessor :output_config
|
2792
|
+
|
2793
|
+
def initialize(**args)
|
2794
|
+
update!(**args)
|
2795
|
+
end
|
2796
|
+
|
2797
|
+
# Update properties of this object
|
2798
|
+
def update!(**args)
|
2799
|
+
@output_config = args[:output_config] if args.key?(:output_config)
|
2800
|
+
end
|
2801
|
+
end
|
2802
|
+
|
2803
|
+
# Response to an async batch file annotation request.
|
2804
|
+
class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse
|
2805
|
+
include Google::Apis::Core::Hashable
|
2806
|
+
|
2807
|
+
# The list of file annotation responses, one for each request in
|
2808
|
+
# AsyncBatchAnnotateFilesRequest.
|
2809
|
+
# Corresponds to the JSON property `responses`
|
2810
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse>]
|
2811
|
+
attr_accessor :responses
|
2812
|
+
|
2813
|
+
def initialize(**args)
|
2814
|
+
update!(**args)
|
2815
|
+
end
|
2816
|
+
|
2817
|
+
# Update properties of this object
|
2818
|
+
def update!(**args)
|
2819
|
+
@responses = args[:responses] if args.key?(:responses)
|
2820
|
+
end
|
2821
|
+
end
|
2822
|
+
|
2823
|
+
# Logical element on the page.
|
2824
|
+
class GoogleCloudVisionV1p2beta1Block
|
2825
|
+
include Google::Apis::Core::Hashable
|
2826
|
+
|
2827
|
+
# Detected block type (text, image etc) for this block.
|
2828
|
+
# Corresponds to the JSON property `blockType`
|
2829
|
+
# @return [String]
|
2830
|
+
attr_accessor :block_type
|
2831
|
+
|
2832
|
+
# A bounding polygon for the detected image annotation.
|
2833
|
+
# Corresponds to the JSON property `boundingBox`
|
2834
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
2835
|
+
attr_accessor :bounding_box
|
2836
|
+
|
2837
|
+
# Confidence of the OCR results on the block. Range [0, 1].
|
2838
|
+
# Corresponds to the JSON property `confidence`
|
2839
|
+
# @return [Float]
|
2840
|
+
attr_accessor :confidence
|
2841
|
+
|
2842
|
+
# List of paragraphs in this block (if this blocks is of type text).
|
2843
|
+
# Corresponds to the JSON property `paragraphs`
|
2844
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Paragraph>]
|
2845
|
+
attr_accessor :paragraphs
|
2846
|
+
|
2847
|
+
# Additional information detected on the structural component.
|
2848
|
+
# Corresponds to the JSON property `property`
|
2849
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
|
2850
|
+
attr_accessor :property
|
2851
|
+
|
2852
|
+
def initialize(**args)
|
2853
|
+
update!(**args)
|
2854
|
+
end
|
2855
|
+
|
2856
|
+
# Update properties of this object
|
2857
|
+
def update!(**args)
|
2858
|
+
@block_type = args[:block_type] if args.key?(:block_type)
|
2859
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
2860
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
2861
|
+
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
2862
|
+
@property = args[:property] if args.key?(:property)
|
2863
|
+
end
|
2864
|
+
end
|
2865
|
+
|
2866
|
+
# A bounding polygon for the detected image annotation.
|
2867
|
+
class GoogleCloudVisionV1p2beta1BoundingPoly
|
2868
|
+
include Google::Apis::Core::Hashable
|
2869
|
+
|
2870
|
+
# The bounding polygon normalized vertices.
|
2871
|
+
# Corresponds to the JSON property `normalizedVertices`
|
2872
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1NormalizedVertex>]
|
2873
|
+
attr_accessor :normalized_vertices
|
2874
|
+
|
2875
|
+
# The bounding polygon vertices.
|
2876
|
+
# Corresponds to the JSON property `vertices`
|
2877
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Vertex>]
|
2878
|
+
attr_accessor :vertices
|
2879
|
+
|
2880
|
+
def initialize(**args)
|
2881
|
+
update!(**args)
|
2882
|
+
end
|
2883
|
+
|
2884
|
+
# Update properties of this object
|
2885
|
+
def update!(**args)
|
2886
|
+
@normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
|
2887
|
+
@vertices = args[:vertices] if args.key?(:vertices)
|
2888
|
+
end
|
2889
|
+
end
|
2890
|
+
|
2891
|
+
# Color information consists of RGB channels, score, and the fraction of
|
2892
|
+
# the image that the color occupies in the image.
|
2893
|
+
class GoogleCloudVisionV1p2beta1ColorInfo
|
2894
|
+
include Google::Apis::Core::Hashable
|
2895
|
+
|
2896
|
+
# Represents a color in the RGBA color space. This representation is designed
|
2897
|
+
# for simplicity of conversion to/from color representations in various
|
2898
|
+
# languages over compactness; for example, the fields of this representation
|
2899
|
+
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
|
2900
|
+
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
2901
|
+
# method in iOS; and, with just a little work, it can be easily formatted into
|
2902
|
+
# a CSS "rgba()" string in JavaScript, as well. Here are some examples:
|
2903
|
+
# Example (Java):
|
2904
|
+
# import com.google.type.Color;
|
2905
|
+
# // ...
|
2906
|
+
# public static java.awt.Color fromProto(Color protocolor) `
|
2907
|
+
# float alpha = protocolor.hasAlpha()
|
2908
|
+
# ? protocolor.getAlpha().getValue()
|
2909
|
+
# : 1.0;
|
2910
|
+
# return new java.awt.Color(
|
2911
|
+
# protocolor.getRed(),
|
2912
|
+
# protocolor.getGreen(),
|
2913
|
+
# protocolor.getBlue(),
|
2914
|
+
# alpha);
|
2915
|
+
# `
|
2916
|
+
# public static Color toProto(java.awt.Color color) `
|
2917
|
+
# float red = (float) color.getRed();
|
2918
|
+
# float green = (float) color.getGreen();
|
2919
|
+
# float blue = (float) color.getBlue();
|
2920
|
+
# float denominator = 255.0;
|
2921
|
+
# Color.Builder resultBuilder =
|
2922
|
+
# Color
|
2923
|
+
# .newBuilder()
|
2924
|
+
# .setRed(red / denominator)
|
2925
|
+
# .setGreen(green / denominator)
|
2926
|
+
# .setBlue(blue / denominator);
|
2927
|
+
# int alpha = color.getAlpha();
|
2928
|
+
# if (alpha != 255) `
|
2929
|
+
# result.setAlpha(
|
2930
|
+
# FloatValue
|
2931
|
+
# .newBuilder()
|
2932
|
+
# .setValue(((float) alpha) / denominator)
|
2933
|
+
# .build());
|
2934
|
+
# `
|
2935
|
+
# return resultBuilder.build();
|
2936
|
+
# `
|
2937
|
+
# // ...
|
2938
|
+
# Example (iOS / Obj-C):
|
2939
|
+
# // ...
|
2940
|
+
# static UIColor* fromProto(Color* protocolor) `
|
2941
|
+
# float red = [protocolor red];
|
2942
|
+
# float green = [protocolor green];
|
2943
|
+
# float blue = [protocolor blue];
|
2944
|
+
# FloatValue* alpha_wrapper = [protocolor alpha];
|
2945
|
+
# float alpha = 1.0;
|
2946
|
+
# if (alpha_wrapper != nil) `
|
2947
|
+
# alpha = [alpha_wrapper value];
|
2948
|
+
# `
|
2949
|
+
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
|
2950
|
+
# `
|
2951
|
+
# static Color* toProto(UIColor* color) `
|
2952
|
+
# CGFloat red, green, blue, alpha;
|
2953
|
+
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
|
2954
|
+
# return nil;
|
2955
|
+
# `
|
2956
|
+
# Color* result = [[Color alloc] init];
|
2957
|
+
# [result setRed:red];
|
2958
|
+
# [result setGreen:green];
|
2959
|
+
# [result setBlue:blue];
|
2960
|
+
# if (alpha <= 0.9999) `
|
2961
|
+
# [result setAlpha:floatWrapperWithValue(alpha)];
|
2962
|
+
# `
|
2963
|
+
# [result autorelease];
|
2964
|
+
# return result;
|
2965
|
+
# `
|
2966
|
+
# // ...
|
2967
|
+
# Example (JavaScript):
|
2968
|
+
# // ...
|
2969
|
+
# var protoToCssColor = function(rgb_color) `
|
2970
|
+
# var redFrac = rgb_color.red || 0.0;
|
2971
|
+
# var greenFrac = rgb_color.green || 0.0;
|
2972
|
+
# var blueFrac = rgb_color.blue || 0.0;
|
2973
|
+
# var red = Math.floor(redFrac * 255);
|
2974
|
+
# var green = Math.floor(greenFrac * 255);
|
2975
|
+
# var blue = Math.floor(blueFrac * 255);
|
2976
|
+
# if (!('alpha' in rgb_color)) `
|
2977
|
+
# return rgbToCssColor_(red, green, blue);
|
2978
|
+
# `
|
2979
|
+
# var alphaFrac = rgb_color.alpha.value || 0.0;
|
2980
|
+
# var rgbParams = [red, green, blue].join(',');
|
2981
|
+
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
|
2982
|
+
# `;
|
2983
|
+
# var rgbToCssColor_ = function(red, green, blue) `
|
2984
|
+
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
|
2985
|
+
# var hexString = rgbNumber.toString(16);
|
2986
|
+
# var missingZeros = 6 - hexString.length;
|
2987
|
+
# var resultBuilder = ['#'];
|
2988
|
+
# for (var i = 0; i < missingZeros; i++) `
|
2989
|
+
# resultBuilder.push('0');
|
2990
|
+
# `
|
2991
|
+
# resultBuilder.push(hexString);
|
2992
|
+
# return resultBuilder.join('');
|
2993
|
+
# `;
|
2994
|
+
# // ...
|
2995
|
+
# Corresponds to the JSON property `color`
|
2996
|
+
# @return [Google::Apis::VisionV1::Color]
|
2997
|
+
attr_accessor :color
|
2998
|
+
|
2999
|
+
# The fraction of pixels the color occupies in the image.
|
3000
|
+
# Value in range [0, 1].
|
3001
|
+
# Corresponds to the JSON property `pixelFraction`
|
3002
|
+
# @return [Float]
|
3003
|
+
attr_accessor :pixel_fraction
|
3004
|
+
|
3005
|
+
# Image-specific score for this color. Value in range [0, 1].
|
3006
|
+
# Corresponds to the JSON property `score`
|
3007
|
+
# @return [Float]
|
3008
|
+
attr_accessor :score
|
3009
|
+
|
3010
|
+
def initialize(**args)
|
3011
|
+
update!(**args)
|
3012
|
+
end
|
3013
|
+
|
3014
|
+
# Update properties of this object
|
3015
|
+
def update!(**args)
|
3016
|
+
@color = args[:color] if args.key?(:color)
|
3017
|
+
@pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction)
|
3018
|
+
@score = args[:score] if args.key?(:score)
|
3019
|
+
end
|
3020
|
+
end
|
3021
|
+
|
3022
|
+
# Single crop hint that is used to generate a new crop when serving an image.
|
3023
|
+
class GoogleCloudVisionV1p2beta1CropHint
|
3024
|
+
include Google::Apis::Core::Hashable
|
3025
|
+
|
3026
|
+
# A bounding polygon for the detected image annotation.
|
3027
|
+
# Corresponds to the JSON property `boundingPoly`
|
3028
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
3029
|
+
attr_accessor :bounding_poly
|
3030
|
+
|
3031
|
+
# Confidence of this being a salient region. Range [0, 1].
|
3032
|
+
# Corresponds to the JSON property `confidence`
|
3033
|
+
# @return [Float]
|
3034
|
+
attr_accessor :confidence
|
3035
|
+
|
3036
|
+
# Fraction of importance of this salient region with respect to the original
|
3037
|
+
# image.
|
3038
|
+
# Corresponds to the JSON property `importanceFraction`
|
3039
|
+
# @return [Float]
|
3040
|
+
attr_accessor :importance_fraction
|
3041
|
+
|
3042
|
+
def initialize(**args)
|
3043
|
+
update!(**args)
|
3044
|
+
end
|
3045
|
+
|
3046
|
+
# Update properties of this object
|
3047
|
+
def update!(**args)
|
3048
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
3049
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
3050
|
+
@importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction)
|
3051
|
+
end
|
3052
|
+
end
|
3053
|
+
|
3054
|
+
# Set of crop hints that are used to generate new crops when serving images.
|
3055
|
+
class GoogleCloudVisionV1p2beta1CropHintsAnnotation
|
3056
|
+
include Google::Apis::Core::Hashable
|
3057
|
+
|
3058
|
+
# Crop hint results.
|
3059
|
+
# Corresponds to the JSON property `cropHints`
|
3060
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1CropHint>]
|
3061
|
+
attr_accessor :crop_hints
|
3062
|
+
|
3063
|
+
def initialize(**args)
|
3064
|
+
update!(**args)
|
3065
|
+
end
|
3066
|
+
|
3067
|
+
# Update properties of this object
|
3068
|
+
def update!(**args)
|
3069
|
+
@crop_hints = args[:crop_hints] if args.key?(:crop_hints)
|
3070
|
+
end
|
3071
|
+
end
|
3072
|
+
|
3073
|
+
# Set of dominant colors and their corresponding scores.
|
3074
|
+
class GoogleCloudVisionV1p2beta1DominantColorsAnnotation
|
3075
|
+
include Google::Apis::Core::Hashable
|
3076
|
+
|
3077
|
+
# RGB color values with their score and pixel fraction.
|
3078
|
+
# Corresponds to the JSON property `colors`
|
3079
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ColorInfo>]
|
3080
|
+
attr_accessor :colors
|
3081
|
+
|
3082
|
+
def initialize(**args)
|
3083
|
+
update!(**args)
|
3084
|
+
end
|
3085
|
+
|
3086
|
+
# Update properties of this object
|
3087
|
+
def update!(**args)
|
3088
|
+
@colors = args[:colors] if args.key?(:colors)
|
3089
|
+
end
|
3090
|
+
end
|
3091
|
+
|
3092
|
+
# Set of detected entity features.
|
3093
|
+
class GoogleCloudVisionV1p2beta1EntityAnnotation
|
3094
|
+
include Google::Apis::Core::Hashable
|
3095
|
+
|
3096
|
+
# A bounding polygon for the detected image annotation.
|
3097
|
+
# Corresponds to the JSON property `boundingPoly`
|
3098
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
3099
|
+
attr_accessor :bounding_poly
|
3100
|
+
|
3101
|
+
# **Deprecated. Use `score` instead.**
|
3102
|
+
# The accuracy of the entity detection in an image.
|
3103
|
+
# For example, for an image in which the "Eiffel Tower" entity is detected,
|
3104
|
+
# this field represents the confidence that there is a tower in the query
|
3105
|
+
# image. Range [0, 1].
|
3106
|
+
# Corresponds to the JSON property `confidence`
|
3107
|
+
# @return [Float]
|
3108
|
+
attr_accessor :confidence
|
3109
|
+
|
3110
|
+
# Entity textual description, expressed in its `locale` language.
|
3111
|
+
# Corresponds to the JSON property `description`
|
3112
|
+
# @return [String]
|
3113
|
+
attr_accessor :description
|
3114
|
+
|
3115
|
+
# The language code for the locale in which the entity textual
|
3116
|
+
# `description` is expressed.
|
3117
|
+
# Corresponds to the JSON property `locale`
|
3118
|
+
# @return [String]
|
3119
|
+
attr_accessor :locale
|
3120
|
+
|
3121
|
+
# The location information for the detected entity. Multiple
|
3122
|
+
# `LocationInfo` elements can be present because one location may
|
3123
|
+
# indicate the location of the scene in the image, and another location
|
3124
|
+
# may indicate the location of the place where the image was taken.
|
3125
|
+
# Location information is usually present for landmarks.
|
3126
|
+
# Corresponds to the JSON property `locations`
|
3127
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1LocationInfo>]
|
3128
|
+
attr_accessor :locations
|
3129
|
+
|
3130
|
+
# Opaque entity ID. Some IDs may be available in
|
3131
|
+
# [Google Knowledge Graph Search
|
3132
|
+
# API](https://developers.google.com/knowledge-graph/).
|
3133
|
+
# Corresponds to the JSON property `mid`
|
3134
|
+
# @return [String]
|
3135
|
+
attr_accessor :mid
|
3136
|
+
|
3137
|
+
# Some entities may have optional user-supplied `Property` (name/value)
|
3138
|
+
# fields, such a score or string that qualifies the entity.
|
3139
|
+
# Corresponds to the JSON property `properties`
|
3140
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Property>]
|
3141
|
+
attr_accessor :properties
|
3142
|
+
|
3143
|
+
# Overall score of the result. Range [0, 1].
|
3144
|
+
# Corresponds to the JSON property `score`
|
3145
|
+
# @return [Float]
|
3146
|
+
attr_accessor :score
|
3147
|
+
|
3148
|
+
# The relevancy of the ICA (Image Content Annotation) label to the
|
3149
|
+
# image. For example, the relevancy of "tower" is likely higher to an image
|
3150
|
+
# containing the detected "Eiffel Tower" than to an image containing a
|
3151
|
+
# detected distant towering building, even though the confidence that
|
3152
|
+
# there is a tower in each image may be the same. Range [0, 1].
|
3153
|
+
# Corresponds to the JSON property `topicality`
|
3154
|
+
# @return [Float]
|
3155
|
+
attr_accessor :topicality
|
3156
|
+
|
3157
|
+
def initialize(**args)
|
3158
|
+
update!(**args)
|
3159
|
+
end
|
3160
|
+
|
3161
|
+
# Update properties of this object
|
3162
|
+
def update!(**args)
|
3163
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
3164
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
3165
|
+
@description = args[:description] if args.key?(:description)
|
3166
|
+
@locale = args[:locale] if args.key?(:locale)
|
3167
|
+
@locations = args[:locations] if args.key?(:locations)
|
3168
|
+
@mid = args[:mid] if args.key?(:mid)
|
3169
|
+
@properties = args[:properties] if args.key?(:properties)
|
3170
|
+
@score = args[:score] if args.key?(:score)
|
3171
|
+
@topicality = args[:topicality] if args.key?(:topicality)
|
3172
|
+
end
|
3173
|
+
end
|
3174
|
+
|
3175
|
+
# A face annotation object contains the results of face detection.
|
3176
|
+
class GoogleCloudVisionV1p2beta1FaceAnnotation
|
3177
|
+
include Google::Apis::Core::Hashable
|
3178
|
+
|
3179
|
+
# Anger likelihood.
|
3180
|
+
# Corresponds to the JSON property `angerLikelihood`
|
3181
|
+
# @return [String]
|
3182
|
+
attr_accessor :anger_likelihood
|
3183
|
+
|
3184
|
+
# Blurred likelihood.
|
3185
|
+
# Corresponds to the JSON property `blurredLikelihood`
|
3186
|
+
# @return [String]
|
3187
|
+
attr_accessor :blurred_likelihood
|
3188
|
+
|
3189
|
+
# A bounding polygon for the detected image annotation.
|
3190
|
+
# Corresponds to the JSON property `boundingPoly`
|
3191
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
3192
|
+
attr_accessor :bounding_poly
|
3193
|
+
|
3194
|
+
# Detection confidence. Range [0, 1].
|
3195
|
+
# Corresponds to the JSON property `detectionConfidence`
|
3196
|
+
# @return [Float]
|
3197
|
+
attr_accessor :detection_confidence
|
3198
|
+
|
3199
|
+
# A bounding polygon for the detected image annotation.
|
3200
|
+
# Corresponds to the JSON property `fdBoundingPoly`
|
3201
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
3202
|
+
attr_accessor :fd_bounding_poly
|
3203
|
+
|
3204
|
+
# Headwear likelihood.
|
3205
|
+
# Corresponds to the JSON property `headwearLikelihood`
|
3206
|
+
# @return [String]
|
3207
|
+
attr_accessor :headwear_likelihood
|
3208
|
+
|
3209
|
+
# Joy likelihood.
|
3210
|
+
# Corresponds to the JSON property `joyLikelihood`
|
3211
|
+
# @return [String]
|
3212
|
+
attr_accessor :joy_likelihood
|
3213
|
+
|
3214
|
+
# Face landmarking confidence. Range [0, 1].
|
3215
|
+
# Corresponds to the JSON property `landmarkingConfidence`
|
3216
|
+
# @return [Float]
|
3217
|
+
attr_accessor :landmarking_confidence
|
3218
|
+
|
3219
|
+
# Detected face landmarks.
|
3220
|
+
# Corresponds to the JSON property `landmarks`
|
3221
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1FaceAnnotationLandmark>]
|
3222
|
+
attr_accessor :landmarks
|
3223
|
+
|
3224
|
+
# Yaw angle, which indicates the leftward/rightward angle that the face is
|
3225
|
+
# pointing relative to the vertical plane perpendicular to the image. Range
|
3226
|
+
# [-180,180].
|
3227
|
+
# Corresponds to the JSON property `panAngle`
|
3228
|
+
# @return [Float]
|
3229
|
+
attr_accessor :pan_angle
|
3230
|
+
|
3231
|
+
# Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
|
3232
|
+
# of the face relative to the image vertical about the axis perpendicular to
|
3233
|
+
# the face. Range [-180,180].
|
3234
|
+
# Corresponds to the JSON property `rollAngle`
|
3235
|
+
# @return [Float]
|
3236
|
+
attr_accessor :roll_angle
|
3237
|
+
|
3238
|
+
# Sorrow likelihood.
|
3239
|
+
# Corresponds to the JSON property `sorrowLikelihood`
|
3240
|
+
# @return [String]
|
3241
|
+
attr_accessor :sorrow_likelihood
|
3242
|
+
|
3243
|
+
# Surprise likelihood.
|
3244
|
+
# Corresponds to the JSON property `surpriseLikelihood`
|
3245
|
+
# @return [String]
|
3246
|
+
attr_accessor :surprise_likelihood
|
3247
|
+
|
3248
|
+
# Pitch angle, which indicates the upwards/downwards angle that the face is
|
3249
|
+
# pointing relative to the image's horizontal plane. Range [-180,180].
|
3250
|
+
# Corresponds to the JSON property `tiltAngle`
|
3251
|
+
# @return [Float]
|
3252
|
+
attr_accessor :tilt_angle
|
3253
|
+
|
3254
|
+
# Under-exposed likelihood.
|
3255
|
+
# Corresponds to the JSON property `underExposedLikelihood`
|
3256
|
+
# @return [String]
|
3257
|
+
attr_accessor :under_exposed_likelihood
|
3258
|
+
|
3259
|
+
def initialize(**args)
|
3260
|
+
update!(**args)
|
3261
|
+
end
|
3262
|
+
|
3263
|
+
# Update properties of this object
|
3264
|
+
def update!(**args)
|
3265
|
+
@anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood)
|
3266
|
+
@blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood)
|
3267
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
3268
|
+
@detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence)
|
3269
|
+
@fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly)
|
3270
|
+
@headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood)
|
3271
|
+
@joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood)
|
3272
|
+
@landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
|
3273
|
+
@landmarks = args[:landmarks] if args.key?(:landmarks)
|
3274
|
+
@pan_angle = args[:pan_angle] if args.key?(:pan_angle)
|
3275
|
+
@roll_angle = args[:roll_angle] if args.key?(:roll_angle)
|
3276
|
+
@sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood)
|
3277
|
+
@surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
|
3278
|
+
@tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle)
|
3279
|
+
@under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood)
|
3280
|
+
end
|
3281
|
+
end
|
3282
|
+
|
3283
|
+
# A face-specific landmark (for example, a face feature).
|
3284
|
+
class GoogleCloudVisionV1p2beta1FaceAnnotationLandmark
|
3285
|
+
include Google::Apis::Core::Hashable
|
3286
|
+
|
3287
|
+
# A 3D position in the image, used primarily for Face detection landmarks.
|
3288
|
+
# A valid Position must have both x and y coordinates.
|
3289
|
+
# The position coordinates are in the same scale as the original image.
|
3290
|
+
# Corresponds to the JSON property `position`
|
3291
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Position]
|
3292
|
+
attr_accessor :position
|
3293
|
+
|
3294
|
+
# Face landmark type.
|
3295
|
+
# Corresponds to the JSON property `type`
|
3296
|
+
# @return [String]
|
3297
|
+
attr_accessor :type
|
3298
|
+
|
3299
|
+
def initialize(**args)
|
3300
|
+
update!(**args)
|
3301
|
+
end
|
3302
|
+
|
3303
|
+
# Update properties of this object
|
3304
|
+
def update!(**args)
|
3305
|
+
@position = args[:position] if args.key?(:position)
|
3306
|
+
@type = args[:type] if args.key?(:type)
|
3307
|
+
end
|
3308
|
+
end
|
3309
|
+
|
3310
|
+
# The Google Cloud Storage location where the output will be written to.
|
3311
|
+
class GoogleCloudVisionV1p2beta1GcsDestination
|
3312
|
+
include Google::Apis::Core::Hashable
|
3313
|
+
|
3314
|
+
# Google Cloud Storage URI where the results will be stored. Results will
|
3315
|
+
# be in JSON format and preceded by its corresponding input URI. This field
|
3316
|
+
# can either represent a single file, or a prefix for multiple outputs.
|
3317
|
+
# Prefixes must end in a `/`.
|
3318
|
+
# Examples:
|
3319
|
+
# * File: gs://bucket-name/filename.json
|
3320
|
+
# * Prefix: gs://bucket-name/prefix/here/
|
3321
|
+
# * File: gs://bucket-name/prefix/here
|
3322
|
+
# If multiple outputs, each response is still AnnotateFileResponse, each of
|
3323
|
+
# which contains some subset of the full list of AnnotateImageResponse.
|
3324
|
+
# Multiple outputs can happen if, for example, the output JSON is too large
|
3325
|
+
# and overflows into multiple sharded files.
|
3326
|
+
# Corresponds to the JSON property `uri`
|
3327
|
+
# @return [String]
|
3328
|
+
attr_accessor :uri
|
3329
|
+
|
3330
|
+
def initialize(**args)
|
3331
|
+
update!(**args)
|
3332
|
+
end
|
3333
|
+
|
3334
|
+
# Update properties of this object
|
3335
|
+
def update!(**args)
|
3336
|
+
@uri = args[:uri] if args.key?(:uri)
|
3337
|
+
end
|
3338
|
+
end
|
3339
|
+
|
3340
|
+
# The Google Cloud Storage location where the input will be read from.
|
3341
|
+
class GoogleCloudVisionV1p2beta1GcsSource
|
3342
|
+
include Google::Apis::Core::Hashable
|
3343
|
+
|
3344
|
+
# Google Cloud Storage URI for the input file. This must only be a
|
3345
|
+
# Google Cloud Storage object. Wildcards are not currently supported.
|
3346
|
+
# Corresponds to the JSON property `uri`
|
3347
|
+
# @return [String]
|
3348
|
+
attr_accessor :uri
|
3349
|
+
|
3350
|
+
def initialize(**args)
|
3351
|
+
update!(**args)
|
3352
|
+
end
|
3353
|
+
|
3354
|
+
# Update properties of this object
|
3355
|
+
def update!(**args)
|
3356
|
+
@uri = args[:uri] if args.key?(:uri)
|
3357
|
+
end
|
3358
|
+
end
|
3359
|
+
|
3360
|
+
# If an image was produced from a file (e.g. a PDF), this message gives
|
3361
|
+
# information about the source of that image.
|
3362
|
+
class GoogleCloudVisionV1p2beta1ImageAnnotationContext
|
3363
|
+
include Google::Apis::Core::Hashable
|
3364
|
+
|
3365
|
+
# If the file was a PDF or TIFF, this field gives the page number within
|
3366
|
+
# the file used to produce the image.
|
3367
|
+
# Corresponds to the JSON property `pageNumber`
|
3368
|
+
# @return [Fixnum]
|
3369
|
+
attr_accessor :page_number
|
3370
|
+
|
3371
|
+
# The URI of the file used to produce the image.
|
3372
|
+
# Corresponds to the JSON property `uri`
|
3373
|
+
# @return [String]
|
3374
|
+
attr_accessor :uri
|
3375
|
+
|
3376
|
+
def initialize(**args)
|
3377
|
+
update!(**args)
|
3378
|
+
end
|
3379
|
+
|
3380
|
+
# Update properties of this object
|
3381
|
+
def update!(**args)
|
3382
|
+
@page_number = args[:page_number] if args.key?(:page_number)
|
3383
|
+
@uri = args[:uri] if args.key?(:uri)
|
3384
|
+
end
|
3385
|
+
end
|
3386
|
+
|
3387
|
+
# Stores image properties, such as dominant colors.
|
3388
|
+
class GoogleCloudVisionV1p2beta1ImageProperties
|
3389
|
+
include Google::Apis::Core::Hashable
|
3390
|
+
|
3391
|
+
# Set of dominant colors and their corresponding scores.
|
3392
|
+
# Corresponds to the JSON property `dominantColors`
|
3393
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1DominantColorsAnnotation]
|
3394
|
+
attr_accessor :dominant_colors
|
3395
|
+
|
3396
|
+
def initialize(**args)
|
3397
|
+
update!(**args)
|
3398
|
+
end
|
3399
|
+
|
3400
|
+
# Update properties of this object
|
3401
|
+
def update!(**args)
|
3402
|
+
@dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
|
3403
|
+
end
|
3404
|
+
end
|
3405
|
+
|
3406
|
+
# The desired input location and metadata.
|
3407
|
+
class GoogleCloudVisionV1p2beta1InputConfig
|
3408
|
+
include Google::Apis::Core::Hashable
|
3409
|
+
|
3410
|
+
# The Google Cloud Storage location where the input will be read from.
|
3411
|
+
# Corresponds to the JSON property `gcsSource`
|
3412
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1GcsSource]
|
3413
|
+
attr_accessor :gcs_source
|
3414
|
+
|
3415
|
+
# The type of the file. Currently only "application/pdf" and "image/tiff"
|
3416
|
+
# are supported. Wildcards are not supported.
|
3417
|
+
# Corresponds to the JSON property `mimeType`
|
3418
|
+
# @return [String]
|
3419
|
+
attr_accessor :mime_type
|
3420
|
+
|
3421
|
+
def initialize(**args)
|
3422
|
+
update!(**args)
|
3423
|
+
end
|
3424
|
+
|
3425
|
+
# Update properties of this object
|
3426
|
+
def update!(**args)
|
3427
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
3428
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
3429
|
+
end
|
3430
|
+
end
|
3431
|
+
|
3432
|
+
# Detected entity location information.
|
3433
|
+
class GoogleCloudVisionV1p2beta1LocationInfo
|
3434
|
+
include Google::Apis::Core::Hashable
|
3435
|
+
|
3436
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
3437
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
3438
|
+
# specified otherwise, this must conform to the
|
3439
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
3440
|
+
# standard</a>. Values must be within normalized ranges.
|
3441
|
+
# Corresponds to the JSON property `latLng`
|
3442
|
+
# @return [Google::Apis::VisionV1::LatLng]
|
3443
|
+
attr_accessor :lat_lng
|
3444
|
+
|
3445
|
+
def initialize(**args)
|
3446
|
+
update!(**args)
|
3447
|
+
end
|
3448
|
+
|
3449
|
+
# Update properties of this object
|
3450
|
+
def update!(**args)
|
3451
|
+
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
3452
|
+
end
|
3453
|
+
end
|
3454
|
+
|
3455
|
+
# A vertex represents a 2D point in the image.
|
3456
|
+
# NOTE: the normalized vertex coordinates are relative to the original image
|
3457
|
+
# and range from 0 to 1.
|
3458
|
+
class GoogleCloudVisionV1p2beta1NormalizedVertex
|
3459
|
+
include Google::Apis::Core::Hashable
|
3460
|
+
|
3461
|
+
# X coordinate.
|
3462
|
+
# Corresponds to the JSON property `x`
|
3463
|
+
# @return [Float]
|
3464
|
+
attr_accessor :x
|
3465
|
+
|
3466
|
+
# Y coordinate.
|
3467
|
+
# Corresponds to the JSON property `y`
|
3468
|
+
# @return [Float]
|
3469
|
+
attr_accessor :y
|
3470
|
+
|
3471
|
+
def initialize(**args)
|
3472
|
+
update!(**args)
|
3473
|
+
end
|
3474
|
+
|
3475
|
+
# Update properties of this object
|
3476
|
+
def update!(**args)
|
3477
|
+
@x = args[:x] if args.key?(:x)
|
3478
|
+
@y = args[:y] if args.key?(:y)
|
3479
|
+
end
|
3480
|
+
end
|
3481
|
+
|
3482
|
+
# Contains metadata for the BatchAnnotateImages operation.
|
3483
|
+
class GoogleCloudVisionV1p2beta1OperationMetadata
|
3484
|
+
include Google::Apis::Core::Hashable
|
3485
|
+
|
3486
|
+
# The time when the batch request was received.
|
3487
|
+
# Corresponds to the JSON property `createTime`
|
3488
|
+
# @return [String]
|
3489
|
+
attr_accessor :create_time
|
3490
|
+
|
3491
|
+
# Current state of the batch operation.
|
3492
|
+
# Corresponds to the JSON property `state`
|
3493
|
+
# @return [String]
|
3494
|
+
attr_accessor :state
|
3495
|
+
|
3496
|
+
# The time when the operation result was last updated.
|
3497
|
+
# Corresponds to the JSON property `updateTime`
|
3498
|
+
# @return [String]
|
3499
|
+
attr_accessor :update_time
|
3500
|
+
|
3501
|
+
def initialize(**args)
|
3502
|
+
update!(**args)
|
3503
|
+
end
|
3504
|
+
|
3505
|
+
# Update properties of this object
|
3506
|
+
def update!(**args)
|
3507
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
3508
|
+
@state = args[:state] if args.key?(:state)
|
3509
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
3510
|
+
end
|
3511
|
+
end
|
3512
|
+
|
3513
|
+
# The desired output location and metadata.
|
3514
|
+
class GoogleCloudVisionV1p2beta1OutputConfig
|
3515
|
+
include Google::Apis::Core::Hashable
|
3516
|
+
|
3517
|
+
# The max number of response protos to put into each output JSON file on
|
3518
|
+
# Google Cloud Storage.
|
3519
|
+
# The valid range is [1, 100]. If not specified, the default value is 20.
|
3520
|
+
# For example, for one pdf file with 100 pages, 100 response protos will
|
3521
|
+
# be generated. If `batch_size` = 20, then 5 json files each
|
3522
|
+
# containing 20 response protos will be written under the prefix
|
3523
|
+
# `gcs_destination`.`uri`.
|
3524
|
+
# Currently, batch_size only applies to GcsDestination, with potential future
|
3525
|
+
# support for other output configurations.
|
3526
|
+
# Corresponds to the JSON property `batchSize`
|
3527
|
+
# @return [Fixnum]
|
3528
|
+
attr_accessor :batch_size
|
3529
|
+
|
3530
|
+
# The Google Cloud Storage location where the output will be written to.
|
3531
|
+
# Corresponds to the JSON property `gcsDestination`
|
3532
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1GcsDestination]
|
3533
|
+
attr_accessor :gcs_destination
|
3534
|
+
|
3535
|
+
def initialize(**args)
|
3536
|
+
update!(**args)
|
3537
|
+
end
|
3538
|
+
|
3539
|
+
# Update properties of this object
|
3540
|
+
def update!(**args)
|
3541
|
+
@batch_size = args[:batch_size] if args.key?(:batch_size)
|
3542
|
+
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
|
3543
|
+
end
|
3544
|
+
end
|
3545
|
+
|
3546
|
+
# Detected page from OCR.
|
3547
|
+
class GoogleCloudVisionV1p2beta1Page
|
3548
|
+
include Google::Apis::Core::Hashable
|
3549
|
+
|
3550
|
+
# List of blocks of text, images etc on this page.
|
3551
|
+
# Corresponds to the JSON property `blocks`
|
3552
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Block>]
|
3553
|
+
attr_accessor :blocks
|
3554
|
+
|
3555
|
+
# Confidence of the OCR results on the page. Range [0, 1].
|
3556
|
+
# Corresponds to the JSON property `confidence`
|
3557
|
+
# @return [Float]
|
3558
|
+
attr_accessor :confidence
|
3559
|
+
|
3560
|
+
# Page height. For PDFs the unit is points. For images (including
|
3561
|
+
# TIFFs) the unit is pixels.
|
3562
|
+
# Corresponds to the JSON property `height`
|
3563
|
+
# @return [Fixnum]
|
3564
|
+
attr_accessor :height
|
3565
|
+
|
3566
|
+
# Additional information detected on the structural component.
|
3567
|
+
# Corresponds to the JSON property `property`
|
3568
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
|
3569
|
+
attr_accessor :property
|
3570
|
+
|
3571
|
+
# Page width. For PDFs the unit is points. For images (including
|
3572
|
+
# TIFFs) the unit is pixels.
|
3573
|
+
# Corresponds to the JSON property `width`
|
3574
|
+
# @return [Fixnum]
|
3575
|
+
attr_accessor :width
|
3576
|
+
|
3577
|
+
def initialize(**args)
|
3578
|
+
update!(**args)
|
3579
|
+
end
|
3580
|
+
|
3581
|
+
# Update properties of this object
|
3582
|
+
def update!(**args)
|
3583
|
+
@blocks = args[:blocks] if args.key?(:blocks)
|
3584
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
3585
|
+
@height = args[:height] if args.key?(:height)
|
3586
|
+
@property = args[:property] if args.key?(:property)
|
3587
|
+
@width = args[:width] if args.key?(:width)
|
3588
|
+
end
|
3589
|
+
end
|
3590
|
+
|
3591
|
+
# Structural unit of text representing a number of words in certain order.
|
3592
|
+
class GoogleCloudVisionV1p2beta1Paragraph
|
3593
|
+
include Google::Apis::Core::Hashable
|
3594
|
+
|
3595
|
+
# A bounding polygon for the detected image annotation.
|
3596
|
+
# Corresponds to the JSON property `boundingBox`
|
3597
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
3598
|
+
attr_accessor :bounding_box
|
3599
|
+
|
3600
|
+
# Confidence of the OCR results for the paragraph. Range [0, 1].
|
3601
|
+
# Corresponds to the JSON property `confidence`
|
3602
|
+
# @return [Float]
|
3603
|
+
attr_accessor :confidence
|
3604
|
+
|
3605
|
+
# Additional information detected on the structural component.
|
3606
|
+
# Corresponds to the JSON property `property`
|
3607
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
|
3608
|
+
attr_accessor :property
|
3609
|
+
|
3610
|
+
# List of words in this paragraph.
|
3611
|
+
# Corresponds to the JSON property `words`
|
3612
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Word>]
|
3613
|
+
attr_accessor :words
|
3614
|
+
|
3615
|
+
def initialize(**args)
|
3616
|
+
update!(**args)
|
3617
|
+
end
|
3618
|
+
|
3619
|
+
# Update properties of this object
|
3620
|
+
def update!(**args)
|
3621
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
3622
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
3623
|
+
@property = args[:property] if args.key?(:property)
|
3624
|
+
@words = args[:words] if args.key?(:words)
|
3625
|
+
end
|
3626
|
+
end
|
3627
|
+
|
3628
|
+
# A 3D position in the image, used primarily for Face detection landmarks.
|
3629
|
+
# A valid Position must have both x and y coordinates.
|
3630
|
+
# The position coordinates are in the same scale as the original image.
|
3631
|
+
class GoogleCloudVisionV1p2beta1Position
|
3632
|
+
include Google::Apis::Core::Hashable
|
3633
|
+
|
3634
|
+
# X coordinate.
|
3635
|
+
# Corresponds to the JSON property `x`
|
3636
|
+
# @return [Float]
|
3637
|
+
attr_accessor :x
|
3638
|
+
|
3639
|
+
# Y coordinate.
|
3640
|
+
# Corresponds to the JSON property `y`
|
3641
|
+
# @return [Float]
|
3642
|
+
attr_accessor :y
|
3643
|
+
|
3644
|
+
# Z coordinate (or depth).
|
3645
|
+
# Corresponds to the JSON property `z`
|
3646
|
+
# @return [Float]
|
3647
|
+
attr_accessor :z
|
3648
|
+
|
3649
|
+
def initialize(**args)
|
3650
|
+
update!(**args)
|
3651
|
+
end
|
3652
|
+
|
3653
|
+
# Update properties of this object
|
3654
|
+
def update!(**args)
|
3655
|
+
@x = args[:x] if args.key?(:x)
|
3656
|
+
@y = args[:y] if args.key?(:y)
|
3657
|
+
@z = args[:z] if args.key?(:z)
|
3658
|
+
end
|
3659
|
+
end
|
3660
|
+
|
3661
|
+
# A `Property` consists of a user-supplied name/value pair.
|
3662
|
+
class GoogleCloudVisionV1p2beta1Property
|
3663
|
+
include Google::Apis::Core::Hashable
|
3664
|
+
|
3665
|
+
# Name of the property.
|
3666
|
+
# Corresponds to the JSON property `name`
|
3667
|
+
# @return [String]
|
3668
|
+
attr_accessor :name
|
3669
|
+
|
3670
|
+
# Value of numeric properties.
|
3671
|
+
# Corresponds to the JSON property `uint64Value`
|
3672
|
+
# @return [Fixnum]
|
3673
|
+
attr_accessor :uint64_value
|
3674
|
+
|
3675
|
+
# Value of the property.
|
3676
|
+
# Corresponds to the JSON property `value`
|
3677
|
+
# @return [String]
|
3678
|
+
attr_accessor :value
|
3679
|
+
|
3680
|
+
def initialize(**args)
|
3681
|
+
update!(**args)
|
3682
|
+
end
|
3683
|
+
|
3684
|
+
# Update properties of this object
|
3685
|
+
def update!(**args)
|
3686
|
+
@name = args[:name] if args.key?(:name)
|
3687
|
+
@uint64_value = args[:uint64_value] if args.key?(:uint64_value)
|
3688
|
+
@value = args[:value] if args.key?(:value)
|
3689
|
+
end
|
3690
|
+
end
|
3691
|
+
|
3692
|
+
# Set of features pertaining to the image, computed by computer vision
|
3693
|
+
# methods over safe-search verticals (for example, adult, spoof, medical,
|
3694
|
+
# violence).
|
3695
|
+
class GoogleCloudVisionV1p2beta1SafeSearchAnnotation
|
3696
|
+
include Google::Apis::Core::Hashable
|
3697
|
+
|
3698
|
+
# Represents the adult content likelihood for the image. Adult content may
|
3699
|
+
# contain elements such as nudity, pornographic images or cartoons, or
|
3700
|
+
# sexual activities.
|
3701
|
+
# Corresponds to the JSON property `adult`
|
3702
|
+
# @return [String]
|
3703
|
+
attr_accessor :adult
|
3704
|
+
|
3705
|
+
# Likelihood that this is a medical image.
|
3706
|
+
# Corresponds to the JSON property `medical`
|
3707
|
+
# @return [String]
|
3708
|
+
attr_accessor :medical
|
3709
|
+
|
3710
|
+
# Likelihood that the request image contains racy content. Racy content may
|
3711
|
+
# include (but is not limited to) skimpy or sheer clothing, strategically
|
3712
|
+
# covered nudity, lewd or provocative poses, or close-ups of sensitive
|
3713
|
+
# body areas.
|
3714
|
+
# Corresponds to the JSON property `racy`
|
3715
|
+
# @return [String]
|
3716
|
+
attr_accessor :racy
|
3717
|
+
|
3718
|
+
# Spoof likelihood. The likelihood that an modification
|
3719
|
+
# was made to the image's canonical version to make it appear
|
3720
|
+
# funny or offensive.
|
3721
|
+
# Corresponds to the JSON property `spoof`
|
3722
|
+
# @return [String]
|
3723
|
+
attr_accessor :spoof
|
3724
|
+
|
3725
|
+
# Likelihood that this image contains violent content.
|
3726
|
+
# Corresponds to the JSON property `violence`
|
3727
|
+
# @return [String]
|
3728
|
+
attr_accessor :violence
|
3729
|
+
|
3730
|
+
def initialize(**args)
|
3731
|
+
update!(**args)
|
3732
|
+
end
|
3733
|
+
|
3734
|
+
# Update properties of this object
|
3735
|
+
def update!(**args)
|
3736
|
+
@adult = args[:adult] if args.key?(:adult)
|
3737
|
+
@medical = args[:medical] if args.key?(:medical)
|
3738
|
+
@racy = args[:racy] if args.key?(:racy)
|
3739
|
+
@spoof = args[:spoof] if args.key?(:spoof)
|
3740
|
+
@violence = args[:violence] if args.key?(:violence)
|
3741
|
+
end
|
3742
|
+
end
|
3743
|
+
|
3744
|
+
# A single symbol representation.
|
3745
|
+
class GoogleCloudVisionV1p2beta1Symbol
|
3746
|
+
include Google::Apis::Core::Hashable
|
3747
|
+
|
3748
|
+
# A bounding polygon for the detected image annotation.
|
3749
|
+
# Corresponds to the JSON property `boundingBox`
|
3750
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
3751
|
+
attr_accessor :bounding_box
|
3752
|
+
|
3753
|
+
# Confidence of the OCR results for the symbol. Range [0, 1].
|
3754
|
+
# Corresponds to the JSON property `confidence`
|
3755
|
+
# @return [Float]
|
3756
|
+
attr_accessor :confidence
|
3757
|
+
|
3758
|
+
# Additional information detected on the structural component.
|
3759
|
+
# Corresponds to the JSON property `property`
|
3760
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
|
3761
|
+
attr_accessor :property
|
3762
|
+
|
3763
|
+
# The actual UTF-8 representation of the symbol.
|
3764
|
+
# Corresponds to the JSON property `text`
|
3765
|
+
# @return [String]
|
3766
|
+
attr_accessor :text
|
3767
|
+
|
3768
|
+
def initialize(**args)
|
3769
|
+
update!(**args)
|
3770
|
+
end
|
3771
|
+
|
3772
|
+
# Update properties of this object
|
3773
|
+
def update!(**args)
|
3774
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
3775
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
3776
|
+
@property = args[:property] if args.key?(:property)
|
3777
|
+
@text = args[:text] if args.key?(:text)
|
3778
|
+
end
|
3779
|
+
end
|
3780
|
+
|
3781
|
+
# TextAnnotation contains a structured representation of OCR extracted text.
|
3782
|
+
# The hierarchy of an OCR extracted text structure is like this:
|
3783
|
+
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
3784
|
+
# Each structural component, starting from Page, may further have their own
|
3785
|
+
# properties. Properties describe detected languages, breaks etc.. Please refer
|
3786
|
+
# to the TextAnnotation.TextProperty message definition below for more
|
3787
|
+
# detail.
|
3788
|
+
class GoogleCloudVisionV1p2beta1TextAnnotation
|
3789
|
+
include Google::Apis::Core::Hashable
|
3790
|
+
|
3791
|
+
# List of pages detected by OCR.
|
3792
|
+
# Corresponds to the JSON property `pages`
|
3793
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Page>]
|
3794
|
+
attr_accessor :pages
|
3795
|
+
|
3796
|
+
# UTF-8 text detected on the pages.
|
3797
|
+
# Corresponds to the JSON property `text`
|
3798
|
+
# @return [String]
|
3799
|
+
attr_accessor :text
|
3800
|
+
|
3801
|
+
def initialize(**args)
|
3802
|
+
update!(**args)
|
3803
|
+
end
|
3804
|
+
|
3805
|
+
# Update properties of this object
|
3806
|
+
def update!(**args)
|
3807
|
+
@pages = args[:pages] if args.key?(:pages)
|
3808
|
+
@text = args[:text] if args.key?(:text)
|
3809
|
+
end
|
3810
|
+
end
|
3811
|
+
|
3812
|
+
# Detected start or end of a structural component.
|
3813
|
+
class GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak
|
3814
|
+
include Google::Apis::Core::Hashable
|
3815
|
+
|
3816
|
+
# True if break prepends the element.
|
3817
|
+
# Corresponds to the JSON property `isPrefix`
|
3818
|
+
# @return [Boolean]
|
3819
|
+
attr_accessor :is_prefix
|
3820
|
+
alias_method :is_prefix?, :is_prefix
|
3821
|
+
|
3822
|
+
# Detected break type.
|
3823
|
+
# Corresponds to the JSON property `type`
|
3824
|
+
# @return [String]
|
3825
|
+
attr_accessor :type
|
3826
|
+
|
3827
|
+
def initialize(**args)
|
3828
|
+
update!(**args)
|
3829
|
+
end
|
3830
|
+
|
3831
|
+
# Update properties of this object
|
3832
|
+
def update!(**args)
|
3833
|
+
@is_prefix = args[:is_prefix] if args.key?(:is_prefix)
|
3834
|
+
@type = args[:type] if args.key?(:type)
|
3835
|
+
end
|
3836
|
+
end
|
3837
|
+
|
3838
|
+
# Detected language for a structural component.
|
3839
|
+
class GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage
|
3840
|
+
include Google::Apis::Core::Hashable
|
3841
|
+
|
3842
|
+
# Confidence of detected language. Range [0, 1].
|
3843
|
+
# Corresponds to the JSON property `confidence`
|
3844
|
+
# @return [Float]
|
3845
|
+
attr_accessor :confidence
|
3846
|
+
|
3847
|
+
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
3848
|
+
# information, see
|
3849
|
+
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
3850
|
+
# Corresponds to the JSON property `languageCode`
|
3851
|
+
# @return [String]
|
3852
|
+
attr_accessor :language_code
|
3853
|
+
|
3854
|
+
def initialize(**args)
|
3855
|
+
update!(**args)
|
3856
|
+
end
|
3857
|
+
|
3858
|
+
# Update properties of this object
|
3859
|
+
def update!(**args)
|
3860
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
3861
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
3862
|
+
end
|
3863
|
+
end
|
3864
|
+
|
3865
|
+
# Additional information detected on the structural component.
|
3866
|
+
class GoogleCloudVisionV1p2beta1TextAnnotationTextProperty
|
3867
|
+
include Google::Apis::Core::Hashable
|
3868
|
+
|
3869
|
+
# Detected start or end of a structural component.
|
3870
|
+
# Corresponds to the JSON property `detectedBreak`
|
3871
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak]
|
3872
|
+
attr_accessor :detected_break
|
3873
|
+
|
3874
|
+
# A list of detected languages together with confidence.
|
3875
|
+
# Corresponds to the JSON property `detectedLanguages`
|
3876
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage>]
|
3877
|
+
attr_accessor :detected_languages
|
3878
|
+
|
3879
|
+
def initialize(**args)
|
3880
|
+
update!(**args)
|
3881
|
+
end
|
3882
|
+
|
3883
|
+
# Update properties of this object
|
3884
|
+
def update!(**args)
|
3885
|
+
@detected_break = args[:detected_break] if args.key?(:detected_break)
|
3886
|
+
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
3887
|
+
end
|
3888
|
+
end
|
3889
|
+
|
3890
|
+
# A vertex represents a 2D point in the image.
|
3891
|
+
# NOTE: the vertex coordinates are in the same scale as the original image.
|
3892
|
+
class GoogleCloudVisionV1p2beta1Vertex
|
3893
|
+
include Google::Apis::Core::Hashable
|
3894
|
+
|
3895
|
+
# X coordinate.
|
3896
|
+
# Corresponds to the JSON property `x`
|
3897
|
+
# @return [Fixnum]
|
3898
|
+
attr_accessor :x
|
3899
|
+
|
3900
|
+
# Y coordinate.
|
3901
|
+
# Corresponds to the JSON property `y`
|
3902
|
+
# @return [Fixnum]
|
3903
|
+
attr_accessor :y
|
3904
|
+
|
3905
|
+
def initialize(**args)
|
3906
|
+
update!(**args)
|
3907
|
+
end
|
3908
|
+
|
3909
|
+
# Update properties of this object
|
3910
|
+
def update!(**args)
|
3911
|
+
@x = args[:x] if args.key?(:x)
|
3912
|
+
@y = args[:y] if args.key?(:y)
|
3913
|
+
end
|
3914
|
+
end
|
3915
|
+
|
3916
|
+
# Relevant information for the image from the Internet.
|
3917
|
+
class GoogleCloudVisionV1p2beta1WebDetection
|
3918
|
+
include Google::Apis::Core::Hashable
|
3919
|
+
|
3920
|
+
# The service's best guess as to the topic of the request image.
|
3921
|
+
# Inferred from similar images on the open web.
|
3922
|
+
# Corresponds to the JSON property `bestGuessLabels`
|
3923
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebLabel>]
|
3924
|
+
attr_accessor :best_guess_labels
|
3925
|
+
|
3926
|
+
# Fully matching images from the Internet.
|
3927
|
+
# Can include resized copies of the query image.
|
3928
|
+
# Corresponds to the JSON property `fullMatchingImages`
|
3929
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
|
3930
|
+
attr_accessor :full_matching_images
|
3931
|
+
|
3932
|
+
# Web pages containing the matching images from the Internet.
|
3933
|
+
# Corresponds to the JSON property `pagesWithMatchingImages`
|
3934
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebPage>]
|
3935
|
+
attr_accessor :pages_with_matching_images
|
3936
|
+
|
3937
|
+
# Partial matching images from the Internet.
|
3938
|
+
# Those images are similar enough to share some key-point features. For
|
3939
|
+
# example an original image will likely have partial matching for its crops.
|
3940
|
+
# Corresponds to the JSON property `partialMatchingImages`
|
3941
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
|
3942
|
+
attr_accessor :partial_matching_images
|
3943
|
+
|
3944
|
+
# The visually similar image results.
|
3945
|
+
# Corresponds to the JSON property `visuallySimilarImages`
|
3946
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
|
3947
|
+
attr_accessor :visually_similar_images
|
3948
|
+
|
3949
|
+
# Deduced entities from similar images on the Internet.
|
3950
|
+
# Corresponds to the JSON property `webEntities`
|
3951
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebEntity>]
|
3952
|
+
attr_accessor :web_entities
|
3953
|
+
|
3954
|
+
def initialize(**args)
|
3955
|
+
update!(**args)
|
3956
|
+
end
|
3957
|
+
|
3958
|
+
# Update properties of this object
|
3959
|
+
def update!(**args)
|
3960
|
+
@best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
|
3961
|
+
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
3962
|
+
@pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
|
3963
|
+
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
3964
|
+
@visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
|
3965
|
+
@web_entities = args[:web_entities] if args.key?(:web_entities)
|
3966
|
+
end
|
3967
|
+
end
|
3968
|
+
|
3969
|
+
# Entity deduced from similar images on the Internet.
|
3970
|
+
class GoogleCloudVisionV1p2beta1WebDetectionWebEntity
|
3971
|
+
include Google::Apis::Core::Hashable
|
3972
|
+
|
3973
|
+
# Canonical description of the entity, in English.
|
3974
|
+
# Corresponds to the JSON property `description`
|
3975
|
+
# @return [String]
|
3976
|
+
attr_accessor :description
|
3977
|
+
|
3978
|
+
# Opaque entity ID.
|
3979
|
+
# Corresponds to the JSON property `entityId`
|
3980
|
+
# @return [String]
|
3981
|
+
attr_accessor :entity_id
|
3982
|
+
|
3983
|
+
# Overall relevancy score for the entity.
|
3984
|
+
# Not normalized and not comparable across different image queries.
|
3985
|
+
# Corresponds to the JSON property `score`
|
3986
|
+
# @return [Float]
|
3987
|
+
attr_accessor :score
|
3988
|
+
|
3989
|
+
def initialize(**args)
|
3990
|
+
update!(**args)
|
3991
|
+
end
|
3992
|
+
|
3993
|
+
# Update properties of this object
|
3994
|
+
def update!(**args)
|
3995
|
+
@description = args[:description] if args.key?(:description)
|
3996
|
+
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
3997
|
+
@score = args[:score] if args.key?(:score)
|
3998
|
+
end
|
3999
|
+
end
|
4000
|
+
|
4001
|
+
# Metadata for online images.
|
4002
|
+
class GoogleCloudVisionV1p2beta1WebDetectionWebImage
|
4003
|
+
include Google::Apis::Core::Hashable
|
4004
|
+
|
4005
|
+
# (Deprecated) Overall relevancy score for the image.
|
4006
|
+
# Corresponds to the JSON property `score`
|
4007
|
+
# @return [Float]
|
4008
|
+
attr_accessor :score
|
4009
|
+
|
4010
|
+
# The result image URL.
|
4011
|
+
# Corresponds to the JSON property `url`
|
4012
|
+
# @return [String]
|
4013
|
+
attr_accessor :url
|
4014
|
+
|
4015
|
+
def initialize(**args)
|
4016
|
+
update!(**args)
|
4017
|
+
end
|
4018
|
+
|
4019
|
+
# Update properties of this object
|
4020
|
+
def update!(**args)
|
4021
|
+
@score = args[:score] if args.key?(:score)
|
4022
|
+
@url = args[:url] if args.key?(:url)
|
4023
|
+
end
|
4024
|
+
end
|
4025
|
+
|
4026
|
+
# Label to provide extra metadata for the web detection.
|
4027
|
+
class GoogleCloudVisionV1p2beta1WebDetectionWebLabel
|
4028
|
+
include Google::Apis::Core::Hashable
|
4029
|
+
|
4030
|
+
# Label for extra metadata.
|
4031
|
+
# Corresponds to the JSON property `label`
|
4032
|
+
# @return [String]
|
4033
|
+
attr_accessor :label
|
4034
|
+
|
4035
|
+
# The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
|
4036
|
+
# For more information, see
|
4037
|
+
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
4038
|
+
# Corresponds to the JSON property `languageCode`
|
4039
|
+
# @return [String]
|
4040
|
+
attr_accessor :language_code
|
4041
|
+
|
4042
|
+
def initialize(**args)
|
4043
|
+
update!(**args)
|
4044
|
+
end
|
4045
|
+
|
4046
|
+
# Update properties of this object
|
4047
|
+
def update!(**args)
|
4048
|
+
@label = args[:label] if args.key?(:label)
|
4049
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
4050
|
+
end
|
4051
|
+
end
|
4052
|
+
|
4053
|
+
# Metadata for web pages.
|
4054
|
+
class GoogleCloudVisionV1p2beta1WebDetectionWebPage
|
4055
|
+
include Google::Apis::Core::Hashable
|
4056
|
+
|
4057
|
+
# Fully matching images on the page.
|
4058
|
+
# Can include resized copies of the query image.
|
4059
|
+
# Corresponds to the JSON property `fullMatchingImages`
|
4060
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
|
4061
|
+
attr_accessor :full_matching_images
|
4062
|
+
|
4063
|
+
# Title for the web page, may contain HTML markups.
|
4064
|
+
# Corresponds to the JSON property `pageTitle`
|
4065
|
+
# @return [String]
|
4066
|
+
attr_accessor :page_title
|
4067
|
+
|
4068
|
+
# Partial matching images on the page.
|
4069
|
+
# Those images are similar enough to share some key-point features. For
|
4070
|
+
# example an original image will likely have partial matching for its
|
4071
|
+
# crops.
|
4072
|
+
# Corresponds to the JSON property `partialMatchingImages`
|
4073
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
|
4074
|
+
attr_accessor :partial_matching_images
|
4075
|
+
|
4076
|
+
# (Deprecated) Overall relevancy score for the web page.
|
4077
|
+
# Corresponds to the JSON property `score`
|
4078
|
+
# @return [Float]
|
4079
|
+
attr_accessor :score
|
4080
|
+
|
4081
|
+
# The result web page URL.
|
4082
|
+
# Corresponds to the JSON property `url`
|
4083
|
+
# @return [String]
|
4084
|
+
attr_accessor :url
|
4085
|
+
|
4086
|
+
def initialize(**args)
|
4087
|
+
update!(**args)
|
4088
|
+
end
|
4089
|
+
|
4090
|
+
# Update properties of this object
|
4091
|
+
def update!(**args)
|
4092
|
+
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
4093
|
+
@page_title = args[:page_title] if args.key?(:page_title)
|
4094
|
+
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
4095
|
+
@score = args[:score] if args.key?(:score)
|
4096
|
+
@url = args[:url] if args.key?(:url)
|
4097
|
+
end
|
4098
|
+
end
|
4099
|
+
|
4100
|
+
# A word representation.
|
4101
|
+
class GoogleCloudVisionV1p2beta1Word
|
4102
|
+
include Google::Apis::Core::Hashable
|
4103
|
+
|
4104
|
+
# A bounding polygon for the detected image annotation.
|
4105
|
+
# Corresponds to the JSON property `boundingBox`
|
4106
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
4107
|
+
attr_accessor :bounding_box
|
4108
|
+
|
4109
|
+
# Confidence of the OCR results for the word. Range [0, 1].
|
4110
|
+
# Corresponds to the JSON property `confidence`
|
4111
|
+
# @return [Float]
|
4112
|
+
attr_accessor :confidence
|
4113
|
+
|
4114
|
+
# Additional information detected on the structural component.
|
4115
|
+
# Corresponds to the JSON property `property`
|
4116
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
|
4117
|
+
attr_accessor :property
|
4118
|
+
|
4119
|
+
# List of symbols in the word.
|
4120
|
+
# The order of the symbols follows the natural reading order.
|
4121
|
+
# Corresponds to the JSON property `symbols`
|
4122
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Symbol>]
|
4123
|
+
attr_accessor :symbols
|
4124
|
+
|
4125
|
+
def initialize(**args)
|
4126
|
+
update!(**args)
|
4127
|
+
end
|
4128
|
+
|
4129
|
+
# Update properties of this object
|
4130
|
+
def update!(**args)
|
4131
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
4132
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
4133
|
+
@property = args[:property] if args.key?(:property)
|
4134
|
+
@symbols = args[:symbols] if args.key?(:symbols)
|
4135
|
+
end
|
4136
|
+
end
|
4137
|
+
|
4138
|
+
# Response to a single file annotation request. A file may contain one or more
|
4139
|
+
# images, which individually have their own responses.
|
4140
|
+
class GoogleCloudVisionV1p3beta1AnnotateFileResponse
|
4141
|
+
include Google::Apis::Core::Hashable
|
4142
|
+
|
4143
|
+
# The desired input location and metadata.
|
4144
|
+
# Corresponds to the JSON property `inputConfig`
|
4145
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1InputConfig]
|
4146
|
+
attr_accessor :input_config
|
4147
|
+
|
4148
|
+
# Individual responses to images found within the file.
|
4149
|
+
# Corresponds to the JSON property `responses`
|
4150
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1AnnotateImageResponse>]
|
4151
|
+
attr_accessor :responses
|
4152
|
+
|
4153
|
+
def initialize(**args)
|
4154
|
+
update!(**args)
|
4155
|
+
end
|
4156
|
+
|
4157
|
+
# Update properties of this object
|
4158
|
+
def update!(**args)
|
4159
|
+
@input_config = args[:input_config] if args.key?(:input_config)
|
4160
|
+
@responses = args[:responses] if args.key?(:responses)
|
4161
|
+
end
|
4162
|
+
end
|
4163
|
+
|
4164
|
+
# Response to an image annotation request.
|
4165
|
+
class GoogleCloudVisionV1p3beta1AnnotateImageResponse
|
4166
|
+
include Google::Apis::Core::Hashable
|
4167
|
+
|
4168
|
+
# If an image was produced from a file (e.g. a PDF), this message gives
|
4169
|
+
# information about the source of that image.
|
4170
|
+
# Corresponds to the JSON property `context`
|
4171
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ImageAnnotationContext]
|
4172
|
+
attr_accessor :context
|
4173
|
+
|
4174
|
+
# Set of crop hints that are used to generate new crops when serving images.
|
4175
|
+
# Corresponds to the JSON property `cropHintsAnnotation`
|
4176
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1CropHintsAnnotation]
|
4177
|
+
attr_accessor :crop_hints_annotation
|
4178
|
+
|
4179
|
+
# The `Status` type defines a logical error model that is suitable for different
|
4180
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
4181
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
4182
|
+
# - Simple to use and understand for most users
|
4183
|
+
# - Flexible enough to meet unexpected needs
|
4184
|
+
# # Overview
|
4185
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
4186
|
+
# and error details. The error code should be an enum value of
|
4187
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
4188
|
+
# error message should be a developer-facing English message that helps
|
4189
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
4190
|
+
# error message is needed, put the localized message in the error details or
|
4191
|
+
# localize it in the client. The optional error details may contain arbitrary
|
4192
|
+
# information about the error. There is a predefined set of error detail types
|
4193
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
4194
|
+
# # Language mapping
|
4195
|
+
# The `Status` message is the logical representation of the error model, but it
|
4196
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
4197
|
+
# exposed in different client libraries and different wire protocols, it can be
|
4198
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
4199
|
+
# in Java, but more likely mapped to some error codes in C.
|
4200
|
+
# # Other uses
|
4201
|
+
# The error model and the `Status` message can be used in a variety of
|
4202
|
+
# environments, either with or without APIs, to provide a
|
4203
|
+
# consistent developer experience across different environments.
|
4204
|
+
# Example uses of this error model include:
|
4205
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
4206
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
4207
|
+
# errors.
|
4208
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
4209
|
+
# have a `Status` message for error reporting.
|
4210
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
4211
|
+
# `Status` message should be used directly inside batch response, one for
|
4212
|
+
# each error sub-response.
|
4213
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
4214
|
+
# results in its response, the status of those operations should be
|
4215
|
+
# represented directly using the `Status` message.
|
4216
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
4217
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
4218
|
+
# Corresponds to the JSON property `error`
|
4219
|
+
# @return [Google::Apis::VisionV1::Status]
|
4220
|
+
attr_accessor :error
|
4221
|
+
|
4222
|
+
# If present, face detection has completed successfully.
|
4223
|
+
# Corresponds to the JSON property `faceAnnotations`
|
4224
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1FaceAnnotation>]
|
4225
|
+
attr_accessor :face_annotations
|
4226
|
+
|
4227
|
+
# TextAnnotation contains a structured representation of OCR extracted text.
|
4228
|
+
# The hierarchy of an OCR extracted text structure is like this:
|
4229
|
+
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
4230
|
+
# Each structural component, starting from Page, may further have their own
|
4231
|
+
# properties. Properties describe detected languages, breaks etc.. Please refer
|
4232
|
+
# to the TextAnnotation.TextProperty message definition below for more
|
4233
|
+
# detail.
|
4234
|
+
# Corresponds to the JSON property `fullTextAnnotation`
|
4235
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotation]
|
4236
|
+
attr_accessor :full_text_annotation
|
4237
|
+
|
4238
|
+
# Stores image properties, such as dominant colors.
|
4239
|
+
# Corresponds to the JSON property `imagePropertiesAnnotation`
|
4240
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ImageProperties]
|
4241
|
+
attr_accessor :image_properties_annotation
|
4242
|
+
|
4243
|
+
# If present, label detection has completed successfully.
|
4244
|
+
# Corresponds to the JSON property `labelAnnotations`
|
4245
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1EntityAnnotation>]
|
4246
|
+
attr_accessor :label_annotations
|
4247
|
+
|
4248
|
+
# If present, landmark detection has completed successfully.
|
4249
|
+
# Corresponds to the JSON property `landmarkAnnotations`
|
4250
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1EntityAnnotation>]
|
4251
|
+
attr_accessor :landmark_annotations
|
4252
|
+
|
4253
|
+
# If present, localized object detection has completed successfully.
|
4254
|
+
# This will be sorted descending by confidence score.
|
4255
|
+
# Corresponds to the JSON property `localizedObjectAnnotations`
|
4256
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation>]
|
4257
|
+
attr_accessor :localized_object_annotations
|
4258
|
+
|
4259
|
+
# If present, logo detection has completed successfully.
|
4260
|
+
# Corresponds to the JSON property `logoAnnotations`
|
4261
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1EntityAnnotation>]
|
4262
|
+
attr_accessor :logo_annotations
|
4263
|
+
|
4264
|
+
# Results for a product search request.
|
4265
|
+
# Corresponds to the JSON property `productSearchResults`
|
4266
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResults]
|
4267
|
+
attr_accessor :product_search_results
|
4268
|
+
|
4269
|
+
# Set of features pertaining to the image, computed by computer vision
|
4270
|
+
# methods over safe-search verticals (for example, adult, spoof, medical,
|
4271
|
+
# violence).
|
4272
|
+
# Corresponds to the JSON property `safeSearchAnnotation`
|
4273
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1SafeSearchAnnotation]
|
4274
|
+
attr_accessor :safe_search_annotation
|
4275
|
+
|
4276
|
+
# If present, text (OCR) detection has completed successfully.
|
4277
|
+
# Corresponds to the JSON property `textAnnotations`
|
4278
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1EntityAnnotation>]
|
4279
|
+
attr_accessor :text_annotations
|
4280
|
+
|
4281
|
+
# Relevant information for the image from the Internet.
|
4282
|
+
# Corresponds to the JSON property `webDetection`
|
4283
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetection]
|
4284
|
+
attr_accessor :web_detection
|
4285
|
+
|
4286
|
+
def initialize(**args)
|
4287
|
+
update!(**args)
|
4288
|
+
end
|
4289
|
+
|
4290
|
+
# Update properties of this object
|
4291
|
+
def update!(**args)
|
4292
|
+
@context = args[:context] if args.key?(:context)
|
4293
|
+
@crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
|
4294
|
+
@error = args[:error] if args.key?(:error)
|
4295
|
+
@face_annotations = args[:face_annotations] if args.key?(:face_annotations)
|
4296
|
+
@full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
|
4297
|
+
@image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
|
4298
|
+
@label_annotations = args[:label_annotations] if args.key?(:label_annotations)
|
4299
|
+
@landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
|
4300
|
+
@localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
|
4301
|
+
@logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
|
4302
|
+
@product_search_results = args[:product_search_results] if args.key?(:product_search_results)
|
4303
|
+
@safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
|
4304
|
+
@text_annotations = args[:text_annotations] if args.key?(:text_annotations)
|
4305
|
+
@web_detection = args[:web_detection] if args.key?(:web_detection)
|
4306
|
+
end
|
4307
|
+
end
|
4308
|
+
|
4309
|
+
# The response for a single offline file annotation request.
|
4310
|
+
class GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse
|
4311
|
+
include Google::Apis::Core::Hashable
|
4312
|
+
|
4313
|
+
# The desired output location and metadata.
|
4314
|
+
# Corresponds to the JSON property `outputConfig`
|
4315
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1OutputConfig]
|
4316
|
+
attr_accessor :output_config
|
4317
|
+
|
4318
|
+
def initialize(**args)
|
4319
|
+
update!(**args)
|
4320
|
+
end
|
4321
|
+
|
4322
|
+
# Update properties of this object
|
4323
|
+
def update!(**args)
|
4324
|
+
@output_config = args[:output_config] if args.key?(:output_config)
|
4325
|
+
end
|
4326
|
+
end
|
4327
|
+
|
4328
|
+
# Response to an async batch file annotation request.
|
4329
|
+
class GoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse
|
4330
|
+
include Google::Apis::Core::Hashable
|
4331
|
+
|
4332
|
+
# The list of file annotation responses, one for each request in
|
4333
|
+
# AsyncBatchAnnotateFilesRequest.
|
4334
|
+
# Corresponds to the JSON property `responses`
|
4335
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse>]
|
4336
|
+
attr_accessor :responses
|
4337
|
+
|
4338
|
+
def initialize(**args)
|
4339
|
+
update!(**args)
|
4340
|
+
end
|
4341
|
+
|
4342
|
+
# Update properties of this object
|
4343
|
+
def update!(**args)
|
4344
|
+
@responses = args[:responses] if args.key?(:responses)
|
4345
|
+
end
|
4346
|
+
end
|
4347
|
+
|
4348
|
+
# Metadata for the batch operations such as the current state.
|
4349
|
+
# This is included in the `metadata` field of the `Operation` returned by the
|
4350
|
+
# `GetOperation` call of the `google::longrunning::Operations` service.
|
4351
|
+
class GoogleCloudVisionV1p3beta1BatchOperationMetadata
|
4352
|
+
include Google::Apis::Core::Hashable
|
4353
|
+
|
4354
|
+
# The time when the batch request is finished and
|
4355
|
+
# google.longrunning.Operation.done is set to true.
|
4356
|
+
# Corresponds to the JSON property `endTime`
|
4357
|
+
# @return [String]
|
4358
|
+
attr_accessor :end_time
|
4359
|
+
|
4360
|
+
# The current state of the batch operation.
|
4361
|
+
# Corresponds to the JSON property `state`
|
4362
|
+
# @return [String]
|
4363
|
+
attr_accessor :state
|
4364
|
+
|
4365
|
+
# The time when the batch request was submitted to the server.
|
4366
|
+
# Corresponds to the JSON property `submitTime`
|
4367
|
+
# @return [String]
|
4368
|
+
attr_accessor :submit_time
|
4369
|
+
|
4370
|
+
def initialize(**args)
|
4371
|
+
update!(**args)
|
4372
|
+
end
|
4373
|
+
|
4374
|
+
# Update properties of this object
|
4375
|
+
def update!(**args)
|
4376
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
4377
|
+
@state = args[:state] if args.key?(:state)
|
4378
|
+
@submit_time = args[:submit_time] if args.key?(:submit_time)
|
4379
|
+
end
|
4380
|
+
end
|
4381
|
+
|
4382
|
+
# Logical element on the page.
|
4383
|
+
class GoogleCloudVisionV1p3beta1Block
|
4384
|
+
include Google::Apis::Core::Hashable
|
4385
|
+
|
4386
|
+
# Detected block type (text, image etc) for this block.
|
4387
|
+
# Corresponds to the JSON property `blockType`
|
4388
|
+
# @return [String]
|
4389
|
+
attr_accessor :block_type
|
4390
|
+
|
4391
|
+
# A bounding polygon for the detected image annotation.
|
4392
|
+
# Corresponds to the JSON property `boundingBox`
|
4393
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly]
|
4394
|
+
attr_accessor :bounding_box
|
4395
|
+
|
4396
|
+
# Confidence of the OCR results on the block. Range [0, 1].
|
4397
|
+
# Corresponds to the JSON property `confidence`
|
4398
|
+
# @return [Float]
|
4399
|
+
attr_accessor :confidence
|
4400
|
+
|
4401
|
+
# List of paragraphs in this block (if this blocks is of type text).
|
4402
|
+
# Corresponds to the JSON property `paragraphs`
|
4403
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Paragraph>]
|
4404
|
+
attr_accessor :paragraphs
|
4405
|
+
|
4406
|
+
# Additional information detected on the structural component.
|
4407
|
+
# Corresponds to the JSON property `property`
|
4408
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty]
|
4409
|
+
attr_accessor :property
|
4410
|
+
|
4411
|
+
def initialize(**args)
|
4412
|
+
update!(**args)
|
4413
|
+
end
|
4414
|
+
|
4415
|
+
# Update properties of this object
|
4416
|
+
def update!(**args)
|
4417
|
+
@block_type = args[:block_type] if args.key?(:block_type)
|
4418
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
4419
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
4420
|
+
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
4421
|
+
@property = args[:property] if args.key?(:property)
|
4422
|
+
end
|
4423
|
+
end
|
4424
|
+
|
4425
|
+
# A bounding polygon for the detected image annotation.
|
4426
|
+
class GoogleCloudVisionV1p3beta1BoundingPoly
|
4427
|
+
include Google::Apis::Core::Hashable
|
4428
|
+
|
4429
|
+
# The bounding polygon normalized vertices.
|
4430
|
+
# Corresponds to the JSON property `normalizedVertices`
|
4431
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1NormalizedVertex>]
|
4432
|
+
attr_accessor :normalized_vertices
|
4433
|
+
|
4434
|
+
# The bounding polygon vertices.
|
4435
|
+
# Corresponds to the JSON property `vertices`
|
4436
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Vertex>]
|
4437
|
+
attr_accessor :vertices
|
4438
|
+
|
4439
|
+
def initialize(**args)
|
4440
|
+
update!(**args)
|
4441
|
+
end
|
4442
|
+
|
4443
|
+
# Update properties of this object
|
4444
|
+
def update!(**args)
|
4445
|
+
@normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
|
4446
|
+
@vertices = args[:vertices] if args.key?(:vertices)
|
4447
|
+
end
|
4448
|
+
end
|
4449
|
+
|
4450
|
+
# Color information consists of RGB channels, score, and the fraction of
|
4451
|
+
# the image that the color occupies in the image.
|
4452
|
+
class GoogleCloudVisionV1p3beta1ColorInfo
|
4453
|
+
include Google::Apis::Core::Hashable
|
4454
|
+
|
4455
|
+
# Represents a color in the RGBA color space. This representation is designed
|
4456
|
+
# for simplicity of conversion to/from color representations in various
|
4457
|
+
# languages over compactness; for example, the fields of this representation
|
4458
|
+
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
|
4459
|
+
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
4460
|
+
# method in iOS; and, with just a little work, it can be easily formatted into
|
4461
|
+
# a CSS "rgba()" string in JavaScript, as well. Here are some examples:
|
4462
|
+
# Example (Java):
|
4463
|
+
# import com.google.type.Color;
|
4464
|
+
# // ...
|
4465
|
+
# public static java.awt.Color fromProto(Color protocolor) `
|
4466
|
+
# float alpha = protocolor.hasAlpha()
|
4467
|
+
# ? protocolor.getAlpha().getValue()
|
4468
|
+
# : 1.0;
|
4469
|
+
# return new java.awt.Color(
|
4470
|
+
# protocolor.getRed(),
|
4471
|
+
# protocolor.getGreen(),
|
4472
|
+
# protocolor.getBlue(),
|
4473
|
+
# alpha);
|
4474
|
+
# `
|
4475
|
+
# public static Color toProto(java.awt.Color color) `
|
4476
|
+
# float red = (float) color.getRed();
|
4477
|
+
# float green = (float) color.getGreen();
|
4478
|
+
# float blue = (float) color.getBlue();
|
4479
|
+
# float denominator = 255.0;
|
4480
|
+
# Color.Builder resultBuilder =
|
4481
|
+
# Color
|
4482
|
+
# .newBuilder()
|
4483
|
+
# .setRed(red / denominator)
|
4484
|
+
# .setGreen(green / denominator)
|
4485
|
+
# .setBlue(blue / denominator);
|
4486
|
+
# int alpha = color.getAlpha();
|
4487
|
+
# if (alpha != 255) `
|
4488
|
+
# result.setAlpha(
|
4489
|
+
# FloatValue
|
4490
|
+
# .newBuilder()
|
4491
|
+
# .setValue(((float) alpha) / denominator)
|
4492
|
+
# .build());
|
4493
|
+
# `
|
4494
|
+
# return resultBuilder.build();
|
4495
|
+
# `
|
4496
|
+
# // ...
|
4497
|
+
# Example (iOS / Obj-C):
|
4498
|
+
# // ...
|
4499
|
+
# static UIColor* fromProto(Color* protocolor) `
|
4500
|
+
# float red = [protocolor red];
|
4501
|
+
# float green = [protocolor green];
|
4502
|
+
# float blue = [protocolor blue];
|
4503
|
+
# FloatValue* alpha_wrapper = [protocolor alpha];
|
4504
|
+
# float alpha = 1.0;
|
4505
|
+
# if (alpha_wrapper != nil) `
|
4506
|
+
# alpha = [alpha_wrapper value];
|
4507
|
+
# `
|
4508
|
+
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
|
4509
|
+
# `
|
4510
|
+
# static Color* toProto(UIColor* color) `
|
4511
|
+
# CGFloat red, green, blue, alpha;
|
4512
|
+
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
|
4513
|
+
# return nil;
|
4514
|
+
# `
|
4515
|
+
# Color* result = [[Color alloc] init];
|
4516
|
+
# [result setRed:red];
|
4517
|
+
# [result setGreen:green];
|
4518
|
+
# [result setBlue:blue];
|
4519
|
+
# if (alpha <= 0.9999) `
|
4520
|
+
# [result setAlpha:floatWrapperWithValue(alpha)];
|
4521
|
+
# `
|
4522
|
+
# [result autorelease];
|
4523
|
+
# return result;
|
4524
|
+
# `
|
4525
|
+
# // ...
|
4526
|
+
# Example (JavaScript):
|
4527
|
+
# // ...
|
4528
|
+
# var protoToCssColor = function(rgb_color) `
|
4529
|
+
# var redFrac = rgb_color.red || 0.0;
|
4530
|
+
# var greenFrac = rgb_color.green || 0.0;
|
4531
|
+
# var blueFrac = rgb_color.blue || 0.0;
|
4532
|
+
# var red = Math.floor(redFrac * 255);
|
4533
|
+
# var green = Math.floor(greenFrac * 255);
|
4534
|
+
# var blue = Math.floor(blueFrac * 255);
|
4535
|
+
# if (!('alpha' in rgb_color)) `
|
4536
|
+
# return rgbToCssColor_(red, green, blue);
|
4537
|
+
# `
|
4538
|
+
# var alphaFrac = rgb_color.alpha.value || 0.0;
|
4539
|
+
# var rgbParams = [red, green, blue].join(',');
|
4540
|
+
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
|
4541
|
+
# `;
|
4542
|
+
# var rgbToCssColor_ = function(red, green, blue) `
|
4543
|
+
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
|
4544
|
+
# var hexString = rgbNumber.toString(16);
|
4545
|
+
# var missingZeros = 6 - hexString.length;
|
4546
|
+
# var resultBuilder = ['#'];
|
4547
|
+
# for (var i = 0; i < missingZeros; i++) `
|
4548
|
+
# resultBuilder.push('0');
|
4549
|
+
# `
|
4550
|
+
# resultBuilder.push(hexString);
|
4551
|
+
# return resultBuilder.join('');
|
4552
|
+
# `;
|
4553
|
+
# // ...
|
4554
|
+
# Corresponds to the JSON property `color`
|
4555
|
+
# @return [Google::Apis::VisionV1::Color]
|
4556
|
+
attr_accessor :color
|
4557
|
+
|
4558
|
+
# The fraction of pixels the color occupies in the image.
|
4559
|
+
# Value in range [0, 1].
|
4560
|
+
# Corresponds to the JSON property `pixelFraction`
|
4561
|
+
# @return [Float]
|
4562
|
+
attr_accessor :pixel_fraction
|
4563
|
+
|
4564
|
+
# Image-specific score for this color. Value in range [0, 1].
|
4565
|
+
# Corresponds to the JSON property `score`
|
4566
|
+
# @return [Float]
|
4567
|
+
attr_accessor :score
|
4568
|
+
|
4569
|
+
def initialize(**args)
|
4570
|
+
update!(**args)
|
4571
|
+
end
|
4572
|
+
|
4573
|
+
# Update properties of this object
|
4574
|
+
def update!(**args)
|
4575
|
+
@color = args[:color] if args.key?(:color)
|
4576
|
+
@pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction)
|
4577
|
+
@score = args[:score] if args.key?(:score)
|
4578
|
+
end
|
4579
|
+
end
|
4580
|
+
|
4581
|
+
# Single crop hint that is used to generate a new crop when serving an image.
|
4582
|
+
class GoogleCloudVisionV1p3beta1CropHint
|
4583
|
+
include Google::Apis::Core::Hashable
|
4584
|
+
|
4585
|
+
# A bounding polygon for the detected image annotation.
|
4586
|
+
# Corresponds to the JSON property `boundingPoly`
|
4587
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly]
|
4588
|
+
attr_accessor :bounding_poly
|
4589
|
+
|
4590
|
+
# Confidence of this being a salient region. Range [0, 1].
|
4591
|
+
# Corresponds to the JSON property `confidence`
|
4592
|
+
# @return [Float]
|
4593
|
+
attr_accessor :confidence
|
4594
|
+
|
4595
|
+
# Fraction of importance of this salient region with respect to the original
|
4596
|
+
# image.
|
4597
|
+
# Corresponds to the JSON property `importanceFraction`
|
4598
|
+
# @return [Float]
|
4599
|
+
attr_accessor :importance_fraction
|
4600
|
+
|
4601
|
+
def initialize(**args)
|
4602
|
+
update!(**args)
|
4603
|
+
end
|
4604
|
+
|
4605
|
+
# Update properties of this object
|
4606
|
+
def update!(**args)
|
4607
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
4608
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
4609
|
+
@importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction)
|
4610
|
+
end
|
4611
|
+
end
|
4612
|
+
|
4613
|
+
# Set of crop hints that are used to generate new crops when serving images.
|
4614
|
+
class GoogleCloudVisionV1p3beta1CropHintsAnnotation
|
4615
|
+
include Google::Apis::Core::Hashable
|
4616
|
+
|
4617
|
+
# Crop hint results.
|
4618
|
+
# Corresponds to the JSON property `cropHints`
|
4619
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1CropHint>]
|
4620
|
+
attr_accessor :crop_hints
|
4621
|
+
|
4622
|
+
def initialize(**args)
|
4623
|
+
update!(**args)
|
4624
|
+
end
|
4625
|
+
|
4626
|
+
# Update properties of this object
|
4627
|
+
def update!(**args)
|
4628
|
+
@crop_hints = args[:crop_hints] if args.key?(:crop_hints)
|
4629
|
+
end
|
4630
|
+
end
|
4631
|
+
|
4632
|
+
# Set of dominant colors and their corresponding scores.
|
4633
|
+
class GoogleCloudVisionV1p3beta1DominantColorsAnnotation
|
4634
|
+
include Google::Apis::Core::Hashable
|
4635
|
+
|
4636
|
+
# RGB color values with their score and pixel fraction.
|
4637
|
+
# Corresponds to the JSON property `colors`
|
4638
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ColorInfo>]
|
4639
|
+
attr_accessor :colors
|
4640
|
+
|
4641
|
+
def initialize(**args)
|
4642
|
+
update!(**args)
|
4643
|
+
end
|
4644
|
+
|
4645
|
+
# Update properties of this object
|
4646
|
+
def update!(**args)
|
4647
|
+
@colors = args[:colors] if args.key?(:colors)
|
4648
|
+
end
|
4649
|
+
end
|
4650
|
+
|
4651
|
+
# Set of detected entity features.
|
4652
|
+
class GoogleCloudVisionV1p3beta1EntityAnnotation
|
4653
|
+
include Google::Apis::Core::Hashable
|
4654
|
+
|
4655
|
+
# A bounding polygon for the detected image annotation.
|
4656
|
+
# Corresponds to the JSON property `boundingPoly`
|
4657
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly]
|
4658
|
+
attr_accessor :bounding_poly
|
4659
|
+
|
4660
|
+
# **Deprecated. Use `score` instead.**
|
4661
|
+
# The accuracy of the entity detection in an image.
|
4662
|
+
# For example, for an image in which the "Eiffel Tower" entity is detected,
|
4663
|
+
# this field represents the confidence that there is a tower in the query
|
4664
|
+
# image. Range [0, 1].
|
4665
|
+
# Corresponds to the JSON property `confidence`
|
4666
|
+
# @return [Float]
|
4667
|
+
attr_accessor :confidence
|
4668
|
+
|
4669
|
+
# Entity textual description, expressed in its `locale` language.
|
4670
|
+
# Corresponds to the JSON property `description`
|
4671
|
+
# @return [String]
|
4672
|
+
attr_accessor :description
|
4673
|
+
|
4674
|
+
# The language code for the locale in which the entity textual
|
4675
|
+
# `description` is expressed.
|
4676
|
+
# Corresponds to the JSON property `locale`
|
4677
|
+
# @return [String]
|
4678
|
+
attr_accessor :locale
|
4679
|
+
|
4680
|
+
# The location information for the detected entity. Multiple
|
4681
|
+
# `LocationInfo` elements can be present because one location may
|
4682
|
+
# indicate the location of the scene in the image, and another location
|
4683
|
+
# may indicate the location of the place where the image was taken.
|
4684
|
+
# Location information is usually present for landmarks.
|
4685
|
+
# Corresponds to the JSON property `locations`
|
4686
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1LocationInfo>]
|
4687
|
+
attr_accessor :locations
|
4688
|
+
|
4689
|
+
# Opaque entity ID. Some IDs may be available in
|
4690
|
+
# [Google Knowledge Graph Search
|
4691
|
+
# API](https://developers.google.com/knowledge-graph/).
|
4692
|
+
# Corresponds to the JSON property `mid`
|
4693
|
+
# @return [String]
|
4694
|
+
attr_accessor :mid
|
4695
|
+
|
4696
|
+
# Some entities may have optional user-supplied `Property` (name/value)
|
4697
|
+
# fields, such a score or string that qualifies the entity.
|
4698
|
+
# Corresponds to the JSON property `properties`
|
4699
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Property>]
|
4700
|
+
attr_accessor :properties
|
4701
|
+
|
4702
|
+
# Overall score of the result. Range [0, 1].
|
4703
|
+
# Corresponds to the JSON property `score`
|
4704
|
+
# @return [Float]
|
4705
|
+
attr_accessor :score
|
4706
|
+
|
4707
|
+
# The relevancy of the ICA (Image Content Annotation) label to the
|
4708
|
+
# image. For example, the relevancy of "tower" is likely higher to an image
|
4709
|
+
# containing the detected "Eiffel Tower" than to an image containing a
|
4710
|
+
# detected distant towering building, even though the confidence that
|
4711
|
+
# there is a tower in each image may be the same. Range [0, 1].
|
4712
|
+
# Corresponds to the JSON property `topicality`
|
4713
|
+
# @return [Float]
|
4714
|
+
attr_accessor :topicality
|
4715
|
+
|
4716
|
+
def initialize(**args)
|
4717
|
+
update!(**args)
|
4718
|
+
end
|
4719
|
+
|
4720
|
+
# Update properties of this object
|
4721
|
+
def update!(**args)
|
4722
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
4723
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
4724
|
+
@description = args[:description] if args.key?(:description)
|
4725
|
+
@locale = args[:locale] if args.key?(:locale)
|
4726
|
+
@locations = args[:locations] if args.key?(:locations)
|
4727
|
+
@mid = args[:mid] if args.key?(:mid)
|
4728
|
+
@properties = args[:properties] if args.key?(:properties)
|
4729
|
+
@score = args[:score] if args.key?(:score)
|
4730
|
+
@topicality = args[:topicality] if args.key?(:topicality)
|
4731
|
+
end
|
4732
|
+
end
|
4733
|
+
|
4734
|
+
# A face annotation object contains the results of face detection.
|
4735
|
+
class GoogleCloudVisionV1p3beta1FaceAnnotation
|
4736
|
+
include Google::Apis::Core::Hashable
|
4737
|
+
|
4738
|
+
# Anger likelihood.
|
4739
|
+
# Corresponds to the JSON property `angerLikelihood`
|
4740
|
+
# @return [String]
|
4741
|
+
attr_accessor :anger_likelihood
|
4742
|
+
|
4743
|
+
# Blurred likelihood.
|
4744
|
+
# Corresponds to the JSON property `blurredLikelihood`
|
4745
|
+
# @return [String]
|
4746
|
+
attr_accessor :blurred_likelihood
|
4747
|
+
|
4748
|
+
# A bounding polygon for the detected image annotation.
|
4749
|
+
# Corresponds to the JSON property `boundingPoly`
|
4750
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly]
|
4751
|
+
attr_accessor :bounding_poly
|
4752
|
+
|
4753
|
+
# Detection confidence. Range [0, 1].
|
4754
|
+
# Corresponds to the JSON property `detectionConfidence`
|
4755
|
+
# @return [Float]
|
4756
|
+
attr_accessor :detection_confidence
|
4757
|
+
|
4758
|
+
# A bounding polygon for the detected image annotation.
|
4759
|
+
# Corresponds to the JSON property `fdBoundingPoly`
|
4760
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly]
|
4761
|
+
attr_accessor :fd_bounding_poly
|
4762
|
+
|
4763
|
+
# Headwear likelihood.
|
4764
|
+
# Corresponds to the JSON property `headwearLikelihood`
|
4765
|
+
# @return [String]
|
4766
|
+
attr_accessor :headwear_likelihood
|
4767
|
+
|
4768
|
+
# Joy likelihood.
|
4769
|
+
# Corresponds to the JSON property `joyLikelihood`
|
4770
|
+
# @return [String]
|
4771
|
+
attr_accessor :joy_likelihood
|
4772
|
+
|
4773
|
+
# Face landmarking confidence. Range [0, 1].
|
4774
|
+
# Corresponds to the JSON property `landmarkingConfidence`
|
4775
|
+
# @return [Float]
|
4776
|
+
attr_accessor :landmarking_confidence
|
4777
|
+
|
4778
|
+
# Detected face landmarks.
|
4779
|
+
# Corresponds to the JSON property `landmarks`
|
4780
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1FaceAnnotationLandmark>]
|
4781
|
+
attr_accessor :landmarks
|
4782
|
+
|
4783
|
+
# Yaw angle, which indicates the leftward/rightward angle that the face is
|
4784
|
+
# pointing relative to the vertical plane perpendicular to the image. Range
|
4785
|
+
# [-180,180].
|
4786
|
+
# Corresponds to the JSON property `panAngle`
|
4787
|
+
# @return [Float]
|
4788
|
+
attr_accessor :pan_angle
|
4789
|
+
|
4790
|
+
# Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
|
4791
|
+
# of the face relative to the image vertical about the axis perpendicular to
|
4792
|
+
# the face. Range [-180,180].
|
4793
|
+
# Corresponds to the JSON property `rollAngle`
|
4794
|
+
# @return [Float]
|
4795
|
+
attr_accessor :roll_angle
|
4796
|
+
|
4797
|
+
# Sorrow likelihood.
|
4798
|
+
# Corresponds to the JSON property `sorrowLikelihood`
|
4799
|
+
# @return [String]
|
4800
|
+
attr_accessor :sorrow_likelihood
|
4801
|
+
|
4802
|
+
# Surprise likelihood.
|
4803
|
+
# Corresponds to the JSON property `surpriseLikelihood`
|
4804
|
+
# @return [String]
|
4805
|
+
attr_accessor :surprise_likelihood
|
4806
|
+
|
4807
|
+
# Pitch angle, which indicates the upwards/downwards angle that the face is
|
4808
|
+
# pointing relative to the image's horizontal plane. Range [-180,180].
|
4809
|
+
# Corresponds to the JSON property `tiltAngle`
|
4810
|
+
# @return [Float]
|
4811
|
+
attr_accessor :tilt_angle
|
4812
|
+
|
4813
|
+
# Under-exposed likelihood.
|
4814
|
+
# Corresponds to the JSON property `underExposedLikelihood`
|
4815
|
+
# @return [String]
|
4816
|
+
attr_accessor :under_exposed_likelihood
|
4817
|
+
|
4818
|
+
def initialize(**args)
|
4819
|
+
update!(**args)
|
4820
|
+
end
|
4821
|
+
|
4822
|
+
# Update properties of this object
|
4823
|
+
def update!(**args)
|
4824
|
+
@anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood)
|
4825
|
+
@blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood)
|
4826
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
4827
|
+
@detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence)
|
4828
|
+
@fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly)
|
4829
|
+
@headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood)
|
4830
|
+
@joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood)
|
4831
|
+
@landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
|
4832
|
+
@landmarks = args[:landmarks] if args.key?(:landmarks)
|
4833
|
+
@pan_angle = args[:pan_angle] if args.key?(:pan_angle)
|
4834
|
+
@roll_angle = args[:roll_angle] if args.key?(:roll_angle)
|
4835
|
+
@sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood)
|
4836
|
+
@surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
|
4837
|
+
@tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle)
|
4838
|
+
@under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood)
|
4839
|
+
end
|
4840
|
+
end
|
4841
|
+
|
4842
|
+
# A face-specific landmark (for example, a face feature).
|
4843
|
+
class GoogleCloudVisionV1p3beta1FaceAnnotationLandmark
|
4844
|
+
include Google::Apis::Core::Hashable
|
4845
|
+
|
4846
|
+
# A 3D position in the image, used primarily for Face detection landmarks.
|
4847
|
+
# A valid Position must have both x and y coordinates.
|
4848
|
+
# The position coordinates are in the same scale as the original image.
|
4849
|
+
# Corresponds to the JSON property `position`
|
4850
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Position]
|
4851
|
+
attr_accessor :position
|
4852
|
+
|
4853
|
+
# Face landmark type.
|
4854
|
+
# Corresponds to the JSON property `type`
|
4855
|
+
# @return [String]
|
4856
|
+
attr_accessor :type
|
4857
|
+
|
4858
|
+
def initialize(**args)
|
4859
|
+
update!(**args)
|
4860
|
+
end
|
4861
|
+
|
4862
|
+
# Update properties of this object
|
4863
|
+
def update!(**args)
|
4864
|
+
@position = args[:position] if args.key?(:position)
|
4865
|
+
@type = args[:type] if args.key?(:type)
|
4866
|
+
end
|
4867
|
+
end
|
4868
|
+
|
4869
|
+
# The Google Cloud Storage location where the output will be written to.
|
4870
|
+
class GoogleCloudVisionV1p3beta1GcsDestination
|
4871
|
+
include Google::Apis::Core::Hashable
|
4872
|
+
|
4873
|
+
# Google Cloud Storage URI where the results will be stored. Results will
|
4874
|
+
# be in JSON format and preceded by its corresponding input URI. This field
|
4875
|
+
# can either represent a single file, or a prefix for multiple outputs.
|
4876
|
+
# Prefixes must end in a `/`.
|
4877
|
+
# Examples:
|
4878
|
+
# * File: gs://bucket-name/filename.json
|
4879
|
+
# * Prefix: gs://bucket-name/prefix/here/
|
4880
|
+
# * File: gs://bucket-name/prefix/here
|
4881
|
+
# If multiple outputs, each response is still AnnotateFileResponse, each of
|
4882
|
+
# which contains some subset of the full list of AnnotateImageResponse.
|
4883
|
+
# Multiple outputs can happen if, for example, the output JSON is too large
|
4884
|
+
# and overflows into multiple sharded files.
|
4885
|
+
# Corresponds to the JSON property `uri`
|
4886
|
+
# @return [String]
|
4887
|
+
attr_accessor :uri
|
4888
|
+
|
4889
|
+
def initialize(**args)
|
4890
|
+
update!(**args)
|
4891
|
+
end
|
4892
|
+
|
4893
|
+
# Update properties of this object
|
4894
|
+
def update!(**args)
|
4895
|
+
@uri = args[:uri] if args.key?(:uri)
|
4896
|
+
end
|
4897
|
+
end
|
4898
|
+
|
4899
|
+
# The Google Cloud Storage location where the input will be read from.
|
4900
|
+
class GoogleCloudVisionV1p3beta1GcsSource
|
4901
|
+
include Google::Apis::Core::Hashable
|
4902
|
+
|
4903
|
+
# Google Cloud Storage URI for the input file. This must only be a
|
4904
|
+
# Google Cloud Storage object. Wildcards are not currently supported.
|
4905
|
+
# Corresponds to the JSON property `uri`
|
4906
|
+
# @return [String]
|
4907
|
+
attr_accessor :uri
|
4908
|
+
|
4909
|
+
def initialize(**args)
|
4910
|
+
update!(**args)
|
4911
|
+
end
|
4912
|
+
|
4913
|
+
# Update properties of this object
|
4914
|
+
def update!(**args)
|
4915
|
+
@uri = args[:uri] if args.key?(:uri)
|
4916
|
+
end
|
4917
|
+
end
|
4918
|
+
|
4919
|
+
# If an image was produced from a file (e.g. a PDF), this message gives
|
4920
|
+
# information about the source of that image.
|
4921
|
+
class GoogleCloudVisionV1p3beta1ImageAnnotationContext
|
4922
|
+
include Google::Apis::Core::Hashable
|
4923
|
+
|
4924
|
+
# If the file was a PDF or TIFF, this field gives the page number within
|
4925
|
+
# the file used to produce the image.
|
4926
|
+
# Corresponds to the JSON property `pageNumber`
|
4927
|
+
# @return [Fixnum]
|
4928
|
+
attr_accessor :page_number
|
4929
|
+
|
4930
|
+
# The URI of the file used to produce the image.
|
4931
|
+
# Corresponds to the JSON property `uri`
|
4932
|
+
# @return [String]
|
4933
|
+
attr_accessor :uri
|
4934
|
+
|
4935
|
+
def initialize(**args)
|
4936
|
+
update!(**args)
|
4937
|
+
end
|
4938
|
+
|
4939
|
+
# Update properties of this object
|
4940
|
+
def update!(**args)
|
4941
|
+
@page_number = args[:page_number] if args.key?(:page_number)
|
4942
|
+
@uri = args[:uri] if args.key?(:uri)
|
4943
|
+
end
|
4944
|
+
end
|
4945
|
+
|
4946
|
+
# Stores image properties, such as dominant colors.
|
4947
|
+
class GoogleCloudVisionV1p3beta1ImageProperties
|
4948
|
+
include Google::Apis::Core::Hashable
|
4949
|
+
|
4950
|
+
# Set of dominant colors and their corresponding scores.
|
4951
|
+
# Corresponds to the JSON property `dominantColors`
|
4952
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1DominantColorsAnnotation]
|
4953
|
+
attr_accessor :dominant_colors
|
4954
|
+
|
4955
|
+
def initialize(**args)
|
4956
|
+
update!(**args)
|
4957
|
+
end
|
4958
|
+
|
4959
|
+
# Update properties of this object
|
4960
|
+
def update!(**args)
|
4961
|
+
@dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
|
4962
|
+
end
|
4963
|
+
end
|
4964
|
+
|
4965
|
+
# Response message for the `ImportProductSets` method.
|
4966
|
+
# This message is returned by the
|
4967
|
+
# google.longrunning.Operations.GetOperation method in the returned
|
4968
|
+
# google.longrunning.Operation.response field.
|
4969
|
+
class GoogleCloudVisionV1p3beta1ImportProductSetsResponse
|
4970
|
+
include Google::Apis::Core::Hashable
|
4971
|
+
|
4972
|
+
# The list of reference_images that are imported successfully.
|
4973
|
+
# Corresponds to the JSON property `referenceImages`
|
4974
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ReferenceImage>]
|
4975
|
+
attr_accessor :reference_images
|
4976
|
+
|
4977
|
+
# The rpc status for each ImportProductSet request, including both successes
|
2731
4978
|
# and errors.
|
2732
4979
|
# The number of statuses here matches the number of lines in the csv file,
|
2733
4980
|
# and statuses[i] stores the success or failure status of processing the i-th
|
@@ -2742,25 +4989,741 @@ module Google
|
|
2742
4989
|
|
2743
4990
|
# Update properties of this object
|
2744
4991
|
def update!(**args)
|
2745
|
-
@reference_images = args[:reference_images] if args.key?(:reference_images)
|
2746
|
-
@statuses = args[:statuses] if args.key?(:statuses)
|
4992
|
+
@reference_images = args[:reference_images] if args.key?(:reference_images)
|
4993
|
+
@statuses = args[:statuses] if args.key?(:statuses)
|
4994
|
+
end
|
4995
|
+
end
|
4996
|
+
|
4997
|
+
# The desired input location and metadata.
|
4998
|
+
class GoogleCloudVisionV1p3beta1InputConfig
|
4999
|
+
include Google::Apis::Core::Hashable
|
5000
|
+
|
5001
|
+
# The Google Cloud Storage location where the input will be read from.
|
5002
|
+
# Corresponds to the JSON property `gcsSource`
|
5003
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1GcsSource]
|
5004
|
+
attr_accessor :gcs_source
|
5005
|
+
|
5006
|
+
# The type of the file. Currently only "application/pdf" and "image/tiff"
|
5007
|
+
# are supported. Wildcards are not supported.
|
5008
|
+
# Corresponds to the JSON property `mimeType`
|
5009
|
+
# @return [String]
|
5010
|
+
attr_accessor :mime_type
|
5011
|
+
|
5012
|
+
def initialize(**args)
|
5013
|
+
update!(**args)
|
5014
|
+
end
|
5015
|
+
|
5016
|
+
# Update properties of this object
|
5017
|
+
def update!(**args)
|
5018
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
5019
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
5020
|
+
end
|
5021
|
+
end
|
5022
|
+
|
5023
|
+
# Set of detected objects with bounding boxes.
|
5024
|
+
class GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation
|
5025
|
+
include Google::Apis::Core::Hashable
|
5026
|
+
|
5027
|
+
# A bounding polygon for the detected image annotation.
|
5028
|
+
# Corresponds to the JSON property `boundingPoly`
|
5029
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly]
|
5030
|
+
attr_accessor :bounding_poly
|
5031
|
+
|
5032
|
+
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
5033
|
+
# information, see
|
5034
|
+
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
5035
|
+
# Corresponds to the JSON property `languageCode`
|
5036
|
+
# @return [String]
|
5037
|
+
attr_accessor :language_code
|
5038
|
+
|
5039
|
+
# Object ID that should align with EntityAnnotation mid.
|
5040
|
+
# Corresponds to the JSON property `mid`
|
5041
|
+
# @return [String]
|
5042
|
+
attr_accessor :mid
|
5043
|
+
|
5044
|
+
# Object name, expressed in its `language_code` language.
|
5045
|
+
# Corresponds to the JSON property `name`
|
5046
|
+
# @return [String]
|
5047
|
+
attr_accessor :name
|
5048
|
+
|
5049
|
+
# Score of the result. Range [0, 1].
|
5050
|
+
# Corresponds to the JSON property `score`
|
5051
|
+
# @return [Float]
|
5052
|
+
attr_accessor :score
|
5053
|
+
|
5054
|
+
def initialize(**args)
|
5055
|
+
update!(**args)
|
5056
|
+
end
|
5057
|
+
|
5058
|
+
# Update properties of this object
|
5059
|
+
def update!(**args)
|
5060
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
5061
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
5062
|
+
@mid = args[:mid] if args.key?(:mid)
|
5063
|
+
@name = args[:name] if args.key?(:name)
|
5064
|
+
@score = args[:score] if args.key?(:score)
|
5065
|
+
end
|
5066
|
+
end
|
5067
|
+
|
5068
|
+
# Detected entity location information.
|
5069
|
+
class GoogleCloudVisionV1p3beta1LocationInfo
|
5070
|
+
include Google::Apis::Core::Hashable
|
5071
|
+
|
5072
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
5073
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
5074
|
+
# specified otherwise, this must conform to the
|
5075
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
5076
|
+
# standard</a>. Values must be within normalized ranges.
|
5077
|
+
# Corresponds to the JSON property `latLng`
|
5078
|
+
# @return [Google::Apis::VisionV1::LatLng]
|
5079
|
+
attr_accessor :lat_lng
|
5080
|
+
|
5081
|
+
def initialize(**args)
|
5082
|
+
update!(**args)
|
5083
|
+
end
|
5084
|
+
|
5085
|
+
# Update properties of this object
|
5086
|
+
def update!(**args)
|
5087
|
+
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
5088
|
+
end
|
5089
|
+
end
|
5090
|
+
|
5091
|
+
# A vertex represents a 2D point in the image.
|
5092
|
+
# NOTE: the normalized vertex coordinates are relative to the original image
|
5093
|
+
# and range from 0 to 1.
|
5094
|
+
class GoogleCloudVisionV1p3beta1NormalizedVertex
|
5095
|
+
include Google::Apis::Core::Hashable
|
5096
|
+
|
5097
|
+
# X coordinate.
|
5098
|
+
# Corresponds to the JSON property `x`
|
5099
|
+
# @return [Float]
|
5100
|
+
attr_accessor :x
|
5101
|
+
|
5102
|
+
# Y coordinate.
|
5103
|
+
# Corresponds to the JSON property `y`
|
5104
|
+
# @return [Float]
|
5105
|
+
attr_accessor :y
|
5106
|
+
|
5107
|
+
def initialize(**args)
|
5108
|
+
update!(**args)
|
5109
|
+
end
|
5110
|
+
|
5111
|
+
# Update properties of this object
|
5112
|
+
def update!(**args)
|
5113
|
+
@x = args[:x] if args.key?(:x)
|
5114
|
+
@y = args[:y] if args.key?(:y)
|
5115
|
+
end
|
5116
|
+
end
|
5117
|
+
|
5118
|
+
# Contains metadata for the BatchAnnotateImages operation.
|
5119
|
+
class GoogleCloudVisionV1p3beta1OperationMetadata
|
5120
|
+
include Google::Apis::Core::Hashable
|
5121
|
+
|
5122
|
+
# The time when the batch request was received.
|
5123
|
+
# Corresponds to the JSON property `createTime`
|
5124
|
+
# @return [String]
|
5125
|
+
attr_accessor :create_time
|
5126
|
+
|
5127
|
+
# Current state of the batch operation.
|
5128
|
+
# Corresponds to the JSON property `state`
|
5129
|
+
# @return [String]
|
5130
|
+
attr_accessor :state
|
5131
|
+
|
5132
|
+
# The time when the operation result was last updated.
|
5133
|
+
# Corresponds to the JSON property `updateTime`
|
5134
|
+
# @return [String]
|
5135
|
+
attr_accessor :update_time
|
5136
|
+
|
5137
|
+
def initialize(**args)
|
5138
|
+
update!(**args)
|
5139
|
+
end
|
5140
|
+
|
5141
|
+
# Update properties of this object
|
5142
|
+
def update!(**args)
|
5143
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
5144
|
+
@state = args[:state] if args.key?(:state)
|
5145
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
5146
|
+
end
|
5147
|
+
end
|
5148
|
+
|
5149
|
+
# The desired output location and metadata.
|
5150
|
+
class GoogleCloudVisionV1p3beta1OutputConfig
|
5151
|
+
include Google::Apis::Core::Hashable
|
5152
|
+
|
5153
|
+
# The max number of response protos to put into each output JSON file on
|
5154
|
+
# Google Cloud Storage.
|
5155
|
+
# The valid range is [1, 100]. If not specified, the default value is 20.
|
5156
|
+
# For example, for one pdf file with 100 pages, 100 response protos will
|
5157
|
+
# be generated. If `batch_size` = 20, then 5 json files each
|
5158
|
+
# containing 20 response protos will be written under the prefix
|
5159
|
+
# `gcs_destination`.`uri`.
|
5160
|
+
# Currently, batch_size only applies to GcsDestination, with potential future
|
5161
|
+
# support for other output configurations.
|
5162
|
+
# Corresponds to the JSON property `batchSize`
|
5163
|
+
# @return [Fixnum]
|
5164
|
+
attr_accessor :batch_size
|
5165
|
+
|
5166
|
+
# The Google Cloud Storage location where the output will be written to.
|
5167
|
+
# Corresponds to the JSON property `gcsDestination`
|
5168
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1GcsDestination]
|
5169
|
+
attr_accessor :gcs_destination
|
5170
|
+
|
5171
|
+
def initialize(**args)
|
5172
|
+
update!(**args)
|
5173
|
+
end
|
5174
|
+
|
5175
|
+
# Update properties of this object
|
5176
|
+
def update!(**args)
|
5177
|
+
@batch_size = args[:batch_size] if args.key?(:batch_size)
|
5178
|
+
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
|
5179
|
+
end
|
5180
|
+
end
|
5181
|
+
|
5182
|
+
# Detected page from OCR.
|
5183
|
+
class GoogleCloudVisionV1p3beta1Page
|
5184
|
+
include Google::Apis::Core::Hashable
|
5185
|
+
|
5186
|
+
# List of blocks of text, images etc on this page.
|
5187
|
+
# Corresponds to the JSON property `blocks`
|
5188
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Block>]
|
5189
|
+
attr_accessor :blocks
|
5190
|
+
|
5191
|
+
# Confidence of the OCR results on the page. Range [0, 1].
|
5192
|
+
# Corresponds to the JSON property `confidence`
|
5193
|
+
# @return [Float]
|
5194
|
+
attr_accessor :confidence
|
5195
|
+
|
5196
|
+
# Page height. For PDFs the unit is points. For images (including
|
5197
|
+
# TIFFs) the unit is pixels.
|
5198
|
+
# Corresponds to the JSON property `height`
|
5199
|
+
# @return [Fixnum]
|
5200
|
+
attr_accessor :height
|
5201
|
+
|
5202
|
+
# Additional information detected on the structural component.
|
5203
|
+
# Corresponds to the JSON property `property`
|
5204
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty]
|
5205
|
+
attr_accessor :property
|
5206
|
+
|
5207
|
+
# Page width. For PDFs the unit is points. For images (including
|
5208
|
+
# TIFFs) the unit is pixels.
|
5209
|
+
# Corresponds to the JSON property `width`
|
5210
|
+
# @return [Fixnum]
|
5211
|
+
attr_accessor :width
|
5212
|
+
|
5213
|
+
def initialize(**args)
|
5214
|
+
update!(**args)
|
5215
|
+
end
|
5216
|
+
|
5217
|
+
# Update properties of this object
|
5218
|
+
def update!(**args)
|
5219
|
+
@blocks = args[:blocks] if args.key?(:blocks)
|
5220
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
5221
|
+
@height = args[:height] if args.key?(:height)
|
5222
|
+
@property = args[:property] if args.key?(:property)
|
5223
|
+
@width = args[:width] if args.key?(:width)
|
5224
|
+
end
|
5225
|
+
end
|
5226
|
+
|
5227
|
+
# Structural unit of text representing a number of words in certain order.
|
5228
|
+
class GoogleCloudVisionV1p3beta1Paragraph
|
5229
|
+
include Google::Apis::Core::Hashable
|
5230
|
+
|
5231
|
+
# A bounding polygon for the detected image annotation.
|
5232
|
+
# Corresponds to the JSON property `boundingBox`
|
5233
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly]
|
5234
|
+
attr_accessor :bounding_box
|
5235
|
+
|
5236
|
+
# Confidence of the OCR results for the paragraph. Range [0, 1].
|
5237
|
+
# Corresponds to the JSON property `confidence`
|
5238
|
+
# @return [Float]
|
5239
|
+
attr_accessor :confidence
|
5240
|
+
|
5241
|
+
# Additional information detected on the structural component.
|
5242
|
+
# Corresponds to the JSON property `property`
|
5243
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty]
|
5244
|
+
attr_accessor :property
|
5245
|
+
|
5246
|
+
# List of words in this paragraph.
|
5247
|
+
# Corresponds to the JSON property `words`
|
5248
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Word>]
|
5249
|
+
attr_accessor :words
|
5250
|
+
|
5251
|
+
def initialize(**args)
|
5252
|
+
update!(**args)
|
5253
|
+
end
|
5254
|
+
|
5255
|
+
# Update properties of this object
|
5256
|
+
def update!(**args)
|
5257
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
5258
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
5259
|
+
@property = args[:property] if args.key?(:property)
|
5260
|
+
@words = args[:words] if args.key?(:words)
|
5261
|
+
end
|
5262
|
+
end
|
5263
|
+
|
5264
|
+
# A 3D position in the image, used primarily for Face detection landmarks.
|
5265
|
+
# A valid Position must have both x and y coordinates.
|
5266
|
+
# The position coordinates are in the same scale as the original image.
|
5267
|
+
class GoogleCloudVisionV1p3beta1Position
|
5268
|
+
include Google::Apis::Core::Hashable
|
5269
|
+
|
5270
|
+
# X coordinate.
|
5271
|
+
# Corresponds to the JSON property `x`
|
5272
|
+
# @return [Float]
|
5273
|
+
attr_accessor :x
|
5274
|
+
|
5275
|
+
# Y coordinate.
|
5276
|
+
# Corresponds to the JSON property `y`
|
5277
|
+
# @return [Float]
|
5278
|
+
attr_accessor :y
|
5279
|
+
|
5280
|
+
# Z coordinate (or depth).
|
5281
|
+
# Corresponds to the JSON property `z`
|
5282
|
+
# @return [Float]
|
5283
|
+
attr_accessor :z
|
5284
|
+
|
5285
|
+
def initialize(**args)
|
5286
|
+
update!(**args)
|
5287
|
+
end
|
5288
|
+
|
5289
|
+
# Update properties of this object
|
5290
|
+
def update!(**args)
|
5291
|
+
@x = args[:x] if args.key?(:x)
|
5292
|
+
@y = args[:y] if args.key?(:y)
|
5293
|
+
@z = args[:z] if args.key?(:z)
|
5294
|
+
end
|
5295
|
+
end
|
5296
|
+
|
5297
|
+
# A Product contains ReferenceImages.
|
5298
|
+
class GoogleCloudVisionV1p3beta1Product
|
5299
|
+
include Google::Apis::Core::Hashable
|
5300
|
+
|
5301
|
+
# User-provided metadata to be stored with this product. Must be at most 4096
|
5302
|
+
# characters long.
|
5303
|
+
# Corresponds to the JSON property `description`
|
5304
|
+
# @return [String]
|
5305
|
+
attr_accessor :description
|
5306
|
+
|
5307
|
+
# The user-provided name for this Product. Must not be empty. Must be at most
|
5308
|
+
# 4096 characters long.
|
5309
|
+
# Corresponds to the JSON property `displayName`
|
5310
|
+
# @return [String]
|
5311
|
+
attr_accessor :display_name
|
5312
|
+
|
5313
|
+
# The resource name of the product.
|
5314
|
+
# Format is:
|
5315
|
+
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
5316
|
+
# This field is ignored when creating a product.
|
5317
|
+
# Corresponds to the JSON property `name`
|
5318
|
+
# @return [String]
|
5319
|
+
attr_accessor :name
|
5320
|
+
|
5321
|
+
# The category for the product identified by the reference image. This should
|
5322
|
+
# be either "homegoods" or "apparel".
|
5323
|
+
# This field is immutable.
|
5324
|
+
# Corresponds to the JSON property `productCategory`
|
5325
|
+
# @return [String]
|
5326
|
+
attr_accessor :product_category
|
5327
|
+
|
5328
|
+
# Key-value pairs that can be attached to a product. At query time,
|
5329
|
+
# constraints can be specified based on the product_labels.
|
5330
|
+
# Note that integer values can be provided as strings, e.g. "1199". Only
|
5331
|
+
# strings with integer values can match a range-based restriction which is
|
5332
|
+
# to be supported soon.
|
5333
|
+
# Multiple values can be assigned to the same key. One product may have up to
|
5334
|
+
# 100 product_labels.
|
5335
|
+
# Corresponds to the JSON property `productLabels`
|
5336
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductKeyValue>]
|
5337
|
+
attr_accessor :product_labels
|
5338
|
+
|
5339
|
+
def initialize(**args)
|
5340
|
+
update!(**args)
|
5341
|
+
end
|
5342
|
+
|
5343
|
+
# Update properties of this object
|
5344
|
+
def update!(**args)
|
5345
|
+
@description = args[:description] if args.key?(:description)
|
5346
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
5347
|
+
@name = args[:name] if args.key?(:name)
|
5348
|
+
@product_category = args[:product_category] if args.key?(:product_category)
|
5349
|
+
@product_labels = args[:product_labels] if args.key?(:product_labels)
|
5350
|
+
end
|
5351
|
+
end
|
5352
|
+
|
5353
|
+
# A product label represented as a key-value pair.
|
5354
|
+
class GoogleCloudVisionV1p3beta1ProductKeyValue
|
5355
|
+
include Google::Apis::Core::Hashable
|
5356
|
+
|
5357
|
+
# The key of the label attached to the product. Cannot be empty and cannot
|
5358
|
+
# exceed 128 bytes.
|
5359
|
+
# Corresponds to the JSON property `key`
|
5360
|
+
# @return [String]
|
5361
|
+
attr_accessor :key
|
5362
|
+
|
5363
|
+
# The value of the label attached to the product. Cannot be empty and
|
5364
|
+
# cannot exceed 128 bytes.
|
5365
|
+
# Corresponds to the JSON property `value`
|
5366
|
+
# @return [String]
|
5367
|
+
attr_accessor :value
|
5368
|
+
|
5369
|
+
def initialize(**args)
|
5370
|
+
update!(**args)
|
5371
|
+
end
|
5372
|
+
|
5373
|
+
# Update properties of this object
|
5374
|
+
def update!(**args)
|
5375
|
+
@key = args[:key] if args.key?(:key)
|
5376
|
+
@value = args[:value] if args.key?(:value)
|
5377
|
+
end
|
5378
|
+
end
|
5379
|
+
|
5380
|
+
# Results for a product search request.
|
5381
|
+
class GoogleCloudVisionV1p3beta1ProductSearchResults
|
5382
|
+
include Google::Apis::Core::Hashable
|
5383
|
+
|
5384
|
+
# Timestamp of the index which provided these results. Changes made after
|
5385
|
+
# this time are not reflected in the current results.
|
5386
|
+
# Corresponds to the JSON property `indexTime`
|
5387
|
+
# @return [String]
|
5388
|
+
attr_accessor :index_time
|
5389
|
+
|
5390
|
+
# List of results, one for each product match.
|
5391
|
+
# Corresponds to the JSON property `results`
|
5392
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductSearchResultsResult>]
|
5393
|
+
attr_accessor :results
|
5394
|
+
|
5395
|
+
def initialize(**args)
|
5396
|
+
update!(**args)
|
5397
|
+
end
|
5398
|
+
|
5399
|
+
# Update properties of this object
|
5400
|
+
def update!(**args)
|
5401
|
+
@index_time = args[:index_time] if args.key?(:index_time)
|
5402
|
+
@results = args[:results] if args.key?(:results)
|
5403
|
+
end
|
5404
|
+
end
|
5405
|
+
|
5406
|
+
# Information about a product.
|
5407
|
+
class GoogleCloudVisionV1p3beta1ProductSearchResultsResult
|
5408
|
+
include Google::Apis::Core::Hashable
|
5409
|
+
|
5410
|
+
# The resource name of the image from the product that is the closest match
|
5411
|
+
# to the query.
|
5412
|
+
# Corresponds to the JSON property `image`
|
5413
|
+
# @return [String]
|
5414
|
+
attr_accessor :image
|
5415
|
+
|
5416
|
+
# A Product contains ReferenceImages.
|
5417
|
+
# Corresponds to the JSON property `product`
|
5418
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Product]
|
5419
|
+
attr_accessor :product
|
5420
|
+
|
5421
|
+
# A confidence level on the match, ranging from 0 (no confidence) to
|
5422
|
+
# 1 (full confidence).
|
5423
|
+
# This field is returned only if `view` is set to `FULL` in
|
5424
|
+
# the request.
|
5425
|
+
# Corresponds to the JSON property `score`
|
5426
|
+
# @return [Float]
|
5427
|
+
attr_accessor :score
|
5428
|
+
|
5429
|
+
def initialize(**args)
|
5430
|
+
update!(**args)
|
5431
|
+
end
|
5432
|
+
|
5433
|
+
# Update properties of this object
|
5434
|
+
def update!(**args)
|
5435
|
+
@image = args[:image] if args.key?(:image)
|
5436
|
+
@product = args[:product] if args.key?(:product)
|
5437
|
+
@score = args[:score] if args.key?(:score)
|
5438
|
+
end
|
5439
|
+
end
|
5440
|
+
|
5441
|
+
# A `Property` consists of a user-supplied name/value pair.
|
5442
|
+
class GoogleCloudVisionV1p3beta1Property
|
5443
|
+
include Google::Apis::Core::Hashable
|
5444
|
+
|
5445
|
+
# Name of the property.
|
5446
|
+
# Corresponds to the JSON property `name`
|
5447
|
+
# @return [String]
|
5448
|
+
attr_accessor :name
|
5449
|
+
|
5450
|
+
# Value of numeric properties.
|
5451
|
+
# Corresponds to the JSON property `uint64Value`
|
5452
|
+
# @return [Fixnum]
|
5453
|
+
attr_accessor :uint64_value
|
5454
|
+
|
5455
|
+
# Value of the property.
|
5456
|
+
# Corresponds to the JSON property `value`
|
5457
|
+
# @return [String]
|
5458
|
+
attr_accessor :value
|
5459
|
+
|
5460
|
+
def initialize(**args)
|
5461
|
+
update!(**args)
|
5462
|
+
end
|
5463
|
+
|
5464
|
+
# Update properties of this object
|
5465
|
+
def update!(**args)
|
5466
|
+
@name = args[:name] if args.key?(:name)
|
5467
|
+
@uint64_value = args[:uint64_value] if args.key?(:uint64_value)
|
5468
|
+
@value = args[:value] if args.key?(:value)
|
5469
|
+
end
|
5470
|
+
end
|
5471
|
+
|
5472
|
+
# A `ReferenceImage` represents a product image and its associated metadata,
|
5473
|
+
# such as bounding boxes.
|
5474
|
+
class GoogleCloudVisionV1p3beta1ReferenceImage
|
5475
|
+
include Google::Apis::Core::Hashable
|
5476
|
+
|
5477
|
+
# Bounding polygons around the areas of interest in the reference image.
|
5478
|
+
# Optional. If this field is empty, the system will try to detect regions of
|
5479
|
+
# interest. At most 10 bounding polygons will be used.
|
5480
|
+
# The provided shape is converted into a non-rotated rectangle. Once
|
5481
|
+
# converted, the small edge of the rectangle must be greater than or equal
|
5482
|
+
# to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5
|
5483
|
+
# is not).
|
5484
|
+
# Corresponds to the JSON property `boundingPolys`
|
5485
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly>]
|
5486
|
+
attr_accessor :bounding_polys
|
5487
|
+
|
5488
|
+
# The resource name of the reference image.
|
5489
|
+
# Format is:
|
5490
|
+
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/
|
5491
|
+
# IMAGE_ID`.
|
5492
|
+
# This field is ignored when creating a reference image.
|
5493
|
+
# Corresponds to the JSON property `name`
|
5494
|
+
# @return [String]
|
5495
|
+
attr_accessor :name
|
5496
|
+
|
5497
|
+
# The Google Cloud Storage URI of the reference image.
|
5498
|
+
# The URI must start with `gs://`.
|
5499
|
+
# Required.
|
5500
|
+
# Corresponds to the JSON property `uri`
|
5501
|
+
# @return [String]
|
5502
|
+
attr_accessor :uri
|
5503
|
+
|
5504
|
+
def initialize(**args)
|
5505
|
+
update!(**args)
|
5506
|
+
end
|
5507
|
+
|
5508
|
+
# Update properties of this object
|
5509
|
+
def update!(**args)
|
5510
|
+
@bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys)
|
5511
|
+
@name = args[:name] if args.key?(:name)
|
5512
|
+
@uri = args[:uri] if args.key?(:uri)
|
5513
|
+
end
|
5514
|
+
end
|
5515
|
+
|
5516
|
+
# Set of features pertaining to the image, computed by computer vision
|
5517
|
+
# methods over safe-search verticals (for example, adult, spoof, medical,
|
5518
|
+
# violence).
|
5519
|
+
class GoogleCloudVisionV1p3beta1SafeSearchAnnotation
|
5520
|
+
include Google::Apis::Core::Hashable
|
5521
|
+
|
5522
|
+
# Represents the adult content likelihood for the image. Adult content may
|
5523
|
+
# contain elements such as nudity, pornographic images or cartoons, or
|
5524
|
+
# sexual activities.
|
5525
|
+
# Corresponds to the JSON property `adult`
|
5526
|
+
# @return [String]
|
5527
|
+
attr_accessor :adult
|
5528
|
+
|
5529
|
+
# Likelihood that this is a medical image.
|
5530
|
+
# Corresponds to the JSON property `medical`
|
5531
|
+
# @return [String]
|
5532
|
+
attr_accessor :medical
|
5533
|
+
|
5534
|
+
# Likelihood that the request image contains racy content. Racy content may
|
5535
|
+
# include (but is not limited to) skimpy or sheer clothing, strategically
|
5536
|
+
# covered nudity, lewd or provocative poses, or close-ups of sensitive
|
5537
|
+
# body areas.
|
5538
|
+
# Corresponds to the JSON property `racy`
|
5539
|
+
# @return [String]
|
5540
|
+
attr_accessor :racy
|
5541
|
+
|
5542
|
+
# Spoof likelihood. The likelihood that an modification
|
5543
|
+
# was made to the image's canonical version to make it appear
|
5544
|
+
# funny or offensive.
|
5545
|
+
# Corresponds to the JSON property `spoof`
|
5546
|
+
# @return [String]
|
5547
|
+
attr_accessor :spoof
|
5548
|
+
|
5549
|
+
# Likelihood that this image contains violent content.
|
5550
|
+
# Corresponds to the JSON property `violence`
|
5551
|
+
# @return [String]
|
5552
|
+
attr_accessor :violence
|
5553
|
+
|
5554
|
+
def initialize(**args)
|
5555
|
+
update!(**args)
|
5556
|
+
end
|
5557
|
+
|
5558
|
+
# Update properties of this object
|
5559
|
+
def update!(**args)
|
5560
|
+
@adult = args[:adult] if args.key?(:adult)
|
5561
|
+
@medical = args[:medical] if args.key?(:medical)
|
5562
|
+
@racy = args[:racy] if args.key?(:racy)
|
5563
|
+
@spoof = args[:spoof] if args.key?(:spoof)
|
5564
|
+
@violence = args[:violence] if args.key?(:violence)
|
5565
|
+
end
|
5566
|
+
end
|
5567
|
+
|
5568
|
+
# A single symbol representation.
|
5569
|
+
class GoogleCloudVisionV1p3beta1Symbol
|
5570
|
+
include Google::Apis::Core::Hashable
|
5571
|
+
|
5572
|
+
# A bounding polygon for the detected image annotation.
|
5573
|
+
# Corresponds to the JSON property `boundingBox`
|
5574
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly]
|
5575
|
+
attr_accessor :bounding_box
|
5576
|
+
|
5577
|
+
# Confidence of the OCR results for the symbol. Range [0, 1].
|
5578
|
+
# Corresponds to the JSON property `confidence`
|
5579
|
+
# @return [Float]
|
5580
|
+
attr_accessor :confidence
|
5581
|
+
|
5582
|
+
# Additional information detected on the structural component.
|
5583
|
+
# Corresponds to the JSON property `property`
|
5584
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty]
|
5585
|
+
attr_accessor :property
|
5586
|
+
|
5587
|
+
# The actual UTF-8 representation of the symbol.
|
5588
|
+
# Corresponds to the JSON property `text`
|
5589
|
+
# @return [String]
|
5590
|
+
attr_accessor :text
|
5591
|
+
|
5592
|
+
def initialize(**args)
|
5593
|
+
update!(**args)
|
5594
|
+
end
|
5595
|
+
|
5596
|
+
# Update properties of this object
|
5597
|
+
def update!(**args)
|
5598
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
5599
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
5600
|
+
@property = args[:property] if args.key?(:property)
|
5601
|
+
@text = args[:text] if args.key?(:text)
|
5602
|
+
end
|
5603
|
+
end
|
5604
|
+
|
5605
|
+
# TextAnnotation contains a structured representation of OCR extracted text.
|
5606
|
+
# The hierarchy of an OCR extracted text structure is like this:
|
5607
|
+
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
5608
|
+
# Each structural component, starting from Page, may further have their own
|
5609
|
+
# properties. Properties describe detected languages, breaks etc.. Please refer
|
5610
|
+
# to the TextAnnotation.TextProperty message definition below for more
|
5611
|
+
# detail.
|
5612
|
+
class GoogleCloudVisionV1p3beta1TextAnnotation
|
5613
|
+
include Google::Apis::Core::Hashable
|
5614
|
+
|
5615
|
+
# List of pages detected by OCR.
|
5616
|
+
# Corresponds to the JSON property `pages`
|
5617
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Page>]
|
5618
|
+
attr_accessor :pages
|
5619
|
+
|
5620
|
+
# UTF-8 text detected on the pages.
|
5621
|
+
# Corresponds to the JSON property `text`
|
5622
|
+
# @return [String]
|
5623
|
+
attr_accessor :text
|
5624
|
+
|
5625
|
+
def initialize(**args)
|
5626
|
+
update!(**args)
|
5627
|
+
end
|
5628
|
+
|
5629
|
+
# Update properties of this object
|
5630
|
+
def update!(**args)
|
5631
|
+
@pages = args[:pages] if args.key?(:pages)
|
5632
|
+
@text = args[:text] if args.key?(:text)
|
5633
|
+
end
|
5634
|
+
end
|
5635
|
+
|
5636
|
+
# Detected start or end of a structural component.
|
5637
|
+
class GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak
|
5638
|
+
include Google::Apis::Core::Hashable
|
5639
|
+
|
5640
|
+
# True if break prepends the element.
|
5641
|
+
# Corresponds to the JSON property `isPrefix`
|
5642
|
+
# @return [Boolean]
|
5643
|
+
attr_accessor :is_prefix
|
5644
|
+
alias_method :is_prefix?, :is_prefix
|
5645
|
+
|
5646
|
+
# Detected break type.
|
5647
|
+
# Corresponds to the JSON property `type`
|
5648
|
+
# @return [String]
|
5649
|
+
attr_accessor :type
|
5650
|
+
|
5651
|
+
def initialize(**args)
|
5652
|
+
update!(**args)
|
5653
|
+
end
|
5654
|
+
|
5655
|
+
# Update properties of this object
|
5656
|
+
def update!(**args)
|
5657
|
+
@is_prefix = args[:is_prefix] if args.key?(:is_prefix)
|
5658
|
+
@type = args[:type] if args.key?(:type)
|
5659
|
+
end
|
5660
|
+
end
|
5661
|
+
|
5662
|
+
# Detected language for a structural component.
|
5663
|
+
class GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage
|
5664
|
+
include Google::Apis::Core::Hashable
|
5665
|
+
|
5666
|
+
# Confidence of detected language. Range [0, 1].
|
5667
|
+
# Corresponds to the JSON property `confidence`
|
5668
|
+
# @return [Float]
|
5669
|
+
attr_accessor :confidence
|
5670
|
+
|
5671
|
+
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
5672
|
+
# information, see
|
5673
|
+
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
5674
|
+
# Corresponds to the JSON property `languageCode`
|
5675
|
+
# @return [String]
|
5676
|
+
attr_accessor :language_code
|
5677
|
+
|
5678
|
+
def initialize(**args)
|
5679
|
+
update!(**args)
|
5680
|
+
end
|
5681
|
+
|
5682
|
+
# Update properties of this object
|
5683
|
+
def update!(**args)
|
5684
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
5685
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
5686
|
+
end
|
5687
|
+
end
|
5688
|
+
|
5689
|
+
# Additional information detected on the structural component.
|
5690
|
+
class GoogleCloudVisionV1p3beta1TextAnnotationTextProperty
|
5691
|
+
include Google::Apis::Core::Hashable
|
5692
|
+
|
5693
|
+
# Detected start or end of a structural component.
|
5694
|
+
# Corresponds to the JSON property `detectedBreak`
|
5695
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak]
|
5696
|
+
attr_accessor :detected_break
|
5697
|
+
|
5698
|
+
# A list of detected languages together with confidence.
|
5699
|
+
# Corresponds to the JSON property `detectedLanguages`
|
5700
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage>]
|
5701
|
+
attr_accessor :detected_languages
|
5702
|
+
|
5703
|
+
def initialize(**args)
|
5704
|
+
update!(**args)
|
5705
|
+
end
|
5706
|
+
|
5707
|
+
# Update properties of this object
|
5708
|
+
def update!(**args)
|
5709
|
+
@detected_break = args[:detected_break] if args.key?(:detected_break)
|
5710
|
+
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
2747
5711
|
end
|
2748
5712
|
end
|
2749
5713
|
|
2750
5714
|
# A vertex represents a 2D point in the image.
|
2751
|
-
# NOTE: the
|
2752
|
-
|
2753
|
-
class GoogleCloudVisionV1p3beta1NormalizedVertex
|
5715
|
+
# NOTE: the vertex coordinates are in the same scale as the original image.
|
5716
|
+
class GoogleCloudVisionV1p3beta1Vertex
|
2754
5717
|
include Google::Apis::Core::Hashable
|
2755
5718
|
|
2756
5719
|
# X coordinate.
|
2757
5720
|
# Corresponds to the JSON property `x`
|
2758
|
-
# @return [
|
5721
|
+
# @return [Fixnum]
|
2759
5722
|
attr_accessor :x
|
2760
5723
|
|
2761
5724
|
# Y coordinate.
|
2762
5725
|
# Corresponds to the JSON property `y`
|
2763
|
-
# @return [
|
5726
|
+
# @return [Fixnum]
|
2764
5727
|
attr_accessor :y
|
2765
5728
|
|
2766
5729
|
def initialize(**args)
|
@@ -2774,37 +5737,78 @@ module Google
|
|
2774
5737
|
end
|
2775
5738
|
end
|
2776
5739
|
|
2777
|
-
#
|
2778
|
-
|
2779
|
-
class GoogleCloudVisionV1p3beta1ReferenceImage
|
5740
|
+
# Relevant information for the image from the Internet.
|
5741
|
+
class GoogleCloudVisionV1p3beta1WebDetection
|
2780
5742
|
include Google::Apis::Core::Hashable
|
2781
5743
|
|
2782
|
-
#
|
2783
|
-
#
|
2784
|
-
#
|
2785
|
-
#
|
2786
|
-
|
2787
|
-
# to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5
|
2788
|
-
# is not).
|
2789
|
-
# Corresponds to the JSON property `boundingPolys`
|
2790
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly>]
|
2791
|
-
attr_accessor :bounding_polys
|
5744
|
+
# The service's best guess as to the topic of the request image.
|
5745
|
+
# Inferred from similar images on the open web.
|
5746
|
+
# Corresponds to the JSON property `bestGuessLabels`
|
5747
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebLabel>]
|
5748
|
+
attr_accessor :best_guess_labels
|
2792
5749
|
|
2793
|
-
#
|
2794
|
-
#
|
2795
|
-
# `
|
2796
|
-
#
|
2797
|
-
|
2798
|
-
|
5750
|
+
# Fully matching images from the Internet.
|
5751
|
+
# Can include resized copies of the query image.
|
5752
|
+
# Corresponds to the JSON property `fullMatchingImages`
|
5753
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebImage>]
|
5754
|
+
attr_accessor :full_matching_images
|
5755
|
+
|
5756
|
+
# Web pages containing the matching images from the Internet.
|
5757
|
+
# Corresponds to the JSON property `pagesWithMatchingImages`
|
5758
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebPage>]
|
5759
|
+
attr_accessor :pages_with_matching_images
|
5760
|
+
|
5761
|
+
# Partial matching images from the Internet.
|
5762
|
+
# Those images are similar enough to share some key-point features. For
|
5763
|
+
# example an original image will likely have partial matching for its crops.
|
5764
|
+
# Corresponds to the JSON property `partialMatchingImages`
|
5765
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebImage>]
|
5766
|
+
attr_accessor :partial_matching_images
|
5767
|
+
|
5768
|
+
# The visually similar image results.
|
5769
|
+
# Corresponds to the JSON property `visuallySimilarImages`
|
5770
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebImage>]
|
5771
|
+
attr_accessor :visually_similar_images
|
5772
|
+
|
5773
|
+
# Deduced entities from similar images on the Internet.
|
5774
|
+
# Corresponds to the JSON property `webEntities`
|
5775
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebEntity>]
|
5776
|
+
attr_accessor :web_entities
|
5777
|
+
|
5778
|
+
def initialize(**args)
|
5779
|
+
update!(**args)
|
5780
|
+
end
|
5781
|
+
|
5782
|
+
# Update properties of this object
|
5783
|
+
def update!(**args)
|
5784
|
+
@best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
|
5785
|
+
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
5786
|
+
@pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
|
5787
|
+
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
5788
|
+
@visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
|
5789
|
+
@web_entities = args[:web_entities] if args.key?(:web_entities)
|
5790
|
+
end
|
5791
|
+
end
|
5792
|
+
|
5793
|
+
# Entity deduced from similar images on the Internet.
|
5794
|
+
class GoogleCloudVisionV1p3beta1WebDetectionWebEntity
|
5795
|
+
include Google::Apis::Core::Hashable
|
5796
|
+
|
5797
|
+
# Canonical description of the entity, in English.
|
5798
|
+
# Corresponds to the JSON property `description`
|
2799
5799
|
# @return [String]
|
2800
|
-
attr_accessor :
|
5800
|
+
attr_accessor :description
|
2801
5801
|
|
2802
|
-
#
|
2803
|
-
#
|
2804
|
-
# Required.
|
2805
|
-
# Corresponds to the JSON property `uri`
|
5802
|
+
# Opaque entity ID.
|
5803
|
+
# Corresponds to the JSON property `entityId`
|
2806
5804
|
# @return [String]
|
2807
|
-
attr_accessor :
|
5805
|
+
attr_accessor :entity_id
|
5806
|
+
|
5807
|
+
# Overall relevancy score for the entity.
|
5808
|
+
# Not normalized and not comparable across different image queries.
|
5809
|
+
# Corresponds to the JSON property `score`
|
5810
|
+
# @return [Float]
|
5811
|
+
attr_accessor :score
|
2808
5812
|
|
2809
5813
|
def initialize(**args)
|
2810
5814
|
update!(**args)
|
@@ -2812,26 +5816,25 @@ module Google
|
|
2812
5816
|
|
2813
5817
|
# Update properties of this object
|
2814
5818
|
def update!(**args)
|
2815
|
-
@
|
2816
|
-
@
|
2817
|
-
@
|
5819
|
+
@description = args[:description] if args.key?(:description)
|
5820
|
+
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
5821
|
+
@score = args[:score] if args.key?(:score)
|
2818
5822
|
end
|
2819
5823
|
end
|
2820
5824
|
|
2821
|
-
#
|
2822
|
-
|
2823
|
-
class GoogleCloudVisionV1p3beta1Vertex
|
5825
|
+
# Metadata for online images.
|
5826
|
+
class GoogleCloudVisionV1p3beta1WebDetectionWebImage
|
2824
5827
|
include Google::Apis::Core::Hashable
|
2825
5828
|
|
2826
|
-
#
|
2827
|
-
# Corresponds to the JSON property `
|
2828
|
-
# @return [
|
2829
|
-
attr_accessor :
|
5829
|
+
# (Deprecated) Overall relevancy score for the image.
|
5830
|
+
# Corresponds to the JSON property `score`
|
5831
|
+
# @return [Float]
|
5832
|
+
attr_accessor :score
|
2830
5833
|
|
2831
|
-
#
|
2832
|
-
# Corresponds to the JSON property `
|
2833
|
-
# @return [
|
2834
|
-
attr_accessor :
|
5834
|
+
# The result image URL.
|
5835
|
+
# Corresponds to the JSON property `url`
|
5836
|
+
# @return [String]
|
5837
|
+
attr_accessor :url
|
2835
5838
|
|
2836
5839
|
def initialize(**args)
|
2837
5840
|
update!(**args)
|
@@ -2839,8 +5842,120 @@ module Google
|
|
2839
5842
|
|
2840
5843
|
# Update properties of this object
|
2841
5844
|
def update!(**args)
|
2842
|
-
@
|
2843
|
-
@
|
5845
|
+
@score = args[:score] if args.key?(:score)
|
5846
|
+
@url = args[:url] if args.key?(:url)
|
5847
|
+
end
|
5848
|
+
end
|
5849
|
+
|
5850
|
+
# Label to provide extra metadata for the web detection.
|
5851
|
+
class GoogleCloudVisionV1p3beta1WebDetectionWebLabel
|
5852
|
+
include Google::Apis::Core::Hashable
|
5853
|
+
|
5854
|
+
# Label for extra metadata.
|
5855
|
+
# Corresponds to the JSON property `label`
|
5856
|
+
# @return [String]
|
5857
|
+
attr_accessor :label
|
5858
|
+
|
5859
|
+
# The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
|
5860
|
+
# For more information, see
|
5861
|
+
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
5862
|
+
# Corresponds to the JSON property `languageCode`
|
5863
|
+
# @return [String]
|
5864
|
+
attr_accessor :language_code
|
5865
|
+
|
5866
|
+
def initialize(**args)
|
5867
|
+
update!(**args)
|
5868
|
+
end
|
5869
|
+
|
5870
|
+
# Update properties of this object
|
5871
|
+
def update!(**args)
|
5872
|
+
@label = args[:label] if args.key?(:label)
|
5873
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
5874
|
+
end
|
5875
|
+
end
|
5876
|
+
|
5877
|
+
# Metadata for web pages.
|
5878
|
+
class GoogleCloudVisionV1p3beta1WebDetectionWebPage
|
5879
|
+
include Google::Apis::Core::Hashable
|
5880
|
+
|
5881
|
+
# Fully matching images on the page.
|
5882
|
+
# Can include resized copies of the query image.
|
5883
|
+
# Corresponds to the JSON property `fullMatchingImages`
|
5884
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebImage>]
|
5885
|
+
attr_accessor :full_matching_images
|
5886
|
+
|
5887
|
+
# Title for the web page, may contain HTML markups.
|
5888
|
+
# Corresponds to the JSON property `pageTitle`
|
5889
|
+
# @return [String]
|
5890
|
+
attr_accessor :page_title
|
5891
|
+
|
5892
|
+
# Partial matching images on the page.
|
5893
|
+
# Those images are similar enough to share some key-point features. For
|
5894
|
+
# example an original image will likely have partial matching for its
|
5895
|
+
# crops.
|
5896
|
+
# Corresponds to the JSON property `partialMatchingImages`
|
5897
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1WebDetectionWebImage>]
|
5898
|
+
attr_accessor :partial_matching_images
|
5899
|
+
|
5900
|
+
# (Deprecated) Overall relevancy score for the web page.
|
5901
|
+
# Corresponds to the JSON property `score`
|
5902
|
+
# @return [Float]
|
5903
|
+
attr_accessor :score
|
5904
|
+
|
5905
|
+
# The result web page URL.
|
5906
|
+
# Corresponds to the JSON property `url`
|
5907
|
+
# @return [String]
|
5908
|
+
attr_accessor :url
|
5909
|
+
|
5910
|
+
def initialize(**args)
|
5911
|
+
update!(**args)
|
5912
|
+
end
|
5913
|
+
|
5914
|
+
# Update properties of this object
|
5915
|
+
def update!(**args)
|
5916
|
+
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
5917
|
+
@page_title = args[:page_title] if args.key?(:page_title)
|
5918
|
+
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
5919
|
+
@score = args[:score] if args.key?(:score)
|
5920
|
+
@url = args[:url] if args.key?(:url)
|
5921
|
+
end
|
5922
|
+
end
|
5923
|
+
|
5924
|
+
# A word representation.
|
5925
|
+
class GoogleCloudVisionV1p3beta1Word
|
5926
|
+
include Google::Apis::Core::Hashable
|
5927
|
+
|
5928
|
+
# A bounding polygon for the detected image annotation.
|
5929
|
+
# Corresponds to the JSON property `boundingBox`
|
5930
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1BoundingPoly]
|
5931
|
+
attr_accessor :bounding_box
|
5932
|
+
|
5933
|
+
# Confidence of the OCR results for the word. Range [0, 1].
|
5934
|
+
# Corresponds to the JSON property `confidence`
|
5935
|
+
# @return [Float]
|
5936
|
+
attr_accessor :confidence
|
5937
|
+
|
5938
|
+
# Additional information detected on the structural component.
|
5939
|
+
# Corresponds to the JSON property `property`
|
5940
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty]
|
5941
|
+
attr_accessor :property
|
5942
|
+
|
5943
|
+
# List of symbols in the word.
|
5944
|
+
# The order of the symbols follows the natural reading order.
|
5945
|
+
# Corresponds to the JSON property `symbols`
|
5946
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Symbol>]
|
5947
|
+
attr_accessor :symbols
|
5948
|
+
|
5949
|
+
def initialize(**args)
|
5950
|
+
update!(**args)
|
5951
|
+
end
|
5952
|
+
|
5953
|
+
# Update properties of this object
|
5954
|
+
def update!(**args)
|
5955
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
5956
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
5957
|
+
@property = args[:property] if args.key?(:property)
|
5958
|
+
@symbols = args[:symbols] if args.key?(:symbols)
|
2844
5959
|
end
|
2845
5960
|
end
|
2846
5961
|
|