google-api-client 0.28.4 → 0.28.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.kokoro/build.sh +3 -5
- data/.kokoro/continuous/linux.cfg +1 -1
- data/.kokoro/presubmit/linux.cfg +1 -1
- data/CHANGELOG.md +147 -0
- data/generated/google/apis/accesscontextmanager_v1.rb +34 -0
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +755 -0
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +282 -0
- data/generated/google/apis/accesscontextmanager_v1/service.rb +788 -0
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +46 -30
- data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +4 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +2 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +5 -50
- data/generated/google/apis/admin_directory_v1/representations.rb +0 -2
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +3 -2
- data/generated/google/apis/alertcenter_v1beta1/service.rb +7 -7
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +638 -0
- data/generated/google/apis/analyticsreporting_v4/representations.rb +248 -0
- data/generated/google/apis/analyticsreporting_v4/service.rb +30 -0
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +59 -2
- data/generated/google/apis/androidmanagement_v1/representations.rb +33 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +43 -98
- data/generated/google/apis/appengine_v1/representations.rb +17 -35
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1alpha/classes.rb +0 -97
- data/generated/google/apis/appengine_v1alpha/representations.rb +0 -35
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +3 -99
- data/generated/google/apis/appengine_v1beta/representations.rb +0 -35
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +244 -173
- data/generated/google/apis/bigquery_v2/representations.rb +79 -58
- data/generated/google/apis/bigquerydatatransfer_v1.rb +3 -3
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +10 -10
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +38 -6
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +4 -4
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +66 -6
- data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +17 -0
- data/generated/google/apis/cloudasset_v1.rb +34 -0
- data/generated/google/apis/cloudasset_v1/classes.rb +805 -0
- data/generated/google/apis/cloudasset_v1/representations.rb +263 -0
- data/generated/google/apis/cloudasset_v1/service.rb +190 -0
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +20 -18
- data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +149 -10
- data/generated/google/apis/cloudbuild_v1/representations.rb +65 -0
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +6 -0
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +2 -0
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +11 -4
- data/generated/google/apis/cloudfunctions_v1/service.rb +8 -2
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +2 -1
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +6 -0
- data/generated/google/apis/cloudidentity_v1.rb +7 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +13 -13
- data/generated/google/apis/cloudidentity_v1/service.rb +6 -15
- data/generated/google/apis/cloudidentity_v1beta1.rb +7 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +10 -10
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +4 -10
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +11 -11
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +7 -3
- data/generated/google/apis/cloudprivatecatalog_v1beta1.rb +35 -0
- data/generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb +358 -0
- data/generated/google/apis/cloudprivatecatalog_v1beta1/representations.rb +123 -0
- data/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb +486 -0
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +35 -0
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +1212 -0
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb +399 -0
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +1073 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +17 -16
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +14 -15
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +14 -15
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +60 -44
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +5 -2
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +220 -48
- data/generated/google/apis/cloudsearch_v1/representations.rb +91 -0
- data/generated/google/apis/cloudsearch_v1/service.rb +15 -13
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1/classes.rb +10 -10
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +17 -10
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/{partners_v2.rb → cloudtasks_v2.rb} +11 -9
- data/generated/google/apis/cloudtasks_v2/classes.rb +1432 -0
- data/generated/google/apis/cloudtasks_v2/representations.rb +408 -0
- data/generated/google/apis/cloudtasks_v2/service.rb +856 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +119 -88
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +3 -2
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +122 -90
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +3 -2
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +10 -10
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +21 -15
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +165 -29
- data/generated/google/apis/composer_v1beta1/representations.rb +50 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +7147 -4656
- data/generated/google/apis/compute_alpha/representations.rb +1205 -236
- data/generated/google/apis/compute_alpha/service.rb +4338 -3274
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +5974 -4567
- data/generated/google/apis/compute_beta/representations.rb +846 -283
- data/generated/google/apis/compute_beta/service.rb +4274 -3153
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +325 -50
- data/generated/google/apis/compute_v1/representations.rb +104 -1
- data/generated/google/apis/compute_v1/service.rb +153 -2
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1 -0
- data/generated/google/apis/container_v1/service.rb +4 -4
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +7 -0
- data/generated/google/apis/container_v1beta1/representations.rb +2 -0
- data/generated/google/apis/container_v1beta1/service.rb +4 -4
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +25 -17
- data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +137 -12
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +33 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +204 -93
- data/generated/google/apis/content_v2/representations.rb +49 -0
- data/generated/google/apis/content_v2/service.rb +82 -41
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +360 -209
- data/generated/google/apis/content_v2_1/representations.rb +129 -56
- data/generated/google/apis/content_v2_1/service.rb +97 -10
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +51 -19
- data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +133 -25
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +20 -15
- data/generated/google/apis/dataproc_v1/representations.rb +1 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +516 -45
- data/generated/google/apis/dataproc_v1beta2/representations.rb +185 -7
- data/generated/google/apis/dataproc_v1beta2/service.rb +575 -6
- data/generated/google/apis/dfareporting_v3_3.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3/classes.rb +3 -3
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +126 -77
- data/generated/google/apis/dialogflow_v2/service.rb +40 -24
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +126 -77
- data/generated/google/apis/dialogflow_v2beta1/service.rb +40 -24
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +44 -41
- data/generated/google/apis/dlp_v2/representations.rb +12 -0
- data/generated/google/apis/dlp_v2/service.rb +35 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +163 -190
- data/generated/google/apis/dns_v1/representations.rb +34 -0
- data/generated/google/apis/dns_v1/service.rb +15 -110
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +117 -248
- data/generated/google/apis/dns_v1beta2/service.rb +21 -141
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +163 -190
- data/generated/google/apis/dns_v2beta1/representations.rb +34 -0
- data/generated/google/apis/dns_v2beta1/service.rb +15 -110
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +118 -47
- data/generated/google/apis/docs_v1/representations.rb +39 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +3 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +3 -2
- data/generated/google/apis/factchecktools_v1alpha1.rb +34 -0
- data/generated/google/apis/factchecktools_v1alpha1/classes.rb +459 -0
- data/generated/google/apis/factchecktools_v1alpha1/representations.rb +207 -0
- data/generated/google/apis/factchecktools_v1alpha1/service.rb +300 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +203 -10
- data/generated/google/apis/file_v1/representations.rb +70 -0
- data/generated/google/apis/file_v1/service.rb +190 -0
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +10 -10
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +13 -10
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/service.rb +1 -1
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +3 -0
- data/generated/google/apis/fitness_v1/service.rb +1 -45
- data/generated/google/apis/games_management_v1management.rb +2 -2
- data/generated/google/apis/games_v1.rb +2 -2
- data/generated/google/apis/genomics_v1.rb +1 -10
- data/generated/google/apis/genomics_v1/classes.rb +190 -3321
- data/generated/google/apis/genomics_v1/representations.rb +128 -1265
- data/generated/google/apis/genomics_v1/service.rb +75 -1982
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +11 -51
- data/generated/google/apis/genomics_v1alpha2/representations.rb +0 -26
- data/generated/google/apis/genomics_v1alpha2/service.rb +1 -2
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +19 -58
- data/generated/google/apis/genomics_v2alpha1/representations.rb +0 -26
- data/generated/google/apis/genomics_v2alpha1/service.rb +1 -2
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +126 -1
- data/generated/google/apis/groupssettings_v1/representations.rb +18 -0
- data/generated/google/apis/groupssettings_v1/service.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +123 -1
- data/generated/google/apis/iam_v1/representations.rb +67 -0
- data/generated/google/apis/iam_v1/service.rb +198 -5
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/classes.rb +8 -4
- data/generated/google/apis/iamcredentials_v1/service.rb +10 -5
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +1 -1
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +7 -9
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +11 -11
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +5 -5
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +5 -5
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +5 -5
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +2 -3
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +2 -3
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +158 -36
- data/generated/google/apis/ml_v1/representations.rb +23 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +8 -7
- data/generated/google/apis/monitoring_v3/service.rb +6 -1
- data/generated/google/apis/oauth2_v1.rb +2 -5
- data/generated/google/apis/oauth2_v1/classes.rb +0 -124
- data/generated/google/apis/oauth2_v1/representations.rb +0 -62
- data/generated/google/apis/oauth2_v1/service.rb +0 -159
- data/generated/google/apis/oauth2_v2.rb +2 -5
- data/generated/google/apis/people_v1.rb +3 -3
- data/generated/google/apis/people_v1/classes.rb +19 -18
- data/generated/google/apis/people_v1/service.rb +4 -0
- data/generated/google/apis/plus_domains_v1.rb +3 -3
- data/generated/google/apis/plus_v1.rb +3 -3
- data/generated/google/apis/poly_v1.rb +1 -1
- data/generated/google/apis/poly_v1/classes.rb +5 -4
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +8 -6
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +53 -38
- data/generated/google/apis/pubsub_v1/representations.rb +16 -0
- data/generated/google/apis/pubsub_v1/service.rb +6 -29
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +45 -1
- data/generated/google/apis/pubsub_v1beta2/representations.rb +16 -0
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +0 -10
- data/generated/google/apis/redis_v1beta1/representations.rb +0 -1
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +42 -28
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +2 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +42 -28
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +2 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +52 -38
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +2 -0
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +32 -39
- data/generated/google/apis/reseller_v1/service.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +10 -10
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +25 -24
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +0 -6
- data/generated/google/apis/script_v1/representations.rb +0 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +73 -151
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +48 -50
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +108 -24
- data/generated/google/apis/servicecontrol_v1/representations.rb +45 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +35 -113
- data/generated/google/apis/servicemanagement_v1/service.rb +6 -3
- data/generated/google/apis/servicenetworking_v1.rb +38 -0
- data/generated/google/apis/servicenetworking_v1/classes.rb +3591 -0
- data/generated/google/apis/servicenetworking_v1/representations.rb +1082 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +440 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +32 -110
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +33 -150
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +34 -190
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +115 -26
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2 -2
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +1 -1
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +171 -0
- data/generated/google/apis/spanner_v1/representations.rb +49 -0
- data/generated/google/apis/spanner_v1/service.rb +51 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +107 -10
- data/generated/google/apis/speech_v1/representations.rb +24 -0
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +16 -10
- data/generated/google/apis/speech_v1p1beta1/representations.rb +1 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +11 -15
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +57 -4
- data/generated/google/apis/storage_v1/representations.rb +19 -1
- data/generated/google/apis/storagetransfer_v1.rb +2 -2
- data/generated/google/apis/storagetransfer_v1/classes.rb +28 -21
- data/generated/google/apis/storagetransfer_v1/service.rb +4 -4
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +26 -26
- data/generated/google/apis/streetviewpublish_v1/service.rb +27 -31
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/service.rb +0 -46
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/tagmanager_v2/classes.rb +197 -292
- data/generated/google/apis/tagmanager_v2/representations.rb +62 -103
- data/generated/google/apis/tagmanager_v2/service.rb +219 -181
- data/generated/google/apis/tasks_v1.rb +2 -2
- data/generated/google/apis/tasks_v1/service.rb +5 -5
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +13 -13
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +92 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +47 -0
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +10 -10
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +10 -10
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +7 -0
- data/generated/google/apis/vault_v1/representations.rb +1 -0
- data/generated/google/apis/videointelligence_v1.rb +3 -2
- data/generated/google/apis/videointelligence_v1/classes.rb +2193 -350
- data/generated/google/apis/videointelligence_v1/representations.rb +805 -6
- data/generated/google/apis/videointelligence_v1/service.rb +2 -1
- data/generated/google/apis/videointelligence_v1beta2.rb +3 -2
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +2448 -605
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +806 -7
- data/generated/google/apis/videointelligence_v1beta2/service.rb +2 -1
- data/generated/google/apis/videointelligence_v1p1beta1.rb +3 -2
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +2422 -579
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +806 -7
- data/generated/google/apis/videointelligence_v1p1beta1/service.rb +2 -1
- data/generated/google/apis/videointelligence_v1p2beta1.rb +3 -2
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +2645 -830
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +796 -12
- data/generated/google/apis/videointelligence_v1p2beta1/service.rb +2 -1
- data/generated/google/apis/videointelligence_v1p3beta1.rb +36 -0
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +4687 -0
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +2005 -0
- data/generated/google/apis/videointelligence_v1p3beta1/service.rb +94 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1977 -40
- data/generated/google/apis/vision_v1/representations.rb +833 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1972 -35
- data/generated/google/apis/vision_v1p1beta1/representations.rb +833 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +1972 -35
- data/generated/google/apis/vision_v1p2beta1/representations.rb +833 -0
- data/generated/google/apis/websecurityscanner_v1beta.rb +34 -0
- data/generated/google/apis/websecurityscanner_v1beta/classes.rb +973 -0
- data/generated/google/apis/websecurityscanner_v1beta/representations.rb +452 -0
- data/generated/google/apis/websecurityscanner_v1beta/service.rb +548 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/lib/google/apis/core/http_command.rb +1 -0
- data/lib/google/apis/generator/model.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +39 -8
- data/generated/google/apis/partners_v2/classes.rb +0 -2260
- data/generated/google/apis/partners_v2/representations.rb +0 -905
- data/generated/google/apis/partners_v2/service.rb +0 -1077
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/vision/
|
28
28
|
module VisionV1p2beta1
|
29
29
|
VERSION = 'V1p2beta1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20190309'
|
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'
|
@@ -63,14 +63,14 @@ module Google
|
|
63
63
|
# @return [Google::Apis::VisionV1p2beta1::CropHintsAnnotation]
|
64
64
|
attr_accessor :crop_hints_annotation
|
65
65
|
|
66
|
-
# The `Status` type defines a logical error model that is suitable for
|
67
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
68
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
66
|
+
# The `Status` type defines a logical error model that is suitable for
|
67
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
68
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
69
69
|
# - Simple to use and understand for most users
|
70
70
|
# - Flexible enough to meet unexpected needs
|
71
71
|
# # Overview
|
72
|
-
# The `Status` message contains three pieces of data: error code, error
|
73
|
-
# and error details. The error code should be an enum value of
|
72
|
+
# The `Status` message contains three pieces of data: error code, error
|
73
|
+
# message, and error details. The error code should be an enum value of
|
74
74
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
75
75
|
# error message should be a developer-facing English message that helps
|
76
76
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
@@ -340,7 +340,11 @@ module Google
|
|
340
340
|
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
|
341
341
|
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
342
342
|
# method in iOS; and, with just a little work, it can be easily formatted into
|
343
|
-
# a CSS "rgba()" string in JavaScript, as well.
|
343
|
+
# a CSS "rgba()" string in JavaScript, as well.
|
344
|
+
# Note: this proto does not carry information about the absolute color space
|
345
|
+
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
|
346
|
+
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
|
347
|
+
# space.
|
344
348
|
# Example (Java):
|
345
349
|
# import com.google.type.Color;
|
346
350
|
# // ...
|
@@ -488,7 +492,11 @@ module Google
|
|
488
492
|
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
|
489
493
|
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
490
494
|
# method in iOS; and, with just a little work, it can be easily formatted into
|
491
|
-
# a CSS "rgba()" string in JavaScript, as well.
|
495
|
+
# a CSS "rgba()" string in JavaScript, as well.
|
496
|
+
# Note: this proto does not carry information about the absolute color space
|
497
|
+
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
|
498
|
+
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
|
499
|
+
# space.
|
492
500
|
# Example (Java):
|
493
501
|
# import com.google.type.Color;
|
494
502
|
# // ...
|
@@ -1013,14 +1021,14 @@ module Google
|
|
1013
1021
|
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1CropHintsAnnotation]
|
1014
1022
|
attr_accessor :crop_hints_annotation
|
1015
1023
|
|
1016
|
-
# The `Status` type defines a logical error model that is suitable for
|
1017
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
1018
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
1024
|
+
# The `Status` type defines a logical error model that is suitable for
|
1025
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
1026
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
1019
1027
|
# - Simple to use and understand for most users
|
1020
1028
|
# - Flexible enough to meet unexpected needs
|
1021
1029
|
# # Overview
|
1022
|
-
# The `Status` message contains three pieces of data: error code, error
|
1023
|
-
# and error details. The error code should be an enum value of
|
1030
|
+
# The `Status` message contains three pieces of data: error code, error
|
1031
|
+
# message, and error details. The error code should be an enum value of
|
1024
1032
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
1025
1033
|
# error message should be a developer-facing English message that helps
|
1026
1034
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
@@ -1261,7 +1269,11 @@ module Google
|
|
1261
1269
|
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
|
1262
1270
|
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
1263
1271
|
# method in iOS; and, with just a little work, it can be easily formatted into
|
1264
|
-
# a CSS "rgba()" string in JavaScript, as well.
|
1272
|
+
# a CSS "rgba()" string in JavaScript, as well.
|
1273
|
+
# Note: this proto does not carry information about the absolute color space
|
1274
|
+
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
|
1275
|
+
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
|
1276
|
+
# space.
|
1265
1277
|
# Example (Java):
|
1266
1278
|
# import com.google.type.Color;
|
1267
1279
|
# // ...
|
@@ -2792,14 +2804,14 @@ module Google
|
|
2792
2804
|
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1CropHintsAnnotation]
|
2793
2805
|
attr_accessor :crop_hints_annotation
|
2794
2806
|
|
2795
|
-
# The `Status` type defines a logical error model that is suitable for
|
2796
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
2797
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
2807
|
+
# The `Status` type defines a logical error model that is suitable for
|
2808
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
2809
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
2798
2810
|
# - Simple to use and understand for most users
|
2799
2811
|
# - Flexible enough to meet unexpected needs
|
2800
2812
|
# # Overview
|
2801
|
-
# The `Status` message contains three pieces of data: error code, error
|
2802
|
-
# and error details. The error code should be an enum value of
|
2813
|
+
# The `Status` message contains three pieces of data: error code, error
|
2814
|
+
# message, and error details. The error code should be an enum value of
|
2803
2815
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
2804
2816
|
# error message should be a developer-facing English message that helps
|
2805
2817
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
@@ -3135,7 +3147,11 @@ module Google
|
|
3135
3147
|
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
|
3136
3148
|
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
3137
3149
|
# method in iOS; and, with just a little work, it can be easily formatted into
|
3138
|
-
# a CSS "rgba()" string in JavaScript, as well.
|
3150
|
+
# a CSS "rgba()" string in JavaScript, as well.
|
3151
|
+
# Note: this proto does not carry information about the absolute color space
|
3152
|
+
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
|
3153
|
+
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
|
3154
|
+
# space.
|
3139
3155
|
# Example (Java):
|
3140
3156
|
# import com.google.type.Color;
|
3141
3157
|
# // ...
|
@@ -4912,14 +4928,14 @@ module Google
|
|
4912
4928
|
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1CropHintsAnnotation]
|
4913
4929
|
attr_accessor :crop_hints_annotation
|
4914
4930
|
|
4915
|
-
# The `Status` type defines a logical error model that is suitable for
|
4916
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
4917
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
4931
|
+
# The `Status` type defines a logical error model that is suitable for
|
4932
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
4933
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
4918
4934
|
# - Simple to use and understand for most users
|
4919
4935
|
# - Flexible enough to meet unexpected needs
|
4920
4936
|
# # Overview
|
4921
|
-
# The `Status` message contains three pieces of data: error code, error
|
4922
|
-
# and error details. The error code should be an enum value of
|
4937
|
+
# The `Status` message contains three pieces of data: error code, error
|
4938
|
+
# message, and error details. The error code should be an enum value of
|
4923
4939
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
4924
4940
|
# error message should be a developer-facing English message that helps
|
4925
4941
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
@@ -5194,7 +5210,11 @@ module Google
|
|
5194
5210
|
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
|
5195
5211
|
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
5196
5212
|
# method in iOS; and, with just a little work, it can be easily formatted into
|
5197
|
-
# a CSS "rgba()" string in JavaScript, as well.
|
5213
|
+
# a CSS "rgba()" string in JavaScript, as well.
|
5214
|
+
# Note: this proto does not carry information about the absolute color space
|
5215
|
+
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
|
5216
|
+
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
|
5217
|
+
# space.
|
5198
5218
|
# Example (Java):
|
5199
5219
|
# import com.google.type.Color;
|
5200
5220
|
# // ...
|
@@ -6728,6 +6748,1923 @@ module Google
|
|
6728
6748
|
end
|
6729
6749
|
end
|
6730
6750
|
|
6751
|
+
# Response to a single file annotation request. A file may contain one or more
|
6752
|
+
# images, which individually have their own responses.
|
6753
|
+
class GoogleCloudVisionV1p4beta1AnnotateFileResponse
|
6754
|
+
include Google::Apis::Core::Hashable
|
6755
|
+
|
6756
|
+
# The desired input location and metadata.
|
6757
|
+
# Corresponds to the JSON property `inputConfig`
|
6758
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1InputConfig]
|
6759
|
+
attr_accessor :input_config
|
6760
|
+
|
6761
|
+
# Individual responses to images found within the file.
|
6762
|
+
# Corresponds to the JSON property `responses`
|
6763
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1AnnotateImageResponse>]
|
6764
|
+
attr_accessor :responses
|
6765
|
+
|
6766
|
+
# This field gives the total number of pages in the file.
|
6767
|
+
# Corresponds to the JSON property `totalPages`
|
6768
|
+
# @return [Fixnum]
|
6769
|
+
attr_accessor :total_pages
|
6770
|
+
|
6771
|
+
def initialize(**args)
|
6772
|
+
update!(**args)
|
6773
|
+
end
|
6774
|
+
|
6775
|
+
# Update properties of this object
|
6776
|
+
def update!(**args)
|
6777
|
+
@input_config = args[:input_config] if args.key?(:input_config)
|
6778
|
+
@responses = args[:responses] if args.key?(:responses)
|
6779
|
+
@total_pages = args[:total_pages] if args.key?(:total_pages)
|
6780
|
+
end
|
6781
|
+
end
|
6782
|
+
|
6783
|
+
# Response to an image annotation request.
|
6784
|
+
class GoogleCloudVisionV1p4beta1AnnotateImageResponse
|
6785
|
+
include Google::Apis::Core::Hashable
|
6786
|
+
|
6787
|
+
# If an image was produced from a file (e.g. a PDF), this message gives
|
6788
|
+
# information about the source of that image.
|
6789
|
+
# Corresponds to the JSON property `context`
|
6790
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ImageAnnotationContext]
|
6791
|
+
attr_accessor :context
|
6792
|
+
|
6793
|
+
# Set of crop hints that are used to generate new crops when serving images.
|
6794
|
+
# Corresponds to the JSON property `cropHintsAnnotation`
|
6795
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1CropHintsAnnotation]
|
6796
|
+
attr_accessor :crop_hints_annotation
|
6797
|
+
|
6798
|
+
# The `Status` type defines a logical error model that is suitable for
|
6799
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
6800
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
6801
|
+
# - Simple to use and understand for most users
|
6802
|
+
# - Flexible enough to meet unexpected needs
|
6803
|
+
# # Overview
|
6804
|
+
# The `Status` message contains three pieces of data: error code, error
|
6805
|
+
# message, and error details. The error code should be an enum value of
|
6806
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
6807
|
+
# error message should be a developer-facing English message that helps
|
6808
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
6809
|
+
# error message is needed, put the localized message in the error details or
|
6810
|
+
# localize it in the client. The optional error details may contain arbitrary
|
6811
|
+
# information about the error. There is a predefined set of error detail types
|
6812
|
+
# in the package `google.rpc` that can be used for common error conditions.
|
6813
|
+
# # Language mapping
|
6814
|
+
# The `Status` message is the logical representation of the error model, but it
|
6815
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
6816
|
+
# exposed in different client libraries and different wire protocols, it can be
|
6817
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
6818
|
+
# in Java, but more likely mapped to some error codes in C.
|
6819
|
+
# # Other uses
|
6820
|
+
# The error model and the `Status` message can be used in a variety of
|
6821
|
+
# environments, either with or without APIs, to provide a
|
6822
|
+
# consistent developer experience across different environments.
|
6823
|
+
# Example uses of this error model include:
|
6824
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
6825
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
6826
|
+
# errors.
|
6827
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
6828
|
+
# have a `Status` message for error reporting.
|
6829
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
6830
|
+
# `Status` message should be used directly inside batch response, one for
|
6831
|
+
# each error sub-response.
|
6832
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
6833
|
+
# results in its response, the status of those operations should be
|
6834
|
+
# represented directly using the `Status` message.
|
6835
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
6836
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
6837
|
+
# Corresponds to the JSON property `error`
|
6838
|
+
# @return [Google::Apis::VisionV1p2beta1::Status]
|
6839
|
+
attr_accessor :error
|
6840
|
+
|
6841
|
+
# If present, face detection has completed successfully.
|
6842
|
+
# Corresponds to the JSON property `faceAnnotations`
|
6843
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1FaceAnnotation>]
|
6844
|
+
attr_accessor :face_annotations
|
6845
|
+
|
6846
|
+
# TextAnnotation contains a structured representation of OCR extracted text.
|
6847
|
+
# The hierarchy of an OCR extracted text structure is like this:
|
6848
|
+
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
6849
|
+
# Each structural component, starting from Page, may further have their own
|
6850
|
+
# properties. Properties describe detected languages, breaks etc.. Please refer
|
6851
|
+
# to the TextAnnotation.TextProperty message definition below for more
|
6852
|
+
# detail.
|
6853
|
+
# Corresponds to the JSON property `fullTextAnnotation`
|
6854
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1TextAnnotation]
|
6855
|
+
attr_accessor :full_text_annotation
|
6856
|
+
|
6857
|
+
# Stores image properties, such as dominant colors.
|
6858
|
+
# Corresponds to the JSON property `imagePropertiesAnnotation`
|
6859
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ImageProperties]
|
6860
|
+
attr_accessor :image_properties_annotation
|
6861
|
+
|
6862
|
+
# If present, label detection has completed successfully.
|
6863
|
+
# Corresponds to the JSON property `labelAnnotations`
|
6864
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
|
6865
|
+
attr_accessor :label_annotations
|
6866
|
+
|
6867
|
+
# If present, landmark detection has completed successfully.
|
6868
|
+
# Corresponds to the JSON property `landmarkAnnotations`
|
6869
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
|
6870
|
+
attr_accessor :landmark_annotations
|
6871
|
+
|
6872
|
+
# If present, localized object detection has completed successfully.
|
6873
|
+
# This will be sorted descending by confidence score.
|
6874
|
+
# Corresponds to the JSON property `localizedObjectAnnotations`
|
6875
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation>]
|
6876
|
+
attr_accessor :localized_object_annotations
|
6877
|
+
|
6878
|
+
# If present, logo detection has completed successfully.
|
6879
|
+
# Corresponds to the JSON property `logoAnnotations`
|
6880
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
|
6881
|
+
attr_accessor :logo_annotations
|
6882
|
+
|
6883
|
+
# Results for a product search request.
|
6884
|
+
# Corresponds to the JSON property `productSearchResults`
|
6885
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ProductSearchResults]
|
6886
|
+
attr_accessor :product_search_results
|
6887
|
+
|
6888
|
+
# Set of features pertaining to the image, computed by computer vision
|
6889
|
+
# methods over safe-search verticals (for example, adult, spoof, medical,
|
6890
|
+
# violence).
|
6891
|
+
# Corresponds to the JSON property `safeSearchAnnotation`
|
6892
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1SafeSearchAnnotation]
|
6893
|
+
attr_accessor :safe_search_annotation
|
6894
|
+
|
6895
|
+
# If present, text (OCR) detection has completed successfully.
|
6896
|
+
# Corresponds to the JSON property `textAnnotations`
|
6897
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
|
6898
|
+
attr_accessor :text_annotations
|
6899
|
+
|
6900
|
+
# Relevant information for the image from the Internet.
|
6901
|
+
# Corresponds to the JSON property `webDetection`
|
6902
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1WebDetection]
|
6903
|
+
attr_accessor :web_detection
|
6904
|
+
|
6905
|
+
def initialize(**args)
|
6906
|
+
update!(**args)
|
6907
|
+
end
|
6908
|
+
|
6909
|
+
# Update properties of this object
|
6910
|
+
def update!(**args)
|
6911
|
+
@context = args[:context] if args.key?(:context)
|
6912
|
+
@crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
|
6913
|
+
@error = args[:error] if args.key?(:error)
|
6914
|
+
@face_annotations = args[:face_annotations] if args.key?(:face_annotations)
|
6915
|
+
@full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
|
6916
|
+
@image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
|
6917
|
+
@label_annotations = args[:label_annotations] if args.key?(:label_annotations)
|
6918
|
+
@landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
|
6919
|
+
@localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
|
6920
|
+
@logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
|
6921
|
+
@product_search_results = args[:product_search_results] if args.key?(:product_search_results)
|
6922
|
+
@safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
|
6923
|
+
@text_annotations = args[:text_annotations] if args.key?(:text_annotations)
|
6924
|
+
@web_detection = args[:web_detection] if args.key?(:web_detection)
|
6925
|
+
end
|
6926
|
+
end
|
6927
|
+
|
6928
|
+
# The response for a single offline file annotation request.
|
6929
|
+
class GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse
|
6930
|
+
include Google::Apis::Core::Hashable
|
6931
|
+
|
6932
|
+
# The desired output location and metadata.
|
6933
|
+
# Corresponds to the JSON property `outputConfig`
|
6934
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1OutputConfig]
|
6935
|
+
attr_accessor :output_config
|
6936
|
+
|
6937
|
+
def initialize(**args)
|
6938
|
+
update!(**args)
|
6939
|
+
end
|
6940
|
+
|
6941
|
+
# Update properties of this object
|
6942
|
+
def update!(**args)
|
6943
|
+
@output_config = args[:output_config] if args.key?(:output_config)
|
6944
|
+
end
|
6945
|
+
end
|
6946
|
+
|
6947
|
+
# Response to an async batch file annotation request.
|
6948
|
+
class GoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse
|
6949
|
+
include Google::Apis::Core::Hashable
|
6950
|
+
|
6951
|
+
# The list of file annotation responses, one for each request in
|
6952
|
+
# AsyncBatchAnnotateFilesRequest.
|
6953
|
+
# Corresponds to the JSON property `responses`
|
6954
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse>]
|
6955
|
+
attr_accessor :responses
|
6956
|
+
|
6957
|
+
def initialize(**args)
|
6958
|
+
update!(**args)
|
6959
|
+
end
|
6960
|
+
|
6961
|
+
# Update properties of this object
|
6962
|
+
def update!(**args)
|
6963
|
+
@responses = args[:responses] if args.key?(:responses)
|
6964
|
+
end
|
6965
|
+
end
|
6966
|
+
|
6967
|
+
# Response to an async batch image annotation request.
|
6968
|
+
class GoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse
|
6969
|
+
include Google::Apis::Core::Hashable
|
6970
|
+
|
6971
|
+
# The desired output location and metadata.
|
6972
|
+
# Corresponds to the JSON property `outputConfig`
|
6973
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1OutputConfig]
|
6974
|
+
attr_accessor :output_config
|
6975
|
+
|
6976
|
+
def initialize(**args)
|
6977
|
+
update!(**args)
|
6978
|
+
end
|
6979
|
+
|
6980
|
+
# Update properties of this object
|
6981
|
+
def update!(**args)
|
6982
|
+
@output_config = args[:output_config] if args.key?(:output_config)
|
6983
|
+
end
|
6984
|
+
end
|
6985
|
+
|
6986
|
+
# A list of file annotation responses.
|
6987
|
+
class GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse
|
6988
|
+
include Google::Apis::Core::Hashable
|
6989
|
+
|
6990
|
+
# The list of file annotation responses, each response corresponding to each
|
6991
|
+
# AnnotateFileRequest in BatchAnnotateFilesRequest.
|
6992
|
+
# Corresponds to the JSON property `responses`
|
6993
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1AnnotateFileResponse>]
|
6994
|
+
attr_accessor :responses
|
6995
|
+
|
6996
|
+
def initialize(**args)
|
6997
|
+
update!(**args)
|
6998
|
+
end
|
6999
|
+
|
7000
|
+
# Update properties of this object
|
7001
|
+
def update!(**args)
|
7002
|
+
@responses = args[:responses] if args.key?(:responses)
|
7003
|
+
end
|
7004
|
+
end
|
7005
|
+
|
7006
|
+
# Metadata for the batch operations such as the current state.
|
7007
|
+
# This is included in the `metadata` field of the `Operation` returned by the
|
7008
|
+
# `GetOperation` call of the `google::longrunning::Operations` service.
|
7009
|
+
class GoogleCloudVisionV1p4beta1BatchOperationMetadata
|
7010
|
+
include Google::Apis::Core::Hashable
|
7011
|
+
|
7012
|
+
# The time when the batch request is finished and
|
7013
|
+
# google.longrunning.Operation.done is set to true.
|
7014
|
+
# Corresponds to the JSON property `endTime`
|
7015
|
+
# @return [String]
|
7016
|
+
attr_accessor :end_time
|
7017
|
+
|
7018
|
+
# The current state of the batch operation.
|
7019
|
+
# Corresponds to the JSON property `state`
|
7020
|
+
# @return [String]
|
7021
|
+
attr_accessor :state
|
7022
|
+
|
7023
|
+
# The time when the batch request was submitted to the server.
|
7024
|
+
# Corresponds to the JSON property `submitTime`
|
7025
|
+
# @return [String]
|
7026
|
+
attr_accessor :submit_time
|
7027
|
+
|
7028
|
+
def initialize(**args)
|
7029
|
+
update!(**args)
|
7030
|
+
end
|
7031
|
+
|
7032
|
+
# Update properties of this object
|
7033
|
+
def update!(**args)
|
7034
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
7035
|
+
@state = args[:state] if args.key?(:state)
|
7036
|
+
@submit_time = args[:submit_time] if args.key?(:submit_time)
|
7037
|
+
end
|
7038
|
+
end
|
7039
|
+
|
7040
|
+
# Logical element on the page.
|
7041
|
+
class GoogleCloudVisionV1p4beta1Block
|
7042
|
+
include Google::Apis::Core::Hashable
|
7043
|
+
|
7044
|
+
# Detected block type (text, image etc) for this block.
|
7045
|
+
# Corresponds to the JSON property `blockType`
|
7046
|
+
# @return [String]
|
7047
|
+
attr_accessor :block_type
|
7048
|
+
|
7049
|
+
# A bounding polygon for the detected image annotation.
|
7050
|
+
# Corresponds to the JSON property `boundingBox`
|
7051
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1BoundingPoly]
|
7052
|
+
attr_accessor :bounding_box
|
7053
|
+
|
7054
|
+
# Confidence of the OCR results on the block. Range [0, 1].
|
7055
|
+
# Corresponds to the JSON property `confidence`
|
7056
|
+
# @return [Float]
|
7057
|
+
attr_accessor :confidence
|
7058
|
+
|
7059
|
+
# List of paragraphs in this block (if this blocks is of type text).
|
7060
|
+
# Corresponds to the JSON property `paragraphs`
|
7061
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1Paragraph>]
|
7062
|
+
attr_accessor :paragraphs
|
7063
|
+
|
7064
|
+
# Additional information detected on the structural component.
|
7065
|
+
# Corresponds to the JSON property `property`
|
7066
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
|
7067
|
+
attr_accessor :property
|
7068
|
+
|
7069
|
+
def initialize(**args)
|
7070
|
+
update!(**args)
|
7071
|
+
end
|
7072
|
+
|
7073
|
+
# Update properties of this object
|
7074
|
+
def update!(**args)
|
7075
|
+
@block_type = args[:block_type] if args.key?(:block_type)
|
7076
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
7077
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
7078
|
+
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
7079
|
+
@property = args[:property] if args.key?(:property)
|
7080
|
+
end
|
7081
|
+
end
|
7082
|
+
|
7083
|
+
# A bounding polygon for the detected image annotation.
|
7084
|
+
class GoogleCloudVisionV1p4beta1BoundingPoly
|
7085
|
+
include Google::Apis::Core::Hashable
|
7086
|
+
|
7087
|
+
# The bounding polygon normalized vertices.
|
7088
|
+
# Corresponds to the JSON property `normalizedVertices`
|
7089
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1NormalizedVertex>]
|
7090
|
+
attr_accessor :normalized_vertices
|
7091
|
+
|
7092
|
+
# The bounding polygon vertices.
|
7093
|
+
# Corresponds to the JSON property `vertices`
|
7094
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1Vertex>]
|
7095
|
+
attr_accessor :vertices
|
7096
|
+
|
7097
|
+
def initialize(**args)
|
7098
|
+
update!(**args)
|
7099
|
+
end
|
7100
|
+
|
7101
|
+
# Update properties of this object
|
7102
|
+
def update!(**args)
|
7103
|
+
@normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
|
7104
|
+
@vertices = args[:vertices] if args.key?(:vertices)
|
7105
|
+
end
|
7106
|
+
end
|
7107
|
+
|
7108
|
+
# Color information consists of RGB channels, score, and the fraction of
|
7109
|
+
# the image that the color occupies in the image.
|
7110
|
+
class GoogleCloudVisionV1p4beta1ColorInfo
|
7111
|
+
include Google::Apis::Core::Hashable
|
7112
|
+
|
7113
|
+
# Represents a color in the RGBA color space. This representation is designed
|
7114
|
+
# for simplicity of conversion to/from color representations in various
|
7115
|
+
# languages over compactness; for example, the fields of this representation
|
7116
|
+
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
|
7117
|
+
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
7118
|
+
# method in iOS; and, with just a little work, it can be easily formatted into
|
7119
|
+
# a CSS "rgba()" string in JavaScript, as well.
|
7120
|
+
# Note: this proto does not carry information about the absolute color space
|
7121
|
+
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
|
7122
|
+
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
|
7123
|
+
# space.
|
7124
|
+
# Example (Java):
|
7125
|
+
# import com.google.type.Color;
|
7126
|
+
# // ...
|
7127
|
+
# public static java.awt.Color fromProto(Color protocolor) `
|
7128
|
+
# float alpha = protocolor.hasAlpha()
|
7129
|
+
# ? protocolor.getAlpha().getValue()
|
7130
|
+
# : 1.0;
|
7131
|
+
# return new java.awt.Color(
|
7132
|
+
# protocolor.getRed(),
|
7133
|
+
# protocolor.getGreen(),
|
7134
|
+
# protocolor.getBlue(),
|
7135
|
+
# alpha);
|
7136
|
+
# `
|
7137
|
+
# public static Color toProto(java.awt.Color color) `
|
7138
|
+
# float red = (float) color.getRed();
|
7139
|
+
# float green = (float) color.getGreen();
|
7140
|
+
# float blue = (float) color.getBlue();
|
7141
|
+
# float denominator = 255.0;
|
7142
|
+
# Color.Builder resultBuilder =
|
7143
|
+
# Color
|
7144
|
+
# .newBuilder()
|
7145
|
+
# .setRed(red / denominator)
|
7146
|
+
# .setGreen(green / denominator)
|
7147
|
+
# .setBlue(blue / denominator);
|
7148
|
+
# int alpha = color.getAlpha();
|
7149
|
+
# if (alpha != 255) `
|
7150
|
+
# result.setAlpha(
|
7151
|
+
# FloatValue
|
7152
|
+
# .newBuilder()
|
7153
|
+
# .setValue(((float) alpha) / denominator)
|
7154
|
+
# .build());
|
7155
|
+
# `
|
7156
|
+
# return resultBuilder.build();
|
7157
|
+
# `
|
7158
|
+
# // ...
|
7159
|
+
# Example (iOS / Obj-C):
|
7160
|
+
# // ...
|
7161
|
+
# static UIColor* fromProto(Color* protocolor) `
|
7162
|
+
# float red = [protocolor red];
|
7163
|
+
# float green = [protocolor green];
|
7164
|
+
# float blue = [protocolor blue];
|
7165
|
+
# FloatValue* alpha_wrapper = [protocolor alpha];
|
7166
|
+
# float alpha = 1.0;
|
7167
|
+
# if (alpha_wrapper != nil) `
|
7168
|
+
# alpha = [alpha_wrapper value];
|
7169
|
+
# `
|
7170
|
+
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
|
7171
|
+
# `
|
7172
|
+
# static Color* toProto(UIColor* color) `
|
7173
|
+
# CGFloat red, green, blue, alpha;
|
7174
|
+
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
|
7175
|
+
# return nil;
|
7176
|
+
# `
|
7177
|
+
# Color* result = [[Color alloc] init];
|
7178
|
+
# [result setRed:red];
|
7179
|
+
# [result setGreen:green];
|
7180
|
+
# [result setBlue:blue];
|
7181
|
+
# if (alpha <= 0.9999) `
|
7182
|
+
# [result setAlpha:floatWrapperWithValue(alpha)];
|
7183
|
+
# `
|
7184
|
+
# [result autorelease];
|
7185
|
+
# return result;
|
7186
|
+
# `
|
7187
|
+
# // ...
|
7188
|
+
# Example (JavaScript):
|
7189
|
+
# // ...
|
7190
|
+
# var protoToCssColor = function(rgb_color) `
|
7191
|
+
# var redFrac = rgb_color.red || 0.0;
|
7192
|
+
# var greenFrac = rgb_color.green || 0.0;
|
7193
|
+
# var blueFrac = rgb_color.blue || 0.0;
|
7194
|
+
# var red = Math.floor(redFrac * 255);
|
7195
|
+
# var green = Math.floor(greenFrac * 255);
|
7196
|
+
# var blue = Math.floor(blueFrac * 255);
|
7197
|
+
# if (!('alpha' in rgb_color)) `
|
7198
|
+
# return rgbToCssColor_(red, green, blue);
|
7199
|
+
# `
|
7200
|
+
# var alphaFrac = rgb_color.alpha.value || 0.0;
|
7201
|
+
# var rgbParams = [red, green, blue].join(',');
|
7202
|
+
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
|
7203
|
+
# `;
|
7204
|
+
# var rgbToCssColor_ = function(red, green, blue) `
|
7205
|
+
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
|
7206
|
+
# var hexString = rgbNumber.toString(16);
|
7207
|
+
# var missingZeros = 6 - hexString.length;
|
7208
|
+
# var resultBuilder = ['#'];
|
7209
|
+
# for (var i = 0; i < missingZeros; i++) `
|
7210
|
+
# resultBuilder.push('0');
|
7211
|
+
# `
|
7212
|
+
# resultBuilder.push(hexString);
|
7213
|
+
# return resultBuilder.join('');
|
7214
|
+
# `;
|
7215
|
+
# // ...
|
7216
|
+
# Corresponds to the JSON property `color`
|
7217
|
+
# @return [Google::Apis::VisionV1p2beta1::Color]
|
7218
|
+
attr_accessor :color
|
7219
|
+
|
7220
|
+
# The fraction of pixels the color occupies in the image.
|
7221
|
+
# Value in range [0, 1].
|
7222
|
+
# Corresponds to the JSON property `pixelFraction`
|
7223
|
+
# @return [Float]
|
7224
|
+
attr_accessor :pixel_fraction
|
7225
|
+
|
7226
|
+
# Image-specific score for this color. Value in range [0, 1].
|
7227
|
+
# Corresponds to the JSON property `score`
|
7228
|
+
# @return [Float]
|
7229
|
+
attr_accessor :score
|
7230
|
+
|
7231
|
+
def initialize(**args)
|
7232
|
+
update!(**args)
|
7233
|
+
end
|
7234
|
+
|
7235
|
+
# Update properties of this object
|
7236
|
+
def update!(**args)
|
7237
|
+
@color = args[:color] if args.key?(:color)
|
7238
|
+
@pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction)
|
7239
|
+
@score = args[:score] if args.key?(:score)
|
7240
|
+
end
|
7241
|
+
end
|
7242
|
+
|
7243
|
+
# Single crop hint that is used to generate a new crop when serving an image.
|
7244
|
+
class GoogleCloudVisionV1p4beta1CropHint
|
7245
|
+
include Google::Apis::Core::Hashable
|
7246
|
+
|
7247
|
+
# A bounding polygon for the detected image annotation.
|
7248
|
+
# Corresponds to the JSON property `boundingPoly`
|
7249
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1BoundingPoly]
|
7250
|
+
attr_accessor :bounding_poly
|
7251
|
+
|
7252
|
+
# Confidence of this being a salient region. Range [0, 1].
|
7253
|
+
# Corresponds to the JSON property `confidence`
|
7254
|
+
# @return [Float]
|
7255
|
+
attr_accessor :confidence
|
7256
|
+
|
7257
|
+
# Fraction of importance of this salient region with respect to the original
|
7258
|
+
# image.
|
7259
|
+
# Corresponds to the JSON property `importanceFraction`
|
7260
|
+
# @return [Float]
|
7261
|
+
attr_accessor :importance_fraction
|
7262
|
+
|
7263
|
+
def initialize(**args)
|
7264
|
+
update!(**args)
|
7265
|
+
end
|
7266
|
+
|
7267
|
+
# Update properties of this object
|
7268
|
+
def update!(**args)
|
7269
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
7270
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
7271
|
+
@importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction)
|
7272
|
+
end
|
7273
|
+
end
|
7274
|
+
|
7275
|
+
# Set of crop hints that are used to generate new crops when serving images.
|
7276
|
+
class GoogleCloudVisionV1p4beta1CropHintsAnnotation
|
7277
|
+
include Google::Apis::Core::Hashable
|
7278
|
+
|
7279
|
+
# Crop hint results.
|
7280
|
+
# Corresponds to the JSON property `cropHints`
|
7281
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1CropHint>]
|
7282
|
+
attr_accessor :crop_hints
|
7283
|
+
|
7284
|
+
def initialize(**args)
|
7285
|
+
update!(**args)
|
7286
|
+
end
|
7287
|
+
|
7288
|
+
# Update properties of this object
|
7289
|
+
def update!(**args)
|
7290
|
+
@crop_hints = args[:crop_hints] if args.key?(:crop_hints)
|
7291
|
+
end
|
7292
|
+
end
|
7293
|
+
|
7294
|
+
# Set of dominant colors and their corresponding scores.
|
7295
|
+
class GoogleCloudVisionV1p4beta1DominantColorsAnnotation
|
7296
|
+
include Google::Apis::Core::Hashable
|
7297
|
+
|
7298
|
+
# RGB color values with their score and pixel fraction.
|
7299
|
+
# Corresponds to the JSON property `colors`
|
7300
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ColorInfo>]
|
7301
|
+
attr_accessor :colors
|
7302
|
+
|
7303
|
+
def initialize(**args)
|
7304
|
+
update!(**args)
|
7305
|
+
end
|
7306
|
+
|
7307
|
+
# Update properties of this object
|
7308
|
+
def update!(**args)
|
7309
|
+
@colors = args[:colors] if args.key?(:colors)
|
7310
|
+
end
|
7311
|
+
end
|
7312
|
+
|
7313
|
+
# Set of detected entity features.
|
7314
|
+
class GoogleCloudVisionV1p4beta1EntityAnnotation
|
7315
|
+
include Google::Apis::Core::Hashable
|
7316
|
+
|
7317
|
+
# A bounding polygon for the detected image annotation.
|
7318
|
+
# Corresponds to the JSON property `boundingPoly`
|
7319
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1BoundingPoly]
|
7320
|
+
attr_accessor :bounding_poly
|
7321
|
+
|
7322
|
+
# **Deprecated. Use `score` instead.**
|
7323
|
+
# The accuracy of the entity detection in an image.
|
7324
|
+
# For example, for an image in which the "Eiffel Tower" entity is detected,
|
7325
|
+
# this field represents the confidence that there is a tower in the query
|
7326
|
+
# image. Range [0, 1].
|
7327
|
+
# Corresponds to the JSON property `confidence`
|
7328
|
+
# @return [Float]
|
7329
|
+
attr_accessor :confidence
|
7330
|
+
|
7331
|
+
# Entity textual description, expressed in its `locale` language.
|
7332
|
+
# Corresponds to the JSON property `description`
|
7333
|
+
# @return [String]
|
7334
|
+
attr_accessor :description
|
7335
|
+
|
7336
|
+
# The language code for the locale in which the entity textual
|
7337
|
+
# `description` is expressed.
|
7338
|
+
# Corresponds to the JSON property `locale`
|
7339
|
+
# @return [String]
|
7340
|
+
attr_accessor :locale
|
7341
|
+
|
7342
|
+
# The location information for the detected entity. Multiple
|
7343
|
+
# `LocationInfo` elements can be present because one location may
|
7344
|
+
# indicate the location of the scene in the image, and another location
|
7345
|
+
# may indicate the location of the place where the image was taken.
|
7346
|
+
# Location information is usually present for landmarks.
|
7347
|
+
# Corresponds to the JSON property `locations`
|
7348
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1LocationInfo>]
|
7349
|
+
attr_accessor :locations
|
7350
|
+
|
7351
|
+
# Opaque entity ID. Some IDs may be available in
|
7352
|
+
# [Google Knowledge Graph Search
|
7353
|
+
# API](https://developers.google.com/knowledge-graph/).
|
7354
|
+
# Corresponds to the JSON property `mid`
|
7355
|
+
# @return [String]
|
7356
|
+
attr_accessor :mid
|
7357
|
+
|
7358
|
+
# Some entities may have optional user-supplied `Property` (name/value)
|
7359
|
+
# fields, such a score or string that qualifies the entity.
|
7360
|
+
# Corresponds to the JSON property `properties`
|
7361
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1Property>]
|
7362
|
+
attr_accessor :properties
|
7363
|
+
|
7364
|
+
# Overall score of the result. Range [0, 1].
|
7365
|
+
# Corresponds to the JSON property `score`
|
7366
|
+
# @return [Float]
|
7367
|
+
attr_accessor :score
|
7368
|
+
|
7369
|
+
# The relevancy of the ICA (Image Content Annotation) label to the
|
7370
|
+
# image. For example, the relevancy of "tower" is likely higher to an image
|
7371
|
+
# containing the detected "Eiffel Tower" than to an image containing a
|
7372
|
+
# detected distant towering building, even though the confidence that
|
7373
|
+
# there is a tower in each image may be the same. Range [0, 1].
|
7374
|
+
# Corresponds to the JSON property `topicality`
|
7375
|
+
# @return [Float]
|
7376
|
+
attr_accessor :topicality
|
7377
|
+
|
7378
|
+
def initialize(**args)
|
7379
|
+
update!(**args)
|
7380
|
+
end
|
7381
|
+
|
7382
|
+
# Update properties of this object
|
7383
|
+
def update!(**args)
|
7384
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
7385
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
7386
|
+
@description = args[:description] if args.key?(:description)
|
7387
|
+
@locale = args[:locale] if args.key?(:locale)
|
7388
|
+
@locations = args[:locations] if args.key?(:locations)
|
7389
|
+
@mid = args[:mid] if args.key?(:mid)
|
7390
|
+
@properties = args[:properties] if args.key?(:properties)
|
7391
|
+
@score = args[:score] if args.key?(:score)
|
7392
|
+
@topicality = args[:topicality] if args.key?(:topicality)
|
7393
|
+
end
|
7394
|
+
end
|
7395
|
+
|
7396
|
+
# A face annotation object contains the results of face detection.
|
7397
|
+
class GoogleCloudVisionV1p4beta1FaceAnnotation
|
7398
|
+
include Google::Apis::Core::Hashable
|
7399
|
+
|
7400
|
+
# Anger likelihood.
|
7401
|
+
# Corresponds to the JSON property `angerLikelihood`
|
7402
|
+
# @return [String]
|
7403
|
+
attr_accessor :anger_likelihood
|
7404
|
+
|
7405
|
+
# Blurred likelihood.
|
7406
|
+
# Corresponds to the JSON property `blurredLikelihood`
|
7407
|
+
# @return [String]
|
7408
|
+
attr_accessor :blurred_likelihood
|
7409
|
+
|
7410
|
+
# A bounding polygon for the detected image annotation.
|
7411
|
+
# Corresponds to the JSON property `boundingPoly`
|
7412
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1BoundingPoly]
|
7413
|
+
attr_accessor :bounding_poly
|
7414
|
+
|
7415
|
+
# Detection confidence. Range [0, 1].
|
7416
|
+
# Corresponds to the JSON property `detectionConfidence`
|
7417
|
+
# @return [Float]
|
7418
|
+
attr_accessor :detection_confidence
|
7419
|
+
|
7420
|
+
# A bounding polygon for the detected image annotation.
|
7421
|
+
# Corresponds to the JSON property `fdBoundingPoly`
|
7422
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1BoundingPoly]
|
7423
|
+
attr_accessor :fd_bounding_poly
|
7424
|
+
|
7425
|
+
# Headwear likelihood.
|
7426
|
+
# Corresponds to the JSON property `headwearLikelihood`
|
7427
|
+
# @return [String]
|
7428
|
+
attr_accessor :headwear_likelihood
|
7429
|
+
|
7430
|
+
# Joy likelihood.
|
7431
|
+
# Corresponds to the JSON property `joyLikelihood`
|
7432
|
+
# @return [String]
|
7433
|
+
attr_accessor :joy_likelihood
|
7434
|
+
|
7435
|
+
# Face landmarking confidence. Range [0, 1].
|
7436
|
+
# Corresponds to the JSON property `landmarkingConfidence`
|
7437
|
+
# @return [Float]
|
7438
|
+
attr_accessor :landmarking_confidence
|
7439
|
+
|
7440
|
+
# Detected face landmarks.
|
7441
|
+
# Corresponds to the JSON property `landmarks`
|
7442
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1FaceAnnotationLandmark>]
|
7443
|
+
attr_accessor :landmarks
|
7444
|
+
|
7445
|
+
# Yaw angle, which indicates the leftward/rightward angle that the face is
|
7446
|
+
# pointing relative to the vertical plane perpendicular to the image. Range
|
7447
|
+
# [-180,180].
|
7448
|
+
# Corresponds to the JSON property `panAngle`
|
7449
|
+
# @return [Float]
|
7450
|
+
attr_accessor :pan_angle
|
7451
|
+
|
7452
|
+
# Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
|
7453
|
+
# of the face relative to the image vertical about the axis perpendicular to
|
7454
|
+
# the face. Range [-180,180].
|
7455
|
+
# Corresponds to the JSON property `rollAngle`
|
7456
|
+
# @return [Float]
|
7457
|
+
attr_accessor :roll_angle
|
7458
|
+
|
7459
|
+
# Sorrow likelihood.
|
7460
|
+
# Corresponds to the JSON property `sorrowLikelihood`
|
7461
|
+
# @return [String]
|
7462
|
+
attr_accessor :sorrow_likelihood
|
7463
|
+
|
7464
|
+
# Surprise likelihood.
|
7465
|
+
# Corresponds to the JSON property `surpriseLikelihood`
|
7466
|
+
# @return [String]
|
7467
|
+
attr_accessor :surprise_likelihood
|
7468
|
+
|
7469
|
+
# Pitch angle, which indicates the upwards/downwards angle that the face is
|
7470
|
+
# pointing relative to the image's horizontal plane. Range [-180,180].
|
7471
|
+
# Corresponds to the JSON property `tiltAngle`
|
7472
|
+
# @return [Float]
|
7473
|
+
attr_accessor :tilt_angle
|
7474
|
+
|
7475
|
+
# Under-exposed likelihood.
|
7476
|
+
# Corresponds to the JSON property `underExposedLikelihood`
|
7477
|
+
# @return [String]
|
7478
|
+
attr_accessor :under_exposed_likelihood
|
7479
|
+
|
7480
|
+
def initialize(**args)
|
7481
|
+
update!(**args)
|
7482
|
+
end
|
7483
|
+
|
7484
|
+
# Update properties of this object
|
7485
|
+
def update!(**args)
|
7486
|
+
@anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood)
|
7487
|
+
@blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood)
|
7488
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
7489
|
+
@detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence)
|
7490
|
+
@fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly)
|
7491
|
+
@headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood)
|
7492
|
+
@joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood)
|
7493
|
+
@landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
|
7494
|
+
@landmarks = args[:landmarks] if args.key?(:landmarks)
|
7495
|
+
@pan_angle = args[:pan_angle] if args.key?(:pan_angle)
|
7496
|
+
@roll_angle = args[:roll_angle] if args.key?(:roll_angle)
|
7497
|
+
@sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood)
|
7498
|
+
@surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
|
7499
|
+
@tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle)
|
7500
|
+
@under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood)
|
7501
|
+
end
|
7502
|
+
end
|
7503
|
+
|
7504
|
+
# A face-specific landmark (for example, a face feature).
|
7505
|
+
class GoogleCloudVisionV1p4beta1FaceAnnotationLandmark
|
7506
|
+
include Google::Apis::Core::Hashable
|
7507
|
+
|
7508
|
+
# A 3D position in the image, used primarily for Face detection landmarks.
|
7509
|
+
# A valid Position must have both x and y coordinates.
|
7510
|
+
# The position coordinates are in the same scale as the original image.
|
7511
|
+
# Corresponds to the JSON property `position`
|
7512
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1Position]
|
7513
|
+
attr_accessor :position
|
7514
|
+
|
7515
|
+
# Face landmark type.
|
7516
|
+
# Corresponds to the JSON property `type`
|
7517
|
+
# @return [String]
|
7518
|
+
attr_accessor :type
|
7519
|
+
|
7520
|
+
def initialize(**args)
|
7521
|
+
update!(**args)
|
7522
|
+
end
|
7523
|
+
|
7524
|
+
# Update properties of this object
|
7525
|
+
def update!(**args)
|
7526
|
+
@position = args[:position] if args.key?(:position)
|
7527
|
+
@type = args[:type] if args.key?(:type)
|
7528
|
+
end
|
7529
|
+
end
|
7530
|
+
|
7531
|
+
# The Google Cloud Storage location where the output will be written to.
|
7532
|
+
class GoogleCloudVisionV1p4beta1GcsDestination
|
7533
|
+
include Google::Apis::Core::Hashable
|
7534
|
+
|
7535
|
+
# Google Cloud Storage URI where the results will be stored. Results will
|
7536
|
+
# be in JSON format and preceded by its corresponding input URI. This field
|
7537
|
+
# can either represent a single file, or a prefix for multiple outputs.
|
7538
|
+
# Prefixes must end in a `/`.
|
7539
|
+
# Examples:
|
7540
|
+
# * File: gs://bucket-name/filename.json
|
7541
|
+
# * Prefix: gs://bucket-name/prefix/here/
|
7542
|
+
# * File: gs://bucket-name/prefix/here
|
7543
|
+
# If multiple outputs, each response is still AnnotateFileResponse, each of
|
7544
|
+
# which contains some subset of the full list of AnnotateImageResponse.
|
7545
|
+
# Multiple outputs can happen if, for example, the output JSON is too large
|
7546
|
+
# and overflows into multiple sharded files.
|
7547
|
+
# Corresponds to the JSON property `uri`
|
7548
|
+
# @return [String]
|
7549
|
+
attr_accessor :uri
|
7550
|
+
|
7551
|
+
def initialize(**args)
|
7552
|
+
update!(**args)
|
7553
|
+
end
|
7554
|
+
|
7555
|
+
# Update properties of this object
|
7556
|
+
def update!(**args)
|
7557
|
+
@uri = args[:uri] if args.key?(:uri)
|
7558
|
+
end
|
7559
|
+
end
|
7560
|
+
|
7561
|
+
# The Google Cloud Storage location where the input will be read from.
|
7562
|
+
class GoogleCloudVisionV1p4beta1GcsSource
|
7563
|
+
include Google::Apis::Core::Hashable
|
7564
|
+
|
7565
|
+
# Google Cloud Storage URI for the input file. This must only be a
|
7566
|
+
# Google Cloud Storage object. Wildcards are not currently supported.
|
7567
|
+
# Corresponds to the JSON property `uri`
|
7568
|
+
# @return [String]
|
7569
|
+
attr_accessor :uri
|
7570
|
+
|
7571
|
+
def initialize(**args)
|
7572
|
+
update!(**args)
|
7573
|
+
end
|
7574
|
+
|
7575
|
+
# Update properties of this object
|
7576
|
+
def update!(**args)
|
7577
|
+
@uri = args[:uri] if args.key?(:uri)
|
7578
|
+
end
|
7579
|
+
end
|
7580
|
+
|
7581
|
+
# If an image was produced from a file (e.g. a PDF), this message gives
|
7582
|
+
# information about the source of that image.
|
7583
|
+
class GoogleCloudVisionV1p4beta1ImageAnnotationContext
|
7584
|
+
include Google::Apis::Core::Hashable
|
7585
|
+
|
7586
|
+
# If the file was a PDF or TIFF, this field gives the page number within
|
7587
|
+
# the file used to produce the image.
|
7588
|
+
# Corresponds to the JSON property `pageNumber`
|
7589
|
+
# @return [Fixnum]
|
7590
|
+
attr_accessor :page_number
|
7591
|
+
|
7592
|
+
# The URI of the file used to produce the image.
|
7593
|
+
# Corresponds to the JSON property `uri`
|
7594
|
+
# @return [String]
|
7595
|
+
attr_accessor :uri
|
7596
|
+
|
7597
|
+
def initialize(**args)
|
7598
|
+
update!(**args)
|
7599
|
+
end
|
7600
|
+
|
7601
|
+
# Update properties of this object
|
7602
|
+
def update!(**args)
|
7603
|
+
@page_number = args[:page_number] if args.key?(:page_number)
|
7604
|
+
@uri = args[:uri] if args.key?(:uri)
|
7605
|
+
end
|
7606
|
+
end
|
7607
|
+
|
7608
|
+
# Stores image properties, such as dominant colors.
|
7609
|
+
class GoogleCloudVisionV1p4beta1ImageProperties
|
7610
|
+
include Google::Apis::Core::Hashable
|
7611
|
+
|
7612
|
+
# Set of dominant colors and their corresponding scores.
|
7613
|
+
# Corresponds to the JSON property `dominantColors`
|
7614
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1DominantColorsAnnotation]
|
7615
|
+
attr_accessor :dominant_colors
|
7616
|
+
|
7617
|
+
def initialize(**args)
|
7618
|
+
update!(**args)
|
7619
|
+
end
|
7620
|
+
|
7621
|
+
# Update properties of this object
|
7622
|
+
def update!(**args)
|
7623
|
+
@dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
|
7624
|
+
end
|
7625
|
+
end
|
7626
|
+
|
7627
|
+
# Response message for the `ImportProductSets` method.
|
7628
|
+
# This message is returned by the
|
7629
|
+
# google.longrunning.Operations.GetOperation method in the returned
|
7630
|
+
# google.longrunning.Operation.response field.
|
7631
|
+
class GoogleCloudVisionV1p4beta1ImportProductSetsResponse
|
7632
|
+
include Google::Apis::Core::Hashable
|
7633
|
+
|
7634
|
+
# The list of reference_images that are imported successfully.
|
7635
|
+
# Corresponds to the JSON property `referenceImages`
|
7636
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ReferenceImage>]
|
7637
|
+
attr_accessor :reference_images
|
7638
|
+
|
7639
|
+
# The rpc status for each ImportProductSet request, including both successes
|
7640
|
+
# and errors.
|
7641
|
+
# The number of statuses here matches the number of lines in the csv file,
|
7642
|
+
# and statuses[i] stores the success or failure status of processing the i-th
|
7643
|
+
# line of the csv, starting from line 0.
|
7644
|
+
# Corresponds to the JSON property `statuses`
|
7645
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::Status>]
|
7646
|
+
attr_accessor :statuses
|
7647
|
+
|
7648
|
+
def initialize(**args)
|
7649
|
+
update!(**args)
|
7650
|
+
end
|
7651
|
+
|
7652
|
+
# Update properties of this object
|
7653
|
+
def update!(**args)
|
7654
|
+
@reference_images = args[:reference_images] if args.key?(:reference_images)
|
7655
|
+
@statuses = args[:statuses] if args.key?(:statuses)
|
7656
|
+
end
|
7657
|
+
end
|
7658
|
+
|
7659
|
+
# The desired input location and metadata.
|
7660
|
+
class GoogleCloudVisionV1p4beta1InputConfig
|
7661
|
+
include Google::Apis::Core::Hashable
|
7662
|
+
|
7663
|
+
# File content, represented as a stream of bytes.
|
7664
|
+
# Note: As with all `bytes` fields, protobuffers use a pure binary
|
7665
|
+
# representation, whereas JSON representations use base64.
|
7666
|
+
# Currently, this field only works for BatchAnnotateFiles requests. It does
|
7667
|
+
# not work for AsyncBatchAnnotateFiles requests.
|
7668
|
+
# Corresponds to the JSON property `content`
|
7669
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
7670
|
+
# @return [String]
|
7671
|
+
attr_accessor :content
|
7672
|
+
|
7673
|
+
# The Google Cloud Storage location where the input will be read from.
|
7674
|
+
# Corresponds to the JSON property `gcsSource`
|
7675
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1GcsSource]
|
7676
|
+
attr_accessor :gcs_source
|
7677
|
+
|
7678
|
+
# The type of the file. Currently only "application/pdf" and "image/tiff"
|
7679
|
+
# are supported. Wildcards are not supported.
|
7680
|
+
# Corresponds to the JSON property `mimeType`
|
7681
|
+
# @return [String]
|
7682
|
+
attr_accessor :mime_type
|
7683
|
+
|
7684
|
+
def initialize(**args)
|
7685
|
+
update!(**args)
|
7686
|
+
end
|
7687
|
+
|
7688
|
+
# Update properties of this object
|
7689
|
+
def update!(**args)
|
7690
|
+
@content = args[:content] if args.key?(:content)
|
7691
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
7692
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
7693
|
+
end
|
7694
|
+
end
|
7695
|
+
|
7696
|
+
# Set of detected objects with bounding boxes.
|
7697
|
+
class GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation
|
7698
|
+
include Google::Apis::Core::Hashable
|
7699
|
+
|
7700
|
+
# A bounding polygon for the detected image annotation.
|
7701
|
+
# Corresponds to the JSON property `boundingPoly`
|
7702
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1BoundingPoly]
|
7703
|
+
attr_accessor :bounding_poly
|
7704
|
+
|
7705
|
+
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
7706
|
+
# information, see
|
7707
|
+
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
7708
|
+
# Corresponds to the JSON property `languageCode`
|
7709
|
+
# @return [String]
|
7710
|
+
attr_accessor :language_code
|
7711
|
+
|
7712
|
+
# Object ID that should align with EntityAnnotation mid.
|
7713
|
+
# Corresponds to the JSON property `mid`
|
7714
|
+
# @return [String]
|
7715
|
+
attr_accessor :mid
|
7716
|
+
|
7717
|
+
# Object name, expressed in its `language_code` language.
|
7718
|
+
# Corresponds to the JSON property `name`
|
7719
|
+
# @return [String]
|
7720
|
+
attr_accessor :name
|
7721
|
+
|
7722
|
+
# Score of the result. Range [0, 1].
|
7723
|
+
# Corresponds to the JSON property `score`
|
7724
|
+
# @return [Float]
|
7725
|
+
attr_accessor :score
|
7726
|
+
|
7727
|
+
def initialize(**args)
|
7728
|
+
update!(**args)
|
7729
|
+
end
|
7730
|
+
|
7731
|
+
# Update properties of this object
|
7732
|
+
def update!(**args)
|
7733
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
7734
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
7735
|
+
@mid = args[:mid] if args.key?(:mid)
|
7736
|
+
@name = args[:name] if args.key?(:name)
|
7737
|
+
@score = args[:score] if args.key?(:score)
|
7738
|
+
end
|
7739
|
+
end
|
7740
|
+
|
7741
|
+
# Detected entity location information.
|
7742
|
+
class GoogleCloudVisionV1p4beta1LocationInfo
|
7743
|
+
include Google::Apis::Core::Hashable
|
7744
|
+
|
7745
|
+
# An object representing a latitude/longitude pair. This is expressed as a pair
|
7746
|
+
# of doubles representing degrees latitude and degrees longitude. Unless
|
7747
|
+
# specified otherwise, this must conform to the
|
7748
|
+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
7749
|
+
# standard</a>. Values must be within normalized ranges.
|
7750
|
+
# Corresponds to the JSON property `latLng`
|
7751
|
+
# @return [Google::Apis::VisionV1p2beta1::LatLng]
|
7752
|
+
attr_accessor :lat_lng
|
7753
|
+
|
7754
|
+
def initialize(**args)
|
7755
|
+
update!(**args)
|
7756
|
+
end
|
7757
|
+
|
7758
|
+
# Update properties of this object
|
7759
|
+
def update!(**args)
|
7760
|
+
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
7761
|
+
end
|
7762
|
+
end
|
7763
|
+
|
7764
|
+
# A vertex represents a 2D point in the image.
|
7765
|
+
# NOTE: the normalized vertex coordinates are relative to the original image
|
7766
|
+
# and range from 0 to 1.
|
7767
|
+
class GoogleCloudVisionV1p4beta1NormalizedVertex
|
7768
|
+
include Google::Apis::Core::Hashable
|
7769
|
+
|
7770
|
+
# X coordinate.
|
7771
|
+
# Corresponds to the JSON property `x`
|
7772
|
+
# @return [Float]
|
7773
|
+
attr_accessor :x
|
7774
|
+
|
7775
|
+
# Y coordinate.
|
7776
|
+
# Corresponds to the JSON property `y`
|
7777
|
+
# @return [Float]
|
7778
|
+
attr_accessor :y
|
7779
|
+
|
7780
|
+
def initialize(**args)
|
7781
|
+
update!(**args)
|
7782
|
+
end
|
7783
|
+
|
7784
|
+
# Update properties of this object
|
7785
|
+
def update!(**args)
|
7786
|
+
@x = args[:x] if args.key?(:x)
|
7787
|
+
@y = args[:y] if args.key?(:y)
|
7788
|
+
end
|
7789
|
+
end
|
7790
|
+
|
7791
|
+
# Contains metadata for the BatchAnnotateImages operation.
|
7792
|
+
class GoogleCloudVisionV1p4beta1OperationMetadata
|
7793
|
+
include Google::Apis::Core::Hashable
|
7794
|
+
|
7795
|
+
# The time when the batch request was received.
|
7796
|
+
# Corresponds to the JSON property `createTime`
|
7797
|
+
# @return [String]
|
7798
|
+
attr_accessor :create_time
|
7799
|
+
|
7800
|
+
# Current state of the batch operation.
|
7801
|
+
# Corresponds to the JSON property `state`
|
7802
|
+
# @return [String]
|
7803
|
+
attr_accessor :state
|
7804
|
+
|
7805
|
+
# The time when the operation result was last updated.
|
7806
|
+
# Corresponds to the JSON property `updateTime`
|
7807
|
+
# @return [String]
|
7808
|
+
attr_accessor :update_time
|
7809
|
+
|
7810
|
+
def initialize(**args)
|
7811
|
+
update!(**args)
|
7812
|
+
end
|
7813
|
+
|
7814
|
+
# Update properties of this object
|
7815
|
+
def update!(**args)
|
7816
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
7817
|
+
@state = args[:state] if args.key?(:state)
|
7818
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
7819
|
+
end
|
7820
|
+
end
|
7821
|
+
|
7822
|
+
# The desired output location and metadata.
|
7823
|
+
class GoogleCloudVisionV1p4beta1OutputConfig
|
7824
|
+
include Google::Apis::Core::Hashable
|
7825
|
+
|
7826
|
+
# The max number of response protos to put into each output JSON file on
|
7827
|
+
# Google Cloud Storage.
|
7828
|
+
# The valid range is [1, 100]. If not specified, the default value is 20.
|
7829
|
+
# For example, for one pdf file with 100 pages, 100 response protos will
|
7830
|
+
# be generated. If `batch_size` = 20, then 5 json files each
|
7831
|
+
# containing 20 response protos will be written under the prefix
|
7832
|
+
# `gcs_destination`.`uri`.
|
7833
|
+
# Currently, batch_size only applies to GcsDestination, with potential future
|
7834
|
+
# support for other output configurations.
|
7835
|
+
# Corresponds to the JSON property `batchSize`
|
7836
|
+
# @return [Fixnum]
|
7837
|
+
attr_accessor :batch_size
|
7838
|
+
|
7839
|
+
# The Google Cloud Storage location where the output will be written to.
|
7840
|
+
# Corresponds to the JSON property `gcsDestination`
|
7841
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1GcsDestination]
|
7842
|
+
attr_accessor :gcs_destination
|
7843
|
+
|
7844
|
+
def initialize(**args)
|
7845
|
+
update!(**args)
|
7846
|
+
end
|
7847
|
+
|
7848
|
+
# Update properties of this object
|
7849
|
+
def update!(**args)
|
7850
|
+
@batch_size = args[:batch_size] if args.key?(:batch_size)
|
7851
|
+
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
|
7852
|
+
end
|
7853
|
+
end
|
7854
|
+
|
7855
|
+
# Detected page from OCR.
|
7856
|
+
class GoogleCloudVisionV1p4beta1Page
|
7857
|
+
include Google::Apis::Core::Hashable
|
7858
|
+
|
7859
|
+
# List of blocks of text, images etc on this page.
|
7860
|
+
# Corresponds to the JSON property `blocks`
|
7861
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1Block>]
|
7862
|
+
attr_accessor :blocks
|
7863
|
+
|
7864
|
+
# Confidence of the OCR results on the page. Range [0, 1].
|
7865
|
+
# Corresponds to the JSON property `confidence`
|
7866
|
+
# @return [Float]
|
7867
|
+
attr_accessor :confidence
|
7868
|
+
|
7869
|
+
# Page height. For PDFs the unit is points. For images (including
|
7870
|
+
# TIFFs) the unit is pixels.
|
7871
|
+
# Corresponds to the JSON property `height`
|
7872
|
+
# @return [Fixnum]
|
7873
|
+
attr_accessor :height
|
7874
|
+
|
7875
|
+
# Additional information detected on the structural component.
|
7876
|
+
# Corresponds to the JSON property `property`
|
7877
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
|
7878
|
+
attr_accessor :property
|
7879
|
+
|
7880
|
+
# Page width. For PDFs the unit is points. For images (including
|
7881
|
+
# TIFFs) the unit is pixels.
|
7882
|
+
# Corresponds to the JSON property `width`
|
7883
|
+
# @return [Fixnum]
|
7884
|
+
attr_accessor :width
|
7885
|
+
|
7886
|
+
def initialize(**args)
|
7887
|
+
update!(**args)
|
7888
|
+
end
|
7889
|
+
|
7890
|
+
# Update properties of this object
|
7891
|
+
def update!(**args)
|
7892
|
+
@blocks = args[:blocks] if args.key?(:blocks)
|
7893
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
7894
|
+
@height = args[:height] if args.key?(:height)
|
7895
|
+
@property = args[:property] if args.key?(:property)
|
7896
|
+
@width = args[:width] if args.key?(:width)
|
7897
|
+
end
|
7898
|
+
end
|
7899
|
+
|
7900
|
+
# Structural unit of text representing a number of words in certain order.
|
7901
|
+
class GoogleCloudVisionV1p4beta1Paragraph
|
7902
|
+
include Google::Apis::Core::Hashable
|
7903
|
+
|
7904
|
+
# A bounding polygon for the detected image annotation.
|
7905
|
+
# Corresponds to the JSON property `boundingBox`
|
7906
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1BoundingPoly]
|
7907
|
+
attr_accessor :bounding_box
|
7908
|
+
|
7909
|
+
# Confidence of the OCR results for the paragraph. Range [0, 1].
|
7910
|
+
# Corresponds to the JSON property `confidence`
|
7911
|
+
# @return [Float]
|
7912
|
+
attr_accessor :confidence
|
7913
|
+
|
7914
|
+
# Additional information detected on the structural component.
|
7915
|
+
# Corresponds to the JSON property `property`
|
7916
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
|
7917
|
+
attr_accessor :property
|
7918
|
+
|
7919
|
+
# List of words in this paragraph.
|
7920
|
+
# Corresponds to the JSON property `words`
|
7921
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1Word>]
|
7922
|
+
attr_accessor :words
|
7923
|
+
|
7924
|
+
def initialize(**args)
|
7925
|
+
update!(**args)
|
7926
|
+
end
|
7927
|
+
|
7928
|
+
# Update properties of this object
|
7929
|
+
def update!(**args)
|
7930
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
7931
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
7932
|
+
@property = args[:property] if args.key?(:property)
|
7933
|
+
@words = args[:words] if args.key?(:words)
|
7934
|
+
end
|
7935
|
+
end
|
7936
|
+
|
7937
|
+
# A 3D position in the image, used primarily for Face detection landmarks.
|
7938
|
+
# A valid Position must have both x and y coordinates.
|
7939
|
+
# The position coordinates are in the same scale as the original image.
|
7940
|
+
class GoogleCloudVisionV1p4beta1Position
|
7941
|
+
include Google::Apis::Core::Hashable
|
7942
|
+
|
7943
|
+
# X coordinate.
|
7944
|
+
# Corresponds to the JSON property `x`
|
7945
|
+
# @return [Float]
|
7946
|
+
attr_accessor :x
|
7947
|
+
|
7948
|
+
# Y coordinate.
|
7949
|
+
# Corresponds to the JSON property `y`
|
7950
|
+
# @return [Float]
|
7951
|
+
attr_accessor :y
|
7952
|
+
|
7953
|
+
# Z coordinate (or depth).
|
7954
|
+
# Corresponds to the JSON property `z`
|
7955
|
+
# @return [Float]
|
7956
|
+
attr_accessor :z
|
7957
|
+
|
7958
|
+
def initialize(**args)
|
7959
|
+
update!(**args)
|
7960
|
+
end
|
7961
|
+
|
7962
|
+
# Update properties of this object
|
7963
|
+
def update!(**args)
|
7964
|
+
@x = args[:x] if args.key?(:x)
|
7965
|
+
@y = args[:y] if args.key?(:y)
|
7966
|
+
@z = args[:z] if args.key?(:z)
|
7967
|
+
end
|
7968
|
+
end
|
7969
|
+
|
7970
|
+
# A Product contains ReferenceImages.
|
7971
|
+
class GoogleCloudVisionV1p4beta1Product
|
7972
|
+
include Google::Apis::Core::Hashable
|
7973
|
+
|
7974
|
+
# User-provided metadata to be stored with this product. Must be at most 4096
|
7975
|
+
# characters long.
|
7976
|
+
# Corresponds to the JSON property `description`
|
7977
|
+
# @return [String]
|
7978
|
+
attr_accessor :description
|
7979
|
+
|
7980
|
+
# The user-provided name for this Product. Must not be empty. Must be at most
|
7981
|
+
# 4096 characters long.
|
7982
|
+
# Corresponds to the JSON property `displayName`
|
7983
|
+
# @return [String]
|
7984
|
+
attr_accessor :display_name
|
7985
|
+
|
7986
|
+
# The resource name of the product.
|
7987
|
+
# Format is:
|
7988
|
+
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
7989
|
+
# This field is ignored when creating a product.
|
7990
|
+
# Corresponds to the JSON property `name`
|
7991
|
+
# @return [String]
|
7992
|
+
attr_accessor :name
|
7993
|
+
|
7994
|
+
# The category for the product identified by the reference image. This should
|
7995
|
+
# be either "homegoods", "apparel", or "toys".
|
7996
|
+
# This field is immutable.
|
7997
|
+
# Corresponds to the JSON property `productCategory`
|
7998
|
+
# @return [String]
|
7999
|
+
attr_accessor :product_category
|
8000
|
+
|
8001
|
+
# Key-value pairs that can be attached to a product. At query time,
|
8002
|
+
# constraints can be specified based on the product_labels.
|
8003
|
+
# Note that integer values can be provided as strings, e.g. "1199". Only
|
8004
|
+
# strings with integer values can match a range-based restriction which is
|
8005
|
+
# to be supported soon.
|
8006
|
+
# Multiple values can be assigned to the same key. One product may have up to
|
8007
|
+
# 100 product_labels.
|
8008
|
+
# Corresponds to the JSON property `productLabels`
|
8009
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ProductKeyValue>]
|
8010
|
+
attr_accessor :product_labels
|
8011
|
+
|
8012
|
+
def initialize(**args)
|
8013
|
+
update!(**args)
|
8014
|
+
end
|
8015
|
+
|
8016
|
+
# Update properties of this object
|
8017
|
+
def update!(**args)
|
8018
|
+
@description = args[:description] if args.key?(:description)
|
8019
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
8020
|
+
@name = args[:name] if args.key?(:name)
|
8021
|
+
@product_category = args[:product_category] if args.key?(:product_category)
|
8022
|
+
@product_labels = args[:product_labels] if args.key?(:product_labels)
|
8023
|
+
end
|
8024
|
+
end
|
8025
|
+
|
8026
|
+
# A product label represented as a key-value pair.
|
8027
|
+
class GoogleCloudVisionV1p4beta1ProductKeyValue
|
8028
|
+
include Google::Apis::Core::Hashable
|
8029
|
+
|
8030
|
+
# The key of the label attached to the product. Cannot be empty and cannot
|
8031
|
+
# exceed 128 bytes.
|
8032
|
+
# Corresponds to the JSON property `key`
|
8033
|
+
# @return [String]
|
8034
|
+
attr_accessor :key
|
8035
|
+
|
8036
|
+
# The value of the label attached to the product. Cannot be empty and
|
8037
|
+
# cannot exceed 128 bytes.
|
8038
|
+
# Corresponds to the JSON property `value`
|
8039
|
+
# @return [String]
|
8040
|
+
attr_accessor :value
|
8041
|
+
|
8042
|
+
def initialize(**args)
|
8043
|
+
update!(**args)
|
8044
|
+
end
|
8045
|
+
|
8046
|
+
# Update properties of this object
|
8047
|
+
def update!(**args)
|
8048
|
+
@key = args[:key] if args.key?(:key)
|
8049
|
+
@value = args[:value] if args.key?(:value)
|
8050
|
+
end
|
8051
|
+
end
|
8052
|
+
|
8053
|
+
# Results for a product search request.
|
8054
|
+
class GoogleCloudVisionV1p4beta1ProductSearchResults
|
8055
|
+
include Google::Apis::Core::Hashable
|
8056
|
+
|
8057
|
+
# Timestamp of the index which provided these results. Changes made after
|
8058
|
+
# this time are not reflected in the current results.
|
8059
|
+
# Corresponds to the JSON property `indexTime`
|
8060
|
+
# @return [String]
|
8061
|
+
attr_accessor :index_time
|
8062
|
+
|
8063
|
+
# List of results grouped by products detected in the query image. Each entry
|
8064
|
+
# corresponds to one bounding polygon in the query image, and contains the
|
8065
|
+
# matching products specific to that region. There may be duplicate product
|
8066
|
+
# matches in the union of all the per-product results.
|
8067
|
+
# Corresponds to the JSON property `productGroupedResults`
|
8068
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult>]
|
8069
|
+
attr_accessor :product_grouped_results
|
8070
|
+
|
8071
|
+
# List of results, one for each product match.
|
8072
|
+
# Corresponds to the JSON property `results`
|
8073
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult>]
|
8074
|
+
attr_accessor :results
|
8075
|
+
|
8076
|
+
def initialize(**args)
|
8077
|
+
update!(**args)
|
8078
|
+
end
|
8079
|
+
|
8080
|
+
# Update properties of this object
|
8081
|
+
def update!(**args)
|
8082
|
+
@index_time = args[:index_time] if args.key?(:index_time)
|
8083
|
+
@product_grouped_results = args[:product_grouped_results] if args.key?(:product_grouped_results)
|
8084
|
+
@results = args[:results] if args.key?(:results)
|
8085
|
+
end
|
8086
|
+
end
|
8087
|
+
|
8088
|
+
# Information about the products similar to a single product in a query
|
8089
|
+
# image.
|
8090
|
+
class GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult
|
8091
|
+
include Google::Apis::Core::Hashable
|
8092
|
+
|
8093
|
+
# A bounding polygon for the detected image annotation.
|
8094
|
+
# Corresponds to the JSON property `boundingPoly`
|
8095
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1BoundingPoly]
|
8096
|
+
attr_accessor :bounding_poly
|
8097
|
+
|
8098
|
+
# List of results, one for each product match.
|
8099
|
+
# Corresponds to the JSON property `results`
|
8100
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ProductSearchResultsResult>]
|
8101
|
+
attr_accessor :results
|
8102
|
+
|
8103
|
+
def initialize(**args)
|
8104
|
+
update!(**args)
|
8105
|
+
end
|
8106
|
+
|
8107
|
+
# Update properties of this object
|
8108
|
+
def update!(**args)
|
8109
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
8110
|
+
@results = args[:results] if args.key?(:results)
|
8111
|
+
end
|
8112
|
+
end
|
8113
|
+
|
8114
|
+
# Information about a product.
|
8115
|
+
class GoogleCloudVisionV1p4beta1ProductSearchResultsResult
|
8116
|
+
include Google::Apis::Core::Hashable
|
8117
|
+
|
8118
|
+
# The resource name of the image from the product that is the closest match
|
8119
|
+
# to the query.
|
8120
|
+
# Corresponds to the JSON property `image`
|
8121
|
+
# @return [String]
|
8122
|
+
attr_accessor :image
|
8123
|
+
|
8124
|
+
# A Product contains ReferenceImages.
|
8125
|
+
# Corresponds to the JSON property `product`
|
8126
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1Product]
|
8127
|
+
attr_accessor :product
|
8128
|
+
|
8129
|
+
# A confidence level on the match, ranging from 0 (no confidence) to
|
8130
|
+
# 1 (full confidence).
|
8131
|
+
# Corresponds to the JSON property `score`
|
8132
|
+
# @return [Float]
|
8133
|
+
attr_accessor :score
|
8134
|
+
|
8135
|
+
def initialize(**args)
|
8136
|
+
update!(**args)
|
8137
|
+
end
|
8138
|
+
|
8139
|
+
# Update properties of this object
|
8140
|
+
def update!(**args)
|
8141
|
+
@image = args[:image] if args.key?(:image)
|
8142
|
+
@product = args[:product] if args.key?(:product)
|
8143
|
+
@score = args[:score] if args.key?(:score)
|
8144
|
+
end
|
8145
|
+
end
|
8146
|
+
|
8147
|
+
# A `Property` consists of a user-supplied name/value pair.
|
8148
|
+
class GoogleCloudVisionV1p4beta1Property
|
8149
|
+
include Google::Apis::Core::Hashable
|
8150
|
+
|
8151
|
+
# Name of the property.
|
8152
|
+
# Corresponds to the JSON property `name`
|
8153
|
+
# @return [String]
|
8154
|
+
attr_accessor :name
|
8155
|
+
|
8156
|
+
# Value of numeric properties.
|
8157
|
+
# Corresponds to the JSON property `uint64Value`
|
8158
|
+
# @return [Fixnum]
|
8159
|
+
attr_accessor :uint64_value
|
8160
|
+
|
8161
|
+
# Value of the property.
|
8162
|
+
# Corresponds to the JSON property `value`
|
8163
|
+
# @return [String]
|
8164
|
+
attr_accessor :value
|
8165
|
+
|
8166
|
+
def initialize(**args)
|
8167
|
+
update!(**args)
|
8168
|
+
end
|
8169
|
+
|
8170
|
+
# Update properties of this object
|
8171
|
+
def update!(**args)
|
8172
|
+
@name = args[:name] if args.key?(:name)
|
8173
|
+
@uint64_value = args[:uint64_value] if args.key?(:uint64_value)
|
8174
|
+
@value = args[:value] if args.key?(:value)
|
8175
|
+
end
|
8176
|
+
end
|
8177
|
+
|
8178
|
+
# A `ReferenceImage` represents a product image and its associated metadata,
|
8179
|
+
# such as bounding boxes.
|
8180
|
+
class GoogleCloudVisionV1p4beta1ReferenceImage
|
8181
|
+
include Google::Apis::Core::Hashable
|
8182
|
+
|
8183
|
+
# Bounding polygons around the areas of interest in the reference image.
|
8184
|
+
# Optional. If this field is empty, the system will try to detect regions of
|
8185
|
+
# interest. At most 10 bounding polygons will be used.
|
8186
|
+
# The provided shape is converted into a non-rotated rectangle. Once
|
8187
|
+
# converted, the small edge of the rectangle must be greater than or equal
|
8188
|
+
# to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5
|
8189
|
+
# is not).
|
8190
|
+
# Corresponds to the JSON property `boundingPolys`
|
8191
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1BoundingPoly>]
|
8192
|
+
attr_accessor :bounding_polys
|
8193
|
+
|
8194
|
+
# The resource name of the reference image.
|
8195
|
+
# Format is:
|
8196
|
+
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/
|
8197
|
+
# IMAGE_ID`.
|
8198
|
+
# This field is ignored when creating a reference image.
|
8199
|
+
# Corresponds to the JSON property `name`
|
8200
|
+
# @return [String]
|
8201
|
+
attr_accessor :name
|
8202
|
+
|
8203
|
+
# The Google Cloud Storage URI of the reference image.
|
8204
|
+
# The URI must start with `gs://`.
|
8205
|
+
# Required.
|
8206
|
+
# Corresponds to the JSON property `uri`
|
8207
|
+
# @return [String]
|
8208
|
+
attr_accessor :uri
|
8209
|
+
|
8210
|
+
def initialize(**args)
|
8211
|
+
update!(**args)
|
8212
|
+
end
|
8213
|
+
|
8214
|
+
# Update properties of this object
|
8215
|
+
def update!(**args)
|
8216
|
+
@bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys)
|
8217
|
+
@name = args[:name] if args.key?(:name)
|
8218
|
+
@uri = args[:uri] if args.key?(:uri)
|
8219
|
+
end
|
8220
|
+
end
|
8221
|
+
|
8222
|
+
# Set of features pertaining to the image, computed by computer vision
|
8223
|
+
# methods over safe-search verticals (for example, adult, spoof, medical,
|
8224
|
+
# violence).
|
8225
|
+
class GoogleCloudVisionV1p4beta1SafeSearchAnnotation
|
8226
|
+
include Google::Apis::Core::Hashable
|
8227
|
+
|
8228
|
+
# Represents the adult content likelihood for the image. Adult content may
|
8229
|
+
# contain elements such as nudity, pornographic images or cartoons, or
|
8230
|
+
# sexual activities.
|
8231
|
+
# Corresponds to the JSON property `adult`
|
8232
|
+
# @return [String]
|
8233
|
+
attr_accessor :adult
|
8234
|
+
|
8235
|
+
# Likelihood that this is a medical image.
|
8236
|
+
# Corresponds to the JSON property `medical`
|
8237
|
+
# @return [String]
|
8238
|
+
attr_accessor :medical
|
8239
|
+
|
8240
|
+
# Likelihood that the request image contains racy content. Racy content may
|
8241
|
+
# include (but is not limited to) skimpy or sheer clothing, strategically
|
8242
|
+
# covered nudity, lewd or provocative poses, or close-ups of sensitive
|
8243
|
+
# body areas.
|
8244
|
+
# Corresponds to the JSON property `racy`
|
8245
|
+
# @return [String]
|
8246
|
+
attr_accessor :racy
|
8247
|
+
|
8248
|
+
# Spoof likelihood. The likelihood that an modification
|
8249
|
+
# was made to the image's canonical version to make it appear
|
8250
|
+
# funny or offensive.
|
8251
|
+
# Corresponds to the JSON property `spoof`
|
8252
|
+
# @return [String]
|
8253
|
+
attr_accessor :spoof
|
8254
|
+
|
8255
|
+
# Likelihood that this image contains violent content.
|
8256
|
+
# Corresponds to the JSON property `violence`
|
8257
|
+
# @return [String]
|
8258
|
+
attr_accessor :violence
|
8259
|
+
|
8260
|
+
def initialize(**args)
|
8261
|
+
update!(**args)
|
8262
|
+
end
|
8263
|
+
|
8264
|
+
# Update properties of this object
|
8265
|
+
def update!(**args)
|
8266
|
+
@adult = args[:adult] if args.key?(:adult)
|
8267
|
+
@medical = args[:medical] if args.key?(:medical)
|
8268
|
+
@racy = args[:racy] if args.key?(:racy)
|
8269
|
+
@spoof = args[:spoof] if args.key?(:spoof)
|
8270
|
+
@violence = args[:violence] if args.key?(:violence)
|
8271
|
+
end
|
8272
|
+
end
|
8273
|
+
|
8274
|
+
# A single symbol representation.
|
8275
|
+
class GoogleCloudVisionV1p4beta1Symbol
|
8276
|
+
include Google::Apis::Core::Hashable
|
8277
|
+
|
8278
|
+
# A bounding polygon for the detected image annotation.
|
8279
|
+
# Corresponds to the JSON property `boundingBox`
|
8280
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1BoundingPoly]
|
8281
|
+
attr_accessor :bounding_box
|
8282
|
+
|
8283
|
+
# Confidence of the OCR results for the symbol. Range [0, 1].
|
8284
|
+
# Corresponds to the JSON property `confidence`
|
8285
|
+
# @return [Float]
|
8286
|
+
attr_accessor :confidence
|
8287
|
+
|
8288
|
+
# Additional information detected on the structural component.
|
8289
|
+
# Corresponds to the JSON property `property`
|
8290
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
|
8291
|
+
attr_accessor :property
|
8292
|
+
|
8293
|
+
# The actual UTF-8 representation of the symbol.
|
8294
|
+
# Corresponds to the JSON property `text`
|
8295
|
+
# @return [String]
|
8296
|
+
attr_accessor :text
|
8297
|
+
|
8298
|
+
def initialize(**args)
|
8299
|
+
update!(**args)
|
8300
|
+
end
|
8301
|
+
|
8302
|
+
# Update properties of this object
|
8303
|
+
def update!(**args)
|
8304
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
8305
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
8306
|
+
@property = args[:property] if args.key?(:property)
|
8307
|
+
@text = args[:text] if args.key?(:text)
|
8308
|
+
end
|
8309
|
+
end
|
8310
|
+
|
8311
|
+
# TextAnnotation contains a structured representation of OCR extracted text.
|
8312
|
+
# The hierarchy of an OCR extracted text structure is like this:
|
8313
|
+
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
8314
|
+
# Each structural component, starting from Page, may further have their own
|
8315
|
+
# properties. Properties describe detected languages, breaks etc.. Please refer
|
8316
|
+
# to the TextAnnotation.TextProperty message definition below for more
|
8317
|
+
# detail.
|
8318
|
+
class GoogleCloudVisionV1p4beta1TextAnnotation
|
8319
|
+
include Google::Apis::Core::Hashable
|
8320
|
+
|
8321
|
+
# List of pages detected by OCR.
|
8322
|
+
# Corresponds to the JSON property `pages`
|
8323
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1Page>]
|
8324
|
+
attr_accessor :pages
|
8325
|
+
|
8326
|
+
# UTF-8 text detected on the pages.
|
8327
|
+
# Corresponds to the JSON property `text`
|
8328
|
+
# @return [String]
|
8329
|
+
attr_accessor :text
|
8330
|
+
|
8331
|
+
def initialize(**args)
|
8332
|
+
update!(**args)
|
8333
|
+
end
|
8334
|
+
|
8335
|
+
# Update properties of this object
|
8336
|
+
def update!(**args)
|
8337
|
+
@pages = args[:pages] if args.key?(:pages)
|
8338
|
+
@text = args[:text] if args.key?(:text)
|
8339
|
+
end
|
8340
|
+
end
|
8341
|
+
|
8342
|
+
# Detected start or end of a structural component.
|
8343
|
+
class GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak
|
8344
|
+
include Google::Apis::Core::Hashable
|
8345
|
+
|
8346
|
+
# True if break prepends the element.
|
8347
|
+
# Corresponds to the JSON property `isPrefix`
|
8348
|
+
# @return [Boolean]
|
8349
|
+
attr_accessor :is_prefix
|
8350
|
+
alias_method :is_prefix?, :is_prefix
|
8351
|
+
|
8352
|
+
# Detected break type.
|
8353
|
+
# Corresponds to the JSON property `type`
|
8354
|
+
# @return [String]
|
8355
|
+
attr_accessor :type
|
8356
|
+
|
8357
|
+
def initialize(**args)
|
8358
|
+
update!(**args)
|
8359
|
+
end
|
8360
|
+
|
8361
|
+
# Update properties of this object
|
8362
|
+
def update!(**args)
|
8363
|
+
@is_prefix = args[:is_prefix] if args.key?(:is_prefix)
|
8364
|
+
@type = args[:type] if args.key?(:type)
|
8365
|
+
end
|
8366
|
+
end
|
8367
|
+
|
8368
|
+
# Detected language for a structural component.
|
8369
|
+
class GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage
|
8370
|
+
include Google::Apis::Core::Hashable
|
8371
|
+
|
8372
|
+
# Confidence of detected language. Range [0, 1].
|
8373
|
+
# Corresponds to the JSON property `confidence`
|
8374
|
+
# @return [Float]
|
8375
|
+
attr_accessor :confidence
|
8376
|
+
|
8377
|
+
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
8378
|
+
# information, see
|
8379
|
+
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
8380
|
+
# Corresponds to the JSON property `languageCode`
|
8381
|
+
# @return [String]
|
8382
|
+
attr_accessor :language_code
|
8383
|
+
|
8384
|
+
def initialize(**args)
|
8385
|
+
update!(**args)
|
8386
|
+
end
|
8387
|
+
|
8388
|
+
# Update properties of this object
|
8389
|
+
def update!(**args)
|
8390
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
8391
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
8392
|
+
end
|
8393
|
+
end
|
8394
|
+
|
8395
|
+
# Additional information detected on the structural component.
|
8396
|
+
class GoogleCloudVisionV1p4beta1TextAnnotationTextProperty
|
8397
|
+
include Google::Apis::Core::Hashable
|
8398
|
+
|
8399
|
+
# Detected start or end of a structural component.
|
8400
|
+
# Corresponds to the JSON property `detectedBreak`
|
8401
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak]
|
8402
|
+
attr_accessor :detected_break
|
8403
|
+
|
8404
|
+
# A list of detected languages together with confidence.
|
8405
|
+
# Corresponds to the JSON property `detectedLanguages`
|
8406
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage>]
|
8407
|
+
attr_accessor :detected_languages
|
8408
|
+
|
8409
|
+
def initialize(**args)
|
8410
|
+
update!(**args)
|
8411
|
+
end
|
8412
|
+
|
8413
|
+
# Update properties of this object
|
8414
|
+
def update!(**args)
|
8415
|
+
@detected_break = args[:detected_break] if args.key?(:detected_break)
|
8416
|
+
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
8417
|
+
end
|
8418
|
+
end
|
8419
|
+
|
8420
|
+
# A vertex represents a 2D point in the image.
|
8421
|
+
# NOTE: the vertex coordinates are in the same scale as the original image.
|
8422
|
+
class GoogleCloudVisionV1p4beta1Vertex
|
8423
|
+
include Google::Apis::Core::Hashable
|
8424
|
+
|
8425
|
+
# X coordinate.
|
8426
|
+
# Corresponds to the JSON property `x`
|
8427
|
+
# @return [Fixnum]
|
8428
|
+
attr_accessor :x
|
8429
|
+
|
8430
|
+
# Y coordinate.
|
8431
|
+
# Corresponds to the JSON property `y`
|
8432
|
+
# @return [Fixnum]
|
8433
|
+
attr_accessor :y
|
8434
|
+
|
8435
|
+
def initialize(**args)
|
8436
|
+
update!(**args)
|
8437
|
+
end
|
8438
|
+
|
8439
|
+
# Update properties of this object
|
8440
|
+
def update!(**args)
|
8441
|
+
@x = args[:x] if args.key?(:x)
|
8442
|
+
@y = args[:y] if args.key?(:y)
|
8443
|
+
end
|
8444
|
+
end
|
8445
|
+
|
8446
|
+
# Relevant information for the image from the Internet.
|
8447
|
+
class GoogleCloudVisionV1p4beta1WebDetection
|
8448
|
+
include Google::Apis::Core::Hashable
|
8449
|
+
|
8450
|
+
# The service's best guess as to the topic of the request image.
|
8451
|
+
# Inferred from similar images on the open web.
|
8452
|
+
# Corresponds to the JSON property `bestGuessLabels`
|
8453
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1WebDetectionWebLabel>]
|
8454
|
+
attr_accessor :best_guess_labels
|
8455
|
+
|
8456
|
+
# Fully matching images from the Internet.
|
8457
|
+
# Can include resized copies of the query image.
|
8458
|
+
# Corresponds to the JSON property `fullMatchingImages`
|
8459
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
|
8460
|
+
attr_accessor :full_matching_images
|
8461
|
+
|
8462
|
+
# Web pages containing the matching images from the Internet.
|
8463
|
+
# Corresponds to the JSON property `pagesWithMatchingImages`
|
8464
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1WebDetectionWebPage>]
|
8465
|
+
attr_accessor :pages_with_matching_images
|
8466
|
+
|
8467
|
+
# Partial matching images from the Internet.
|
8468
|
+
# Those images are similar enough to share some key-point features. For
|
8469
|
+
# example an original image will likely have partial matching for its crops.
|
8470
|
+
# Corresponds to the JSON property `partialMatchingImages`
|
8471
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
|
8472
|
+
attr_accessor :partial_matching_images
|
8473
|
+
|
8474
|
+
# The visually similar image results.
|
8475
|
+
# Corresponds to the JSON property `visuallySimilarImages`
|
8476
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
|
8477
|
+
attr_accessor :visually_similar_images
|
8478
|
+
|
8479
|
+
# Deduced entities from similar images on the Internet.
|
8480
|
+
# Corresponds to the JSON property `webEntities`
|
8481
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1WebDetectionWebEntity>]
|
8482
|
+
attr_accessor :web_entities
|
8483
|
+
|
8484
|
+
def initialize(**args)
|
8485
|
+
update!(**args)
|
8486
|
+
end
|
8487
|
+
|
8488
|
+
# Update properties of this object
|
8489
|
+
def update!(**args)
|
8490
|
+
@best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
|
8491
|
+
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
8492
|
+
@pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
|
8493
|
+
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
8494
|
+
@visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
|
8495
|
+
@web_entities = args[:web_entities] if args.key?(:web_entities)
|
8496
|
+
end
|
8497
|
+
end
|
8498
|
+
|
8499
|
+
# Entity deduced from similar images on the Internet.
|
8500
|
+
class GoogleCloudVisionV1p4beta1WebDetectionWebEntity
|
8501
|
+
include Google::Apis::Core::Hashable
|
8502
|
+
|
8503
|
+
# Canonical description of the entity, in English.
|
8504
|
+
# Corresponds to the JSON property `description`
|
8505
|
+
# @return [String]
|
8506
|
+
attr_accessor :description
|
8507
|
+
|
8508
|
+
# Opaque entity ID.
|
8509
|
+
# Corresponds to the JSON property `entityId`
|
8510
|
+
# @return [String]
|
8511
|
+
attr_accessor :entity_id
|
8512
|
+
|
8513
|
+
# Overall relevancy score for the entity.
|
8514
|
+
# Not normalized and not comparable across different image queries.
|
8515
|
+
# Corresponds to the JSON property `score`
|
8516
|
+
# @return [Float]
|
8517
|
+
attr_accessor :score
|
8518
|
+
|
8519
|
+
def initialize(**args)
|
8520
|
+
update!(**args)
|
8521
|
+
end
|
8522
|
+
|
8523
|
+
# Update properties of this object
|
8524
|
+
def update!(**args)
|
8525
|
+
@description = args[:description] if args.key?(:description)
|
8526
|
+
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
8527
|
+
@score = args[:score] if args.key?(:score)
|
8528
|
+
end
|
8529
|
+
end
|
8530
|
+
|
8531
|
+
# Metadata for online images.
|
8532
|
+
class GoogleCloudVisionV1p4beta1WebDetectionWebImage
|
8533
|
+
include Google::Apis::Core::Hashable
|
8534
|
+
|
8535
|
+
# (Deprecated) Overall relevancy score for the image.
|
8536
|
+
# Corresponds to the JSON property `score`
|
8537
|
+
# @return [Float]
|
8538
|
+
attr_accessor :score
|
8539
|
+
|
8540
|
+
# The result image URL.
|
8541
|
+
# Corresponds to the JSON property `url`
|
8542
|
+
# @return [String]
|
8543
|
+
attr_accessor :url
|
8544
|
+
|
8545
|
+
def initialize(**args)
|
8546
|
+
update!(**args)
|
8547
|
+
end
|
8548
|
+
|
8549
|
+
# Update properties of this object
|
8550
|
+
def update!(**args)
|
8551
|
+
@score = args[:score] if args.key?(:score)
|
8552
|
+
@url = args[:url] if args.key?(:url)
|
8553
|
+
end
|
8554
|
+
end
|
8555
|
+
|
8556
|
+
# Label to provide extra metadata for the web detection.
|
8557
|
+
class GoogleCloudVisionV1p4beta1WebDetectionWebLabel
|
8558
|
+
include Google::Apis::Core::Hashable
|
8559
|
+
|
8560
|
+
# Label for extra metadata.
|
8561
|
+
# Corresponds to the JSON property `label`
|
8562
|
+
# @return [String]
|
8563
|
+
attr_accessor :label
|
8564
|
+
|
8565
|
+
# The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
|
8566
|
+
# For more information, see
|
8567
|
+
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
8568
|
+
# Corresponds to the JSON property `languageCode`
|
8569
|
+
# @return [String]
|
8570
|
+
attr_accessor :language_code
|
8571
|
+
|
8572
|
+
def initialize(**args)
|
8573
|
+
update!(**args)
|
8574
|
+
end
|
8575
|
+
|
8576
|
+
# Update properties of this object
|
8577
|
+
def update!(**args)
|
8578
|
+
@label = args[:label] if args.key?(:label)
|
8579
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
8580
|
+
end
|
8581
|
+
end
|
8582
|
+
|
8583
|
+
# Metadata for web pages.
|
8584
|
+
class GoogleCloudVisionV1p4beta1WebDetectionWebPage
|
8585
|
+
include Google::Apis::Core::Hashable
|
8586
|
+
|
8587
|
+
# Fully matching images on the page.
|
8588
|
+
# Can include resized copies of the query image.
|
8589
|
+
# Corresponds to the JSON property `fullMatchingImages`
|
8590
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
|
8591
|
+
attr_accessor :full_matching_images
|
8592
|
+
|
8593
|
+
# Title for the web page, may contain HTML markups.
|
8594
|
+
# Corresponds to the JSON property `pageTitle`
|
8595
|
+
# @return [String]
|
8596
|
+
attr_accessor :page_title
|
8597
|
+
|
8598
|
+
# Partial matching images on the page.
|
8599
|
+
# Those images are similar enough to share some key-point features. For
|
8600
|
+
# example an original image will likely have partial matching for its
|
8601
|
+
# crops.
|
8602
|
+
# Corresponds to the JSON property `partialMatchingImages`
|
8603
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1WebDetectionWebImage>]
|
8604
|
+
attr_accessor :partial_matching_images
|
8605
|
+
|
8606
|
+
# (Deprecated) Overall relevancy score for the web page.
|
8607
|
+
# Corresponds to the JSON property `score`
|
8608
|
+
# @return [Float]
|
8609
|
+
attr_accessor :score
|
8610
|
+
|
8611
|
+
# The result web page URL.
|
8612
|
+
# Corresponds to the JSON property `url`
|
8613
|
+
# @return [String]
|
8614
|
+
attr_accessor :url
|
8615
|
+
|
8616
|
+
def initialize(**args)
|
8617
|
+
update!(**args)
|
8618
|
+
end
|
8619
|
+
|
8620
|
+
# Update properties of this object
|
8621
|
+
def update!(**args)
|
8622
|
+
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
8623
|
+
@page_title = args[:page_title] if args.key?(:page_title)
|
8624
|
+
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
8625
|
+
@score = args[:score] if args.key?(:score)
|
8626
|
+
@url = args[:url] if args.key?(:url)
|
8627
|
+
end
|
8628
|
+
end
|
8629
|
+
|
8630
|
+
# A word representation.
|
8631
|
+
class GoogleCloudVisionV1p4beta1Word
|
8632
|
+
include Google::Apis::Core::Hashable
|
8633
|
+
|
8634
|
+
# A bounding polygon for the detected image annotation.
|
8635
|
+
# Corresponds to the JSON property `boundingBox`
|
8636
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1BoundingPoly]
|
8637
|
+
attr_accessor :bounding_box
|
8638
|
+
|
8639
|
+
# Confidence of the OCR results for the word. Range [0, 1].
|
8640
|
+
# Corresponds to the JSON property `confidence`
|
8641
|
+
# @return [Float]
|
8642
|
+
attr_accessor :confidence
|
8643
|
+
|
8644
|
+
# Additional information detected on the structural component.
|
8645
|
+
# Corresponds to the JSON property `property`
|
8646
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
|
8647
|
+
attr_accessor :property
|
8648
|
+
|
8649
|
+
# List of symbols in the word.
|
8650
|
+
# The order of the symbols follows the natural reading order.
|
8651
|
+
# Corresponds to the JSON property `symbols`
|
8652
|
+
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1Symbol>]
|
8653
|
+
attr_accessor :symbols
|
8654
|
+
|
8655
|
+
def initialize(**args)
|
8656
|
+
update!(**args)
|
8657
|
+
end
|
8658
|
+
|
8659
|
+
# Update properties of this object
|
8660
|
+
def update!(**args)
|
8661
|
+
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
8662
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
8663
|
+
@property = args[:property] if args.key?(:property)
|
8664
|
+
@symbols = args[:symbols] if args.key?(:symbols)
|
8665
|
+
end
|
8666
|
+
end
|
8667
|
+
|
6731
8668
|
# Information about the products similar to a single product in a query
|
6732
8669
|
# image.
|
6733
8670
|
class GroupedResult
|
@@ -7049,14 +8986,14 @@ module Google
|
|
7049
8986
|
attr_accessor :done
|
7050
8987
|
alias_method :done?, :done
|
7051
8988
|
|
7052
|
-
# The `Status` type defines a logical error model that is suitable for
|
7053
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
7054
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
8989
|
+
# The `Status` type defines a logical error model that is suitable for
|
8990
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
8991
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
7055
8992
|
# - Simple to use and understand for most users
|
7056
8993
|
# - Flexible enough to meet unexpected needs
|
7057
8994
|
# # Overview
|
7058
|
-
# The `Status` message contains three pieces of data: error code, error
|
7059
|
-
# and error details. The error code should be an enum value of
|
8995
|
+
# The `Status` message contains three pieces of data: error code, error
|
8996
|
+
# message, and error details. The error code should be an enum value of
|
7060
8997
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
7061
8998
|
# error message should be a developer-facing English message that helps
|
7062
8999
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
@@ -7563,14 +9500,14 @@ module Google
|
|
7563
9500
|
end
|
7564
9501
|
end
|
7565
9502
|
|
7566
|
-
# The `Status` type defines a logical error model that is suitable for
|
7567
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
7568
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
9503
|
+
# The `Status` type defines a logical error model that is suitable for
|
9504
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
9505
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
7569
9506
|
# - Simple to use and understand for most users
|
7570
9507
|
# - Flexible enough to meet unexpected needs
|
7571
9508
|
# # Overview
|
7572
|
-
# The `Status` message contains three pieces of data: error code, error
|
7573
|
-
# and error details. The error code should be an enum value of
|
9509
|
+
# The `Status` message contains three pieces of data: error code, error
|
9510
|
+
# message, and error details. The error code should be an enum value of
|
7574
9511
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
7575
9512
|
# error message should be a developer-facing English message that helps
|
7576
9513
|
# developers *understand* and *resolve* the error. If a localized user-facing
|