google-api-client 0.20.1 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +140 -0
- data/README.md +3 -12
- data/generated/google/apis/abusiveexperiencereport_v1.rb +2 -2
- data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +1 -0
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +11 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +24 -40
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +66 -110
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +117 -195
- data/generated/google/apis/adexchangeseller_v1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1/service.rb +36 -60
- data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +54 -90
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +45 -75
- data/generated/google/apis/adexperiencereport_v1.rb +2 -2
- data/generated/google/apis/adexperiencereport_v1/classes.rb +1 -0
- data/generated/google/apis/adexperiencereport_v1/service.rb +1 -1
- data/generated/google/apis/admin_datatransfer_v1/service.rb +18 -30
- data/generated/google/apis/admin_directory_v1.rb +3 -3
- data/generated/google/apis/admin_directory_v1/classes.rb +18 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +3 -0
- data/generated/google/apis/admin_directory_v1/service.rb +363 -577
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +21 -35
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/service.rb +117 -195
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +81 -135
- data/generated/google/apis/analytics_v2_4.rb +1 -1
- data/generated/google/apis/analytics_v2_4/service.rb +21 -35
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +32 -60
- data/generated/google/apis/analytics_v3/representations.rb +8 -12
- data/generated/google/apis/analytics_v3/service.rb +261 -435
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +2 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -12
- data/generated/google/apis/androidenterprise_v1/service.rb +254 -425
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +38 -6
- data/generated/google/apis/androidmanagement_v1/representations.rb +18 -0
- data/generated/google/apis/androidpublisher_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1/service.rb +9 -15
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1/service.rb +12 -20
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +102 -1
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +255 -286
- data/generated/google/apis/androidpublisher_v3.rb +34 -0
- data/generated/google/apis/androidpublisher_v3/classes.rb +1899 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +882 -0
- data/generated/google/apis/androidpublisher_v3/service.rb +2208 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +6 -10
- data/generated/google/apis/appsmarket_v2/service.rb +12 -20
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +18 -30
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +67 -9
- data/generated/google/apis/bigquery_v2/representations.rb +22 -0
- data/generated/google/apis/bigquery_v2/service.rb +69 -115
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +1 -2
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +2 -2
- data/generated/google/apis/blogger_v2/service.rb +30 -50
- data/generated/google/apis/blogger_v3/service.rb +102 -170
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/service.rb +156 -260
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +114 -190
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +6 -0
- data/generated/google/apis/chat_v1/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +18 -30
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +0 -69
- data/generated/google/apis/classroom_v1/representations.rb +0 -31
- data/generated/google/apis/classroom_v1/service.rb +0 -88
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +0 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +2 -1
- data/generated/google/apis/cloudfunctions_v1.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1/classes.rb +14 -0
- data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1beta2.rb +3 -4
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +14 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +2 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +3 -4
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +29 -7
- data/generated/google/apis/cloudiot_v1/service.rb +398 -1
- data/generated/google/apis/cloudkms_v1.rb +2 -2
- data/generated/google/apis/cloudkms_v1/classes.rb +29 -7
- data/generated/google/apis/cloudkms_v1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +30 -8
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +5 -3
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +29 -7
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +29 -7
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +29 -7
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +39 -10
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +9 -11
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
- data/generated/google/apis/{dlp_v2beta1.rb → composer_v1beta1.rb} +9 -11
- data/generated/google/apis/composer_v1beta1/classes.rb +643 -0
- data/generated/google/apis/composer_v1beta1/representations.rb +195 -0
- data/generated/google/apis/composer_v1beta1/service.rb +462 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +3939 -2239
- data/generated/google/apis/compute_alpha/representations.rb +1063 -335
- data/generated/google/apis/compute_alpha/service.rb +3532 -3368
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +150 -53
- data/generated/google/apis/compute_beta/representations.rb +23 -0
- data/generated/google/apis/compute_beta/service.rb +1269 -2077
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +46 -43
- data/generated/google/apis/compute_v1/service.rb +1022 -1666
- data/generated/google/apis/container_v1.rb +2 -2
- data/generated/google/apis/container_v1/classes.rb +20 -15
- data/generated/google/apis/container_v1/representations.rb +1 -0
- data/generated/google/apis/container_v1/service.rb +33 -31
- data/generated/google/apis/container_v1beta1.rb +2 -2
- data/generated/google/apis/container_v1beta1/classes.rb +186 -14
- data/generated/google/apis/container_v1beta1/representations.rb +77 -0
- data/generated/google/apis/container_v1beta1/service.rb +111 -31
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +173 -8
- data/generated/google/apis/content_v2/representations.rb +71 -0
- data/generated/google/apis/content_v2/service.rb +246 -410
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +75 -8
- data/generated/google/apis/content_v2sandbox/representations.rb +33 -0
- data/generated/google/apis/content_v2sandbox/service.rb +63 -105
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +9 -15
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +15 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +6 -6
- data/generated/google/apis/dataproc_v1/service.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2.rb +2 -2
- data/generated/google/apis/dataproc_v1beta2/classes.rb +48 -13
- data/generated/google/apis/dataproc_v1beta2/representations.rb +12 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +1 -1
- data/generated/google/apis/datastore_v1.rb +2 -2
- data/generated/google/apis/datastore_v1/service.rb +1 -1
- data/generated/google/apis/datastore_v1beta1.rb +2 -2
- data/generated/google/apis/datastore_v1beta1/service.rb +1 -1
- data/generated/google/apis/datastore_v1beta3.rb +2 -2
- data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +118 -194
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +61 -99
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +60 -5
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +103 -169
- data/generated/google/apis/dfareporting_v2_8/service.rb +618 -1030
- data/generated/google/apis/dfareporting_v3_0/service.rb +615 -1025
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +94 -24
- data/generated/google/apis/dialogflow_v2/representations.rb +13 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +94 -24
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +13 -0
- data/generated/google/apis/discovery_v1/service.rb +9 -15
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +116 -1572
- data/generated/google/apis/dlp_v2/representations.rb +673 -1405
- data/generated/google/apis/dlp_v2/service.rb +24 -24
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +7 -0
- data/generated/google/apis/dns_v1/representations.rb +1 -0
- data/generated/google/apis/dns_v1/service.rb +49 -81
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +7 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +1 -0
- data/generated/google/apis/dns_v1beta2/service.rb +49 -81
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +7 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +1 -0
- data/generated/google/apis/dns_v2beta1/service.rb +49 -81
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +30 -50
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/service.rb +33 -55
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +205 -341
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +120 -200
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +2 -2
- data/generated/google/apis/firestore_v1beta1/service.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +45 -75
- data/generated/google/apis/fusiontables_v1.rb +1 -1
- data/generated/google/apis/fusiontables_v1/service.rb +99 -165
- data/generated/google/apis/fusiontables_v2/service.rb +105 -175
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +42 -70
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/service.rb +84 -140
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/service.rb +162 -270
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +41 -7
- data/generated/google/apis/genomics_v1/representations.rb +1 -0
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +12 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +1 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +70 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +20 -0
- data/generated/google/apis/gmail_v1/service.rb +189 -315
- data/generated/google/apis/groupsmigration_v1/service.rb +6 -10
- data/generated/google/apis/groupssettings_v1/service.rb +12 -20
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +29 -7
- data/generated/google/apis/iam_v1/service.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/service.rb +63 -105
- data/generated/google/apis/jobs_v2.rb +38 -0
- data/generated/google/apis/jobs_v2/classes.rb +3378 -0
- data/generated/google/apis/jobs_v2/representations.rb +1067 -0
- data/generated/google/apis/jobs_v2/service.rb +754 -0
- data/generated/google/apis/licensing_v1/service.rb +24 -40
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +55 -5
- data/generated/google/apis/logging_v2/representations.rb +16 -0
- data/generated/google/apis/logging_v2/service.rb +6 -4
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +55 -5
- data/generated/google/apis/logging_v2beta1/representations.rb +16 -0
- data/generated/google/apis/logging_v2beta1/service.rb +6 -4
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +75 -125
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +65 -28
- data/generated/google/apis/ml_v1/representations.rb +1 -0
- data/generated/google/apis/ml_v1/service.rb +2 -2
- data/generated/google/apis/oauth2_v1.rb +1 -1
- data/generated/google/apis/oauth2_v1/service.rb +27 -45
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +15 -25
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1/classes.rb +6 -0
- data/generated/google/apis/oslogin_v1/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +7 -1
- data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +4 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +6 -0
- data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
- data/generated/google/apis/pagespeedonline_v1.rb +1 -1
- data/generated/google/apis/pagespeedonline_v1/service.rb +6 -10
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/service.rb +6 -10
- data/generated/google/apis/pagespeedonline_v4/service.rb +6 -10
- data/generated/google/apis/photoslibrary_v1.rb +49 -0
- data/generated/google/apis/photoslibrary_v1/classes.rb +1330 -0
- data/generated/google/apis/photoslibrary_v1/representations.rb +625 -0
- data/generated/google/apis/photoslibrary_v1/service.rb +399 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +6 -10
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +63 -105
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +30 -50
- data/generated/google/apis/pubsub_v1.rb +2 -2
- data/generated/google/apis/pubsub_v1/classes.rb +29 -7
- data/generated/google/apis/pubsub_v1/service.rb +1 -1
- data/generated/google/apis/pubsub_v1beta1a.rb +2 -2
- data/generated/google/apis/pubsub_v1beta1a/service.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2.rb +2 -2
- data/generated/google/apis/pubsub_v1beta2/classes.rb +29 -7
- data/generated/google/apis/pubsub_v1beta2/service.rb +1 -1
- data/generated/google/apis/{dlp_v2beta2.rb → redis_v1beta1.rb} +10 -11
- data/generated/google/apis/redis_v1beta1/classes.rb +681 -0
- data/generated/google/apis/redis_v1beta1/representations.rb +240 -0
- data/generated/google/apis/redis_v1beta1/service.rb +426 -0
- data/generated/google/apis/replicapool_v1beta1/service.rb +33 -55
- data/generated/google/apis/replicapool_v1beta2/service.rb +39 -65
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +33 -55
- data/generated/google/apis/reseller_v1/service.rb +54 -90
- data/generated/google/apis/resourceviews_v1beta1/service.rb +45 -75
- data/generated/google/apis/resourceviews_v1beta2/service.rb +36 -60
- data/generated/google/apis/runtimeconfig_v1.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +28 -6
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +1 -1
- data/generated/google/apis/script_v1.rb +8 -2
- data/generated/google/apis/script_v1/classes.rb +3 -3
- data/generated/google/apis/script_v1/service.rb +8 -2
- data/generated/google/apis/servicebroker_v1.rb +36 -0
- data/generated/google/apis/servicebroker_v1/classes.rb +240 -0
- data/generated/google/apis/servicebroker_v1/representations.rb +96 -0
- data/generated/google/apis/servicebroker_v1/service.rb +168 -0
- data/generated/google/apis/servicebroker_v1alpha1.rb +36 -0
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +939 -0
- data/generated/google/apis/servicebroker_v1alpha1/representations.rb +348 -0
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +728 -0
- data/generated/google/apis/servicebroker_v1beta1.rb +36 -0
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +1046 -0
- data/generated/google/apis/servicebroker_v1beta1/representations.rb +393 -0
- data/generated/google/apis/servicebroker_v1beta1/service.rb +917 -0
- data/generated/google/apis/servicecontrol_v1.rb +2 -2
- data/generated/google/apis/servicecontrol_v1/classes.rb +1 -0
- data/generated/google/apis/servicecontrol_v1/service.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +2 -2
- data/generated/google/apis/servicemanagement_v1/classes.rb +29 -7
- data/generated/google/apis/servicemanagement_v1/service.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +299 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +101 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +421 -0
- data/generated/google/apis/sheets_v4/representations.rb +120 -0
- data/generated/google/apis/site_verification_v1/service.rb +24 -40
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +6 -2
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +39 -12
- data/generated/google/apis/spanner_v1/service.rb +2 -2
- data/generated/google/apis/spectrum_v1explorer.rb +1 -1
- data/generated/google/apis/spectrum_v1explorer/service.rb +21 -35
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +12 -0
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/sqladmin_v1beta3.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta3/service.rb +75 -125
- data/generated/google/apis/sqladmin_v1beta4/service.rb +126 -210
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +3 -6
- data/generated/google/apis/storage_v1/service.rb +144 -240
- data/generated/google/apis/storage_v1beta1.rb +1 -1
- data/generated/google/apis/storage_v1beta1/service.rb +75 -125
- data/generated/google/apis/storage_v1beta2.rb +1 -1
- data/generated/google/apis/storage_v1beta2/service.rb +105 -175
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +4 -3
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/surveys_v2/classes.rb +19 -122
- data/generated/google/apis/surveys_v2/representations.rb +0 -38
- data/generated/google/apis/surveys_v2/service.rb +27 -157
- data/generated/google/apis/tagmanager_v1/service.rb +153 -255
- data/generated/google/apis/tagmanager_v2/service.rb +222 -370
- data/generated/google/apis/tasks_v1/service.rb +45 -75
- data/generated/google/apis/texttospeech_v1beta1.rb +2 -2
- data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/service.rb +75 -125
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/urlshortener_v1/service.rb +12 -20
- data/generated/google/apis/vault_v1.rb +2 -2
- data/generated/google/apis/vault_v1/service.rb +1 -1
- data/generated/google/apis/videointelligence_v1.rb +34 -0
- data/generated/google/apis/videointelligence_v1/classes.rb +2149 -0
- data/generated/google/apis/videointelligence_v1/representations.rb +972 -0
- data/generated/google/apis/videointelligence_v1/service.rb +246 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +18 -18
- data/generated/google/apis/{taskqueue_v1beta2.rb → videointelligence_v1beta2.rb} +10 -13
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +2092 -0
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +933 -0
- data/generated/google/apis/videointelligence_v1beta2/service.rb +92 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1441 -62
- data/generated/google/apis/vision_v1/representations.rb +582 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1441 -62
- data/generated/google/apis/vision_v1p1beta1/representations.rb +582 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +63 -3
- data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
- data/generated/google/apis/webfonts_v1/service.rb +6 -10
- data/generated/google/apis/webmasters_v3/service.rb +42 -70
- data/generated/google/apis/websecurityscanner_v1alpha.rb +34 -0
- data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +760 -0
- data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +354 -0
- data/generated/google/apis/websecurityscanner_v1alpha/service.rb +548 -0
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +27 -45
- data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +27 -45
- data/generated/google/apis/youtube_analytics_v2.rb +46 -0
- data/generated/google/apis/youtube_analytics_v2/classes.rb +532 -0
- data/generated/google/apis/youtube_analytics_v2/representations.rb +232 -0
- data/generated/google/apis/youtube_analytics_v2/service.rb +478 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +225 -375
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +0 -168
- data/generated/google/apis/youtube_v3/representations.rb +0 -62
- data/generated/google/apis/youtube_v3/service.rb +216 -415
- data/lib/google/apis/generator/helpers.rb +3 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +50 -38
- data/generated/google/apis/dlp_v2beta1/classes.rb +0 -3820
- data/generated/google/apis/dlp_v2beta1/representations.rb +0 -1879
- data/generated/google/apis/dlp_v2beta1/service.rb +0 -603
- data/generated/google/apis/dlp_v2beta2/classes.rb +0 -6386
- data/generated/google/apis/dlp_v2beta2/representations.rb +0 -3085
- data/generated/google/apis/dlp_v2beta2/service.rb +0 -1332
- data/generated/google/apis/prediction_v1_2.rb +0 -44
- data/generated/google/apis/prediction_v1_2/classes.rb +0 -237
- data/generated/google/apis/prediction_v1_2/representations.rb +0 -133
- data/generated/google/apis/prediction_v1_2/service.rb +0 -287
- data/generated/google/apis/prediction_v1_3.rb +0 -44
- data/generated/google/apis/prediction_v1_3/classes.rb +0 -286
- data/generated/google/apis/prediction_v1_3/representations.rb +0 -139
- data/generated/google/apis/prediction_v1_3/service.rb +0 -284
- data/generated/google/apis/prediction_v1_4.rb +0 -44
- data/generated/google/apis/prediction_v1_4/classes.rb +0 -336
- data/generated/google/apis/prediction_v1_4/representations.rb +0 -158
- data/generated/google/apis/prediction_v1_4/service.rb +0 -284
- data/generated/google/apis/prediction_v1_5.rb +0 -44
- data/generated/google/apis/prediction_v1_5/classes.rb +0 -708
- data/generated/google/apis/prediction_v1_5/representations.rb +0 -352
- data/generated/google/apis/prediction_v1_5/service.rb +0 -357
- data/generated/google/apis/prediction_v1_6.rb +0 -47
- data/generated/google/apis/prediction_v1_6/classes.rb +0 -751
- data/generated/google/apis/prediction_v1_6/representations.rb +0 -369
- data/generated/google/apis/prediction_v1_6/service.rb +0 -381
- data/generated/google/apis/taskqueue_v1beta1.rb +0 -37
- data/generated/google/apis/taskqueue_v1beta1/classes.rb +0 -242
- data/generated/google/apis/taskqueue_v1beta1/representations.rb +0 -124
- data/generated/google/apis/taskqueue_v1beta1/service.rb +0 -269
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +0 -254
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +0 -126
- data/generated/google/apis/taskqueue_v1beta2/service.rb +0 -409
@@ -0,0 +1,92 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module VideointelligenceV1beta2
|
23
|
+
# Cloud Video Intelligence API
|
24
|
+
#
|
25
|
+
# Cloud Video Intelligence API.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/videointelligence_v1beta2'
|
29
|
+
#
|
30
|
+
# Videointelligence = Google::Apis::VideointelligenceV1beta2 # Alias the module
|
31
|
+
# service = Videointelligence::CloudVideoIntelligenceService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/video-intelligence/docs/
|
34
|
+
class CloudVideoIntelligenceService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://videointelligence.googleapis.com/', '')
|
47
|
+
@batch_path = 'batch'
|
48
|
+
end
|
49
|
+
|
50
|
+
# Performs asynchronous video annotation. Progress and results can be
|
51
|
+
# retrieved through the `google.longrunning.Operations` interface.
|
52
|
+
# `Operation.metadata` contains `AnnotateVideoProgress` (progress).
|
53
|
+
# `Operation.response` contains `AnnotateVideoResponse` (results).
|
54
|
+
# @param [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2AnnotateVideoRequest] google_cloud_videointelligence_v1beta2_annotate_video_request_object
|
55
|
+
# @param [String] fields
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
57
|
+
# @param [String] quota_user
|
58
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
59
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60
|
+
# @param [Google::Apis::RequestOptions] options
|
61
|
+
# Request-specific options
|
62
|
+
#
|
63
|
+
# @yield [result, err] Result & error if block supplied
|
64
|
+
# @yieldparam result [Google::Apis::VideointelligenceV1beta2::GoogleLongrunningOperation] parsed result object
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
66
|
+
#
|
67
|
+
# @return [Google::Apis::VideointelligenceV1beta2::GoogleLongrunningOperation]
|
68
|
+
#
|
69
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
+
def annotate_video(google_cloud_videointelligence_v1beta2_annotate_video_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
73
|
+
command = make_simple_command(:post, 'v1beta2/videos:annotate', options)
|
74
|
+
command.request_representation = Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2AnnotateVideoRequest::Representation
|
75
|
+
command.request_object = google_cloud_videointelligence_v1beta2_annotate_video_request_object
|
76
|
+
command.response_representation = Google::Apis::VideointelligenceV1beta2::GoogleLongrunningOperation::Representation
|
77
|
+
command.response_class = Google::Apis::VideointelligenceV1beta2::GoogleLongrunningOperation
|
78
|
+
command.query['fields'] = fields unless fields.nil?
|
79
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
80
|
+
execute_or_queue_command(command, &block)
|
81
|
+
end
|
82
|
+
|
83
|
+
protected
|
84
|
+
|
85
|
+
def apply_command_defaults(command)
|
86
|
+
command.query['key'] = key unless key.nil?
|
87
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -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 = '20180416'
|
31
31
|
|
32
32
|
# View and manage your data across Google Cloud Platform services
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -959,6 +959,164 @@ module Google
|
|
959
959
|
end
|
960
960
|
end
|
961
961
|
|
962
|
+
# Response to a single file annotation request. A file may contain one or more
|
963
|
+
# images, which individually have their own responses.
|
964
|
+
class GoogleCloudVisionV1p2beta1AnnotateFileResponse
|
965
|
+
include Google::Apis::Core::Hashable
|
966
|
+
|
967
|
+
# The desired input location and metadata.
|
968
|
+
# Corresponds to the JSON property `inputConfig`
|
969
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1InputConfig]
|
970
|
+
attr_accessor :input_config
|
971
|
+
|
972
|
+
# Individual responses to images found within the file.
|
973
|
+
# Corresponds to the JSON property `responses`
|
974
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1AnnotateImageResponse>]
|
975
|
+
attr_accessor :responses
|
976
|
+
|
977
|
+
def initialize(**args)
|
978
|
+
update!(**args)
|
979
|
+
end
|
980
|
+
|
981
|
+
# Update properties of this object
|
982
|
+
def update!(**args)
|
983
|
+
@input_config = args[:input_config] if args.key?(:input_config)
|
984
|
+
@responses = args[:responses] if args.key?(:responses)
|
985
|
+
end
|
986
|
+
end
|
987
|
+
|
988
|
+
# Response to an image annotation request.
|
989
|
+
class GoogleCloudVisionV1p2beta1AnnotateImageResponse
|
990
|
+
include Google::Apis::Core::Hashable
|
991
|
+
|
992
|
+
# If an image was produced from a file (e.g. a PDF), this message gives
|
993
|
+
# information about the source of that image.
|
994
|
+
# Corresponds to the JSON property `context`
|
995
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ImageAnnotationContext]
|
996
|
+
attr_accessor :context
|
997
|
+
|
998
|
+
# Set of crop hints that are used to generate new crops when serving images.
|
999
|
+
# Corresponds to the JSON property `cropHintsAnnotation`
|
1000
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1CropHintsAnnotation]
|
1001
|
+
attr_accessor :crop_hints_annotation
|
1002
|
+
|
1003
|
+
# The `Status` type defines a logical error model that is suitable for different
|
1004
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
1005
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
1006
|
+
# - Simple to use and understand for most users
|
1007
|
+
# - Flexible enough to meet unexpected needs
|
1008
|
+
# # Overview
|
1009
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
1010
|
+
# and error details. The error code should be an enum value of
|
1011
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
1012
|
+
# error message should be a developer-facing English message that helps
|
1013
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
1014
|
+
# error message is needed, put the localized message in the error details or
|
1015
|
+
# localize it in the client. The optional error details may contain arbitrary
|
1016
|
+
# information about the error. There is a predefined set of error detail types
|
1017
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
1018
|
+
# # Language mapping
|
1019
|
+
# The `Status` message is the logical representation of the error model, but it
|
1020
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
1021
|
+
# exposed in different client libraries and different wire protocols, it can be
|
1022
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
1023
|
+
# in Java, but more likely mapped to some error codes in C.
|
1024
|
+
# # Other uses
|
1025
|
+
# The error model and the `Status` message can be used in a variety of
|
1026
|
+
# environments, either with or without APIs, to provide a
|
1027
|
+
# consistent developer experience across different environments.
|
1028
|
+
# Example uses of this error model include:
|
1029
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
1030
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
1031
|
+
# errors.
|
1032
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
1033
|
+
# have a `Status` message for error reporting.
|
1034
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
1035
|
+
# `Status` message should be used directly inside batch response, one for
|
1036
|
+
# each error sub-response.
|
1037
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
1038
|
+
# results in its response, the status of those operations should be
|
1039
|
+
# represented directly using the `Status` message.
|
1040
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
1041
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
1042
|
+
# Corresponds to the JSON property `error`
|
1043
|
+
# @return [Google::Apis::VisionV1::Status]
|
1044
|
+
attr_accessor :error
|
1045
|
+
|
1046
|
+
# If present, face detection has completed successfully.
|
1047
|
+
# Corresponds to the JSON property `faceAnnotations`
|
1048
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1FaceAnnotation>]
|
1049
|
+
attr_accessor :face_annotations
|
1050
|
+
|
1051
|
+
# TextAnnotation contains a structured representation of OCR extracted text.
|
1052
|
+
# The hierarchy of an OCR extracted text structure is like this:
|
1053
|
+
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
1054
|
+
# Each structural component, starting from Page, may further have their own
|
1055
|
+
# properties. Properties describe detected languages, breaks etc.. Please refer
|
1056
|
+
# to the TextAnnotation.TextProperty message definition below for more
|
1057
|
+
# detail.
|
1058
|
+
# Corresponds to the JSON property `fullTextAnnotation`
|
1059
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotation]
|
1060
|
+
attr_accessor :full_text_annotation
|
1061
|
+
|
1062
|
+
# Stores image properties, such as dominant colors.
|
1063
|
+
# Corresponds to the JSON property `imagePropertiesAnnotation`
|
1064
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ImageProperties]
|
1065
|
+
attr_accessor :image_properties_annotation
|
1066
|
+
|
1067
|
+
# If present, label detection has completed successfully.
|
1068
|
+
# Corresponds to the JSON property `labelAnnotations`
|
1069
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
|
1070
|
+
attr_accessor :label_annotations
|
1071
|
+
|
1072
|
+
# If present, landmark detection has completed successfully.
|
1073
|
+
# Corresponds to the JSON property `landmarkAnnotations`
|
1074
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
|
1075
|
+
attr_accessor :landmark_annotations
|
1076
|
+
|
1077
|
+
# If present, logo detection has completed successfully.
|
1078
|
+
# Corresponds to the JSON property `logoAnnotations`
|
1079
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
|
1080
|
+
attr_accessor :logo_annotations
|
1081
|
+
|
1082
|
+
# Set of features pertaining to the image, computed by computer vision
|
1083
|
+
# methods over safe-search verticals (for example, adult, spoof, medical,
|
1084
|
+
# violence).
|
1085
|
+
# Corresponds to the JSON property `safeSearchAnnotation`
|
1086
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1SafeSearchAnnotation]
|
1087
|
+
attr_accessor :safe_search_annotation
|
1088
|
+
|
1089
|
+
# If present, text (OCR) detection has completed successfully.
|
1090
|
+
# Corresponds to the JSON property `textAnnotations`
|
1091
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
|
1092
|
+
attr_accessor :text_annotations
|
1093
|
+
|
1094
|
+
# Relevant information for the image from the Internet.
|
1095
|
+
# Corresponds to the JSON property `webDetection`
|
1096
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetection]
|
1097
|
+
attr_accessor :web_detection
|
1098
|
+
|
1099
|
+
def initialize(**args)
|
1100
|
+
update!(**args)
|
1101
|
+
end
|
1102
|
+
|
1103
|
+
# Update properties of this object
|
1104
|
+
def update!(**args)
|
1105
|
+
@context = args[:context] if args.key?(:context)
|
1106
|
+
@crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
|
1107
|
+
@error = args[:error] if args.key?(:error)
|
1108
|
+
@face_annotations = args[:face_annotations] if args.key?(:face_annotations)
|
1109
|
+
@full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
|
1110
|
+
@image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
|
1111
|
+
@label_annotations = args[:label_annotations] if args.key?(:label_annotations)
|
1112
|
+
@landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
|
1113
|
+
@logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
|
1114
|
+
@safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
|
1115
|
+
@text_annotations = args[:text_annotations] if args.key?(:text_annotations)
|
1116
|
+
@web_detection = args[:web_detection] if args.key?(:web_detection)
|
1117
|
+
end
|
1118
|
+
end
|
1119
|
+
|
962
1120
|
# The response for a single offline file annotation request.
|
963
1121
|
class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse
|
964
1122
|
include Google::Apis::Core::Hashable
|
@@ -998,25 +1156,34 @@ module Google
|
|
998
1156
|
end
|
999
1157
|
end
|
1000
1158
|
|
1001
|
-
#
|
1002
|
-
class
|
1159
|
+
# Logical element on the page.
|
1160
|
+
class GoogleCloudVisionV1p2beta1Block
|
1003
1161
|
include Google::Apis::Core::Hashable
|
1004
1162
|
|
1005
|
-
#
|
1006
|
-
#
|
1007
|
-
# can either represent a single file, or a prefix for multiple outputs.
|
1008
|
-
# Prefixes must end in a `/`.
|
1009
|
-
# Examples:
|
1010
|
-
# * File: gs://bucket-name/filename.json
|
1011
|
-
# * Prefix: gs://bucket-name/prefix/here/
|
1012
|
-
# * File: gs://bucket-name/prefix/here
|
1013
|
-
# If multiple outputs, each response is still AnnotateFileResponse, each of
|
1014
|
-
# which contains some subset of the full list of AnnotateImageResponse.
|
1015
|
-
# Multiple outputs can happen if, for example, the output JSON is too large
|
1016
|
-
# and overflows into multiple sharded files.
|
1017
|
-
# Corresponds to the JSON property `uri`
|
1163
|
+
# Detected block type (text, image etc) for this block.
|
1164
|
+
# Corresponds to the JSON property `blockType`
|
1018
1165
|
# @return [String]
|
1019
|
-
attr_accessor :
|
1166
|
+
attr_accessor :block_type
|
1167
|
+
|
1168
|
+
# A bounding polygon for the detected image annotation.
|
1169
|
+
# Corresponds to the JSON property `boundingBox`
|
1170
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
1171
|
+
attr_accessor :bounding_box
|
1172
|
+
|
1173
|
+
# Confidence of the OCR results on the block. Range [0, 1].
|
1174
|
+
# Corresponds to the JSON property `confidence`
|
1175
|
+
# @return [Float]
|
1176
|
+
attr_accessor :confidence
|
1177
|
+
|
1178
|
+
# List of paragraphs in this block (if this blocks is of type text).
|
1179
|
+
# Corresponds to the JSON property `paragraphs`
|
1180
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Paragraph>]
|
1181
|
+
attr_accessor :paragraphs
|
1182
|
+
|
1183
|
+
# Additional information detected on the structural component.
|
1184
|
+
# Corresponds to the JSON property `property`
|
1185
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
|
1186
|
+
attr_accessor :property
|
1020
1187
|
|
1021
1188
|
def initialize(**args)
|
1022
1189
|
update!(**args)
|
@@ -1024,28 +1191,27 @@ module Google
|
|
1024
1191
|
|
1025
1192
|
# Update properties of this object
|
1026
1193
|
def update!(**args)
|
1027
|
-
@
|
1194
|
+
@block_type = args[:block_type] if args.key?(:block_type)
|
1195
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
1196
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
1197
|
+
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
1198
|
+
@property = args[:property] if args.key?(:property)
|
1028
1199
|
end
|
1029
1200
|
end
|
1030
1201
|
|
1031
|
-
#
|
1032
|
-
class
|
1202
|
+
# A bounding polygon for the detected image annotation.
|
1203
|
+
class GoogleCloudVisionV1p2beta1BoundingPoly
|
1033
1204
|
include Google::Apis::Core::Hashable
|
1034
1205
|
|
1035
|
-
# The
|
1036
|
-
# Corresponds to the JSON property `
|
1037
|
-
# @return [
|
1038
|
-
attr_accessor :
|
1039
|
-
|
1040
|
-
# Current state of the batch operation.
|
1041
|
-
# Corresponds to the JSON property `state`
|
1042
|
-
# @return [String]
|
1043
|
-
attr_accessor :state
|
1206
|
+
# The bounding polygon normalized vertices.
|
1207
|
+
# Corresponds to the JSON property `normalizedVertices`
|
1208
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1NormalizedVertex>]
|
1209
|
+
attr_accessor :normalized_vertices
|
1044
1210
|
|
1045
|
-
# The
|
1046
|
-
# Corresponds to the JSON property `
|
1047
|
-
# @return [
|
1048
|
-
attr_accessor :
|
1211
|
+
# The bounding polygon vertices.
|
1212
|
+
# Corresponds to the JSON property `vertices`
|
1213
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Vertex>]
|
1214
|
+
attr_accessor :vertices
|
1049
1215
|
|
1050
1216
|
def initialize(**args)
|
1051
1217
|
update!(**args)
|
@@ -1053,41 +1219,1254 @@ module Google
|
|
1053
1219
|
|
1054
1220
|
# Update properties of this object
|
1055
1221
|
def update!(**args)
|
1056
|
-
@
|
1057
|
-
@
|
1058
|
-
@update_time = args[:update_time] if args.key?(:update_time)
|
1222
|
+
@normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
|
1223
|
+
@vertices = args[:vertices] if args.key?(:vertices)
|
1059
1224
|
end
|
1060
1225
|
end
|
1061
1226
|
|
1062
|
-
#
|
1063
|
-
|
1227
|
+
# Color information consists of RGB channels, score, and the fraction of
|
1228
|
+
# the image that the color occupies in the image.
|
1229
|
+
class GoogleCloudVisionV1p2beta1ColorInfo
|
1064
1230
|
include Google::Apis::Core::Hashable
|
1065
1231
|
|
1066
|
-
#
|
1067
|
-
#
|
1068
|
-
#
|
1069
|
-
# be
|
1070
|
-
#
|
1071
|
-
#
|
1072
|
-
#
|
1073
|
-
#
|
1074
|
-
#
|
1075
|
-
#
|
1076
|
-
|
1077
|
-
|
1078
|
-
#
|
1079
|
-
#
|
1080
|
-
#
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
#
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1232
|
+
# Represents a color in the RGBA color space. This representation is designed
|
1233
|
+
# for simplicity of conversion to/from color representations in various
|
1234
|
+
# languages over compactness; for example, the fields of this representation
|
1235
|
+
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
|
1236
|
+
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
1237
|
+
# method in iOS; and, with just a little work, it can be easily formatted into
|
1238
|
+
# a CSS "rgba()" string in JavaScript, as well. Here are some examples:
|
1239
|
+
# Example (Java):
|
1240
|
+
# import com.google.type.Color;
|
1241
|
+
# // ...
|
1242
|
+
# public static java.awt.Color fromProto(Color protocolor) `
|
1243
|
+
# float alpha = protocolor.hasAlpha()
|
1244
|
+
# ? protocolor.getAlpha().getValue()
|
1245
|
+
# : 1.0;
|
1246
|
+
# return new java.awt.Color(
|
1247
|
+
# protocolor.getRed(),
|
1248
|
+
# protocolor.getGreen(),
|
1249
|
+
# protocolor.getBlue(),
|
1250
|
+
# alpha);
|
1251
|
+
# `
|
1252
|
+
# public static Color toProto(java.awt.Color color) `
|
1253
|
+
# float red = (float) color.getRed();
|
1254
|
+
# float green = (float) color.getGreen();
|
1255
|
+
# float blue = (float) color.getBlue();
|
1256
|
+
# float denominator = 255.0;
|
1257
|
+
# Color.Builder resultBuilder =
|
1258
|
+
# Color
|
1259
|
+
# .newBuilder()
|
1260
|
+
# .setRed(red / denominator)
|
1261
|
+
# .setGreen(green / denominator)
|
1262
|
+
# .setBlue(blue / denominator);
|
1263
|
+
# int alpha = color.getAlpha();
|
1264
|
+
# if (alpha != 255) `
|
1265
|
+
# result.setAlpha(
|
1266
|
+
# FloatValue
|
1267
|
+
# .newBuilder()
|
1268
|
+
# .setValue(((float) alpha) / denominator)
|
1269
|
+
# .build());
|
1270
|
+
# `
|
1271
|
+
# return resultBuilder.build();
|
1272
|
+
# `
|
1273
|
+
# // ...
|
1274
|
+
# Example (iOS / Obj-C):
|
1275
|
+
# // ...
|
1276
|
+
# static UIColor* fromProto(Color* protocolor) `
|
1277
|
+
# float red = [protocolor red];
|
1278
|
+
# float green = [protocolor green];
|
1279
|
+
# float blue = [protocolor blue];
|
1280
|
+
# FloatValue* alpha_wrapper = [protocolor alpha];
|
1281
|
+
# float alpha = 1.0;
|
1282
|
+
# if (alpha_wrapper != nil) `
|
1283
|
+
# alpha = [alpha_wrapper value];
|
1284
|
+
# `
|
1285
|
+
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
|
1286
|
+
# `
|
1287
|
+
# static Color* toProto(UIColor* color) `
|
1288
|
+
# CGFloat red, green, blue, alpha;
|
1289
|
+
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
|
1290
|
+
# return nil;
|
1291
|
+
# `
|
1292
|
+
# Color* result = [Color alloc] init];
|
1293
|
+
# [result setRed:red];
|
1294
|
+
# [result setGreen:green];
|
1295
|
+
# [result setBlue:blue];
|
1296
|
+
# if (alpha <= 0.9999) `
|
1297
|
+
# [result setAlpha:floatWrapperWithValue(alpha)];
|
1298
|
+
# `
|
1299
|
+
# [result autorelease];
|
1300
|
+
# return result;
|
1301
|
+
# `
|
1302
|
+
# // ...
|
1303
|
+
# Example (JavaScript):
|
1304
|
+
# // ...
|
1305
|
+
# var protoToCssColor = function(rgb_color) `
|
1306
|
+
# var redFrac = rgb_color.red || 0.0;
|
1307
|
+
# var greenFrac = rgb_color.green || 0.0;
|
1308
|
+
# var blueFrac = rgb_color.blue || 0.0;
|
1309
|
+
# var red = Math.floor(redFrac * 255);
|
1310
|
+
# var green = Math.floor(greenFrac * 255);
|
1311
|
+
# var blue = Math.floor(blueFrac * 255);
|
1312
|
+
# if (!('alpha' in rgb_color)) `
|
1313
|
+
# return rgbToCssColor_(red, green, blue);
|
1314
|
+
# `
|
1315
|
+
# var alphaFrac = rgb_color.alpha.value || 0.0;
|
1316
|
+
# var rgbParams = [red, green, blue].join(',');
|
1317
|
+
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
|
1318
|
+
# `;
|
1319
|
+
# var rgbToCssColor_ = function(red, green, blue) `
|
1320
|
+
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
|
1321
|
+
# var hexString = rgbNumber.toString(16);
|
1322
|
+
# var missingZeros = 6 - hexString.length;
|
1323
|
+
# var resultBuilder = ['#'];
|
1324
|
+
# for (var i = 0; i < missingZeros; i++) `
|
1325
|
+
# resultBuilder.push('0');
|
1326
|
+
# `
|
1327
|
+
# resultBuilder.push(hexString);
|
1328
|
+
# return resultBuilder.join('');
|
1329
|
+
# `;
|
1330
|
+
# // ...
|
1331
|
+
# Corresponds to the JSON property `color`
|
1332
|
+
# @return [Google::Apis::VisionV1::Color]
|
1333
|
+
attr_accessor :color
|
1334
|
+
|
1335
|
+
# The fraction of pixels the color occupies in the image.
|
1336
|
+
# Value in range [0, 1].
|
1337
|
+
# Corresponds to the JSON property `pixelFraction`
|
1338
|
+
# @return [Float]
|
1339
|
+
attr_accessor :pixel_fraction
|
1340
|
+
|
1341
|
+
# Image-specific score for this color. Value in range [0, 1].
|
1342
|
+
# Corresponds to the JSON property `score`
|
1343
|
+
# @return [Float]
|
1344
|
+
attr_accessor :score
|
1345
|
+
|
1346
|
+
def initialize(**args)
|
1347
|
+
update!(**args)
|
1348
|
+
end
|
1349
|
+
|
1350
|
+
# Update properties of this object
|
1351
|
+
def update!(**args)
|
1352
|
+
@color = args[:color] if args.key?(:color)
|
1353
|
+
@pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction)
|
1354
|
+
@score = args[:score] if args.key?(:score)
|
1355
|
+
end
|
1356
|
+
end
|
1357
|
+
|
1358
|
+
# Single crop hint that is used to generate a new crop when serving an image.
|
1359
|
+
class GoogleCloudVisionV1p2beta1CropHint
|
1360
|
+
include Google::Apis::Core::Hashable
|
1361
|
+
|
1362
|
+
# A bounding polygon for the detected image annotation.
|
1363
|
+
# Corresponds to the JSON property `boundingPoly`
|
1364
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
1365
|
+
attr_accessor :bounding_poly
|
1366
|
+
|
1367
|
+
# Confidence of this being a salient region. Range [0, 1].
|
1368
|
+
# Corresponds to the JSON property `confidence`
|
1369
|
+
# @return [Float]
|
1370
|
+
attr_accessor :confidence
|
1371
|
+
|
1372
|
+
# Fraction of importance of this salient region with respect to the original
|
1373
|
+
# image.
|
1374
|
+
# Corresponds to the JSON property `importanceFraction`
|
1375
|
+
# @return [Float]
|
1376
|
+
attr_accessor :importance_fraction
|
1377
|
+
|
1378
|
+
def initialize(**args)
|
1379
|
+
update!(**args)
|
1380
|
+
end
|
1381
|
+
|
1382
|
+
# Update properties of this object
|
1383
|
+
def update!(**args)
|
1384
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
1385
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
1386
|
+
@importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction)
|
1387
|
+
end
|
1388
|
+
end
|
1389
|
+
|
1390
|
+
# Set of crop hints that are used to generate new crops when serving images.
|
1391
|
+
class GoogleCloudVisionV1p2beta1CropHintsAnnotation
|
1392
|
+
include Google::Apis::Core::Hashable
|
1393
|
+
|
1394
|
+
# Crop hint results.
|
1395
|
+
# Corresponds to the JSON property `cropHints`
|
1396
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1CropHint>]
|
1397
|
+
attr_accessor :crop_hints
|
1398
|
+
|
1399
|
+
def initialize(**args)
|
1400
|
+
update!(**args)
|
1401
|
+
end
|
1402
|
+
|
1403
|
+
# Update properties of this object
|
1404
|
+
def update!(**args)
|
1405
|
+
@crop_hints = args[:crop_hints] if args.key?(:crop_hints)
|
1406
|
+
end
|
1407
|
+
end
|
1408
|
+
|
1409
|
+
# Set of dominant colors and their corresponding scores.
|
1410
|
+
class GoogleCloudVisionV1p2beta1DominantColorsAnnotation
|
1411
|
+
include Google::Apis::Core::Hashable
|
1412
|
+
|
1413
|
+
# RGB color values with their score and pixel fraction.
|
1414
|
+
# Corresponds to the JSON property `colors`
|
1415
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ColorInfo>]
|
1416
|
+
attr_accessor :colors
|
1417
|
+
|
1418
|
+
def initialize(**args)
|
1419
|
+
update!(**args)
|
1420
|
+
end
|
1421
|
+
|
1422
|
+
# Update properties of this object
|
1423
|
+
def update!(**args)
|
1424
|
+
@colors = args[:colors] if args.key?(:colors)
|
1425
|
+
end
|
1426
|
+
end
|
1427
|
+
|
1428
|
+
# Set of detected entity features.
|
1429
|
+
class GoogleCloudVisionV1p2beta1EntityAnnotation
|
1430
|
+
include Google::Apis::Core::Hashable
|
1431
|
+
|
1432
|
+
# A bounding polygon for the detected image annotation.
|
1433
|
+
# Corresponds to the JSON property `boundingPoly`
|
1434
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
1435
|
+
attr_accessor :bounding_poly
|
1436
|
+
|
1437
|
+
# **Deprecated. Use `score` instead.**
|
1438
|
+
# The accuracy of the entity detection in an image.
|
1439
|
+
# For example, for an image in which the "Eiffel Tower" entity is detected,
|
1440
|
+
# this field represents the confidence that there is a tower in the query
|
1441
|
+
# image. Range [0, 1].
|
1442
|
+
# Corresponds to the JSON property `confidence`
|
1443
|
+
# @return [Float]
|
1444
|
+
attr_accessor :confidence
|
1445
|
+
|
1446
|
+
# Entity textual description, expressed in its `locale` language.
|
1447
|
+
# Corresponds to the JSON property `description`
|
1448
|
+
# @return [String]
|
1449
|
+
attr_accessor :description
|
1450
|
+
|
1451
|
+
# The language code for the locale in which the entity textual
|
1452
|
+
# `description` is expressed.
|
1453
|
+
# Corresponds to the JSON property `locale`
|
1454
|
+
# @return [String]
|
1455
|
+
attr_accessor :locale
|
1456
|
+
|
1457
|
+
# The location information for the detected entity. Multiple
|
1458
|
+
# `LocationInfo` elements can be present because one location may
|
1459
|
+
# indicate the location of the scene in the image, and another location
|
1460
|
+
# may indicate the location of the place where the image was taken.
|
1461
|
+
# Location information is usually present for landmarks.
|
1462
|
+
# Corresponds to the JSON property `locations`
|
1463
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1LocationInfo>]
|
1464
|
+
attr_accessor :locations
|
1465
|
+
|
1466
|
+
# Opaque entity ID. Some IDs may be available in
|
1467
|
+
# [Google Knowledge Graph Search
|
1468
|
+
# API](https://developers.google.com/knowledge-graph/).
|
1469
|
+
# Corresponds to the JSON property `mid`
|
1470
|
+
# @return [String]
|
1471
|
+
attr_accessor :mid
|
1472
|
+
|
1473
|
+
# Some entities may have optional user-supplied `Property` (name/value)
|
1474
|
+
# fields, such a score or string that qualifies the entity.
|
1475
|
+
# Corresponds to the JSON property `properties`
|
1476
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Property>]
|
1477
|
+
attr_accessor :properties
|
1478
|
+
|
1479
|
+
# Overall score of the result. Range [0, 1].
|
1480
|
+
# Corresponds to the JSON property `score`
|
1481
|
+
# @return [Float]
|
1482
|
+
attr_accessor :score
|
1483
|
+
|
1484
|
+
# The relevancy of the ICA (Image Content Annotation) label to the
|
1485
|
+
# image. For example, the relevancy of "tower" is likely higher to an image
|
1486
|
+
# containing the detected "Eiffel Tower" than to an image containing a
|
1487
|
+
# detected distant towering building, even though the confidence that
|
1488
|
+
# there is a tower in each image may be the same. Range [0, 1].
|
1489
|
+
# Corresponds to the JSON property `topicality`
|
1490
|
+
# @return [Float]
|
1491
|
+
attr_accessor :topicality
|
1492
|
+
|
1493
|
+
def initialize(**args)
|
1494
|
+
update!(**args)
|
1495
|
+
end
|
1496
|
+
|
1497
|
+
# Update properties of this object
|
1498
|
+
def update!(**args)
|
1499
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
1500
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
1501
|
+
@description = args[:description] if args.key?(:description)
|
1502
|
+
@locale = args[:locale] if args.key?(:locale)
|
1503
|
+
@locations = args[:locations] if args.key?(:locations)
|
1504
|
+
@mid = args[:mid] if args.key?(:mid)
|
1505
|
+
@properties = args[:properties] if args.key?(:properties)
|
1506
|
+
@score = args[:score] if args.key?(:score)
|
1507
|
+
@topicality = args[:topicality] if args.key?(:topicality)
|
1508
|
+
end
|
1509
|
+
end
|
1510
|
+
|
1511
|
+
# A face annotation object contains the results of face detection.
|
1512
|
+
class GoogleCloudVisionV1p2beta1FaceAnnotation
|
1513
|
+
include Google::Apis::Core::Hashable
|
1514
|
+
|
1515
|
+
# Anger likelihood.
|
1516
|
+
# Corresponds to the JSON property `angerLikelihood`
|
1517
|
+
# @return [String]
|
1518
|
+
attr_accessor :anger_likelihood
|
1519
|
+
|
1520
|
+
# Blurred likelihood.
|
1521
|
+
# Corresponds to the JSON property `blurredLikelihood`
|
1522
|
+
# @return [String]
|
1523
|
+
attr_accessor :blurred_likelihood
|
1524
|
+
|
1525
|
+
# A bounding polygon for the detected image annotation.
|
1526
|
+
# Corresponds to the JSON property `boundingPoly`
|
1527
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
1528
|
+
attr_accessor :bounding_poly
|
1529
|
+
|
1530
|
+
# Detection confidence. Range [0, 1].
|
1531
|
+
# Corresponds to the JSON property `detectionConfidence`
|
1532
|
+
# @return [Float]
|
1533
|
+
attr_accessor :detection_confidence
|
1534
|
+
|
1535
|
+
# A bounding polygon for the detected image annotation.
|
1536
|
+
# Corresponds to the JSON property `fdBoundingPoly`
|
1537
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
1538
|
+
attr_accessor :fd_bounding_poly
|
1539
|
+
|
1540
|
+
# Headwear likelihood.
|
1541
|
+
# Corresponds to the JSON property `headwearLikelihood`
|
1542
|
+
# @return [String]
|
1543
|
+
attr_accessor :headwear_likelihood
|
1544
|
+
|
1545
|
+
# Joy likelihood.
|
1546
|
+
# Corresponds to the JSON property `joyLikelihood`
|
1547
|
+
# @return [String]
|
1548
|
+
attr_accessor :joy_likelihood
|
1549
|
+
|
1550
|
+
# Face landmarking confidence. Range [0, 1].
|
1551
|
+
# Corresponds to the JSON property `landmarkingConfidence`
|
1552
|
+
# @return [Float]
|
1553
|
+
attr_accessor :landmarking_confidence
|
1554
|
+
|
1555
|
+
# Detected face landmarks.
|
1556
|
+
# Corresponds to the JSON property `landmarks`
|
1557
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1FaceAnnotationLandmark>]
|
1558
|
+
attr_accessor :landmarks
|
1559
|
+
|
1560
|
+
# Yaw angle, which indicates the leftward/rightward angle that the face is
|
1561
|
+
# pointing relative to the vertical plane perpendicular to the image. Range
|
1562
|
+
# [-180,180].
|
1563
|
+
# Corresponds to the JSON property `panAngle`
|
1564
|
+
# @return [Float]
|
1565
|
+
attr_accessor :pan_angle
|
1566
|
+
|
1567
|
+
# Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
|
1568
|
+
# of the face relative to the image vertical about the axis perpendicular to
|
1569
|
+
# the face. Range [-180,180].
|
1570
|
+
# Corresponds to the JSON property `rollAngle`
|
1571
|
+
# @return [Float]
|
1572
|
+
attr_accessor :roll_angle
|
1573
|
+
|
1574
|
+
# Sorrow likelihood.
|
1575
|
+
# Corresponds to the JSON property `sorrowLikelihood`
|
1576
|
+
# @return [String]
|
1577
|
+
attr_accessor :sorrow_likelihood
|
1578
|
+
|
1579
|
+
# Surprise likelihood.
|
1580
|
+
# Corresponds to the JSON property `surpriseLikelihood`
|
1581
|
+
# @return [String]
|
1582
|
+
attr_accessor :surprise_likelihood
|
1583
|
+
|
1584
|
+
# Pitch angle, which indicates the upwards/downwards angle that the face is
|
1585
|
+
# pointing relative to the image's horizontal plane. Range [-180,180].
|
1586
|
+
# Corresponds to the JSON property `tiltAngle`
|
1587
|
+
# @return [Float]
|
1588
|
+
attr_accessor :tilt_angle
|
1589
|
+
|
1590
|
+
# Under-exposed likelihood.
|
1591
|
+
# Corresponds to the JSON property `underExposedLikelihood`
|
1592
|
+
# @return [String]
|
1593
|
+
attr_accessor :under_exposed_likelihood
|
1594
|
+
|
1595
|
+
def initialize(**args)
|
1596
|
+
update!(**args)
|
1597
|
+
end
|
1598
|
+
|
1599
|
+
# Update properties of this object
|
1600
|
+
def update!(**args)
|
1601
|
+
@anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood)
|
1602
|
+
@blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood)
|
1603
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
1604
|
+
@detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence)
|
1605
|
+
@fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly)
|
1606
|
+
@headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood)
|
1607
|
+
@joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood)
|
1608
|
+
@landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
|
1609
|
+
@landmarks = args[:landmarks] if args.key?(:landmarks)
|
1610
|
+
@pan_angle = args[:pan_angle] if args.key?(:pan_angle)
|
1611
|
+
@roll_angle = args[:roll_angle] if args.key?(:roll_angle)
|
1612
|
+
@sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood)
|
1613
|
+
@surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
|
1614
|
+
@tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle)
|
1615
|
+
@under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood)
|
1616
|
+
end
|
1617
|
+
end
|
1618
|
+
|
1619
|
+
# A face-specific landmark (for example, a face feature).
|
1620
|
+
class GoogleCloudVisionV1p2beta1FaceAnnotationLandmark
|
1621
|
+
include Google::Apis::Core::Hashable
|
1622
|
+
|
1623
|
+
# A 3D position in the image, used primarily for Face detection landmarks.
|
1624
|
+
# A valid Position must have both x and y coordinates.
|
1625
|
+
# The position coordinates are in the same scale as the original image.
|
1626
|
+
# Corresponds to the JSON property `position`
|
1627
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Position]
|
1628
|
+
attr_accessor :position
|
1629
|
+
|
1630
|
+
# Face landmark type.
|
1631
|
+
# Corresponds to the JSON property `type`
|
1632
|
+
# @return [String]
|
1633
|
+
attr_accessor :type
|
1634
|
+
|
1635
|
+
def initialize(**args)
|
1636
|
+
update!(**args)
|
1637
|
+
end
|
1638
|
+
|
1639
|
+
# Update properties of this object
|
1640
|
+
def update!(**args)
|
1641
|
+
@position = args[:position] if args.key?(:position)
|
1642
|
+
@type = args[:type] if args.key?(:type)
|
1643
|
+
end
|
1644
|
+
end
|
1645
|
+
|
1646
|
+
# The Google Cloud Storage location where the output will be written to.
|
1647
|
+
class GoogleCloudVisionV1p2beta1GcsDestination
|
1648
|
+
include Google::Apis::Core::Hashable
|
1649
|
+
|
1650
|
+
# Google Cloud Storage URI where the results will be stored. Results will
|
1651
|
+
# be in JSON format and preceded by its corresponding input URI. This field
|
1652
|
+
# can either represent a single file, or a prefix for multiple outputs.
|
1653
|
+
# Prefixes must end in a `/`.
|
1654
|
+
# Examples:
|
1655
|
+
# * File: gs://bucket-name/filename.json
|
1656
|
+
# * Prefix: gs://bucket-name/prefix/here/
|
1657
|
+
# * File: gs://bucket-name/prefix/here
|
1658
|
+
# If multiple outputs, each response is still AnnotateFileResponse, each of
|
1659
|
+
# which contains some subset of the full list of AnnotateImageResponse.
|
1660
|
+
# Multiple outputs can happen if, for example, the output JSON is too large
|
1661
|
+
# and overflows into multiple sharded files.
|
1662
|
+
# Corresponds to the JSON property `uri`
|
1663
|
+
# @return [String]
|
1664
|
+
attr_accessor :uri
|
1665
|
+
|
1666
|
+
def initialize(**args)
|
1667
|
+
update!(**args)
|
1668
|
+
end
|
1669
|
+
|
1670
|
+
# Update properties of this object
|
1671
|
+
def update!(**args)
|
1672
|
+
@uri = args[:uri] if args.key?(:uri)
|
1673
|
+
end
|
1674
|
+
end
|
1675
|
+
|
1676
|
+
# The Google Cloud Storage location where the input will be read from.
|
1677
|
+
class GoogleCloudVisionV1p2beta1GcsSource
|
1678
|
+
include Google::Apis::Core::Hashable
|
1679
|
+
|
1680
|
+
# Google Cloud Storage URI for the input file. This must only be a
|
1681
|
+
# Google Cloud Storage object. Wildcards are not currently supported.
|
1682
|
+
# Corresponds to the JSON property `uri`
|
1683
|
+
# @return [String]
|
1684
|
+
attr_accessor :uri
|
1685
|
+
|
1686
|
+
def initialize(**args)
|
1687
|
+
update!(**args)
|
1688
|
+
end
|
1689
|
+
|
1690
|
+
# Update properties of this object
|
1691
|
+
def update!(**args)
|
1692
|
+
@uri = args[:uri] if args.key?(:uri)
|
1693
|
+
end
|
1694
|
+
end
|
1695
|
+
|
1696
|
+
# If an image was produced from a file (e.g. a PDF), this message gives
|
1697
|
+
# information about the source of that image.
|
1698
|
+
class GoogleCloudVisionV1p2beta1ImageAnnotationContext
|
1699
|
+
include Google::Apis::Core::Hashable
|
1700
|
+
|
1701
|
+
# If the file was a PDF or TIFF, this field gives the page number within
|
1702
|
+
# the file used to produce the image.
|
1703
|
+
# Corresponds to the JSON property `pageNumber`
|
1704
|
+
# @return [Fixnum]
|
1705
|
+
attr_accessor :page_number
|
1706
|
+
|
1707
|
+
# The URI of the file used to produce the image.
|
1708
|
+
# Corresponds to the JSON property `uri`
|
1709
|
+
# @return [String]
|
1710
|
+
attr_accessor :uri
|
1711
|
+
|
1712
|
+
def initialize(**args)
|
1713
|
+
update!(**args)
|
1714
|
+
end
|
1715
|
+
|
1716
|
+
# Update properties of this object
|
1717
|
+
def update!(**args)
|
1718
|
+
@page_number = args[:page_number] if args.key?(:page_number)
|
1719
|
+
@uri = args[:uri] if args.key?(:uri)
|
1720
|
+
end
|
1721
|
+
end
|
1722
|
+
|
1723
|
+
# Stores image properties, such as dominant colors.
|
1724
|
+
class GoogleCloudVisionV1p2beta1ImageProperties
|
1725
|
+
include Google::Apis::Core::Hashable
|
1726
|
+
|
1727
|
+
# Set of dominant colors and their corresponding scores.
|
1728
|
+
# Corresponds to the JSON property `dominantColors`
|
1729
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1DominantColorsAnnotation]
|
1730
|
+
attr_accessor :dominant_colors
|
1731
|
+
|
1732
|
+
def initialize(**args)
|
1733
|
+
update!(**args)
|
1734
|
+
end
|
1735
|
+
|
1736
|
+
# Update properties of this object
|
1737
|
+
def update!(**args)
|
1738
|
+
@dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
|
1739
|
+
end
|
1740
|
+
end
|
1741
|
+
|
1742
|
+
# The desired input location and metadata.
|
1743
|
+
class GoogleCloudVisionV1p2beta1InputConfig
|
1744
|
+
include Google::Apis::Core::Hashable
|
1745
|
+
|
1746
|
+
# The Google Cloud Storage location where the input will be read from.
|
1747
|
+
# Corresponds to the JSON property `gcsSource`
|
1748
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1GcsSource]
|
1749
|
+
attr_accessor :gcs_source
|
1750
|
+
|
1751
|
+
# The type of the file. Currently only "application/pdf" and "image/tiff"
|
1752
|
+
# are supported. Wildcards are not supported.
|
1753
|
+
# Corresponds to the JSON property `mimeType`
|
1754
|
+
# @return [String]
|
1755
|
+
attr_accessor :mime_type
|
1756
|
+
|
1757
|
+
def initialize(**args)
|
1758
|
+
update!(**args)
|
1759
|
+
end
|
1760
|
+
|
1761
|
+
# Update properties of this object
|
1762
|
+
def update!(**args)
|
1763
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
1764
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
1765
|
+
end
|
1766
|
+
end
|
1767
|
+
|
1768
|
+
# Detected entity location information.
|
1769
|
+
class GoogleCloudVisionV1p2beta1LocationInfo
|
1770
|
+
include Google::Apis::Core::Hashable
|
1771
|
+
|
1772
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
1773
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
1774
|
+
# specified otherwise, this must conform to the
|
1775
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
1776
|
+
# standard</a>. Values must be within normalized ranges.
|
1777
|
+
# Corresponds to the JSON property `latLng`
|
1778
|
+
# @return [Google::Apis::VisionV1::LatLng]
|
1779
|
+
attr_accessor :lat_lng
|
1780
|
+
|
1781
|
+
def initialize(**args)
|
1782
|
+
update!(**args)
|
1783
|
+
end
|
1784
|
+
|
1785
|
+
# Update properties of this object
|
1786
|
+
def update!(**args)
|
1787
|
+
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
1788
|
+
end
|
1789
|
+
end
|
1790
|
+
|
1791
|
+
# A vertex represents a 2D point in the image.
|
1792
|
+
# NOTE: the normalized vertex coordinates are relative to the original image
|
1793
|
+
# and range from 0 to 1.
|
1794
|
+
class GoogleCloudVisionV1p2beta1NormalizedVertex
|
1795
|
+
include Google::Apis::Core::Hashable
|
1796
|
+
|
1797
|
+
# X coordinate.
|
1798
|
+
# Corresponds to the JSON property `x`
|
1799
|
+
# @return [Float]
|
1800
|
+
attr_accessor :x
|
1801
|
+
|
1802
|
+
# Y coordinate.
|
1803
|
+
# Corresponds to the JSON property `y`
|
1804
|
+
# @return [Float]
|
1805
|
+
attr_accessor :y
|
1806
|
+
|
1807
|
+
def initialize(**args)
|
1808
|
+
update!(**args)
|
1809
|
+
end
|
1810
|
+
|
1811
|
+
# Update properties of this object
|
1812
|
+
def update!(**args)
|
1813
|
+
@x = args[:x] if args.key?(:x)
|
1814
|
+
@y = args[:y] if args.key?(:y)
|
1815
|
+
end
|
1816
|
+
end
|
1817
|
+
|
1818
|
+
# Contains metadata for the BatchAnnotateImages operation.
|
1819
|
+
class GoogleCloudVisionV1p2beta1OperationMetadata
|
1820
|
+
include Google::Apis::Core::Hashable
|
1821
|
+
|
1822
|
+
# The time when the batch request was received.
|
1823
|
+
# Corresponds to the JSON property `createTime`
|
1824
|
+
# @return [String]
|
1825
|
+
attr_accessor :create_time
|
1826
|
+
|
1827
|
+
# Current state of the batch operation.
|
1828
|
+
# Corresponds to the JSON property `state`
|
1829
|
+
# @return [String]
|
1830
|
+
attr_accessor :state
|
1831
|
+
|
1832
|
+
# The time when the operation result was last updated.
|
1833
|
+
# Corresponds to the JSON property `updateTime`
|
1834
|
+
# @return [String]
|
1835
|
+
attr_accessor :update_time
|
1836
|
+
|
1837
|
+
def initialize(**args)
|
1838
|
+
update!(**args)
|
1839
|
+
end
|
1840
|
+
|
1841
|
+
# Update properties of this object
|
1842
|
+
def update!(**args)
|
1843
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1844
|
+
@state = args[:state] if args.key?(:state)
|
1845
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1846
|
+
end
|
1847
|
+
end
|
1848
|
+
|
1849
|
+
# The desired output location and metadata.
|
1850
|
+
class GoogleCloudVisionV1p2beta1OutputConfig
|
1851
|
+
include Google::Apis::Core::Hashable
|
1852
|
+
|
1853
|
+
# The max number of response protos to put into each output JSON file on
|
1854
|
+
# Google Cloud Storage.
|
1855
|
+
# The valid range is [1, 100]. If not specified, the default value is 20.
|
1856
|
+
# For example, for one pdf file with 100 pages, 100 response protos will
|
1857
|
+
# be generated. If `batch_size` = 20, then 5 json files each
|
1858
|
+
# containing 20 response protos will be written under the prefix
|
1859
|
+
# `gcs_destination`.`uri`.
|
1860
|
+
# Currently, batch_size only applies to GcsDestination, with potential future
|
1861
|
+
# support for other output configurations.
|
1862
|
+
# Corresponds to the JSON property `batchSize`
|
1863
|
+
# @return [Fixnum]
|
1864
|
+
attr_accessor :batch_size
|
1865
|
+
|
1866
|
+
# The Google Cloud Storage location where the output will be written to.
|
1867
|
+
# Corresponds to the JSON property `gcsDestination`
|
1868
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1GcsDestination]
|
1869
|
+
attr_accessor :gcs_destination
|
1870
|
+
|
1871
|
+
def initialize(**args)
|
1872
|
+
update!(**args)
|
1873
|
+
end
|
1874
|
+
|
1875
|
+
# Update properties of this object
|
1876
|
+
def update!(**args)
|
1877
|
+
@batch_size = args[:batch_size] if args.key?(:batch_size)
|
1878
|
+
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
|
1879
|
+
end
|
1880
|
+
end
|
1881
|
+
|
1882
|
+
# Detected page from OCR.
|
1883
|
+
class GoogleCloudVisionV1p2beta1Page
|
1884
|
+
include Google::Apis::Core::Hashable
|
1885
|
+
|
1886
|
+
# List of blocks of text, images etc on this page.
|
1887
|
+
# Corresponds to the JSON property `blocks`
|
1888
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Block>]
|
1889
|
+
attr_accessor :blocks
|
1890
|
+
|
1891
|
+
# Confidence of the OCR results on the page. Range [0, 1].
|
1892
|
+
# Corresponds to the JSON property `confidence`
|
1893
|
+
# @return [Float]
|
1894
|
+
attr_accessor :confidence
|
1895
|
+
|
1896
|
+
# Page height. For PDFs the unit is points. For images (including
|
1897
|
+
# TIFFs) the unit is pixels.
|
1898
|
+
# Corresponds to the JSON property `height`
|
1899
|
+
# @return [Fixnum]
|
1900
|
+
attr_accessor :height
|
1901
|
+
|
1902
|
+
# Additional information detected on the structural component.
|
1903
|
+
# Corresponds to the JSON property `property`
|
1904
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
|
1905
|
+
attr_accessor :property
|
1906
|
+
|
1907
|
+
# Page width. For PDFs the unit is points. For images (including
|
1908
|
+
# TIFFs) the unit is pixels.
|
1909
|
+
# Corresponds to the JSON property `width`
|
1910
|
+
# @return [Fixnum]
|
1911
|
+
attr_accessor :width
|
1912
|
+
|
1913
|
+
def initialize(**args)
|
1914
|
+
update!(**args)
|
1915
|
+
end
|
1916
|
+
|
1917
|
+
# Update properties of this object
|
1918
|
+
def update!(**args)
|
1919
|
+
@blocks = args[:blocks] if args.key?(:blocks)
|
1920
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
1921
|
+
@height = args[:height] if args.key?(:height)
|
1922
|
+
@property = args[:property] if args.key?(:property)
|
1923
|
+
@width = args[:width] if args.key?(:width)
|
1924
|
+
end
|
1925
|
+
end
|
1926
|
+
|
1927
|
+
# Structural unit of text representing a number of words in certain order.
|
1928
|
+
class GoogleCloudVisionV1p2beta1Paragraph
|
1929
|
+
include Google::Apis::Core::Hashable
|
1930
|
+
|
1931
|
+
# A bounding polygon for the detected image annotation.
|
1932
|
+
# Corresponds to the JSON property `boundingBox`
|
1933
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
1934
|
+
attr_accessor :bounding_box
|
1935
|
+
|
1936
|
+
# Confidence of the OCR results for the paragraph. Range [0, 1].
|
1937
|
+
# Corresponds to the JSON property `confidence`
|
1938
|
+
# @return [Float]
|
1939
|
+
attr_accessor :confidence
|
1940
|
+
|
1941
|
+
# Additional information detected on the structural component.
|
1942
|
+
# Corresponds to the JSON property `property`
|
1943
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
|
1944
|
+
attr_accessor :property
|
1945
|
+
|
1946
|
+
# List of words in this paragraph.
|
1947
|
+
# Corresponds to the JSON property `words`
|
1948
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Word>]
|
1949
|
+
attr_accessor :words
|
1950
|
+
|
1951
|
+
def initialize(**args)
|
1952
|
+
update!(**args)
|
1953
|
+
end
|
1954
|
+
|
1955
|
+
# Update properties of this object
|
1956
|
+
def update!(**args)
|
1957
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
1958
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
1959
|
+
@property = args[:property] if args.key?(:property)
|
1960
|
+
@words = args[:words] if args.key?(:words)
|
1961
|
+
end
|
1962
|
+
end
|
1963
|
+
|
1964
|
+
# A 3D position in the image, used primarily for Face detection landmarks.
|
1965
|
+
# A valid Position must have both x and y coordinates.
|
1966
|
+
# The position coordinates are in the same scale as the original image.
|
1967
|
+
class GoogleCloudVisionV1p2beta1Position
|
1968
|
+
include Google::Apis::Core::Hashable
|
1969
|
+
|
1970
|
+
# X coordinate.
|
1971
|
+
# Corresponds to the JSON property `x`
|
1972
|
+
# @return [Float]
|
1973
|
+
attr_accessor :x
|
1974
|
+
|
1975
|
+
# Y coordinate.
|
1976
|
+
# Corresponds to the JSON property `y`
|
1977
|
+
# @return [Float]
|
1978
|
+
attr_accessor :y
|
1979
|
+
|
1980
|
+
# Z coordinate (or depth).
|
1981
|
+
# Corresponds to the JSON property `z`
|
1982
|
+
# @return [Float]
|
1983
|
+
attr_accessor :z
|
1984
|
+
|
1985
|
+
def initialize(**args)
|
1986
|
+
update!(**args)
|
1987
|
+
end
|
1988
|
+
|
1989
|
+
# Update properties of this object
|
1990
|
+
def update!(**args)
|
1991
|
+
@x = args[:x] if args.key?(:x)
|
1992
|
+
@y = args[:y] if args.key?(:y)
|
1993
|
+
@z = args[:z] if args.key?(:z)
|
1994
|
+
end
|
1995
|
+
end
|
1996
|
+
|
1997
|
+
# A `Property` consists of a user-supplied name/value pair.
|
1998
|
+
class GoogleCloudVisionV1p2beta1Property
|
1999
|
+
include Google::Apis::Core::Hashable
|
2000
|
+
|
2001
|
+
# Name of the property.
|
2002
|
+
# Corresponds to the JSON property `name`
|
2003
|
+
# @return [String]
|
2004
|
+
attr_accessor :name
|
2005
|
+
|
2006
|
+
# Value of numeric properties.
|
2007
|
+
# Corresponds to the JSON property `uint64Value`
|
2008
|
+
# @return [Fixnum]
|
2009
|
+
attr_accessor :uint64_value
|
2010
|
+
|
2011
|
+
# Value of the property.
|
2012
|
+
# Corresponds to the JSON property `value`
|
2013
|
+
# @return [String]
|
2014
|
+
attr_accessor :value
|
2015
|
+
|
2016
|
+
def initialize(**args)
|
2017
|
+
update!(**args)
|
2018
|
+
end
|
2019
|
+
|
2020
|
+
# Update properties of this object
|
2021
|
+
def update!(**args)
|
2022
|
+
@name = args[:name] if args.key?(:name)
|
2023
|
+
@uint64_value = args[:uint64_value] if args.key?(:uint64_value)
|
2024
|
+
@value = args[:value] if args.key?(:value)
|
2025
|
+
end
|
2026
|
+
end
|
2027
|
+
|
2028
|
+
# Set of features pertaining to the image, computed by computer vision
|
2029
|
+
# methods over safe-search verticals (for example, adult, spoof, medical,
|
2030
|
+
# violence).
|
2031
|
+
class GoogleCloudVisionV1p2beta1SafeSearchAnnotation
|
2032
|
+
include Google::Apis::Core::Hashable
|
2033
|
+
|
2034
|
+
# Represents the adult content likelihood for the image. Adult content may
|
2035
|
+
# contain elements such as nudity, pornographic images or cartoons, or
|
2036
|
+
# sexual activities.
|
2037
|
+
# Corresponds to the JSON property `adult`
|
2038
|
+
# @return [String]
|
2039
|
+
attr_accessor :adult
|
2040
|
+
|
2041
|
+
# Likelihood that this is a medical image.
|
2042
|
+
# Corresponds to the JSON property `medical`
|
2043
|
+
# @return [String]
|
2044
|
+
attr_accessor :medical
|
2045
|
+
|
2046
|
+
# Likelihood that the request image contains racy content. Racy content may
|
2047
|
+
# include (but is not limited to) skimpy or sheer clothing, strategically
|
2048
|
+
# covered nudity, lewd or provocative poses, or close-ups of sensitive
|
2049
|
+
# body areas.
|
2050
|
+
# Corresponds to the JSON property `racy`
|
2051
|
+
# @return [String]
|
2052
|
+
attr_accessor :racy
|
2053
|
+
|
2054
|
+
# Spoof likelihood. The likelihood that an modification
|
2055
|
+
# was made to the image's canonical version to make it appear
|
2056
|
+
# funny or offensive.
|
2057
|
+
# Corresponds to the JSON property `spoof`
|
2058
|
+
# @return [String]
|
2059
|
+
attr_accessor :spoof
|
2060
|
+
|
2061
|
+
# Likelihood that this image contains violent content.
|
2062
|
+
# Corresponds to the JSON property `violence`
|
2063
|
+
# @return [String]
|
2064
|
+
attr_accessor :violence
|
2065
|
+
|
2066
|
+
def initialize(**args)
|
2067
|
+
update!(**args)
|
2068
|
+
end
|
2069
|
+
|
2070
|
+
# Update properties of this object
|
2071
|
+
def update!(**args)
|
2072
|
+
@adult = args[:adult] if args.key?(:adult)
|
2073
|
+
@medical = args[:medical] if args.key?(:medical)
|
2074
|
+
@racy = args[:racy] if args.key?(:racy)
|
2075
|
+
@spoof = args[:spoof] if args.key?(:spoof)
|
2076
|
+
@violence = args[:violence] if args.key?(:violence)
|
2077
|
+
end
|
2078
|
+
end
|
2079
|
+
|
2080
|
+
# A single symbol representation.
|
2081
|
+
class GoogleCloudVisionV1p2beta1Symbol
|
2082
|
+
include Google::Apis::Core::Hashable
|
2083
|
+
|
2084
|
+
# A bounding polygon for the detected image annotation.
|
2085
|
+
# Corresponds to the JSON property `boundingBox`
|
2086
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
2087
|
+
attr_accessor :bounding_box
|
2088
|
+
|
2089
|
+
# Confidence of the OCR results for the symbol. Range [0, 1].
|
2090
|
+
# Corresponds to the JSON property `confidence`
|
2091
|
+
# @return [Float]
|
2092
|
+
attr_accessor :confidence
|
2093
|
+
|
2094
|
+
# Additional information detected on the structural component.
|
2095
|
+
# Corresponds to the JSON property `property`
|
2096
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
|
2097
|
+
attr_accessor :property
|
2098
|
+
|
2099
|
+
# The actual UTF-8 representation of the symbol.
|
2100
|
+
# Corresponds to the JSON property `text`
|
2101
|
+
# @return [String]
|
2102
|
+
attr_accessor :text
|
2103
|
+
|
2104
|
+
def initialize(**args)
|
2105
|
+
update!(**args)
|
2106
|
+
end
|
2107
|
+
|
2108
|
+
# Update properties of this object
|
2109
|
+
def update!(**args)
|
2110
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
2111
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
2112
|
+
@property = args[:property] if args.key?(:property)
|
2113
|
+
@text = args[:text] if args.key?(:text)
|
2114
|
+
end
|
2115
|
+
end
|
2116
|
+
|
2117
|
+
# TextAnnotation contains a structured representation of OCR extracted text.
|
2118
|
+
# The hierarchy of an OCR extracted text structure is like this:
|
2119
|
+
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
2120
|
+
# Each structural component, starting from Page, may further have their own
|
2121
|
+
# properties. Properties describe detected languages, breaks etc.. Please refer
|
2122
|
+
# to the TextAnnotation.TextProperty message definition below for more
|
2123
|
+
# detail.
|
2124
|
+
class GoogleCloudVisionV1p2beta1TextAnnotation
|
2125
|
+
include Google::Apis::Core::Hashable
|
2126
|
+
|
2127
|
+
# List of pages detected by OCR.
|
2128
|
+
# Corresponds to the JSON property `pages`
|
2129
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Page>]
|
2130
|
+
attr_accessor :pages
|
2131
|
+
|
2132
|
+
# UTF-8 text detected on the pages.
|
2133
|
+
# Corresponds to the JSON property `text`
|
2134
|
+
# @return [String]
|
2135
|
+
attr_accessor :text
|
2136
|
+
|
2137
|
+
def initialize(**args)
|
2138
|
+
update!(**args)
|
2139
|
+
end
|
2140
|
+
|
2141
|
+
# Update properties of this object
|
2142
|
+
def update!(**args)
|
2143
|
+
@pages = args[:pages] if args.key?(:pages)
|
2144
|
+
@text = args[:text] if args.key?(:text)
|
2145
|
+
end
|
2146
|
+
end
|
2147
|
+
|
2148
|
+
# Detected start or end of a structural component.
|
2149
|
+
class GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak
|
2150
|
+
include Google::Apis::Core::Hashable
|
2151
|
+
|
2152
|
+
# True if break prepends the element.
|
2153
|
+
# Corresponds to the JSON property `isPrefix`
|
2154
|
+
# @return [Boolean]
|
2155
|
+
attr_accessor :is_prefix
|
2156
|
+
alias_method :is_prefix?, :is_prefix
|
2157
|
+
|
2158
|
+
# Detected break type.
|
2159
|
+
# Corresponds to the JSON property `type`
|
2160
|
+
# @return [String]
|
2161
|
+
attr_accessor :type
|
2162
|
+
|
2163
|
+
def initialize(**args)
|
2164
|
+
update!(**args)
|
2165
|
+
end
|
2166
|
+
|
2167
|
+
# Update properties of this object
|
2168
|
+
def update!(**args)
|
2169
|
+
@is_prefix = args[:is_prefix] if args.key?(:is_prefix)
|
2170
|
+
@type = args[:type] if args.key?(:type)
|
2171
|
+
end
|
2172
|
+
end
|
2173
|
+
|
2174
|
+
# Detected language for a structural component.
|
2175
|
+
class GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage
|
2176
|
+
include Google::Apis::Core::Hashable
|
2177
|
+
|
2178
|
+
# Confidence of detected language. Range [0, 1].
|
2179
|
+
# Corresponds to the JSON property `confidence`
|
2180
|
+
# @return [Float]
|
2181
|
+
attr_accessor :confidence
|
2182
|
+
|
2183
|
+
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
2184
|
+
# information, see
|
2185
|
+
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
2186
|
+
# Corresponds to the JSON property `languageCode`
|
2187
|
+
# @return [String]
|
2188
|
+
attr_accessor :language_code
|
2189
|
+
|
2190
|
+
def initialize(**args)
|
2191
|
+
update!(**args)
|
2192
|
+
end
|
2193
|
+
|
2194
|
+
# Update properties of this object
|
2195
|
+
def update!(**args)
|
2196
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
2197
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
2198
|
+
end
|
2199
|
+
end
|
2200
|
+
|
2201
|
+
# Additional information detected on the structural component.
|
2202
|
+
class GoogleCloudVisionV1p2beta1TextAnnotationTextProperty
|
2203
|
+
include Google::Apis::Core::Hashable
|
2204
|
+
|
2205
|
+
# Detected start or end of a structural component.
|
2206
|
+
# Corresponds to the JSON property `detectedBreak`
|
2207
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak]
|
2208
|
+
attr_accessor :detected_break
|
2209
|
+
|
2210
|
+
# A list of detected languages together with confidence.
|
2211
|
+
# Corresponds to the JSON property `detectedLanguages`
|
2212
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage>]
|
2213
|
+
attr_accessor :detected_languages
|
2214
|
+
|
2215
|
+
def initialize(**args)
|
2216
|
+
update!(**args)
|
2217
|
+
end
|
2218
|
+
|
2219
|
+
# Update properties of this object
|
2220
|
+
def update!(**args)
|
2221
|
+
@detected_break = args[:detected_break] if args.key?(:detected_break)
|
2222
|
+
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
2223
|
+
end
|
2224
|
+
end
|
2225
|
+
|
2226
|
+
# A vertex represents a 2D point in the image.
|
2227
|
+
# NOTE: the vertex coordinates are in the same scale as the original image.
|
2228
|
+
class GoogleCloudVisionV1p2beta1Vertex
|
2229
|
+
include Google::Apis::Core::Hashable
|
2230
|
+
|
2231
|
+
# X coordinate.
|
2232
|
+
# Corresponds to the JSON property `x`
|
2233
|
+
# @return [Fixnum]
|
2234
|
+
attr_accessor :x
|
2235
|
+
|
2236
|
+
# Y coordinate.
|
2237
|
+
# Corresponds to the JSON property `y`
|
2238
|
+
# @return [Fixnum]
|
2239
|
+
attr_accessor :y
|
2240
|
+
|
2241
|
+
def initialize(**args)
|
2242
|
+
update!(**args)
|
2243
|
+
end
|
2244
|
+
|
2245
|
+
# Update properties of this object
|
2246
|
+
def update!(**args)
|
2247
|
+
@x = args[:x] if args.key?(:x)
|
2248
|
+
@y = args[:y] if args.key?(:y)
|
2249
|
+
end
|
2250
|
+
end
|
2251
|
+
|
2252
|
+
# Relevant information for the image from the Internet.
|
2253
|
+
class GoogleCloudVisionV1p2beta1WebDetection
|
2254
|
+
include Google::Apis::Core::Hashable
|
2255
|
+
|
2256
|
+
# Best guess text labels for the request image.
|
2257
|
+
# Corresponds to the JSON property `bestGuessLabels`
|
2258
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebLabel>]
|
2259
|
+
attr_accessor :best_guess_labels
|
2260
|
+
|
2261
|
+
# Fully matching images from the Internet.
|
2262
|
+
# Can include resized copies of the query image.
|
2263
|
+
# Corresponds to the JSON property `fullMatchingImages`
|
2264
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
|
2265
|
+
attr_accessor :full_matching_images
|
2266
|
+
|
2267
|
+
# Web pages containing the matching images from the Internet.
|
2268
|
+
# Corresponds to the JSON property `pagesWithMatchingImages`
|
2269
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebPage>]
|
2270
|
+
attr_accessor :pages_with_matching_images
|
2271
|
+
|
2272
|
+
# Partial matching images from the Internet.
|
2273
|
+
# Those images are similar enough to share some key-point features. For
|
2274
|
+
# example an original image will likely have partial matching for its crops.
|
2275
|
+
# Corresponds to the JSON property `partialMatchingImages`
|
2276
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
|
2277
|
+
attr_accessor :partial_matching_images
|
2278
|
+
|
2279
|
+
# The visually similar image results.
|
2280
|
+
# Corresponds to the JSON property `visuallySimilarImages`
|
2281
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
|
2282
|
+
attr_accessor :visually_similar_images
|
2283
|
+
|
2284
|
+
# Deduced entities from similar images on the Internet.
|
2285
|
+
# Corresponds to the JSON property `webEntities`
|
2286
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebEntity>]
|
2287
|
+
attr_accessor :web_entities
|
2288
|
+
|
2289
|
+
def initialize(**args)
|
2290
|
+
update!(**args)
|
2291
|
+
end
|
2292
|
+
|
2293
|
+
# Update properties of this object
|
2294
|
+
def update!(**args)
|
2295
|
+
@best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
|
2296
|
+
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
2297
|
+
@pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
|
2298
|
+
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
2299
|
+
@visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
|
2300
|
+
@web_entities = args[:web_entities] if args.key?(:web_entities)
|
2301
|
+
end
|
2302
|
+
end
|
2303
|
+
|
2304
|
+
# Entity deduced from similar images on the Internet.
|
2305
|
+
class GoogleCloudVisionV1p2beta1WebDetectionWebEntity
|
2306
|
+
include Google::Apis::Core::Hashable
|
2307
|
+
|
2308
|
+
# Canonical description of the entity, in English.
|
2309
|
+
# Corresponds to the JSON property `description`
|
2310
|
+
# @return [String]
|
2311
|
+
attr_accessor :description
|
2312
|
+
|
2313
|
+
# Opaque entity ID.
|
2314
|
+
# Corresponds to the JSON property `entityId`
|
2315
|
+
# @return [String]
|
2316
|
+
attr_accessor :entity_id
|
2317
|
+
|
2318
|
+
# Overall relevancy score for the entity.
|
2319
|
+
# Not normalized and not comparable across different image queries.
|
2320
|
+
# Corresponds to the JSON property `score`
|
2321
|
+
# @return [Float]
|
2322
|
+
attr_accessor :score
|
2323
|
+
|
2324
|
+
def initialize(**args)
|
2325
|
+
update!(**args)
|
2326
|
+
end
|
2327
|
+
|
2328
|
+
# Update properties of this object
|
2329
|
+
def update!(**args)
|
2330
|
+
@description = args[:description] if args.key?(:description)
|
2331
|
+
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
2332
|
+
@score = args[:score] if args.key?(:score)
|
2333
|
+
end
|
2334
|
+
end
|
2335
|
+
|
2336
|
+
# Metadata for online images.
|
2337
|
+
class GoogleCloudVisionV1p2beta1WebDetectionWebImage
|
2338
|
+
include Google::Apis::Core::Hashable
|
2339
|
+
|
2340
|
+
# (Deprecated) Overall relevancy score for the image.
|
2341
|
+
# Corresponds to the JSON property `score`
|
2342
|
+
# @return [Float]
|
2343
|
+
attr_accessor :score
|
2344
|
+
|
2345
|
+
# The result image URL.
|
2346
|
+
# Corresponds to the JSON property `url`
|
2347
|
+
# @return [String]
|
2348
|
+
attr_accessor :url
|
2349
|
+
|
2350
|
+
def initialize(**args)
|
2351
|
+
update!(**args)
|
2352
|
+
end
|
2353
|
+
|
2354
|
+
# Update properties of this object
|
2355
|
+
def update!(**args)
|
2356
|
+
@score = args[:score] if args.key?(:score)
|
2357
|
+
@url = args[:url] if args.key?(:url)
|
2358
|
+
end
|
2359
|
+
end
|
2360
|
+
|
2361
|
+
# Label to provide extra metadata for the web detection.
|
2362
|
+
class GoogleCloudVisionV1p2beta1WebDetectionWebLabel
|
2363
|
+
include Google::Apis::Core::Hashable
|
2364
|
+
|
2365
|
+
# Label for extra metadata.
|
2366
|
+
# Corresponds to the JSON property `label`
|
2367
|
+
# @return [String]
|
2368
|
+
attr_accessor :label
|
2369
|
+
|
2370
|
+
# The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
|
2371
|
+
# For more information, see
|
2372
|
+
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
2373
|
+
# Corresponds to the JSON property `languageCode`
|
2374
|
+
# @return [String]
|
2375
|
+
attr_accessor :language_code
|
2376
|
+
|
2377
|
+
def initialize(**args)
|
2378
|
+
update!(**args)
|
2379
|
+
end
|
2380
|
+
|
2381
|
+
# Update properties of this object
|
2382
|
+
def update!(**args)
|
2383
|
+
@label = args[:label] if args.key?(:label)
|
2384
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
2385
|
+
end
|
2386
|
+
end
|
2387
|
+
|
2388
|
+
# Metadata for web pages.
|
2389
|
+
class GoogleCloudVisionV1p2beta1WebDetectionWebPage
|
2390
|
+
include Google::Apis::Core::Hashable
|
2391
|
+
|
2392
|
+
# Fully matching images on the page.
|
2393
|
+
# Can include resized copies of the query image.
|
2394
|
+
# Corresponds to the JSON property `fullMatchingImages`
|
2395
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
|
2396
|
+
attr_accessor :full_matching_images
|
2397
|
+
|
2398
|
+
# Title for the web page, may contain HTML markups.
|
2399
|
+
# Corresponds to the JSON property `pageTitle`
|
2400
|
+
# @return [String]
|
2401
|
+
attr_accessor :page_title
|
2402
|
+
|
2403
|
+
# Partial matching images on the page.
|
2404
|
+
# Those images are similar enough to share some key-point features. For
|
2405
|
+
# example an original image will likely have partial matching for its
|
2406
|
+
# crops.
|
2407
|
+
# Corresponds to the JSON property `partialMatchingImages`
|
2408
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1WebDetectionWebImage>]
|
2409
|
+
attr_accessor :partial_matching_images
|
2410
|
+
|
2411
|
+
# (Deprecated) Overall relevancy score for the web page.
|
2412
|
+
# Corresponds to the JSON property `score`
|
2413
|
+
# @return [Float]
|
2414
|
+
attr_accessor :score
|
2415
|
+
|
2416
|
+
# The result web page URL.
|
2417
|
+
# Corresponds to the JSON property `url`
|
2418
|
+
# @return [String]
|
2419
|
+
attr_accessor :url
|
2420
|
+
|
2421
|
+
def initialize(**args)
|
2422
|
+
update!(**args)
|
2423
|
+
end
|
2424
|
+
|
2425
|
+
# Update properties of this object
|
2426
|
+
def update!(**args)
|
2427
|
+
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
2428
|
+
@page_title = args[:page_title] if args.key?(:page_title)
|
2429
|
+
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
2430
|
+
@score = args[:score] if args.key?(:score)
|
2431
|
+
@url = args[:url] if args.key?(:url)
|
2432
|
+
end
|
2433
|
+
end
|
2434
|
+
|
2435
|
+
# A word representation.
|
2436
|
+
class GoogleCloudVisionV1p2beta1Word
|
2437
|
+
include Google::Apis::Core::Hashable
|
2438
|
+
|
2439
|
+
# A bounding polygon for the detected image annotation.
|
2440
|
+
# Corresponds to the JSON property `boundingBox`
|
2441
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
|
2442
|
+
attr_accessor :bounding_box
|
2443
|
+
|
2444
|
+
# Confidence of the OCR results for the word. Range [0, 1].
|
2445
|
+
# Corresponds to the JSON property `confidence`
|
2446
|
+
# @return [Float]
|
2447
|
+
attr_accessor :confidence
|
2448
|
+
|
2449
|
+
# Additional information detected on the structural component.
|
2450
|
+
# Corresponds to the JSON property `property`
|
2451
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
|
2452
|
+
attr_accessor :property
|
2453
|
+
|
2454
|
+
# List of symbols in the word.
|
2455
|
+
# The order of the symbols follows the natural reading order.
|
2456
|
+
# Corresponds to the JSON property `symbols`
|
2457
|
+
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Symbol>]
|
2458
|
+
attr_accessor :symbols
|
2459
|
+
|
2460
|
+
def initialize(**args)
|
2461
|
+
update!(**args)
|
2462
|
+
end
|
2463
|
+
|
2464
|
+
# Update properties of this object
|
2465
|
+
def update!(**args)
|
2466
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
2467
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
2468
|
+
@property = args[:property] if args.key?(:property)
|
2469
|
+
@symbols = args[:symbols] if args.key?(:symbols)
|
1091
2470
|
end
|
1092
2471
|
end
|
1093
2472
|
|