google-api-client 0.30.9 → 0.30.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +89 -0
- data/api_names.yaml +1 -0
- data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
- data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +18 -7
- data/generated/google/apis/abusiveexperiencereport_v1/service.rb +5 -10
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1/classes.rb +24 -12
- data/generated/google/apis/adexperiencereport_v1/service.rb +6 -9
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +3 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +62 -9
- data/generated/google/apis/androidmanagement_v1/representations.rb +19 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +32 -9
- data/generated/google/apis/bigquery_v2/representations.rb +5 -0
- data/generated/google/apis/bigquery_v2/service.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +37 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +645 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +263 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +378 -0
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +41 -16
- data/generated/google/apis/bigtableadmin_v2/representations.rb +15 -0
- data/generated/google/apis/binaryauthorization_v1.rb +35 -0
- data/generated/google/apis/binaryauthorization_v1/classes.rb +388 -0
- data/generated/google/apis/binaryauthorization_v1/representations.rb +167 -0
- data/generated/google/apis/binaryauthorization_v1/service.rb +313 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +6 -1
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +10 -6
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +52 -1
- data/generated/google/apis/cloudasset_v1/representations.rb +17 -0
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +6 -1
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +11 -4
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +0 -14
- data/generated/google/apis/cloudkms_v1/representations.rb +0 -2
- data/generated/google/apis/cloudkms_v1/service.rb +3 -3
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +6 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +5 -3
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +12 -8
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +5 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +12 -8
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +6 -2
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +11 -4
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +11 -4
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +14 -3
- data/generated/google/apis/cloudsearch_v1/representations.rb +1 -0
- data/generated/google/apis/cloudsearch_v1/service.rb +3 -1
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +2 -2
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +8 -0
- data/generated/google/apis/cloudtrace_v2/representations.rb +1 -0
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +1 -0
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +17 -24
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +17 -24
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +1139 -284
- data/generated/google/apis/compute_alpha/representations.rb +304 -1
- data/generated/google/apis/compute_alpha/service.rb +935 -23
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +554 -98
- data/generated/google/apis/compute_beta/representations.rb +117 -0
- data/generated/google/apis/compute_beta/service.rb +63 -19
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1187 -165
- data/generated/google/apis/compute_v1/representations.rb +402 -0
- data/generated/google/apis/compute_v1/service.rb +832 -12
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +36 -0
- data/generated/google/apis/container_v1/representations.rb +16 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +153 -0
- data/generated/google/apis/container_v1beta1/representations.rb +77 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +93 -2
- data/generated/google/apis/content_v2/representations.rb +37 -0
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +86 -2
- data/generated/google/apis/content_v2_1/representations.rb +36 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +21 -106
- data/generated/google/apis/dataflow_v1b3/representations.rb +3 -58
- data/generated/google/apis/dataflow_v1b3/service.rb +0 -327
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +7 -0
- 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 +7 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +9 -75
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1/classes.rb +9 -75
- data/generated/google/apis/dfareporting_v3_1.rb +1 -1
- data/generated/google/apis/dfareporting_v3_1/classes.rb +42 -302
- data/generated/google/apis/dfareporting_v3_1/representations.rb +8 -84
- data/generated/google/apis/dfareporting_v3_1/service.rb +5 -107
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +118 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +70 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +75 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +42 -0
- data/generated/google/apis/dlp_v2/representations.rb +16 -0
- data/generated/google/apis/dlp_v2/service.rb +125 -1
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +128 -0
- data/generated/google/apis/docs_v1/representations.rb +49 -0
- data/generated/google/apis/{appstate_v1.rb → domainsrdap_v1.rb} +8 -11
- data/generated/google/apis/domainsrdap_v1/classes.rb +269 -0
- data/generated/google/apis/{appstate_v1 → domainsrdap_v1}/representations.rb +33 -22
- data/generated/google/apis/domainsrdap_v1/service.rb +350 -0
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +10 -1
- data/generated/google/apis/drive_v2/representations.rb +1 -0
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +10 -1
- data/generated/google/apis/drive_v3/representations.rb +1 -0
- data/generated/google/apis/driveactivity_v2.rb +1 -1
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +21 -130
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +16 -122
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/firestore_v1beta2/classes.rb +14 -83
- data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
- data/generated/google/apis/healthcare_v1alpha2/classes.rb +94 -48
- data/generated/google/apis/healthcare_v1alpha2/representations.rb +16 -0
- data/generated/google/apis/healthcare_v1alpha2/service.rb +117 -75
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +56 -2
- data/generated/google/apis/healthcare_v1beta1/representations.rb +17 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +10 -5
- data/generated/google/apis/homegraph_v1.rb +31 -0
- data/generated/google/apis/homegraph_v1/classes.rb +692 -0
- data/generated/google/apis/homegraph_v1/representations.rb +323 -0
- data/generated/google/apis/homegraph_v1/service.rb +255 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +8 -7
- data/generated/google/apis/logging_v2/service.rb +40 -35
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +6 -1
- data/generated/google/apis/pubsub_v1/service.rb +15 -9
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +6 -1
- data/generated/google/apis/pubsub_v1beta2/service.rb +10 -6
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +26 -6
- data/generated/google/apis/run_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/run_v1alpha1/service.rb +5 -3
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -1
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +5 -3
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/service.rb +6 -5
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +11 -4
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +11 -4
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +6 -1
- data/generated/google/apis/servicebroker_v1/service.rb +5 -3
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +6 -1
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +5 -3
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +6 -1
- data/generated/google/apis/servicebroker_v1beta1/service.rb +5 -3
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -4
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +11 -4
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +1 -4
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +1 -4
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +30 -4
- data/generated/google/apis/serviceusage_v1/representations.rb +14 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +30 -4
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +14 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +1 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +9 -7
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +17 -15
- data/generated/google/apis/speech_v2beta.rb +1 -1
- data/generated/google/apis/speech_v2beta/classes.rb +3 -3
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +72 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +35 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +2 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -1
- data/generated/google/apis/storage_v1/representations.rb +2 -2
- data/generated/google/apis/storage_v1/service.rb +6 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/service.rb +1 -9
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +19 -0
- data/generated/google/apis/testing_v1/representations.rb +3 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +1 -0
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/translate_v3beta1/classes.rb +33 -0
- data/generated/google/apis/translate_v3beta1/representations.rb +3 -0
- data/generated/google/apis/verifiedaccess_v1.rb +35 -0
- data/generated/google/apis/verifiedaccess_v1/classes.rb +174 -0
- data/generated/google/apis/verifiedaccess_v1/representations.rb +99 -0
- data/generated/google/apis/verifiedaccess_v1/service.rb +120 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +204 -2375
- data/generated/google/apis/vision_v1/representations.rb +701 -1634
- data/generated/google/apis/vision_v1/service.rb +17 -17
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +135 -2306
- data/generated/google/apis/vision_v1p1beta1/representations.rb +768 -1701
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +326 -2161
- data/generated/google/apis/vision_v1p2beta1/representations.rb +897 -1710
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +8 -2
- data/generated/google/apis/youtube_v3/representations.rb +1 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +22 -6
- data/generated/google/apis/appstate_v1/classes.rb +0 -154
- data/generated/google/apis/appstate_v1/service.rb +0 -249
@@ -761,7 +761,7 @@ module Google
|
|
761
761
|
# Possible errors:
|
762
762
|
# * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
|
763
763
|
# @param [String] name
|
764
|
-
# The resource name for the ProductSet to modify.
|
764
|
+
# Required. The resource name for the ProductSet to modify.
|
765
765
|
# Format is:
|
766
766
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
767
767
|
# @param [Google::Apis::VisionV1::AddProductToProductSetRequest] add_product_to_product_set_request_object
|
@@ -799,7 +799,7 @@ module Google
|
|
799
799
|
# * Returns INVALID_ARGUMENT if display_name is missing, or is longer than
|
800
800
|
# 4096 characters.
|
801
801
|
# @param [String] parent
|
802
|
-
# The project in which the ProductSet should be created.
|
802
|
+
# Required. The project in which the ProductSet should be created.
|
803
803
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
804
804
|
# @param [Google::Apis::VisionV1::ProductSet] product_set_object
|
805
805
|
# @param [String] product_set_id
|
@@ -841,7 +841,7 @@ module Google
|
|
841
841
|
# ProductSet are not deleted.
|
842
842
|
# The actual image files are not deleted from Google Cloud Storage.
|
843
843
|
# @param [String] name
|
844
|
-
# Resource name of the ProductSet to delete.
|
844
|
+
# Required. Resource name of the ProductSet to delete.
|
845
845
|
# Format is:
|
846
846
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
847
847
|
# @param [String] fields
|
@@ -875,7 +875,7 @@ module Google
|
|
875
875
|
# Possible errors:
|
876
876
|
# * Returns NOT_FOUND if the ProductSet does not exist.
|
877
877
|
# @param [String] name
|
878
|
-
# Resource name of the ProductSet to get.
|
878
|
+
# Required. Resource name of the ProductSet to get.
|
879
879
|
# Format is:
|
880
880
|
# `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
|
881
881
|
# @param [String] fields
|
@@ -915,7 +915,7 @@ module Google
|
|
915
915
|
# For the format of the csv file please see
|
916
916
|
# ImportProductSetsGcsSource.csv_file_uri.
|
917
917
|
# @param [String] parent
|
918
|
-
# The project in which the ProductSets should be imported.
|
918
|
+
# Required. The project in which the ProductSets should be imported.
|
919
919
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
920
920
|
# @param [Google::Apis::VisionV1::ImportProductSetsRequest] import_product_sets_request_object
|
921
921
|
# @param [String] fields
|
@@ -952,7 +952,7 @@ module Google
|
|
952
952
|
# * Returns INVALID_ARGUMENT if page_size is greater than 100, or less
|
953
953
|
# than 1.
|
954
954
|
# @param [String] parent
|
955
|
-
# The project from which ProductSets should be listed.
|
955
|
+
# Required. The project from which ProductSets should be listed.
|
956
956
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
957
957
|
# @param [Fixnum] page_size
|
958
958
|
# The maximum number of items to return. Default 10, maximum 100.
|
@@ -1036,7 +1036,7 @@ module Google
|
|
1036
1036
|
|
1037
1037
|
# Removes a Product from the specified ProductSet.
|
1038
1038
|
# @param [String] name
|
1039
|
-
# The resource name for the ProductSet to modify.
|
1039
|
+
# Required. The resource name for the ProductSet to modify.
|
1040
1040
|
# Format is:
|
1041
1041
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
1042
1042
|
# @param [Google::Apis::VisionV1::RemoveProductFromProductSetRequest] remove_product_from_product_set_request_object
|
@@ -1075,7 +1075,7 @@ module Google
|
|
1075
1075
|
# Possible errors:
|
1076
1076
|
# * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
|
1077
1077
|
# @param [String] name
|
1078
|
-
# The ProductSet resource for which to retrieve Products.
|
1078
|
+
# Required. The ProductSet resource for which to retrieve Products.
|
1079
1079
|
# Format is:
|
1080
1080
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
1081
1081
|
# @param [Fixnum] page_size
|
@@ -1118,7 +1118,7 @@ module Google
|
|
1118
1118
|
# * Returns INVALID_ARGUMENT if description is longer than 4096 characters.
|
1119
1119
|
# * Returns INVALID_ARGUMENT if product_category is missing or invalid.
|
1120
1120
|
# @param [String] parent
|
1121
|
-
# The project in which the Product should be created.
|
1121
|
+
# Required. The project in which the Product should be created.
|
1122
1122
|
# Format is
|
1123
1123
|
# `projects/PROJECT_ID/locations/LOC_ID`.
|
1124
1124
|
# @param [Google::Apis::VisionV1::Product] product_object
|
@@ -1162,7 +1162,7 @@ module Google
|
|
1162
1162
|
# search queries against ProductSets containing the product may still work
|
1163
1163
|
# until all related caches are refreshed.
|
1164
1164
|
# @param [String] name
|
1165
|
-
# Resource name of product to delete.
|
1165
|
+
# Required. Resource name of product to delete.
|
1166
1166
|
# Format is:
|
1167
1167
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
1168
1168
|
# @param [String] fields
|
@@ -1196,7 +1196,7 @@ module Google
|
|
1196
1196
|
# Possible errors:
|
1197
1197
|
# * Returns NOT_FOUND if the Product does not exist.
|
1198
1198
|
# @param [String] name
|
1199
|
-
# Resource name of the Product to get.
|
1199
|
+
# Required. Resource name of the Product to get.
|
1200
1200
|
# Format is:
|
1201
1201
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
1202
1202
|
# @param [String] fields
|
@@ -1230,7 +1230,7 @@ module Google
|
|
1230
1230
|
# Possible errors:
|
1231
1231
|
# * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
|
1232
1232
|
# @param [String] parent
|
1233
|
-
# The project OR ProductSet from which Products should be listed.
|
1233
|
+
# Required. The project OR ProductSet from which Products should be listed.
|
1234
1234
|
# Format:
|
1235
1235
|
# `projects/PROJECT_ID/locations/LOC_ID`
|
1236
1236
|
# @param [Fixnum] page_size
|
@@ -1340,7 +1340,7 @@ module Google
|
|
1340
1340
|
# progress and results of the request.
|
1341
1341
|
# `Operation.metadata` contains `BatchOperationMetadata`. (progress)
|
1342
1342
|
# @param [String] parent
|
1343
|
-
# The project and location in which the Products should be deleted.
|
1343
|
+
# Required. The project and location in which the Products should be deleted.
|
1344
1344
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
1345
1345
|
# @param [Google::Apis::VisionV1::PurgeProductsRequest] purge_products_request_object
|
1346
1346
|
# @param [String] fields
|
@@ -1388,7 +1388,7 @@ module Google
|
|
1388
1388
|
# compatible with the parent product's product_category is detected.
|
1389
1389
|
# * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
|
1390
1390
|
# @param [String] parent
|
1391
|
-
# Resource name of the product in which to create the reference image.
|
1391
|
+
# Required. Resource name of the product in which to create the reference image.
|
1392
1392
|
# Format is
|
1393
1393
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
1394
1394
|
# @param [Google::Apis::VisionV1::ReferenceImage] reference_image_object
|
@@ -1433,7 +1433,7 @@ module Google
|
|
1433
1433
|
# caches are refreshed.
|
1434
1434
|
# The actual image files are not deleted from Google Cloud Storage.
|
1435
1435
|
# @param [String] name
|
1436
|
-
# The resource name of the reference image to delete.
|
1436
|
+
# Required. The resource name of the reference image to delete.
|
1437
1437
|
# Format is:
|
1438
1438
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/
|
1439
1439
|
# IMAGE_ID`
|
@@ -1468,7 +1468,7 @@ module Google
|
|
1468
1468
|
# Possible errors:
|
1469
1469
|
# * Returns NOT_FOUND if the specified image does not exist.
|
1470
1470
|
# @param [String] name
|
1471
|
-
# The resource name of the ReferenceImage to get.
|
1471
|
+
# Required. The resource name of the ReferenceImage to get.
|
1472
1472
|
# Format is:
|
1473
1473
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/
|
1474
1474
|
# IMAGE_ID`.
|
@@ -1505,7 +1505,7 @@ module Google
|
|
1505
1505
|
# * Returns INVALID_ARGUMENT if the page_size is greater than 100, or less
|
1506
1506
|
# than 1.
|
1507
1507
|
# @param [String] parent
|
1508
|
-
# Resource name of the product containing the reference images.
|
1508
|
+
# Required. Resource name of the product containing the reference images.
|
1509
1509
|
# Format is
|
1510
1510
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
1511
1511
|
# @param [Fixnum] page_size
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/vision/
|
28
28
|
module VisionV1p1beta1
|
29
29
|
VERSION = 'V1p1beta1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20190907'
|
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'
|
@@ -1317,7 +1317,7 @@ module Google
|
|
1317
1317
|
# @return [String]
|
1318
1318
|
attr_accessor :parent
|
1319
1319
|
|
1320
|
-
# Individual async file annotation requests for this batch.
|
1320
|
+
# Required. Individual async file annotation requests for this batch.
|
1321
1321
|
# Corresponds to the JSON property `requests`
|
1322
1322
|
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AsyncAnnotateFileRequest>]
|
1323
1323
|
attr_accessor :requests
|
@@ -1374,7 +1374,7 @@ module Google
|
|
1374
1374
|
# @return [String]
|
1375
1375
|
attr_accessor :parent
|
1376
1376
|
|
1377
|
-
# Individual image annotation requests for this batch.
|
1377
|
+
# Required. Individual image annotation requests for this batch.
|
1378
1378
|
# Corresponds to the JSON property `requests`
|
1379
1379
|
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AnnotateImageRequest>]
|
1380
1380
|
attr_accessor :requests
|
@@ -1407,7 +1407,7 @@ module Google
|
|
1407
1407
|
# @return [String]
|
1408
1408
|
attr_accessor :parent
|
1409
1409
|
|
1410
|
-
# The list of file annotation requests. Right now we support only one
|
1410
|
+
# Required. The list of file annotation requests. Right now we support only one
|
1411
1411
|
# AnnotateFileRequest in BatchAnnotateFilesRequest.
|
1412
1412
|
# Corresponds to the JSON property `requests`
|
1413
1413
|
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AnnotateFileRequest>]
|
@@ -1460,7 +1460,7 @@ module Google
|
|
1460
1460
|
# @return [String]
|
1461
1461
|
attr_accessor :parent
|
1462
1462
|
|
1463
|
-
# Individual image annotation requests for this batch.
|
1463
|
+
# Required. Individual image annotation requests for this batch.
|
1464
1464
|
# Corresponds to the JSON property `requests`
|
1465
1465
|
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1AnnotateImageRequest>]
|
1466
1466
|
attr_accessor :requests
|
@@ -2636,11 +2636,11 @@ module Google
|
|
2636
2636
|
# @return [String]
|
2637
2637
|
attr_accessor :name
|
2638
2638
|
|
2639
|
-
# The category for the product identified by the reference image.
|
2639
|
+
# Immutable. The category for the product identified by the reference image.
|
2640
|
+
# This should
|
2640
2641
|
# be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
|
2641
2642
|
# "homegoods", "apparel", and "toys" are still supported, but these should
|
2642
2643
|
# not be used for new products.
|
2643
|
-
# This field is immutable.
|
2644
2644
|
# Corresponds to the JSON property `productCategory`
|
2645
2645
|
# @return [String]
|
2646
2646
|
attr_accessor :product_category
|
@@ -4511,11 +4511,11 @@ module Google
|
|
4511
4511
|
# @return [String]
|
4512
4512
|
attr_accessor :name
|
4513
4513
|
|
4514
|
-
# The category for the product identified by the reference image.
|
4514
|
+
# Immutable. The category for the product identified by the reference image.
|
4515
|
+
# This should
|
4515
4516
|
# be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
|
4516
4517
|
# "homegoods", "apparel", and "toys" are still supported, but these should
|
4517
4518
|
# not be used for new products.
|
4518
|
-
# This field is immutable.
|
4519
4519
|
# Corresponds to the JSON property `productCategory`
|
4520
4520
|
# @return [String]
|
4521
4521
|
attr_accessor :product_category
|
@@ -6381,11 +6381,11 @@ module Google
|
|
6381
6381
|
# @return [String]
|
6382
6382
|
attr_accessor :name
|
6383
6383
|
|
6384
|
-
# The category for the product identified by the reference image.
|
6384
|
+
# Immutable. The category for the product identified by the reference image.
|
6385
|
+
# This should
|
6385
6386
|
# be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
|
6386
6387
|
# "homegoods", "apparel", and "toys" are still supported, but these should
|
6387
6388
|
# not be used for new products.
|
6388
|
-
# This field is immutable.
|
6389
6389
|
# Corresponds to the JSON property `productCategory`
|
6390
6390
|
# @return [String]
|
6391
6391
|
attr_accessor :product_category
|
@@ -6621,8 +6621,9 @@ module Google
|
|
6621
6621
|
class GoogleCloudVisionV1p3beta1ReferenceImage
|
6622
6622
|
include Google::Apis::Core::Hashable
|
6623
6623
|
|
6624
|
-
# Bounding polygons around the areas of interest in the reference
|
6625
|
-
#
|
6624
|
+
# Optional. Bounding polygons around the areas of interest in the reference
|
6625
|
+
# image.
|
6626
|
+
# If this field is empty, the system will try to detect regions of
|
6626
6627
|
# interest. At most 10 bounding polygons will be used.
|
6627
6628
|
# The provided shape is converted into a non-rotated rectangle. Once
|
6628
6629
|
# converted, the small edge of the rectangle must be greater than or equal
|
@@ -6641,9 +6642,8 @@ module Google
|
|
6641
6642
|
# @return [String]
|
6642
6643
|
attr_accessor :name
|
6643
6644
|
|
6644
|
-
# The Google Cloud Storage URI of the reference image.
|
6645
|
+
# Required. The Google Cloud Storage URI of the reference image.
|
6645
6646
|
# The URI must start with `gs://`.
|
6646
|
-
# Required.
|
6647
6647
|
# Corresponds to the JSON property `uri`
|
6648
6648
|
# @return [String]
|
6649
6649
|
attr_accessor :uri
|
@@ -8368,11 +8368,11 @@ module Google
|
|
8368
8368
|
# @return [String]
|
8369
8369
|
attr_accessor :name
|
8370
8370
|
|
8371
|
-
# The category for the product identified by the reference image.
|
8371
|
+
# Immutable. The category for the product identified by the reference image.
|
8372
|
+
# This should
|
8372
8373
|
# be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
|
8373
8374
|
# "homegoods", "apparel", and "toys" are still supported, but these should
|
8374
8375
|
# not be used for new products.
|
8375
|
-
# This field is immutable.
|
8376
8376
|
# Corresponds to the JSON property `productCategory`
|
8377
8377
|
# @return [String]
|
8378
8378
|
attr_accessor :product_category
|
@@ -8640,8 +8640,9 @@ module Google
|
|
8640
8640
|
class GoogleCloudVisionV1p4beta1ReferenceImage
|
8641
8641
|
include Google::Apis::Core::Hashable
|
8642
8642
|
|
8643
|
-
# Bounding polygons around the areas of interest in the reference
|
8644
|
-
#
|
8643
|
+
# Optional. Bounding polygons around the areas of interest in the reference
|
8644
|
+
# image.
|
8645
|
+
# If this field is empty, the system will try to detect regions of
|
8645
8646
|
# interest. At most 10 bounding polygons will be used.
|
8646
8647
|
# The provided shape is converted into a non-rotated rectangle. Once
|
8647
8648
|
# converted, the small edge of the rectangle must be greater than or equal
|
@@ -8660,9 +8661,8 @@ module Google
|
|
8660
8661
|
# @return [String]
|
8661
8662
|
attr_accessor :name
|
8662
8663
|
|
8663
|
-
# The Google Cloud Storage URI of the reference image.
|
8664
|
+
# Required. The Google Cloud Storage URI of the reference image.
|
8664
8665
|
# The URI must start with `gs://`.
|
8665
|
-
# Required.
|
8666
8666
|
# Corresponds to the JSON property `uri`
|
8667
8667
|
# @return [String]
|
8668
8668
|
attr_accessor :uri
|
@@ -9167,36 +9167,25 @@ module Google
|
|
9167
9167
|
end
|
9168
9168
|
end
|
9169
9169
|
|
9170
|
-
#
|
9171
|
-
#
|
9172
|
-
class
|
9170
|
+
# Information about the products similar to a single product in a query
|
9171
|
+
# image.
|
9172
|
+
class GroupedResult
|
9173
9173
|
include Google::Apis::Core::Hashable
|
9174
9174
|
|
9175
|
-
#
|
9176
|
-
#
|
9177
|
-
#
|
9178
|
-
|
9179
|
-
# You can find out more about this error model and how to work with it in the
|
9180
|
-
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
9181
|
-
# Corresponds to the JSON property `error`
|
9182
|
-
# @return [Google::Apis::VisionV1p1beta1::Status]
|
9183
|
-
attr_accessor :error
|
9184
|
-
|
9185
|
-
# The desired input location and metadata.
|
9186
|
-
# Corresponds to the JSON property `inputConfig`
|
9187
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1InputConfig]
|
9188
|
-
attr_accessor :input_config
|
9175
|
+
# A bounding polygon for the detected image annotation.
|
9176
|
+
# Corresponds to the JSON property `boundingPoly`
|
9177
|
+
# @return [Google::Apis::VisionV1p1beta1::BoundingPoly]
|
9178
|
+
attr_accessor :bounding_poly
|
9189
9179
|
|
9190
|
-
#
|
9191
|
-
#
|
9192
|
-
#
|
9193
|
-
|
9194
|
-
attr_accessor :responses
|
9180
|
+
# List of generic predictions for the object in the bounding box.
|
9181
|
+
# Corresponds to the JSON property `objectAnnotations`
|
9182
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::ObjectAnnotation>]
|
9183
|
+
attr_accessor :object_annotations
|
9195
9184
|
|
9196
|
-
#
|
9197
|
-
# Corresponds to the JSON property `
|
9198
|
-
# @return [
|
9199
|
-
attr_accessor :
|
9185
|
+
# List of results, one for each product match.
|
9186
|
+
# Corresponds to the JSON property `results`
|
9187
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::Result>]
|
9188
|
+
attr_accessor :results
|
9200
9189
|
|
9201
9190
|
def initialize(**args)
|
9202
9191
|
update!(**args)
|
@@ -9204,101 +9193,27 @@ module Google
|
|
9204
9193
|
|
9205
9194
|
# Update properties of this object
|
9206
9195
|
def update!(**args)
|
9207
|
-
@
|
9208
|
-
@
|
9209
|
-
@
|
9210
|
-
@total_pages = args[:total_pages] if args.key?(:total_pages)
|
9196
|
+
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
9197
|
+
@object_annotations = args[:object_annotations] if args.key?(:object_annotations)
|
9198
|
+
@results = args[:results] if args.key?(:results)
|
9211
9199
|
end
|
9212
9200
|
end
|
9213
9201
|
|
9214
|
-
#
|
9215
|
-
|
9202
|
+
# If an image was produced from a file (e.g. a PDF), this message gives
|
9203
|
+
# information about the source of that image.
|
9204
|
+
class ImageAnnotationContext
|
9216
9205
|
include Google::Apis::Core::Hashable
|
9217
9206
|
|
9218
|
-
# If
|
9219
|
-
#
|
9220
|
-
# Corresponds to the JSON property `
|
9221
|
-
# @return [
|
9222
|
-
attr_accessor :
|
9223
|
-
|
9224
|
-
# Set of crop hints that are used to generate new crops when serving images.
|
9225
|
-
# Corresponds to the JSON property `cropHintsAnnotation`
|
9226
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1CropHintsAnnotation]
|
9227
|
-
attr_accessor :crop_hints_annotation
|
9228
|
-
|
9229
|
-
# The `Status` type defines a logical error model that is suitable for
|
9230
|
-
# different programming environments, including REST APIs and RPC APIs. It is
|
9231
|
-
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
9232
|
-
# three pieces of data: error code, error message, and error details.
|
9233
|
-
# You can find out more about this error model and how to work with it in the
|
9234
|
-
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
9235
|
-
# Corresponds to the JSON property `error`
|
9236
|
-
# @return [Google::Apis::VisionV1p1beta1::Status]
|
9237
|
-
attr_accessor :error
|
9238
|
-
|
9239
|
-
# If present, face detection has completed successfully.
|
9240
|
-
# Corresponds to the JSON property `faceAnnotations`
|
9241
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1FaceAnnotation>]
|
9242
|
-
attr_accessor :face_annotations
|
9243
|
-
|
9244
|
-
# TextAnnotation contains a structured representation of OCR extracted text.
|
9245
|
-
# The hierarchy of an OCR extracted text structure is like this:
|
9246
|
-
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
9247
|
-
# Each structural component, starting from Page, may further have their own
|
9248
|
-
# properties. Properties describe detected languages, breaks etc.. Please refer
|
9249
|
-
# to the TextAnnotation.TextProperty message definition below for more
|
9250
|
-
# detail.
|
9251
|
-
# Corresponds to the JSON property `fullTextAnnotation`
|
9252
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotation]
|
9253
|
-
attr_accessor :full_text_annotation
|
9254
|
-
|
9255
|
-
# Stores image properties, such as dominant colors.
|
9256
|
-
# Corresponds to the JSON property `imagePropertiesAnnotation`
|
9257
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ImageProperties]
|
9258
|
-
attr_accessor :image_properties_annotation
|
9259
|
-
|
9260
|
-
# If present, label detection has completed successfully.
|
9261
|
-
# Corresponds to the JSON property `labelAnnotations`
|
9262
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1EntityAnnotation>]
|
9263
|
-
attr_accessor :label_annotations
|
9264
|
-
|
9265
|
-
# If present, landmark detection has completed successfully.
|
9266
|
-
# Corresponds to the JSON property `landmarkAnnotations`
|
9267
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1EntityAnnotation>]
|
9268
|
-
attr_accessor :landmark_annotations
|
9269
|
-
|
9270
|
-
# If present, localized object detection has completed successfully.
|
9271
|
-
# This will be sorted descending by confidence score.
|
9272
|
-
# Corresponds to the JSON property `localizedObjectAnnotations`
|
9273
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation>]
|
9274
|
-
attr_accessor :localized_object_annotations
|
9275
|
-
|
9276
|
-
# If present, logo detection has completed successfully.
|
9277
|
-
# Corresponds to the JSON property `logoAnnotations`
|
9278
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1EntityAnnotation>]
|
9279
|
-
attr_accessor :logo_annotations
|
9280
|
-
|
9281
|
-
# Results for a product search request.
|
9282
|
-
# Corresponds to the JSON property `productSearchResults`
|
9283
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResults]
|
9284
|
-
attr_accessor :product_search_results
|
9285
|
-
|
9286
|
-
# Set of features pertaining to the image, computed by computer vision
|
9287
|
-
# methods over safe-search verticals (for example, adult, spoof, medical,
|
9288
|
-
# violence).
|
9289
|
-
# Corresponds to the JSON property `safeSearchAnnotation`
|
9290
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1SafeSearchAnnotation]
|
9291
|
-
attr_accessor :safe_search_annotation
|
9292
|
-
|
9293
|
-
# If present, text (OCR) detection has completed successfully.
|
9294
|
-
# Corresponds to the JSON property `textAnnotations`
|
9295
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1EntityAnnotation>]
|
9296
|
-
attr_accessor :text_annotations
|
9207
|
+
# If the file was a PDF or TIFF, this field gives the page number within
|
9208
|
+
# the file used to produce the image.
|
9209
|
+
# Corresponds to the JSON property `pageNumber`
|
9210
|
+
# @return [Fixnum]
|
9211
|
+
attr_accessor :page_number
|
9297
9212
|
|
9298
|
-
#
|
9299
|
-
# Corresponds to the JSON property `
|
9300
|
-
# @return [
|
9301
|
-
attr_accessor :
|
9213
|
+
# The URI of the file used to produce the image.
|
9214
|
+
# Corresponds to the JSON property `uri`
|
9215
|
+
# @return [String]
|
9216
|
+
attr_accessor :uri
|
9302
9217
|
|
9303
9218
|
def initialize(**args)
|
9304
9219
|
update!(**args)
|
@@ -9306,31 +9221,19 @@ module Google
|
|
9306
9221
|
|
9307
9222
|
# Update properties of this object
|
9308
9223
|
def update!(**args)
|
9309
|
-
@
|
9310
|
-
@
|
9311
|
-
@error = args[:error] if args.key?(:error)
|
9312
|
-
@face_annotations = args[:face_annotations] if args.key?(:face_annotations)
|
9313
|
-
@full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
|
9314
|
-
@image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
|
9315
|
-
@label_annotations = args[:label_annotations] if args.key?(:label_annotations)
|
9316
|
-
@landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
|
9317
|
-
@localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
|
9318
|
-
@logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
|
9319
|
-
@product_search_results = args[:product_search_results] if args.key?(:product_search_results)
|
9320
|
-
@safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
|
9321
|
-
@text_annotations = args[:text_annotations] if args.key?(:text_annotations)
|
9322
|
-
@web_detection = args[:web_detection] if args.key?(:web_detection)
|
9224
|
+
@page_number = args[:page_number] if args.key?(:page_number)
|
9225
|
+
@uri = args[:uri] if args.key?(:uri)
|
9323
9226
|
end
|
9324
9227
|
end
|
9325
9228
|
|
9326
|
-
#
|
9327
|
-
class
|
9229
|
+
# Stores image properties, such as dominant colors.
|
9230
|
+
class ImageProperties
|
9328
9231
|
include Google::Apis::Core::Hashable
|
9329
9232
|
|
9330
|
-
#
|
9331
|
-
# Corresponds to the JSON property `
|
9332
|
-
# @return [Google::Apis::VisionV1p1beta1::
|
9333
|
-
attr_accessor :
|
9233
|
+
# Set of dominant colors and their corresponding scores.
|
9234
|
+
# Corresponds to the JSON property `dominantColors`
|
9235
|
+
# @return [Google::Apis::VisionV1p1beta1::DominantColorsAnnotation]
|
9236
|
+
attr_accessor :dominant_colors
|
9334
9237
|
|
9335
9238
|
def initialize(**args)
|
9336
9239
|
update!(**args)
|
@@ -9338,19 +9241,30 @@ module Google
|
|
9338
9241
|
|
9339
9242
|
# Update properties of this object
|
9340
9243
|
def update!(**args)
|
9341
|
-
@
|
9244
|
+
@dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
|
9342
9245
|
end
|
9343
9246
|
end
|
9344
9247
|
|
9345
|
-
# Response
|
9346
|
-
|
9248
|
+
# Response message for the `ImportProductSets` method.
|
9249
|
+
# This message is returned by the
|
9250
|
+
# google.longrunning.Operations.GetOperation method in the returned
|
9251
|
+
# google.longrunning.Operation.response field.
|
9252
|
+
class ImportProductSetsResponse
|
9347
9253
|
include Google::Apis::Core::Hashable
|
9348
9254
|
|
9349
|
-
# The list of
|
9350
|
-
#
|
9351
|
-
#
|
9352
|
-
|
9353
|
-
|
9255
|
+
# The list of reference_images that are imported successfully.
|
9256
|
+
# Corresponds to the JSON property `referenceImages`
|
9257
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::ReferenceImage>]
|
9258
|
+
attr_accessor :reference_images
|
9259
|
+
|
9260
|
+
# The rpc status for each ImportProductSet request, including both successes
|
9261
|
+
# and errors.
|
9262
|
+
# The number of statuses here matches the number of lines in the csv file,
|
9263
|
+
# and statuses[i] stores the success or failure status of processing the i-th
|
9264
|
+
# line of the csv, starting from line 0.
|
9265
|
+
# Corresponds to the JSON property `statuses`
|
9266
|
+
# @return [Array<Google::Apis::VisionV1p1beta1::Status>]
|
9267
|
+
attr_accessor :statuses
|
9354
9268
|
|
9355
9269
|
def initialize(**args)
|
9356
9270
|
update!(**args)
|
@@ -9358,18 +9272,35 @@ module Google
|
|
9358
9272
|
|
9359
9273
|
# Update properties of this object
|
9360
9274
|
def update!(**args)
|
9361
|
-
@
|
9275
|
+
@reference_images = args[:reference_images] if args.key?(:reference_images)
|
9276
|
+
@statuses = args[:statuses] if args.key?(:statuses)
|
9362
9277
|
end
|
9363
9278
|
end
|
9364
9279
|
|
9365
|
-
#
|
9366
|
-
class
|
9280
|
+
# The desired input location and metadata.
|
9281
|
+
class InputConfig
|
9367
9282
|
include Google::Apis::Core::Hashable
|
9368
9283
|
|
9369
|
-
#
|
9370
|
-
#
|
9371
|
-
#
|
9372
|
-
|
9284
|
+
# File content, represented as a stream of bytes.
|
9285
|
+
# Note: As with all `bytes` fields, protobuffers use a pure binary
|
9286
|
+
# representation, whereas JSON representations use base64.
|
9287
|
+
# Currently, this field only works for BatchAnnotateFiles requests. It does
|
9288
|
+
# not work for AsyncBatchAnnotateFiles requests.
|
9289
|
+
# Corresponds to the JSON property `content`
|
9290
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
9291
|
+
# @return [String]
|
9292
|
+
attr_accessor :content
|
9293
|
+
|
9294
|
+
# The Google Cloud Storage location where the input will be read from.
|
9295
|
+
# Corresponds to the JSON property `gcsSource`
|
9296
|
+
# @return [Google::Apis::VisionV1p1beta1::GcsSource]
|
9297
|
+
attr_accessor :gcs_source
|
9298
|
+
|
9299
|
+
# The type of the file. Currently only "application/pdf", "image/tiff" and
|
9300
|
+
# "image/gif" are supported. Wildcards are not supported.
|
9301
|
+
# Corresponds to the JSON property `mimeType`
|
9302
|
+
# @return [String]
|
9303
|
+
attr_accessor :mime_type
|
9373
9304
|
|
9374
9305
|
def initialize(**args)
|
9375
9306
|
update!(**args)
|
@@ -9377,19 +9308,27 @@ module Google
|
|
9377
9308
|
|
9378
9309
|
# Update properties of this object
|
9379
9310
|
def update!(**args)
|
9380
|
-
@
|
9311
|
+
@content = args[:content] if args.key?(:content)
|
9312
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
9313
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
9381
9314
|
end
|
9382
9315
|
end
|
9383
9316
|
|
9384
|
-
# A
|
9385
|
-
class
|
9317
|
+
# A product label represented as a key-value pair.
|
9318
|
+
class KeyValue
|
9386
9319
|
include Google::Apis::Core::Hashable
|
9387
9320
|
|
9388
|
-
# The
|
9389
|
-
#
|
9390
|
-
# Corresponds to the JSON property `
|
9391
|
-
# @return [
|
9392
|
-
attr_accessor :
|
9321
|
+
# The key of the label attached to the product. Cannot be empty and cannot
|
9322
|
+
# exceed 128 bytes.
|
9323
|
+
# Corresponds to the JSON property `key`
|
9324
|
+
# @return [String]
|
9325
|
+
attr_accessor :key
|
9326
|
+
|
9327
|
+
# The value of the label attached to the product. Cannot be empty and
|
9328
|
+
# cannot exceed 128 bytes.
|
9329
|
+
# Corresponds to the JSON property `value`
|
9330
|
+
# @return [String]
|
9331
|
+
attr_accessor :value
|
9393
9332
|
|
9394
9333
|
def initialize(**args)
|
9395
9334
|
update!(**args)
|
@@ -9397,2134 +9336,24 @@ module Google
|
|
9397
9336
|
|
9398
9337
|
# Update properties of this object
|
9399
9338
|
def update!(**args)
|
9400
|
-
@
|
9339
|
+
@key = args[:key] if args.key?(:key)
|
9340
|
+
@value = args[:value] if args.key?(:value)
|
9401
9341
|
end
|
9402
9342
|
end
|
9403
9343
|
|
9404
|
-
#
|
9405
|
-
|
9406
|
-
# `GetOperation` call of the `google::longrunning::Operations` service.
|
9407
|
-
class GoogleCloudVisionV1p5beta1BatchOperationMetadata
|
9344
|
+
# A face-specific landmark (for example, a face feature).
|
9345
|
+
class Landmark
|
9408
9346
|
include Google::Apis::Core::Hashable
|
9409
9347
|
|
9410
|
-
#
|
9411
|
-
#
|
9412
|
-
#
|
9413
|
-
#
|
9414
|
-
|
9348
|
+
# A 3D position in the image, used primarily for Face detection landmarks.
|
9349
|
+
# A valid Position must have both x and y coordinates.
|
9350
|
+
# The position coordinates are in the same scale as the original image.
|
9351
|
+
# Corresponds to the JSON property `position`
|
9352
|
+
# @return [Google::Apis::VisionV1p1beta1::Position]
|
9353
|
+
attr_accessor :position
|
9415
9354
|
|
9416
|
-
#
|
9417
|
-
# Corresponds to the JSON property `
|
9418
|
-
# @return [String]
|
9419
|
-
attr_accessor :state
|
9420
|
-
|
9421
|
-
# The time when the batch request was submitted to the server.
|
9422
|
-
# Corresponds to the JSON property `submitTime`
|
9423
|
-
# @return [String]
|
9424
|
-
attr_accessor :submit_time
|
9425
|
-
|
9426
|
-
def initialize(**args)
|
9427
|
-
update!(**args)
|
9428
|
-
end
|
9429
|
-
|
9430
|
-
# Update properties of this object
|
9431
|
-
def update!(**args)
|
9432
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
9433
|
-
@state = args[:state] if args.key?(:state)
|
9434
|
-
@submit_time = args[:submit_time] if args.key?(:submit_time)
|
9435
|
-
end
|
9436
|
-
end
|
9437
|
-
|
9438
|
-
# Logical element on the page.
|
9439
|
-
class GoogleCloudVisionV1p5beta1Block
|
9440
|
-
include Google::Apis::Core::Hashable
|
9441
|
-
|
9442
|
-
# Detected block type (text, image etc) for this block.
|
9443
|
-
# Corresponds to the JSON property `blockType`
|
9444
|
-
# @return [String]
|
9445
|
-
attr_accessor :block_type
|
9446
|
-
|
9447
|
-
# A bounding polygon for the detected image annotation.
|
9448
|
-
# Corresponds to the JSON property `boundingBox`
|
9449
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
|
9450
|
-
attr_accessor :bounding_box
|
9451
|
-
|
9452
|
-
# Confidence of the OCR results on the block. Range [0, 1].
|
9453
|
-
# Corresponds to the JSON property `confidence`
|
9454
|
-
# @return [Float]
|
9455
|
-
attr_accessor :confidence
|
9456
|
-
|
9457
|
-
# Proto for a key value pair.
|
9458
|
-
# Corresponds to the JSON property `keyValuePair`
|
9459
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1KeyValuePair]
|
9460
|
-
attr_accessor :key_value_pair
|
9461
|
-
|
9462
|
-
# All UTF-8 text detected in this block. This field is by default not
|
9463
|
-
# returned unless specified in TextDetectionParams.block_filter or
|
9464
|
-
# DocumentParsingParams.block_filter.
|
9465
|
-
# Corresponds to the JSON property `mergedText`
|
9466
|
-
# @return [String]
|
9467
|
-
attr_accessor :merged_text
|
9468
|
-
|
9469
|
-
# List of paragraphs in this block (if this blocks is of type text).
|
9470
|
-
# Corresponds to the JSON property `paragraphs`
|
9471
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Paragraph>]
|
9472
|
-
attr_accessor :paragraphs
|
9473
|
-
|
9474
|
-
# Additional information detected on the structural component.
|
9475
|
-
# Corresponds to the JSON property `property`
|
9476
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty]
|
9477
|
-
attr_accessor :property
|
9478
|
-
|
9479
|
-
# A table representation similar to HTML table structure.
|
9480
|
-
# Corresponds to the JSON property `table`
|
9481
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Table]
|
9482
|
-
attr_accessor :table
|
9483
|
-
|
9484
|
-
def initialize(**args)
|
9485
|
-
update!(**args)
|
9486
|
-
end
|
9487
|
-
|
9488
|
-
# Update properties of this object
|
9489
|
-
def update!(**args)
|
9490
|
-
@block_type = args[:block_type] if args.key?(:block_type)
|
9491
|
-
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
9492
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
9493
|
-
@key_value_pair = args[:key_value_pair] if args.key?(:key_value_pair)
|
9494
|
-
@merged_text = args[:merged_text] if args.key?(:merged_text)
|
9495
|
-
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
9496
|
-
@property = args[:property] if args.key?(:property)
|
9497
|
-
@table = args[:table] if args.key?(:table)
|
9498
|
-
end
|
9499
|
-
end
|
9500
|
-
|
9501
|
-
# A bounding polygon for the detected image annotation.
|
9502
|
-
class GoogleCloudVisionV1p5beta1BoundingPoly
|
9503
|
-
include Google::Apis::Core::Hashable
|
9504
|
-
|
9505
|
-
# The bounding polygon normalized vertices.
|
9506
|
-
# Corresponds to the JSON property `normalizedVertices`
|
9507
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1NormalizedVertex>]
|
9508
|
-
attr_accessor :normalized_vertices
|
9509
|
-
|
9510
|
-
# The bounding polygon vertices.
|
9511
|
-
# Corresponds to the JSON property `vertices`
|
9512
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Vertex>]
|
9513
|
-
attr_accessor :vertices
|
9514
|
-
|
9515
|
-
def initialize(**args)
|
9516
|
-
update!(**args)
|
9517
|
-
end
|
9518
|
-
|
9519
|
-
# Update properties of this object
|
9520
|
-
def update!(**args)
|
9521
|
-
@normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
|
9522
|
-
@vertices = args[:vertices] if args.key?(:vertices)
|
9523
|
-
end
|
9524
|
-
end
|
9525
|
-
|
9526
|
-
# Color information consists of RGB channels, score, and the fraction of
|
9527
|
-
# the image that the color occupies in the image.
|
9528
|
-
class GoogleCloudVisionV1p5beta1ColorInfo
|
9529
|
-
include Google::Apis::Core::Hashable
|
9530
|
-
|
9531
|
-
# Represents a color in the RGBA color space. This representation is designed
|
9532
|
-
# for simplicity of conversion to/from color representations in various
|
9533
|
-
# languages over compactness; for example, the fields of this representation
|
9534
|
-
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
|
9535
|
-
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
9536
|
-
# method in iOS; and, with just a little work, it can be easily formatted into
|
9537
|
-
# a CSS "rgba()" string in JavaScript, as well.
|
9538
|
-
# Note: this proto does not carry information about the absolute color space
|
9539
|
-
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
|
9540
|
-
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
|
9541
|
-
# space.
|
9542
|
-
# Example (Java):
|
9543
|
-
# import com.google.type.Color;
|
9544
|
-
# // ...
|
9545
|
-
# public static java.awt.Color fromProto(Color protocolor) `
|
9546
|
-
# float alpha = protocolor.hasAlpha()
|
9547
|
-
# ? protocolor.getAlpha().getValue()
|
9548
|
-
# : 1.0;
|
9549
|
-
# return new java.awt.Color(
|
9550
|
-
# protocolor.getRed(),
|
9551
|
-
# protocolor.getGreen(),
|
9552
|
-
# protocolor.getBlue(),
|
9553
|
-
# alpha);
|
9554
|
-
# `
|
9555
|
-
# public static Color toProto(java.awt.Color color) `
|
9556
|
-
# float red = (float) color.getRed();
|
9557
|
-
# float green = (float) color.getGreen();
|
9558
|
-
# float blue = (float) color.getBlue();
|
9559
|
-
# float denominator = 255.0;
|
9560
|
-
# Color.Builder resultBuilder =
|
9561
|
-
# Color
|
9562
|
-
# .newBuilder()
|
9563
|
-
# .setRed(red / denominator)
|
9564
|
-
# .setGreen(green / denominator)
|
9565
|
-
# .setBlue(blue / denominator);
|
9566
|
-
# int alpha = color.getAlpha();
|
9567
|
-
# if (alpha != 255) `
|
9568
|
-
# result.setAlpha(
|
9569
|
-
# FloatValue
|
9570
|
-
# .newBuilder()
|
9571
|
-
# .setValue(((float) alpha) / denominator)
|
9572
|
-
# .build());
|
9573
|
-
# `
|
9574
|
-
# return resultBuilder.build();
|
9575
|
-
# `
|
9576
|
-
# // ...
|
9577
|
-
# Example (iOS / Obj-C):
|
9578
|
-
# // ...
|
9579
|
-
# static UIColor* fromProto(Color* protocolor) `
|
9580
|
-
# float red = [protocolor red];
|
9581
|
-
# float green = [protocolor green];
|
9582
|
-
# float blue = [protocolor blue];
|
9583
|
-
# FloatValue* alpha_wrapper = [protocolor alpha];
|
9584
|
-
# float alpha = 1.0;
|
9585
|
-
# if (alpha_wrapper != nil) `
|
9586
|
-
# alpha = [alpha_wrapper value];
|
9587
|
-
# `
|
9588
|
-
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
|
9589
|
-
# `
|
9590
|
-
# static Color* toProto(UIColor* color) `
|
9591
|
-
# CGFloat red, green, blue, alpha;
|
9592
|
-
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
|
9593
|
-
# return nil;
|
9594
|
-
# `
|
9595
|
-
# Color* result = [[Color alloc] init];
|
9596
|
-
# [result setRed:red];
|
9597
|
-
# [result setGreen:green];
|
9598
|
-
# [result setBlue:blue];
|
9599
|
-
# if (alpha <= 0.9999) `
|
9600
|
-
# [result setAlpha:floatWrapperWithValue(alpha)];
|
9601
|
-
# `
|
9602
|
-
# [result autorelease];
|
9603
|
-
# return result;
|
9604
|
-
# `
|
9605
|
-
# // ...
|
9606
|
-
# Example (JavaScript):
|
9607
|
-
# // ...
|
9608
|
-
# var protoToCssColor = function(rgb_color) `
|
9609
|
-
# var redFrac = rgb_color.red || 0.0;
|
9610
|
-
# var greenFrac = rgb_color.green || 0.0;
|
9611
|
-
# var blueFrac = rgb_color.blue || 0.0;
|
9612
|
-
# var red = Math.floor(redFrac * 255);
|
9613
|
-
# var green = Math.floor(greenFrac * 255);
|
9614
|
-
# var blue = Math.floor(blueFrac * 255);
|
9615
|
-
# if (!('alpha' in rgb_color)) `
|
9616
|
-
# return rgbToCssColor_(red, green, blue);
|
9617
|
-
# `
|
9618
|
-
# var alphaFrac = rgb_color.alpha.value || 0.0;
|
9619
|
-
# var rgbParams = [red, green, blue].join(',');
|
9620
|
-
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
|
9621
|
-
# `;
|
9622
|
-
# var rgbToCssColor_ = function(red, green, blue) `
|
9623
|
-
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
|
9624
|
-
# var hexString = rgbNumber.toString(16);
|
9625
|
-
# var missingZeros = 6 - hexString.length;
|
9626
|
-
# var resultBuilder = ['#'];
|
9627
|
-
# for (var i = 0; i < missingZeros; i++) `
|
9628
|
-
# resultBuilder.push('0');
|
9629
|
-
# `
|
9630
|
-
# resultBuilder.push(hexString);
|
9631
|
-
# return resultBuilder.join('');
|
9632
|
-
# `;
|
9633
|
-
# // ...
|
9634
|
-
# Corresponds to the JSON property `color`
|
9635
|
-
# @return [Google::Apis::VisionV1p1beta1::Color]
|
9636
|
-
attr_accessor :color
|
9637
|
-
|
9638
|
-
# The fraction of pixels the color occupies in the image.
|
9639
|
-
# Value in range [0, 1].
|
9640
|
-
# Corresponds to the JSON property `pixelFraction`
|
9641
|
-
# @return [Float]
|
9642
|
-
attr_accessor :pixel_fraction
|
9643
|
-
|
9644
|
-
# Image-specific score for this color. Value in range [0, 1].
|
9645
|
-
# Corresponds to the JSON property `score`
|
9646
|
-
# @return [Float]
|
9647
|
-
attr_accessor :score
|
9648
|
-
|
9649
|
-
def initialize(**args)
|
9650
|
-
update!(**args)
|
9651
|
-
end
|
9652
|
-
|
9653
|
-
# Update properties of this object
|
9654
|
-
def update!(**args)
|
9655
|
-
@color = args[:color] if args.key?(:color)
|
9656
|
-
@pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction)
|
9657
|
-
@score = args[:score] if args.key?(:score)
|
9658
|
-
end
|
9659
|
-
end
|
9660
|
-
|
9661
|
-
# Single crop hint that is used to generate a new crop when serving an image.
|
9662
|
-
class GoogleCloudVisionV1p5beta1CropHint
|
9663
|
-
include Google::Apis::Core::Hashable
|
9664
|
-
|
9665
|
-
# A bounding polygon for the detected image annotation.
|
9666
|
-
# Corresponds to the JSON property `boundingPoly`
|
9667
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
|
9668
|
-
attr_accessor :bounding_poly
|
9669
|
-
|
9670
|
-
# Confidence of this being a salient region. Range [0, 1].
|
9671
|
-
# Corresponds to the JSON property `confidence`
|
9672
|
-
# @return [Float]
|
9673
|
-
attr_accessor :confidence
|
9674
|
-
|
9675
|
-
# Fraction of importance of this salient region with respect to the original
|
9676
|
-
# image.
|
9677
|
-
# Corresponds to the JSON property `importanceFraction`
|
9678
|
-
# @return [Float]
|
9679
|
-
attr_accessor :importance_fraction
|
9680
|
-
|
9681
|
-
def initialize(**args)
|
9682
|
-
update!(**args)
|
9683
|
-
end
|
9684
|
-
|
9685
|
-
# Update properties of this object
|
9686
|
-
def update!(**args)
|
9687
|
-
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
9688
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
9689
|
-
@importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction)
|
9690
|
-
end
|
9691
|
-
end
|
9692
|
-
|
9693
|
-
# Set of crop hints that are used to generate new crops when serving images.
|
9694
|
-
class GoogleCloudVisionV1p5beta1CropHintsAnnotation
|
9695
|
-
include Google::Apis::Core::Hashable
|
9696
|
-
|
9697
|
-
# Crop hint results.
|
9698
|
-
# Corresponds to the JSON property `cropHints`
|
9699
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1CropHint>]
|
9700
|
-
attr_accessor :crop_hints
|
9701
|
-
|
9702
|
-
def initialize(**args)
|
9703
|
-
update!(**args)
|
9704
|
-
end
|
9705
|
-
|
9706
|
-
# Update properties of this object
|
9707
|
-
def update!(**args)
|
9708
|
-
@crop_hints = args[:crop_hints] if args.key?(:crop_hints)
|
9709
|
-
end
|
9710
|
-
end
|
9711
|
-
|
9712
|
-
# Set of dominant colors and their corresponding scores.
|
9713
|
-
class GoogleCloudVisionV1p5beta1DominantColorsAnnotation
|
9714
|
-
include Google::Apis::Core::Hashable
|
9715
|
-
|
9716
|
-
# RGB color values with their score and pixel fraction.
|
9717
|
-
# Corresponds to the JSON property `colors`
|
9718
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ColorInfo>]
|
9719
|
-
attr_accessor :colors
|
9720
|
-
|
9721
|
-
def initialize(**args)
|
9722
|
-
update!(**args)
|
9723
|
-
end
|
9724
|
-
|
9725
|
-
# Update properties of this object
|
9726
|
-
def update!(**args)
|
9727
|
-
@colors = args[:colors] if args.key?(:colors)
|
9728
|
-
end
|
9729
|
-
end
|
9730
|
-
|
9731
|
-
# Set of detected entity features.
|
9732
|
-
class GoogleCloudVisionV1p5beta1EntityAnnotation
|
9733
|
-
include Google::Apis::Core::Hashable
|
9734
|
-
|
9735
|
-
# A bounding polygon for the detected image annotation.
|
9736
|
-
# Corresponds to the JSON property `boundingPoly`
|
9737
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
|
9738
|
-
attr_accessor :bounding_poly
|
9739
|
-
|
9740
|
-
# **Deprecated. Use `score` instead.**
|
9741
|
-
# The accuracy of the entity detection in an image.
|
9742
|
-
# For example, for an image in which the "Eiffel Tower" entity is detected,
|
9743
|
-
# this field represents the confidence that there is a tower in the query
|
9744
|
-
# image. Range [0, 1].
|
9745
|
-
# Corresponds to the JSON property `confidence`
|
9746
|
-
# @return [Float]
|
9747
|
-
attr_accessor :confidence
|
9748
|
-
|
9749
|
-
# Entity textual description, expressed in its `locale` language.
|
9750
|
-
# Corresponds to the JSON property `description`
|
9751
|
-
# @return [String]
|
9752
|
-
attr_accessor :description
|
9753
|
-
|
9754
|
-
# The language code for the locale in which the entity textual
|
9755
|
-
# `description` is expressed.
|
9756
|
-
# Corresponds to the JSON property `locale`
|
9757
|
-
# @return [String]
|
9758
|
-
attr_accessor :locale
|
9759
|
-
|
9760
|
-
# The location information for the detected entity. Multiple
|
9761
|
-
# `LocationInfo` elements can be present because one location may
|
9762
|
-
# indicate the location of the scene in the image, and another location
|
9763
|
-
# may indicate the location of the place where the image was taken.
|
9764
|
-
# Location information is usually present for landmarks.
|
9765
|
-
# Corresponds to the JSON property `locations`
|
9766
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1LocationInfo>]
|
9767
|
-
attr_accessor :locations
|
9768
|
-
|
9769
|
-
# Opaque entity ID. Some IDs may be available in
|
9770
|
-
# [Google Knowledge Graph Search
|
9771
|
-
# API](https://developers.google.com/knowledge-graph/).
|
9772
|
-
# Corresponds to the JSON property `mid`
|
9773
|
-
# @return [String]
|
9774
|
-
attr_accessor :mid
|
9775
|
-
|
9776
|
-
# Some entities may have optional user-supplied `Property` (name/value)
|
9777
|
-
# fields, such a score or string that qualifies the entity.
|
9778
|
-
# Corresponds to the JSON property `properties`
|
9779
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Property>]
|
9780
|
-
attr_accessor :properties
|
9781
|
-
|
9782
|
-
# Overall score of the result. Range [0, 1].
|
9783
|
-
# Corresponds to the JSON property `score`
|
9784
|
-
# @return [Float]
|
9785
|
-
attr_accessor :score
|
9786
|
-
|
9787
|
-
# The relevancy of the ICA (Image Content Annotation) label to the
|
9788
|
-
# image. For example, the relevancy of "tower" is likely higher to an image
|
9789
|
-
# containing the detected "Eiffel Tower" than to an image containing a
|
9790
|
-
# detected distant towering building, even though the confidence that
|
9791
|
-
# there is a tower in each image may be the same. Range [0, 1].
|
9792
|
-
# Corresponds to the JSON property `topicality`
|
9793
|
-
# @return [Float]
|
9794
|
-
attr_accessor :topicality
|
9795
|
-
|
9796
|
-
def initialize(**args)
|
9797
|
-
update!(**args)
|
9798
|
-
end
|
9799
|
-
|
9800
|
-
# Update properties of this object
|
9801
|
-
def update!(**args)
|
9802
|
-
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
9803
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
9804
|
-
@description = args[:description] if args.key?(:description)
|
9805
|
-
@locale = args[:locale] if args.key?(:locale)
|
9806
|
-
@locations = args[:locations] if args.key?(:locations)
|
9807
|
-
@mid = args[:mid] if args.key?(:mid)
|
9808
|
-
@properties = args[:properties] if args.key?(:properties)
|
9809
|
-
@score = args[:score] if args.key?(:score)
|
9810
|
-
@topicality = args[:topicality] if args.key?(:topicality)
|
9811
|
-
end
|
9812
|
-
end
|
9813
|
-
|
9814
|
-
# A face annotation object contains the results of face detection.
|
9815
|
-
class GoogleCloudVisionV1p5beta1FaceAnnotation
|
9816
|
-
include Google::Apis::Core::Hashable
|
9817
|
-
|
9818
|
-
# Anger likelihood.
|
9819
|
-
# Corresponds to the JSON property `angerLikelihood`
|
9820
|
-
# @return [String]
|
9821
|
-
attr_accessor :anger_likelihood
|
9822
|
-
|
9823
|
-
# Blurred likelihood.
|
9824
|
-
# Corresponds to the JSON property `blurredLikelihood`
|
9825
|
-
# @return [String]
|
9826
|
-
attr_accessor :blurred_likelihood
|
9827
|
-
|
9828
|
-
# A bounding polygon for the detected image annotation.
|
9829
|
-
# Corresponds to the JSON property `boundingPoly`
|
9830
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
|
9831
|
-
attr_accessor :bounding_poly
|
9832
|
-
|
9833
|
-
# Detection confidence. Range [0, 1].
|
9834
|
-
# Corresponds to the JSON property `detectionConfidence`
|
9835
|
-
# @return [Float]
|
9836
|
-
attr_accessor :detection_confidence
|
9837
|
-
|
9838
|
-
# A bounding polygon for the detected image annotation.
|
9839
|
-
# Corresponds to the JSON property `fdBoundingPoly`
|
9840
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
|
9841
|
-
attr_accessor :fd_bounding_poly
|
9842
|
-
|
9843
|
-
# Headwear likelihood.
|
9844
|
-
# Corresponds to the JSON property `headwearLikelihood`
|
9845
|
-
# @return [String]
|
9846
|
-
attr_accessor :headwear_likelihood
|
9847
|
-
|
9848
|
-
# Joy likelihood.
|
9849
|
-
# Corresponds to the JSON property `joyLikelihood`
|
9850
|
-
# @return [String]
|
9851
|
-
attr_accessor :joy_likelihood
|
9852
|
-
|
9853
|
-
# Face landmarking confidence. Range [0, 1].
|
9854
|
-
# Corresponds to the JSON property `landmarkingConfidence`
|
9855
|
-
# @return [Float]
|
9856
|
-
attr_accessor :landmarking_confidence
|
9857
|
-
|
9858
|
-
# Detected face landmarks.
|
9859
|
-
# Corresponds to the JSON property `landmarks`
|
9860
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1FaceAnnotationLandmark>]
|
9861
|
-
attr_accessor :landmarks
|
9862
|
-
|
9863
|
-
# Yaw angle, which indicates the leftward/rightward angle that the face is
|
9864
|
-
# pointing relative to the vertical plane perpendicular to the image. Range
|
9865
|
-
# [-180,180].
|
9866
|
-
# Corresponds to the JSON property `panAngle`
|
9867
|
-
# @return [Float]
|
9868
|
-
attr_accessor :pan_angle
|
9869
|
-
|
9870
|
-
# Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
|
9871
|
-
# of the face relative to the image vertical about the axis perpendicular to
|
9872
|
-
# the face. Range [-180,180].
|
9873
|
-
# Corresponds to the JSON property `rollAngle`
|
9874
|
-
# @return [Float]
|
9875
|
-
attr_accessor :roll_angle
|
9876
|
-
|
9877
|
-
# Sorrow likelihood.
|
9878
|
-
# Corresponds to the JSON property `sorrowLikelihood`
|
9879
|
-
# @return [String]
|
9880
|
-
attr_accessor :sorrow_likelihood
|
9881
|
-
|
9882
|
-
# Surprise likelihood.
|
9883
|
-
# Corresponds to the JSON property `surpriseLikelihood`
|
9884
|
-
# @return [String]
|
9885
|
-
attr_accessor :surprise_likelihood
|
9886
|
-
|
9887
|
-
# Pitch angle, which indicates the upwards/downwards angle that the face is
|
9888
|
-
# pointing relative to the image's horizontal plane. Range [-180,180].
|
9889
|
-
# Corresponds to the JSON property `tiltAngle`
|
9890
|
-
# @return [Float]
|
9891
|
-
attr_accessor :tilt_angle
|
9892
|
-
|
9893
|
-
# Under-exposed likelihood.
|
9894
|
-
# Corresponds to the JSON property `underExposedLikelihood`
|
9895
|
-
# @return [String]
|
9896
|
-
attr_accessor :under_exposed_likelihood
|
9897
|
-
|
9898
|
-
def initialize(**args)
|
9899
|
-
update!(**args)
|
9900
|
-
end
|
9901
|
-
|
9902
|
-
# Update properties of this object
|
9903
|
-
def update!(**args)
|
9904
|
-
@anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood)
|
9905
|
-
@blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood)
|
9906
|
-
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
9907
|
-
@detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence)
|
9908
|
-
@fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly)
|
9909
|
-
@headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood)
|
9910
|
-
@joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood)
|
9911
|
-
@landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
|
9912
|
-
@landmarks = args[:landmarks] if args.key?(:landmarks)
|
9913
|
-
@pan_angle = args[:pan_angle] if args.key?(:pan_angle)
|
9914
|
-
@roll_angle = args[:roll_angle] if args.key?(:roll_angle)
|
9915
|
-
@sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood)
|
9916
|
-
@surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
|
9917
|
-
@tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle)
|
9918
|
-
@under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood)
|
9919
|
-
end
|
9920
|
-
end
|
9921
|
-
|
9922
|
-
# A face-specific landmark (for example, a face feature).
|
9923
|
-
class GoogleCloudVisionV1p5beta1FaceAnnotationLandmark
|
9924
|
-
include Google::Apis::Core::Hashable
|
9925
|
-
|
9926
|
-
# A 3D position in the image, used primarily for Face detection landmarks.
|
9927
|
-
# A valid Position must have both x and y coordinates.
|
9928
|
-
# The position coordinates are in the same scale as the original image.
|
9929
|
-
# Corresponds to the JSON property `position`
|
9930
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Position]
|
9931
|
-
attr_accessor :position
|
9932
|
-
|
9933
|
-
# Face landmark type.
|
9934
|
-
# Corresponds to the JSON property `type`
|
9935
|
-
# @return [String]
|
9936
|
-
attr_accessor :type
|
9937
|
-
|
9938
|
-
def initialize(**args)
|
9939
|
-
update!(**args)
|
9940
|
-
end
|
9941
|
-
|
9942
|
-
# Update properties of this object
|
9943
|
-
def update!(**args)
|
9944
|
-
@position = args[:position] if args.key?(:position)
|
9945
|
-
@type = args[:type] if args.key?(:type)
|
9946
|
-
end
|
9947
|
-
end
|
9948
|
-
|
9949
|
-
# The Google Cloud Storage location where the output will be written to.
|
9950
|
-
class GoogleCloudVisionV1p5beta1GcsDestination
|
9951
|
-
include Google::Apis::Core::Hashable
|
9952
|
-
|
9953
|
-
# Google Cloud Storage URI prefix where the results will be stored. Results
|
9954
|
-
# will be in JSON format and preceded by its corresponding input URI prefix.
|
9955
|
-
# This field can either represent a gcs file prefix or gcs directory. In
|
9956
|
-
# either case, the uri should be unique because in order to get all of the
|
9957
|
-
# output files, you will need to do a wildcard gcs search on the uri prefix
|
9958
|
-
# you provide.
|
9959
|
-
# Examples:
|
9960
|
-
# * File Prefix: gs://bucket-name/here/filenameprefix The output files
|
9961
|
-
# will be created in gs://bucket-name/here/ and the names of the
|
9962
|
-
# output files will begin with "filenameprefix".
|
9963
|
-
# * Directory Prefix: gs://bucket-name/some/location/ The output files
|
9964
|
-
# will be created in gs://bucket-name/some/location/ and the names of the
|
9965
|
-
# output files could be anything because there was no filename prefix
|
9966
|
-
# specified.
|
9967
|
-
# If multiple outputs, each response is still AnnotateFileResponse, each of
|
9968
|
-
# which contains some subset of the full list of AnnotateImageResponse.
|
9969
|
-
# Multiple outputs can happen if, for example, the output JSON is too large
|
9970
|
-
# and overflows into multiple sharded files.
|
9971
|
-
# Corresponds to the JSON property `uri`
|
9972
|
-
# @return [String]
|
9973
|
-
attr_accessor :uri
|
9974
|
-
|
9975
|
-
def initialize(**args)
|
9976
|
-
update!(**args)
|
9977
|
-
end
|
9978
|
-
|
9979
|
-
# Update properties of this object
|
9980
|
-
def update!(**args)
|
9981
|
-
@uri = args[:uri] if args.key?(:uri)
|
9982
|
-
end
|
9983
|
-
end
|
9984
|
-
|
9985
|
-
# The Google Cloud Storage location where the input will be read from.
|
9986
|
-
class GoogleCloudVisionV1p5beta1GcsSource
|
9987
|
-
include Google::Apis::Core::Hashable
|
9988
|
-
|
9989
|
-
# Google Cloud Storage URI for the input file. This must only be a
|
9990
|
-
# Google Cloud Storage object. Wildcards are not currently supported.
|
9991
|
-
# Corresponds to the JSON property `uri`
|
9992
|
-
# @return [String]
|
9993
|
-
attr_accessor :uri
|
9994
|
-
|
9995
|
-
def initialize(**args)
|
9996
|
-
update!(**args)
|
9997
|
-
end
|
9998
|
-
|
9999
|
-
# Update properties of this object
|
10000
|
-
def update!(**args)
|
10001
|
-
@uri = args[:uri] if args.key?(:uri)
|
10002
|
-
end
|
10003
|
-
end
|
10004
|
-
|
10005
|
-
# If an image was produced from a file (e.g. a PDF), this message gives
|
10006
|
-
# information about the source of that image.
|
10007
|
-
class GoogleCloudVisionV1p5beta1ImageAnnotationContext
|
10008
|
-
include Google::Apis::Core::Hashable
|
10009
|
-
|
10010
|
-
# If the file was a PDF or TIFF, this field gives the page number within
|
10011
|
-
# the file used to produce the image.
|
10012
|
-
# Corresponds to the JSON property `pageNumber`
|
10013
|
-
# @return [Fixnum]
|
10014
|
-
attr_accessor :page_number
|
10015
|
-
|
10016
|
-
# The URI of the file used to produce the image.
|
10017
|
-
# Corresponds to the JSON property `uri`
|
10018
|
-
# @return [String]
|
10019
|
-
attr_accessor :uri
|
10020
|
-
|
10021
|
-
def initialize(**args)
|
10022
|
-
update!(**args)
|
10023
|
-
end
|
10024
|
-
|
10025
|
-
# Update properties of this object
|
10026
|
-
def update!(**args)
|
10027
|
-
@page_number = args[:page_number] if args.key?(:page_number)
|
10028
|
-
@uri = args[:uri] if args.key?(:uri)
|
10029
|
-
end
|
10030
|
-
end
|
10031
|
-
|
10032
|
-
# Stores image properties, such as dominant colors.
|
10033
|
-
class GoogleCloudVisionV1p5beta1ImageProperties
|
10034
|
-
include Google::Apis::Core::Hashable
|
10035
|
-
|
10036
|
-
# Set of dominant colors and their corresponding scores.
|
10037
|
-
# Corresponds to the JSON property `dominantColors`
|
10038
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1DominantColorsAnnotation]
|
10039
|
-
attr_accessor :dominant_colors
|
10040
|
-
|
10041
|
-
def initialize(**args)
|
10042
|
-
update!(**args)
|
10043
|
-
end
|
10044
|
-
|
10045
|
-
# Update properties of this object
|
10046
|
-
def update!(**args)
|
10047
|
-
@dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
|
10048
|
-
end
|
10049
|
-
end
|
10050
|
-
|
10051
|
-
# Response message for the `ImportProductSets` method.
|
10052
|
-
# This message is returned by the
|
10053
|
-
# google.longrunning.Operations.GetOperation method in the returned
|
10054
|
-
# google.longrunning.Operation.response field.
|
10055
|
-
class GoogleCloudVisionV1p5beta1ImportProductSetsResponse
|
10056
|
-
include Google::Apis::Core::Hashable
|
10057
|
-
|
10058
|
-
# The list of reference_images that are imported successfully.
|
10059
|
-
# Corresponds to the JSON property `referenceImages`
|
10060
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ReferenceImage>]
|
10061
|
-
attr_accessor :reference_images
|
10062
|
-
|
10063
|
-
# The rpc status for each ImportProductSet request, including both successes
|
10064
|
-
# and errors.
|
10065
|
-
# The number of statuses here matches the number of lines in the csv file,
|
10066
|
-
# and statuses[i] stores the success or failure status of processing the i-th
|
10067
|
-
# line of the csv, starting from line 0.
|
10068
|
-
# Corresponds to the JSON property `statuses`
|
10069
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::Status>]
|
10070
|
-
attr_accessor :statuses
|
10071
|
-
|
10072
|
-
def initialize(**args)
|
10073
|
-
update!(**args)
|
10074
|
-
end
|
10075
|
-
|
10076
|
-
# Update properties of this object
|
10077
|
-
def update!(**args)
|
10078
|
-
@reference_images = args[:reference_images] if args.key?(:reference_images)
|
10079
|
-
@statuses = args[:statuses] if args.key?(:statuses)
|
10080
|
-
end
|
10081
|
-
end
|
10082
|
-
|
10083
|
-
# The desired input location and metadata.
|
10084
|
-
class GoogleCloudVisionV1p5beta1InputConfig
|
10085
|
-
include Google::Apis::Core::Hashable
|
10086
|
-
|
10087
|
-
# File content, represented as a stream of bytes.
|
10088
|
-
# Note: As with all `bytes` fields, protobuffers use a pure binary
|
10089
|
-
# representation, whereas JSON representations use base64.
|
10090
|
-
# Currently, this field only works for BatchAnnotateFiles requests. It does
|
10091
|
-
# not work for AsyncBatchAnnotateFiles requests.
|
10092
|
-
# Corresponds to the JSON property `content`
|
10093
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
10094
|
-
# @return [String]
|
10095
|
-
attr_accessor :content
|
10096
|
-
|
10097
|
-
# The Google Cloud Storage location where the input will be read from.
|
10098
|
-
# Corresponds to the JSON property `gcsSource`
|
10099
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1GcsSource]
|
10100
|
-
attr_accessor :gcs_source
|
10101
|
-
|
10102
|
-
# The type of the file. Currently only "application/pdf", "image/tiff" and
|
10103
|
-
# "image/gif" are supported. Wildcards are not supported.
|
10104
|
-
# Corresponds to the JSON property `mimeType`
|
10105
|
-
# @return [String]
|
10106
|
-
attr_accessor :mime_type
|
10107
|
-
|
10108
|
-
def initialize(**args)
|
10109
|
-
update!(**args)
|
10110
|
-
end
|
10111
|
-
|
10112
|
-
# Update properties of this object
|
10113
|
-
def update!(**args)
|
10114
|
-
@content = args[:content] if args.key?(:content)
|
10115
|
-
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
10116
|
-
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
10117
|
-
end
|
10118
|
-
end
|
10119
|
-
|
10120
|
-
# Proto for a key value pair.
|
10121
|
-
class GoogleCloudVisionV1p5beta1KeyValuePair
|
10122
|
-
include Google::Apis::Core::Hashable
|
10123
|
-
|
10124
|
-
# The key string value.
|
10125
|
-
# Corresponds to the JSON property `key`
|
10126
|
-
# @return [String]
|
10127
|
-
attr_accessor :key
|
10128
|
-
|
10129
|
-
# Logical element on the page.
|
10130
|
-
# Corresponds to the JSON property `keyBlock`
|
10131
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Block]
|
10132
|
-
attr_accessor :key_block
|
10133
|
-
|
10134
|
-
# Optional. The translation of key text if the text is not in English.
|
10135
|
-
# Corresponds to the JSON property `normalizedKey`
|
10136
|
-
# @return [String]
|
10137
|
-
attr_accessor :normalized_key
|
10138
|
-
|
10139
|
-
# Logical element on the page.
|
10140
|
-
# Corresponds to the JSON property `valueBlock`
|
10141
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Block]
|
10142
|
-
attr_accessor :value_block
|
10143
|
-
|
10144
|
-
# Type of the value. Valid strings are the following:
|
10145
|
-
# "generic" - For generic text that is mapped to a value.
|
10146
|
-
# "number" - for numeric types
|
10147
|
-
# "id" - for generic identifiers.
|
10148
|
-
# "currency" - for currency values.
|
10149
|
-
# "date" - for dates.
|
10150
|
-
# "time" - for time and duration values.
|
10151
|
-
# "date_range" - for date ranges.
|
10152
|
-
# "address" - for address values (can be long).
|
10153
|
-
# "person" - for names of people or other personal identifiers.
|
10154
|
-
# "phone" - for phone numbers.
|
10155
|
-
# Corresponds to the JSON property `valueType`
|
10156
|
-
# @return [String]
|
10157
|
-
attr_accessor :value_type
|
10158
|
-
|
10159
|
-
def initialize(**args)
|
10160
|
-
update!(**args)
|
10161
|
-
end
|
10162
|
-
|
10163
|
-
# Update properties of this object
|
10164
|
-
def update!(**args)
|
10165
|
-
@key = args[:key] if args.key?(:key)
|
10166
|
-
@key_block = args[:key_block] if args.key?(:key_block)
|
10167
|
-
@normalized_key = args[:normalized_key] if args.key?(:normalized_key)
|
10168
|
-
@value_block = args[:value_block] if args.key?(:value_block)
|
10169
|
-
@value_type = args[:value_type] if args.key?(:value_type)
|
10170
|
-
end
|
10171
|
-
end
|
10172
|
-
|
10173
|
-
# Set of detected objects with bounding boxes.
|
10174
|
-
class GoogleCloudVisionV1p5beta1LocalizedObjectAnnotation
|
10175
|
-
include Google::Apis::Core::Hashable
|
10176
|
-
|
10177
|
-
# A bounding polygon for the detected image annotation.
|
10178
|
-
# Corresponds to the JSON property `boundingPoly`
|
10179
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
|
10180
|
-
attr_accessor :bounding_poly
|
10181
|
-
|
10182
|
-
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
10183
|
-
# information, see
|
10184
|
-
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
10185
|
-
# Corresponds to the JSON property `languageCode`
|
10186
|
-
# @return [String]
|
10187
|
-
attr_accessor :language_code
|
10188
|
-
|
10189
|
-
# Object ID that should align with EntityAnnotation mid.
|
10190
|
-
# Corresponds to the JSON property `mid`
|
10191
|
-
# @return [String]
|
10192
|
-
attr_accessor :mid
|
10193
|
-
|
10194
|
-
# Object name, expressed in its `language_code` language.
|
10195
|
-
# Corresponds to the JSON property `name`
|
10196
|
-
# @return [String]
|
10197
|
-
attr_accessor :name
|
10198
|
-
|
10199
|
-
# Score of the result. Range [0, 1].
|
10200
|
-
# Corresponds to the JSON property `score`
|
10201
|
-
# @return [Float]
|
10202
|
-
attr_accessor :score
|
10203
|
-
|
10204
|
-
def initialize(**args)
|
10205
|
-
update!(**args)
|
10206
|
-
end
|
10207
|
-
|
10208
|
-
# Update properties of this object
|
10209
|
-
def update!(**args)
|
10210
|
-
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
10211
|
-
@language_code = args[:language_code] if args.key?(:language_code)
|
10212
|
-
@mid = args[:mid] if args.key?(:mid)
|
10213
|
-
@name = args[:name] if args.key?(:name)
|
10214
|
-
@score = args[:score] if args.key?(:score)
|
10215
|
-
end
|
10216
|
-
end
|
10217
|
-
|
10218
|
-
# Detected entity location information.
|
10219
|
-
class GoogleCloudVisionV1p5beta1LocationInfo
|
10220
|
-
include Google::Apis::Core::Hashable
|
10221
|
-
|
10222
|
-
# An object representing a latitude/longitude pair. This is expressed as a pair
|
10223
|
-
# of doubles representing degrees latitude and degrees longitude. Unless
|
10224
|
-
# specified otherwise, this must conform to the
|
10225
|
-
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
10226
|
-
# standard</a>. Values must be within normalized ranges.
|
10227
|
-
# Corresponds to the JSON property `latLng`
|
10228
|
-
# @return [Google::Apis::VisionV1p1beta1::LatLng]
|
10229
|
-
attr_accessor :lat_lng
|
10230
|
-
|
10231
|
-
def initialize(**args)
|
10232
|
-
update!(**args)
|
10233
|
-
end
|
10234
|
-
|
10235
|
-
# Update properties of this object
|
10236
|
-
def update!(**args)
|
10237
|
-
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
10238
|
-
end
|
10239
|
-
end
|
10240
|
-
|
10241
|
-
# A vertex represents a 2D point in the image.
|
10242
|
-
# NOTE: the normalized vertex coordinates are relative to the original image
|
10243
|
-
# and range from 0 to 1.
|
10244
|
-
class GoogleCloudVisionV1p5beta1NormalizedVertex
|
10245
|
-
include Google::Apis::Core::Hashable
|
10246
|
-
|
10247
|
-
# X coordinate.
|
10248
|
-
# Corresponds to the JSON property `x`
|
10249
|
-
# @return [Float]
|
10250
|
-
attr_accessor :x
|
10251
|
-
|
10252
|
-
# Y coordinate.
|
10253
|
-
# Corresponds to the JSON property `y`
|
10254
|
-
# @return [Float]
|
10255
|
-
attr_accessor :y
|
10256
|
-
|
10257
|
-
def initialize(**args)
|
10258
|
-
update!(**args)
|
10259
|
-
end
|
10260
|
-
|
10261
|
-
# Update properties of this object
|
10262
|
-
def update!(**args)
|
10263
|
-
@x = args[:x] if args.key?(:x)
|
10264
|
-
@y = args[:y] if args.key?(:y)
|
10265
|
-
end
|
10266
|
-
end
|
10267
|
-
|
10268
|
-
# Contains metadata for the BatchAnnotateImages operation.
|
10269
|
-
class GoogleCloudVisionV1p5beta1OperationMetadata
|
10270
|
-
include Google::Apis::Core::Hashable
|
10271
|
-
|
10272
|
-
# The time when the batch request was received.
|
10273
|
-
# Corresponds to the JSON property `createTime`
|
10274
|
-
# @return [String]
|
10275
|
-
attr_accessor :create_time
|
10276
|
-
|
10277
|
-
# Current state of the batch operation.
|
10278
|
-
# Corresponds to the JSON property `state`
|
10279
|
-
# @return [String]
|
10280
|
-
attr_accessor :state
|
10281
|
-
|
10282
|
-
# The time when the operation result was last updated.
|
10283
|
-
# Corresponds to the JSON property `updateTime`
|
10284
|
-
# @return [String]
|
10285
|
-
attr_accessor :update_time
|
10286
|
-
|
10287
|
-
def initialize(**args)
|
10288
|
-
update!(**args)
|
10289
|
-
end
|
10290
|
-
|
10291
|
-
# Update properties of this object
|
10292
|
-
def update!(**args)
|
10293
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
10294
|
-
@state = args[:state] if args.key?(:state)
|
10295
|
-
@update_time = args[:update_time] if args.key?(:update_time)
|
10296
|
-
end
|
10297
|
-
end
|
10298
|
-
|
10299
|
-
# The desired output location and metadata.
|
10300
|
-
class GoogleCloudVisionV1p5beta1OutputConfig
|
10301
|
-
include Google::Apis::Core::Hashable
|
10302
|
-
|
10303
|
-
# The max number of response protos to put into each output JSON file on
|
10304
|
-
# Google Cloud Storage.
|
10305
|
-
# The valid range is [1, 100]. If not specified, the default value is 20.
|
10306
|
-
# For example, for one pdf file with 100 pages, 100 response protos will
|
10307
|
-
# be generated. If `batch_size` = 20, then 5 json files each
|
10308
|
-
# containing 20 response protos will be written under the prefix
|
10309
|
-
# `gcs_destination`.`uri`.
|
10310
|
-
# Currently, batch_size only applies to GcsDestination, with potential future
|
10311
|
-
# support for other output configurations.
|
10312
|
-
# Corresponds to the JSON property `batchSize`
|
10313
|
-
# @return [Fixnum]
|
10314
|
-
attr_accessor :batch_size
|
10315
|
-
|
10316
|
-
# The Google Cloud Storage location where the output will be written to.
|
10317
|
-
# Corresponds to the JSON property `gcsDestination`
|
10318
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1GcsDestination]
|
10319
|
-
attr_accessor :gcs_destination
|
10320
|
-
|
10321
|
-
def initialize(**args)
|
10322
|
-
update!(**args)
|
10323
|
-
end
|
10324
|
-
|
10325
|
-
# Update properties of this object
|
10326
|
-
def update!(**args)
|
10327
|
-
@batch_size = args[:batch_size] if args.key?(:batch_size)
|
10328
|
-
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
|
10329
|
-
end
|
10330
|
-
end
|
10331
|
-
|
10332
|
-
# Detected page from OCR.
|
10333
|
-
class GoogleCloudVisionV1p5beta1Page
|
10334
|
-
include Google::Apis::Core::Hashable
|
10335
|
-
|
10336
|
-
# List of blocks of text, images etc on this page.
|
10337
|
-
# Corresponds to the JSON property `blocks`
|
10338
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Block>]
|
10339
|
-
attr_accessor :blocks
|
10340
|
-
|
10341
|
-
# Confidence of the OCR results on the page. Range [0, 1].
|
10342
|
-
# Corresponds to the JSON property `confidence`
|
10343
|
-
# @return [Float]
|
10344
|
-
attr_accessor :confidence
|
10345
|
-
|
10346
|
-
# Page height. For PDFs the unit is points. For images (including
|
10347
|
-
# TIFFs) the unit is pixels.
|
10348
|
-
# Corresponds to the JSON property `height`
|
10349
|
-
# @return [Fixnum]
|
10350
|
-
attr_accessor :height
|
10351
|
-
|
10352
|
-
# All UTF-8 text detected in this page. This field is by default not
|
10353
|
-
# returned unless specified in TextDetectionParams.page_filter.
|
10354
|
-
# Corresponds to the JSON property `mergedText`
|
10355
|
-
# @return [String]
|
10356
|
-
attr_accessor :merged_text
|
10357
|
-
|
10358
|
-
# Additional information detected on the structural component.
|
10359
|
-
# Corresponds to the JSON property `property`
|
10360
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty]
|
10361
|
-
attr_accessor :property
|
10362
|
-
|
10363
|
-
# Page width. For PDFs the unit is points. For images (including
|
10364
|
-
# TIFFs) the unit is pixels.
|
10365
|
-
# Corresponds to the JSON property `width`
|
10366
|
-
# @return [Fixnum]
|
10367
|
-
attr_accessor :width
|
10368
|
-
|
10369
|
-
def initialize(**args)
|
10370
|
-
update!(**args)
|
10371
|
-
end
|
10372
|
-
|
10373
|
-
# Update properties of this object
|
10374
|
-
def update!(**args)
|
10375
|
-
@blocks = args[:blocks] if args.key?(:blocks)
|
10376
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
10377
|
-
@height = args[:height] if args.key?(:height)
|
10378
|
-
@merged_text = args[:merged_text] if args.key?(:merged_text)
|
10379
|
-
@property = args[:property] if args.key?(:property)
|
10380
|
-
@width = args[:width] if args.key?(:width)
|
10381
|
-
end
|
10382
|
-
end
|
10383
|
-
|
10384
|
-
# Structural unit of text representing a number of words in certain order.
|
10385
|
-
class GoogleCloudVisionV1p5beta1Paragraph
|
10386
|
-
include Google::Apis::Core::Hashable
|
10387
|
-
|
10388
|
-
# A bounding polygon for the detected image annotation.
|
10389
|
-
# Corresponds to the JSON property `boundingBox`
|
10390
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
|
10391
|
-
attr_accessor :bounding_box
|
10392
|
-
|
10393
|
-
# Confidence of the OCR results for the paragraph. Range [0, 1].
|
10394
|
-
# Corresponds to the JSON property `confidence`
|
10395
|
-
# @return [Float]
|
10396
|
-
attr_accessor :confidence
|
10397
|
-
|
10398
|
-
# All UTF-8 text detected in this paragraph. This field is by default not
|
10399
|
-
# returned unless specified in TextDetectionParams.paragraph_filter.
|
10400
|
-
# Corresponds to the JSON property `mergedText`
|
10401
|
-
# @return [String]
|
10402
|
-
attr_accessor :merged_text
|
10403
|
-
|
10404
|
-
# Additional information detected on the structural component.
|
10405
|
-
# Corresponds to the JSON property `property`
|
10406
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty]
|
10407
|
-
attr_accessor :property
|
10408
|
-
|
10409
|
-
# List of all words in this paragraph.
|
10410
|
-
# Corresponds to the JSON property `words`
|
10411
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Word>]
|
10412
|
-
attr_accessor :words
|
10413
|
-
|
10414
|
-
def initialize(**args)
|
10415
|
-
update!(**args)
|
10416
|
-
end
|
10417
|
-
|
10418
|
-
# Update properties of this object
|
10419
|
-
def update!(**args)
|
10420
|
-
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
10421
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
10422
|
-
@merged_text = args[:merged_text] if args.key?(:merged_text)
|
10423
|
-
@property = args[:property] if args.key?(:property)
|
10424
|
-
@words = args[:words] if args.key?(:words)
|
10425
|
-
end
|
10426
|
-
end
|
10427
|
-
|
10428
|
-
# A 3D position in the image, used primarily for Face detection landmarks.
|
10429
|
-
# A valid Position must have both x and y coordinates.
|
10430
|
-
# The position coordinates are in the same scale as the original image.
|
10431
|
-
class GoogleCloudVisionV1p5beta1Position
|
10432
|
-
include Google::Apis::Core::Hashable
|
10433
|
-
|
10434
|
-
# X coordinate.
|
10435
|
-
# Corresponds to the JSON property `x`
|
10436
|
-
# @return [Float]
|
10437
|
-
attr_accessor :x
|
10438
|
-
|
10439
|
-
# Y coordinate.
|
10440
|
-
# Corresponds to the JSON property `y`
|
10441
|
-
# @return [Float]
|
10442
|
-
attr_accessor :y
|
10443
|
-
|
10444
|
-
# Z coordinate (or depth).
|
10445
|
-
# Corresponds to the JSON property `z`
|
10446
|
-
# @return [Float]
|
10447
|
-
attr_accessor :z
|
10448
|
-
|
10449
|
-
def initialize(**args)
|
10450
|
-
update!(**args)
|
10451
|
-
end
|
10452
|
-
|
10453
|
-
# Update properties of this object
|
10454
|
-
def update!(**args)
|
10455
|
-
@x = args[:x] if args.key?(:x)
|
10456
|
-
@y = args[:y] if args.key?(:y)
|
10457
|
-
@z = args[:z] if args.key?(:z)
|
10458
|
-
end
|
10459
|
-
end
|
10460
|
-
|
10461
|
-
# A Product contains ReferenceImages.
|
10462
|
-
class GoogleCloudVisionV1p5beta1Product
|
10463
|
-
include Google::Apis::Core::Hashable
|
10464
|
-
|
10465
|
-
# User-provided metadata to be stored with this product. Must be at most 4096
|
10466
|
-
# characters long.
|
10467
|
-
# Corresponds to the JSON property `description`
|
10468
|
-
# @return [String]
|
10469
|
-
attr_accessor :description
|
10470
|
-
|
10471
|
-
# The user-provided name for this Product. Must not be empty. Must be at most
|
10472
|
-
# 4096 characters long.
|
10473
|
-
# Corresponds to the JSON property `displayName`
|
10474
|
-
# @return [String]
|
10475
|
-
attr_accessor :display_name
|
10476
|
-
|
10477
|
-
# The resource name of the product.
|
10478
|
-
# Format is:
|
10479
|
-
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
10480
|
-
# This field is ignored when creating a product.
|
10481
|
-
# Corresponds to the JSON property `name`
|
10482
|
-
# @return [String]
|
10483
|
-
attr_accessor :name
|
10484
|
-
|
10485
|
-
# The category for the product identified by the reference image. This should
|
10486
|
-
# be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
|
10487
|
-
# "homegoods", "apparel", and "toys" are still supported, but these should
|
10488
|
-
# not be used for new products.
|
10489
|
-
# This field is immutable.
|
10490
|
-
# Corresponds to the JSON property `productCategory`
|
10491
|
-
# @return [String]
|
10492
|
-
attr_accessor :product_category
|
10493
|
-
|
10494
|
-
# Key-value pairs that can be attached to a product. At query time,
|
10495
|
-
# constraints can be specified based on the product_labels.
|
10496
|
-
# Note that integer values can be provided as strings, e.g. "1199". Only
|
10497
|
-
# strings with integer values can match a range-based restriction which is
|
10498
|
-
# to be supported soon.
|
10499
|
-
# Multiple values can be assigned to the same key. One product may have up to
|
10500
|
-
# 500 product_labels.
|
10501
|
-
# Notice that the total number of distinct product_labels over all products
|
10502
|
-
# in one ProductSet cannot exceed 1M, otherwise the product search pipeline
|
10503
|
-
# will refuse to work for that ProductSet.
|
10504
|
-
# Corresponds to the JSON property `productLabels`
|
10505
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductKeyValue>]
|
10506
|
-
attr_accessor :product_labels
|
10507
|
-
|
10508
|
-
def initialize(**args)
|
10509
|
-
update!(**args)
|
10510
|
-
end
|
10511
|
-
|
10512
|
-
# Update properties of this object
|
10513
|
-
def update!(**args)
|
10514
|
-
@description = args[:description] if args.key?(:description)
|
10515
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
10516
|
-
@name = args[:name] if args.key?(:name)
|
10517
|
-
@product_category = args[:product_category] if args.key?(:product_category)
|
10518
|
-
@product_labels = args[:product_labels] if args.key?(:product_labels)
|
10519
|
-
end
|
10520
|
-
end
|
10521
|
-
|
10522
|
-
# A product label represented as a key-value pair.
|
10523
|
-
class GoogleCloudVisionV1p5beta1ProductKeyValue
|
10524
|
-
include Google::Apis::Core::Hashable
|
10525
|
-
|
10526
|
-
# The key of the label attached to the product. Cannot be empty and cannot
|
10527
|
-
# exceed 128 bytes.
|
10528
|
-
# Corresponds to the JSON property `key`
|
10529
|
-
# @return [String]
|
10530
|
-
attr_accessor :key
|
10531
|
-
|
10532
|
-
# The value of the label attached to the product. Cannot be empty and
|
10533
|
-
# cannot exceed 128 bytes.
|
10534
|
-
# Corresponds to the JSON property `value`
|
10535
|
-
# @return [String]
|
10536
|
-
attr_accessor :value
|
10537
|
-
|
10538
|
-
def initialize(**args)
|
10539
|
-
update!(**args)
|
10540
|
-
end
|
10541
|
-
|
10542
|
-
# Update properties of this object
|
10543
|
-
def update!(**args)
|
10544
|
-
@key = args[:key] if args.key?(:key)
|
10545
|
-
@value = args[:value] if args.key?(:value)
|
10546
|
-
end
|
10547
|
-
end
|
10548
|
-
|
10549
|
-
# Results for a product search request.
|
10550
|
-
class GoogleCloudVisionV1p5beta1ProductSearchResults
|
10551
|
-
include Google::Apis::Core::Hashable
|
10552
|
-
|
10553
|
-
# Timestamp of the index which provided these results. Products added to the
|
10554
|
-
# product set and products removed from the product set after this time are
|
10555
|
-
# not reflected in the current results.
|
10556
|
-
# Corresponds to the JSON property `indexTime`
|
10557
|
-
# @return [String]
|
10558
|
-
attr_accessor :index_time
|
10559
|
-
|
10560
|
-
# List of results grouped by products detected in the query image. Each entry
|
10561
|
-
# corresponds to one bounding polygon in the query image, and contains the
|
10562
|
-
# matching products specific to that region. There may be duplicate product
|
10563
|
-
# matches in the union of all the per-product results.
|
10564
|
-
# Corresponds to the JSON property `productGroupedResults`
|
10565
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult>]
|
10566
|
-
attr_accessor :product_grouped_results
|
10567
|
-
|
10568
|
-
# List of results, one for each product match.
|
10569
|
-
# Corresponds to the JSON property `results`
|
10570
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult>]
|
10571
|
-
attr_accessor :results
|
10572
|
-
|
10573
|
-
def initialize(**args)
|
10574
|
-
update!(**args)
|
10575
|
-
end
|
10576
|
-
|
10577
|
-
# Update properties of this object
|
10578
|
-
def update!(**args)
|
10579
|
-
@index_time = args[:index_time] if args.key?(:index_time)
|
10580
|
-
@product_grouped_results = args[:product_grouped_results] if args.key?(:product_grouped_results)
|
10581
|
-
@results = args[:results] if args.key?(:results)
|
10582
|
-
end
|
10583
|
-
end
|
10584
|
-
|
10585
|
-
# Information about the products similar to a single product in a query
|
10586
|
-
# image.
|
10587
|
-
class GoogleCloudVisionV1p5beta1ProductSearchResultsGroupedResult
|
10588
|
-
include Google::Apis::Core::Hashable
|
10589
|
-
|
10590
|
-
# A bounding polygon for the detected image annotation.
|
10591
|
-
# Corresponds to the JSON property `boundingPoly`
|
10592
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
|
10593
|
-
attr_accessor :bounding_poly
|
10594
|
-
|
10595
|
-
# List of generic predictions for the object in the bounding box.
|
10596
|
-
# Corresponds to the JSON property `objectAnnotations`
|
10597
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation>]
|
10598
|
-
attr_accessor :object_annotations
|
10599
|
-
|
10600
|
-
# List of results, one for each product match.
|
10601
|
-
# Corresponds to the JSON property `results`
|
10602
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1ProductSearchResultsResult>]
|
10603
|
-
attr_accessor :results
|
10604
|
-
|
10605
|
-
def initialize(**args)
|
10606
|
-
update!(**args)
|
10607
|
-
end
|
10608
|
-
|
10609
|
-
# Update properties of this object
|
10610
|
-
def update!(**args)
|
10611
|
-
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
10612
|
-
@object_annotations = args[:object_annotations] if args.key?(:object_annotations)
|
10613
|
-
@results = args[:results] if args.key?(:results)
|
10614
|
-
end
|
10615
|
-
end
|
10616
|
-
|
10617
|
-
# Prediction for what the object in the bounding box is.
|
10618
|
-
class GoogleCloudVisionV1p5beta1ProductSearchResultsObjectAnnotation
|
10619
|
-
include Google::Apis::Core::Hashable
|
10620
|
-
|
10621
|
-
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
10622
|
-
# information, see
|
10623
|
-
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
10624
|
-
# Corresponds to the JSON property `languageCode`
|
10625
|
-
# @return [String]
|
10626
|
-
attr_accessor :language_code
|
10627
|
-
|
10628
|
-
# Object ID that should align with EntityAnnotation mid.
|
10629
|
-
# Corresponds to the JSON property `mid`
|
10630
|
-
# @return [String]
|
10631
|
-
attr_accessor :mid
|
10632
|
-
|
10633
|
-
# Object name, expressed in its `language_code` language.
|
10634
|
-
# Corresponds to the JSON property `name`
|
10635
|
-
# @return [String]
|
10636
|
-
attr_accessor :name
|
10637
|
-
|
10638
|
-
# Score of the result. Range [0, 1].
|
10639
|
-
# Corresponds to the JSON property `score`
|
10640
|
-
# @return [Float]
|
10641
|
-
attr_accessor :score
|
10642
|
-
|
10643
|
-
def initialize(**args)
|
10644
|
-
update!(**args)
|
10645
|
-
end
|
10646
|
-
|
10647
|
-
# Update properties of this object
|
10648
|
-
def update!(**args)
|
10649
|
-
@language_code = args[:language_code] if args.key?(:language_code)
|
10650
|
-
@mid = args[:mid] if args.key?(:mid)
|
10651
|
-
@name = args[:name] if args.key?(:name)
|
10652
|
-
@score = args[:score] if args.key?(:score)
|
10653
|
-
end
|
10654
|
-
end
|
10655
|
-
|
10656
|
-
# Information about a product.
|
10657
|
-
class GoogleCloudVisionV1p5beta1ProductSearchResultsResult
|
10658
|
-
include Google::Apis::Core::Hashable
|
10659
|
-
|
10660
|
-
# The resource name of the image from the product that is the closest match
|
10661
|
-
# to the query.
|
10662
|
-
# Corresponds to the JSON property `image`
|
10663
|
-
# @return [String]
|
10664
|
-
attr_accessor :image
|
10665
|
-
|
10666
|
-
# A Product contains ReferenceImages.
|
10667
|
-
# Corresponds to the JSON property `product`
|
10668
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Product]
|
10669
|
-
attr_accessor :product
|
10670
|
-
|
10671
|
-
# A confidence level on the match, ranging from 0 (no confidence) to
|
10672
|
-
# 1 (full confidence).
|
10673
|
-
# Corresponds to the JSON property `score`
|
10674
|
-
# @return [Float]
|
10675
|
-
attr_accessor :score
|
10676
|
-
|
10677
|
-
def initialize(**args)
|
10678
|
-
update!(**args)
|
10679
|
-
end
|
10680
|
-
|
10681
|
-
# Update properties of this object
|
10682
|
-
def update!(**args)
|
10683
|
-
@image = args[:image] if args.key?(:image)
|
10684
|
-
@product = args[:product] if args.key?(:product)
|
10685
|
-
@score = args[:score] if args.key?(:score)
|
10686
|
-
end
|
10687
|
-
end
|
10688
|
-
|
10689
|
-
# A `Property` consists of a user-supplied name/value pair.
|
10690
|
-
class GoogleCloudVisionV1p5beta1Property
|
10691
|
-
include Google::Apis::Core::Hashable
|
10692
|
-
|
10693
|
-
# Name of the property.
|
10694
|
-
# Corresponds to the JSON property `name`
|
10695
|
-
# @return [String]
|
10696
|
-
attr_accessor :name
|
10697
|
-
|
10698
|
-
# Value of numeric properties.
|
10699
|
-
# Corresponds to the JSON property `uint64Value`
|
10700
|
-
# @return [Fixnum]
|
10701
|
-
attr_accessor :uint64_value
|
10702
|
-
|
10703
|
-
# Value of the property.
|
10704
|
-
# Corresponds to the JSON property `value`
|
10705
|
-
# @return [String]
|
10706
|
-
attr_accessor :value
|
10707
|
-
|
10708
|
-
def initialize(**args)
|
10709
|
-
update!(**args)
|
10710
|
-
end
|
10711
|
-
|
10712
|
-
# Update properties of this object
|
10713
|
-
def update!(**args)
|
10714
|
-
@name = args[:name] if args.key?(:name)
|
10715
|
-
@uint64_value = args[:uint64_value] if args.key?(:uint64_value)
|
10716
|
-
@value = args[:value] if args.key?(:value)
|
10717
|
-
end
|
10718
|
-
end
|
10719
|
-
|
10720
|
-
# A `ReferenceImage` represents a product image and its associated metadata,
|
10721
|
-
# such as bounding boxes.
|
10722
|
-
class GoogleCloudVisionV1p5beta1ReferenceImage
|
10723
|
-
include Google::Apis::Core::Hashable
|
10724
|
-
|
10725
|
-
# Bounding polygons around the areas of interest in the reference image.
|
10726
|
-
# Optional. If this field is empty, the system will try to detect regions of
|
10727
|
-
# interest. At most 10 bounding polygons will be used.
|
10728
|
-
# The provided shape is converted into a non-rotated rectangle. Once
|
10729
|
-
# converted, the small edge of the rectangle must be greater than or equal
|
10730
|
-
# to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5
|
10731
|
-
# is not).
|
10732
|
-
# Corresponds to the JSON property `boundingPolys`
|
10733
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly>]
|
10734
|
-
attr_accessor :bounding_polys
|
10735
|
-
|
10736
|
-
# The resource name of the reference image.
|
10737
|
-
# Format is:
|
10738
|
-
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/
|
10739
|
-
# IMAGE_ID`.
|
10740
|
-
# This field is ignored when creating a reference image.
|
10741
|
-
# Corresponds to the JSON property `name`
|
10742
|
-
# @return [String]
|
10743
|
-
attr_accessor :name
|
10744
|
-
|
10745
|
-
# The Google Cloud Storage URI of the reference image.
|
10746
|
-
# The URI must start with `gs://`.
|
10747
|
-
# Required.
|
10748
|
-
# Corresponds to the JSON property `uri`
|
10749
|
-
# @return [String]
|
10750
|
-
attr_accessor :uri
|
10751
|
-
|
10752
|
-
def initialize(**args)
|
10753
|
-
update!(**args)
|
10754
|
-
end
|
10755
|
-
|
10756
|
-
# Update properties of this object
|
10757
|
-
def update!(**args)
|
10758
|
-
@bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys)
|
10759
|
-
@name = args[:name] if args.key?(:name)
|
10760
|
-
@uri = args[:uri] if args.key?(:uri)
|
10761
|
-
end
|
10762
|
-
end
|
10763
|
-
|
10764
|
-
# Set of features pertaining to the image, computed by computer vision
|
10765
|
-
# methods over safe-search verticals (for example, adult, spoof, medical,
|
10766
|
-
# violence).
|
10767
|
-
class GoogleCloudVisionV1p5beta1SafeSearchAnnotation
|
10768
|
-
include Google::Apis::Core::Hashable
|
10769
|
-
|
10770
|
-
# Represents the adult content likelihood for the image. Adult content may
|
10771
|
-
# contain elements such as nudity, pornographic images or cartoons, or
|
10772
|
-
# sexual activities.
|
10773
|
-
# Corresponds to the JSON property `adult`
|
10774
|
-
# @return [String]
|
10775
|
-
attr_accessor :adult
|
10776
|
-
|
10777
|
-
# Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means
|
10778
|
-
# very confident.
|
10779
|
-
# Corresponds to the JSON property `adultConfidence`
|
10780
|
-
# @return [Float]
|
10781
|
-
attr_accessor :adult_confidence
|
10782
|
-
|
10783
|
-
# Likelihood that this is a medical image.
|
10784
|
-
# Corresponds to the JSON property `medical`
|
10785
|
-
# @return [String]
|
10786
|
-
attr_accessor :medical
|
10787
|
-
|
10788
|
-
# Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means
|
10789
|
-
# very confident.
|
10790
|
-
# Corresponds to the JSON property `medicalConfidence`
|
10791
|
-
# @return [Float]
|
10792
|
-
attr_accessor :medical_confidence
|
10793
|
-
|
10794
|
-
# Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very
|
10795
|
-
# confident.
|
10796
|
-
# Corresponds to the JSON property `nsfwConfidence`
|
10797
|
-
# @return [Float]
|
10798
|
-
attr_accessor :nsfw_confidence
|
10799
|
-
|
10800
|
-
# Likelihood that the request image contains racy content. Racy content may
|
10801
|
-
# include (but is not limited to) skimpy or sheer clothing, strategically
|
10802
|
-
# covered nudity, lewd or provocative poses, or close-ups of sensitive
|
10803
|
-
# body areas.
|
10804
|
-
# Corresponds to the JSON property `racy`
|
10805
|
-
# @return [String]
|
10806
|
-
attr_accessor :racy
|
10807
|
-
|
10808
|
-
# Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very
|
10809
|
-
# confident.
|
10810
|
-
# Corresponds to the JSON property `racyConfidence`
|
10811
|
-
# @return [Float]
|
10812
|
-
attr_accessor :racy_confidence
|
10813
|
-
|
10814
|
-
# Spoof likelihood. The likelihood that an modification
|
10815
|
-
# was made to the image's canonical version to make it appear
|
10816
|
-
# funny or offensive.
|
10817
|
-
# Corresponds to the JSON property `spoof`
|
10818
|
-
# @return [String]
|
10819
|
-
attr_accessor :spoof
|
10820
|
-
|
10821
|
-
# Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means
|
10822
|
-
# very confident.
|
10823
|
-
# Corresponds to the JSON property `spoofConfidence`
|
10824
|
-
# @return [Float]
|
10825
|
-
attr_accessor :spoof_confidence
|
10826
|
-
|
10827
|
-
# Likelihood that this image contains violent content.
|
10828
|
-
# Corresponds to the JSON property `violence`
|
10829
|
-
# @return [String]
|
10830
|
-
attr_accessor :violence
|
10831
|
-
|
10832
|
-
# Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means
|
10833
|
-
# very confident.
|
10834
|
-
# Corresponds to the JSON property `violenceConfidence`
|
10835
|
-
# @return [Float]
|
10836
|
-
attr_accessor :violence_confidence
|
10837
|
-
|
10838
|
-
def initialize(**args)
|
10839
|
-
update!(**args)
|
10840
|
-
end
|
10841
|
-
|
10842
|
-
# Update properties of this object
|
10843
|
-
def update!(**args)
|
10844
|
-
@adult = args[:adult] if args.key?(:adult)
|
10845
|
-
@adult_confidence = args[:adult_confidence] if args.key?(:adult_confidence)
|
10846
|
-
@medical = args[:medical] if args.key?(:medical)
|
10847
|
-
@medical_confidence = args[:medical_confidence] if args.key?(:medical_confidence)
|
10848
|
-
@nsfw_confidence = args[:nsfw_confidence] if args.key?(:nsfw_confidence)
|
10849
|
-
@racy = args[:racy] if args.key?(:racy)
|
10850
|
-
@racy_confidence = args[:racy_confidence] if args.key?(:racy_confidence)
|
10851
|
-
@spoof = args[:spoof] if args.key?(:spoof)
|
10852
|
-
@spoof_confidence = args[:spoof_confidence] if args.key?(:spoof_confidence)
|
10853
|
-
@violence = args[:violence] if args.key?(:violence)
|
10854
|
-
@violence_confidence = args[:violence_confidence] if args.key?(:violence_confidence)
|
10855
|
-
end
|
10856
|
-
end
|
10857
|
-
|
10858
|
-
# A single symbol representation.
|
10859
|
-
class GoogleCloudVisionV1p5beta1Symbol
|
10860
|
-
include Google::Apis::Core::Hashable
|
10861
|
-
|
10862
|
-
# A bounding polygon for the detected image annotation.
|
10863
|
-
# Corresponds to the JSON property `boundingBox`
|
10864
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
|
10865
|
-
attr_accessor :bounding_box
|
10866
|
-
|
10867
|
-
# Confidence of the OCR results for the symbol. Range [0, 1].
|
10868
|
-
# Corresponds to the JSON property `confidence`
|
10869
|
-
# @return [Float]
|
10870
|
-
attr_accessor :confidence
|
10871
|
-
|
10872
|
-
# Additional information detected on the structural component.
|
10873
|
-
# Corresponds to the JSON property `property`
|
10874
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty]
|
10875
|
-
attr_accessor :property
|
10876
|
-
|
10877
|
-
# The actual UTF-8 representation of the symbol.
|
10878
|
-
# Corresponds to the JSON property `text`
|
10879
|
-
# @return [String]
|
10880
|
-
attr_accessor :text
|
10881
|
-
|
10882
|
-
def initialize(**args)
|
10883
|
-
update!(**args)
|
10884
|
-
end
|
10885
|
-
|
10886
|
-
# Update properties of this object
|
10887
|
-
def update!(**args)
|
10888
|
-
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
10889
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
10890
|
-
@property = args[:property] if args.key?(:property)
|
10891
|
-
@text = args[:text] if args.key?(:text)
|
10892
|
-
end
|
10893
|
-
end
|
10894
|
-
|
10895
|
-
# A table representation similar to HTML table structure.
|
10896
|
-
class GoogleCloudVisionV1p5beta1Table
|
10897
|
-
include Google::Apis::Core::Hashable
|
10898
|
-
|
10899
|
-
# Body rows of the table
|
10900
|
-
# Corresponds to the JSON property `bodyRows`
|
10901
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TableTableRow>]
|
10902
|
-
attr_accessor :body_rows
|
10903
|
-
|
10904
|
-
# Header rows of the table
|
10905
|
-
# Corresponds to the JSON property `headerRows`
|
10906
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TableTableRow>]
|
10907
|
-
attr_accessor :header_rows
|
10908
|
-
|
10909
|
-
def initialize(**args)
|
10910
|
-
update!(**args)
|
10911
|
-
end
|
10912
|
-
|
10913
|
-
# Update properties of this object
|
10914
|
-
def update!(**args)
|
10915
|
-
@body_rows = args[:body_rows] if args.key?(:body_rows)
|
10916
|
-
@header_rows = args[:header_rows] if args.key?(:header_rows)
|
10917
|
-
end
|
10918
|
-
end
|
10919
|
-
|
10920
|
-
# A cell representation inside of tables.
|
10921
|
-
class GoogleCloudVisionV1p5beta1TableTableCell
|
10922
|
-
include Google::Apis::Core::Hashable
|
10923
|
-
|
10924
|
-
# How many columns this cell spans.
|
10925
|
-
# Corresponds to the JSON property `colSpan`
|
10926
|
-
# @return [Fixnum]
|
10927
|
-
attr_accessor :col_span
|
10928
|
-
|
10929
|
-
# How many rows this cell spans.
|
10930
|
-
# Corresponds to the JSON property `rowSpan`
|
10931
|
-
# @return [Fixnum]
|
10932
|
-
attr_accessor :row_span
|
10933
|
-
|
10934
|
-
# The merged text value of this cell, omitting any deeper structural
|
10935
|
-
# information unlike `text_block`. This is useful for simple cells.
|
10936
|
-
# Corresponds to the JSON property `text`
|
10937
|
-
# @return [String]
|
10938
|
-
attr_accessor :text
|
10939
|
-
|
10940
|
-
# Logical element on the page.
|
10941
|
-
# Corresponds to the JSON property `textBlock`
|
10942
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Block]
|
10943
|
-
attr_accessor :text_block
|
10944
|
-
|
10945
|
-
def initialize(**args)
|
10946
|
-
update!(**args)
|
10947
|
-
end
|
10948
|
-
|
10949
|
-
# Update properties of this object
|
10950
|
-
def update!(**args)
|
10951
|
-
@col_span = args[:col_span] if args.key?(:col_span)
|
10952
|
-
@row_span = args[:row_span] if args.key?(:row_span)
|
10953
|
-
@text = args[:text] if args.key?(:text)
|
10954
|
-
@text_block = args[:text_block] if args.key?(:text_block)
|
10955
|
-
end
|
10956
|
-
end
|
10957
|
-
|
10958
|
-
# A row of table cells.
|
10959
|
-
class GoogleCloudVisionV1p5beta1TableTableRow
|
10960
|
-
include Google::Apis::Core::Hashable
|
10961
|
-
|
10962
|
-
# Cells that make up this row.
|
10963
|
-
# Corresponds to the JSON property `cells`
|
10964
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TableTableCell>]
|
10965
|
-
attr_accessor :cells
|
10966
|
-
|
10967
|
-
def initialize(**args)
|
10968
|
-
update!(**args)
|
10969
|
-
end
|
10970
|
-
|
10971
|
-
# Update properties of this object
|
10972
|
-
def update!(**args)
|
10973
|
-
@cells = args[:cells] if args.key?(:cells)
|
10974
|
-
end
|
10975
|
-
end
|
10976
|
-
|
10977
|
-
# TextAnnotation contains a structured representation of OCR extracted text.
|
10978
|
-
# The hierarchy of an OCR extracted text structure is like this:
|
10979
|
-
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
10980
|
-
# Each structural component, starting from Page, may further have their own
|
10981
|
-
# properties. Properties describe detected languages, breaks etc.. Please refer
|
10982
|
-
# to the TextAnnotation.TextProperty message definition below for more
|
10983
|
-
# detail.
|
10984
|
-
class GoogleCloudVisionV1p5beta1TextAnnotation
|
10985
|
-
include Google::Apis::Core::Hashable
|
10986
|
-
|
10987
|
-
# List of pages detected by OCR.
|
10988
|
-
# Corresponds to the JSON property `pages`
|
10989
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Page>]
|
10990
|
-
attr_accessor :pages
|
10991
|
-
|
10992
|
-
# UTF-8 text detected on the pages.
|
10993
|
-
# Corresponds to the JSON property `text`
|
10994
|
-
# @return [String]
|
10995
|
-
attr_accessor :text
|
10996
|
-
|
10997
|
-
def initialize(**args)
|
10998
|
-
update!(**args)
|
10999
|
-
end
|
11000
|
-
|
11001
|
-
# Update properties of this object
|
11002
|
-
def update!(**args)
|
11003
|
-
@pages = args[:pages] if args.key?(:pages)
|
11004
|
-
@text = args[:text] if args.key?(:text)
|
11005
|
-
end
|
11006
|
-
end
|
11007
|
-
|
11008
|
-
# Detected start or end of a structural component.
|
11009
|
-
class GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak
|
11010
|
-
include Google::Apis::Core::Hashable
|
11011
|
-
|
11012
|
-
# True if break prepends the element.
|
11013
|
-
# Corresponds to the JSON property `isPrefix`
|
11014
|
-
# @return [Boolean]
|
11015
|
-
attr_accessor :is_prefix
|
11016
|
-
alias_method :is_prefix?, :is_prefix
|
11017
|
-
|
11018
|
-
# Detected break type.
|
11019
|
-
# Corresponds to the JSON property `type`
|
11020
|
-
# @return [String]
|
11021
|
-
attr_accessor :type
|
11022
|
-
|
11023
|
-
def initialize(**args)
|
11024
|
-
update!(**args)
|
11025
|
-
end
|
11026
|
-
|
11027
|
-
# Update properties of this object
|
11028
|
-
def update!(**args)
|
11029
|
-
@is_prefix = args[:is_prefix] if args.key?(:is_prefix)
|
11030
|
-
@type = args[:type] if args.key?(:type)
|
11031
|
-
end
|
11032
|
-
end
|
11033
|
-
|
11034
|
-
# Detected language for a structural component.
|
11035
|
-
class GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage
|
11036
|
-
include Google::Apis::Core::Hashable
|
11037
|
-
|
11038
|
-
# Confidence of detected language. Range [0, 1].
|
11039
|
-
# Corresponds to the JSON property `confidence`
|
11040
|
-
# @return [Float]
|
11041
|
-
attr_accessor :confidence
|
11042
|
-
|
11043
|
-
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
11044
|
-
# information, see
|
11045
|
-
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
11046
|
-
# Corresponds to the JSON property `languageCode`
|
11047
|
-
# @return [String]
|
11048
|
-
attr_accessor :language_code
|
11049
|
-
|
11050
|
-
def initialize(**args)
|
11051
|
-
update!(**args)
|
11052
|
-
end
|
11053
|
-
|
11054
|
-
# Update properties of this object
|
11055
|
-
def update!(**args)
|
11056
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
11057
|
-
@language_code = args[:language_code] if args.key?(:language_code)
|
11058
|
-
end
|
11059
|
-
end
|
11060
|
-
|
11061
|
-
# Additional information detected on the structural component.
|
11062
|
-
class GoogleCloudVisionV1p5beta1TextAnnotationTextProperty
|
11063
|
-
include Google::Apis::Core::Hashable
|
11064
|
-
|
11065
|
-
# Detected start or end of a structural component.
|
11066
|
-
# Corresponds to the JSON property `detectedBreak`
|
11067
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedBreak]
|
11068
|
-
attr_accessor :detected_break
|
11069
|
-
|
11070
|
-
# A list of detected languages together with confidence.
|
11071
|
-
# Corresponds to the JSON property `detectedLanguages`
|
11072
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationDetectedLanguage>]
|
11073
|
-
attr_accessor :detected_languages
|
11074
|
-
|
11075
|
-
def initialize(**args)
|
11076
|
-
update!(**args)
|
11077
|
-
end
|
11078
|
-
|
11079
|
-
# Update properties of this object
|
11080
|
-
def update!(**args)
|
11081
|
-
@detected_break = args[:detected_break] if args.key?(:detected_break)
|
11082
|
-
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
11083
|
-
end
|
11084
|
-
end
|
11085
|
-
|
11086
|
-
# A vertex represents a 2D point in the image.
|
11087
|
-
# NOTE: the vertex coordinates are in the same scale as the original image.
|
11088
|
-
class GoogleCloudVisionV1p5beta1Vertex
|
11089
|
-
include Google::Apis::Core::Hashable
|
11090
|
-
|
11091
|
-
# X coordinate.
|
11092
|
-
# Corresponds to the JSON property `x`
|
11093
|
-
# @return [Fixnum]
|
11094
|
-
attr_accessor :x
|
11095
|
-
|
11096
|
-
# Y coordinate.
|
11097
|
-
# Corresponds to the JSON property `y`
|
11098
|
-
# @return [Fixnum]
|
11099
|
-
attr_accessor :y
|
11100
|
-
|
11101
|
-
def initialize(**args)
|
11102
|
-
update!(**args)
|
11103
|
-
end
|
11104
|
-
|
11105
|
-
# Update properties of this object
|
11106
|
-
def update!(**args)
|
11107
|
-
@x = args[:x] if args.key?(:x)
|
11108
|
-
@y = args[:y] if args.key?(:y)
|
11109
|
-
end
|
11110
|
-
end
|
11111
|
-
|
11112
|
-
# Relevant information for the image from the Internet.
|
11113
|
-
class GoogleCloudVisionV1p5beta1WebDetection
|
11114
|
-
include Google::Apis::Core::Hashable
|
11115
|
-
|
11116
|
-
# The service's best guess as to the topic of the request image.
|
11117
|
-
# Inferred from similar images on the open web.
|
11118
|
-
# Corresponds to the JSON property `bestGuessLabels`
|
11119
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebLabel>]
|
11120
|
-
attr_accessor :best_guess_labels
|
11121
|
-
|
11122
|
-
# Fully matching images from the Internet.
|
11123
|
-
# Can include resized copies of the query image.
|
11124
|
-
# Corresponds to the JSON property `fullMatchingImages`
|
11125
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage>]
|
11126
|
-
attr_accessor :full_matching_images
|
11127
|
-
|
11128
|
-
# Web pages containing the matching images from the Internet.
|
11129
|
-
# Corresponds to the JSON property `pagesWithMatchingImages`
|
11130
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebPage>]
|
11131
|
-
attr_accessor :pages_with_matching_images
|
11132
|
-
|
11133
|
-
# Partial matching images from the Internet.
|
11134
|
-
# Those images are similar enough to share some key-point features. For
|
11135
|
-
# example an original image will likely have partial matching for its crops.
|
11136
|
-
# Corresponds to the JSON property `partialMatchingImages`
|
11137
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage>]
|
11138
|
-
attr_accessor :partial_matching_images
|
11139
|
-
|
11140
|
-
# The visually similar image results.
|
11141
|
-
# Corresponds to the JSON property `visuallySimilarImages`
|
11142
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage>]
|
11143
|
-
attr_accessor :visually_similar_images
|
11144
|
-
|
11145
|
-
# Deduced entities from similar images on the Internet.
|
11146
|
-
# Corresponds to the JSON property `webEntities`
|
11147
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebEntity>]
|
11148
|
-
attr_accessor :web_entities
|
11149
|
-
|
11150
|
-
def initialize(**args)
|
11151
|
-
update!(**args)
|
11152
|
-
end
|
11153
|
-
|
11154
|
-
# Update properties of this object
|
11155
|
-
def update!(**args)
|
11156
|
-
@best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
|
11157
|
-
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
11158
|
-
@pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
|
11159
|
-
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
11160
|
-
@visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
|
11161
|
-
@web_entities = args[:web_entities] if args.key?(:web_entities)
|
11162
|
-
end
|
11163
|
-
end
|
11164
|
-
|
11165
|
-
# Entity deduced from similar images on the Internet.
|
11166
|
-
class GoogleCloudVisionV1p5beta1WebDetectionWebEntity
|
11167
|
-
include Google::Apis::Core::Hashable
|
11168
|
-
|
11169
|
-
# Canonical description of the entity, in English.
|
11170
|
-
# Corresponds to the JSON property `description`
|
11171
|
-
# @return [String]
|
11172
|
-
attr_accessor :description
|
11173
|
-
|
11174
|
-
# Opaque entity ID.
|
11175
|
-
# Corresponds to the JSON property `entityId`
|
11176
|
-
# @return [String]
|
11177
|
-
attr_accessor :entity_id
|
11178
|
-
|
11179
|
-
# Overall relevancy score for the entity.
|
11180
|
-
# Not normalized and not comparable across different image queries.
|
11181
|
-
# Corresponds to the JSON property `score`
|
11182
|
-
# @return [Float]
|
11183
|
-
attr_accessor :score
|
11184
|
-
|
11185
|
-
def initialize(**args)
|
11186
|
-
update!(**args)
|
11187
|
-
end
|
11188
|
-
|
11189
|
-
# Update properties of this object
|
11190
|
-
def update!(**args)
|
11191
|
-
@description = args[:description] if args.key?(:description)
|
11192
|
-
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
11193
|
-
@score = args[:score] if args.key?(:score)
|
11194
|
-
end
|
11195
|
-
end
|
11196
|
-
|
11197
|
-
# Metadata for online images.
|
11198
|
-
class GoogleCloudVisionV1p5beta1WebDetectionWebImage
|
11199
|
-
include Google::Apis::Core::Hashable
|
11200
|
-
|
11201
|
-
# (Deprecated) Overall relevancy score for the image.
|
11202
|
-
# Corresponds to the JSON property `score`
|
11203
|
-
# @return [Float]
|
11204
|
-
attr_accessor :score
|
11205
|
-
|
11206
|
-
# The result image URL.
|
11207
|
-
# Corresponds to the JSON property `url`
|
11208
|
-
# @return [String]
|
11209
|
-
attr_accessor :url
|
11210
|
-
|
11211
|
-
def initialize(**args)
|
11212
|
-
update!(**args)
|
11213
|
-
end
|
11214
|
-
|
11215
|
-
# Update properties of this object
|
11216
|
-
def update!(**args)
|
11217
|
-
@score = args[:score] if args.key?(:score)
|
11218
|
-
@url = args[:url] if args.key?(:url)
|
11219
|
-
end
|
11220
|
-
end
|
11221
|
-
|
11222
|
-
# Label to provide extra metadata for the web detection.
|
11223
|
-
class GoogleCloudVisionV1p5beta1WebDetectionWebLabel
|
11224
|
-
include Google::Apis::Core::Hashable
|
11225
|
-
|
11226
|
-
# Label for extra metadata.
|
11227
|
-
# Corresponds to the JSON property `label`
|
11228
|
-
# @return [String]
|
11229
|
-
attr_accessor :label
|
11230
|
-
|
11231
|
-
# The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
|
11232
|
-
# For more information, see
|
11233
|
-
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
11234
|
-
# Corresponds to the JSON property `languageCode`
|
11235
|
-
# @return [String]
|
11236
|
-
attr_accessor :language_code
|
11237
|
-
|
11238
|
-
def initialize(**args)
|
11239
|
-
update!(**args)
|
11240
|
-
end
|
11241
|
-
|
11242
|
-
# Update properties of this object
|
11243
|
-
def update!(**args)
|
11244
|
-
@label = args[:label] if args.key?(:label)
|
11245
|
-
@language_code = args[:language_code] if args.key?(:language_code)
|
11246
|
-
end
|
11247
|
-
end
|
11248
|
-
|
11249
|
-
# Metadata for web pages.
|
11250
|
-
class GoogleCloudVisionV1p5beta1WebDetectionWebPage
|
11251
|
-
include Google::Apis::Core::Hashable
|
11252
|
-
|
11253
|
-
# Fully matching images on the page.
|
11254
|
-
# Can include resized copies of the query image.
|
11255
|
-
# Corresponds to the JSON property `fullMatchingImages`
|
11256
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage>]
|
11257
|
-
attr_accessor :full_matching_images
|
11258
|
-
|
11259
|
-
# Title for the web page, may contain HTML markups.
|
11260
|
-
# Corresponds to the JSON property `pageTitle`
|
11261
|
-
# @return [String]
|
11262
|
-
attr_accessor :page_title
|
11263
|
-
|
11264
|
-
# Partial matching images on the page.
|
11265
|
-
# Those images are similar enough to share some key-point features. For
|
11266
|
-
# example an original image will likely have partial matching for its
|
11267
|
-
# crops.
|
11268
|
-
# Corresponds to the JSON property `partialMatchingImages`
|
11269
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1WebDetectionWebImage>]
|
11270
|
-
attr_accessor :partial_matching_images
|
11271
|
-
|
11272
|
-
# (Deprecated) Overall relevancy score for the web page.
|
11273
|
-
# Corresponds to the JSON property `score`
|
11274
|
-
# @return [Float]
|
11275
|
-
attr_accessor :score
|
11276
|
-
|
11277
|
-
# The result web page URL.
|
11278
|
-
# Corresponds to the JSON property `url`
|
11279
|
-
# @return [String]
|
11280
|
-
attr_accessor :url
|
11281
|
-
|
11282
|
-
def initialize(**args)
|
11283
|
-
update!(**args)
|
11284
|
-
end
|
11285
|
-
|
11286
|
-
# Update properties of this object
|
11287
|
-
def update!(**args)
|
11288
|
-
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
11289
|
-
@page_title = args[:page_title] if args.key?(:page_title)
|
11290
|
-
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
11291
|
-
@score = args[:score] if args.key?(:score)
|
11292
|
-
@url = args[:url] if args.key?(:url)
|
11293
|
-
end
|
11294
|
-
end
|
11295
|
-
|
11296
|
-
# A word representation.
|
11297
|
-
class GoogleCloudVisionV1p5beta1Word
|
11298
|
-
include Google::Apis::Core::Hashable
|
11299
|
-
|
11300
|
-
# A bounding polygon for the detected image annotation.
|
11301
|
-
# Corresponds to the JSON property `boundingBox`
|
11302
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1BoundingPoly]
|
11303
|
-
attr_accessor :bounding_box
|
11304
|
-
|
11305
|
-
# Confidence of the OCR results for the word. Range [0, 1].
|
11306
|
-
# Corresponds to the JSON property `confidence`
|
11307
|
-
# @return [Float]
|
11308
|
-
attr_accessor :confidence
|
11309
|
-
|
11310
|
-
# All UTF-8 text detected in this word. This field is by default not
|
11311
|
-
# returned unless specified in TextDetectionParams.word_filter.
|
11312
|
-
# Corresponds to the JSON property `mergedText`
|
11313
|
-
# @return [String]
|
11314
|
-
attr_accessor :merged_text
|
11315
|
-
|
11316
|
-
# Additional information detected on the structural component.
|
11317
|
-
# Corresponds to the JSON property `property`
|
11318
|
-
# @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty]
|
11319
|
-
attr_accessor :property
|
11320
|
-
|
11321
|
-
# List of symbols in the word.
|
11322
|
-
# The order of the symbols follows the natural reading order.
|
11323
|
-
# Corresponds to the JSON property `symbols`
|
11324
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p5beta1Symbol>]
|
11325
|
-
attr_accessor :symbols
|
11326
|
-
|
11327
|
-
def initialize(**args)
|
11328
|
-
update!(**args)
|
11329
|
-
end
|
11330
|
-
|
11331
|
-
# Update properties of this object
|
11332
|
-
def update!(**args)
|
11333
|
-
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
11334
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
11335
|
-
@merged_text = args[:merged_text] if args.key?(:merged_text)
|
11336
|
-
@property = args[:property] if args.key?(:property)
|
11337
|
-
@symbols = args[:symbols] if args.key?(:symbols)
|
11338
|
-
end
|
11339
|
-
end
|
11340
|
-
|
11341
|
-
# Information about the products similar to a single product in a query
|
11342
|
-
# image.
|
11343
|
-
class GroupedResult
|
11344
|
-
include Google::Apis::Core::Hashable
|
11345
|
-
|
11346
|
-
# A bounding polygon for the detected image annotation.
|
11347
|
-
# Corresponds to the JSON property `boundingPoly`
|
11348
|
-
# @return [Google::Apis::VisionV1p1beta1::BoundingPoly]
|
11349
|
-
attr_accessor :bounding_poly
|
11350
|
-
|
11351
|
-
# List of generic predictions for the object in the bounding box.
|
11352
|
-
# Corresponds to the JSON property `objectAnnotations`
|
11353
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::ObjectAnnotation>]
|
11354
|
-
attr_accessor :object_annotations
|
11355
|
-
|
11356
|
-
# List of results, one for each product match.
|
11357
|
-
# Corresponds to the JSON property `results`
|
11358
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::Result>]
|
11359
|
-
attr_accessor :results
|
11360
|
-
|
11361
|
-
def initialize(**args)
|
11362
|
-
update!(**args)
|
11363
|
-
end
|
11364
|
-
|
11365
|
-
# Update properties of this object
|
11366
|
-
def update!(**args)
|
11367
|
-
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
11368
|
-
@object_annotations = args[:object_annotations] if args.key?(:object_annotations)
|
11369
|
-
@results = args[:results] if args.key?(:results)
|
11370
|
-
end
|
11371
|
-
end
|
11372
|
-
|
11373
|
-
# If an image was produced from a file (e.g. a PDF), this message gives
|
11374
|
-
# information about the source of that image.
|
11375
|
-
class ImageAnnotationContext
|
11376
|
-
include Google::Apis::Core::Hashable
|
11377
|
-
|
11378
|
-
# If the file was a PDF or TIFF, this field gives the page number within
|
11379
|
-
# the file used to produce the image.
|
11380
|
-
# Corresponds to the JSON property `pageNumber`
|
11381
|
-
# @return [Fixnum]
|
11382
|
-
attr_accessor :page_number
|
11383
|
-
|
11384
|
-
# The URI of the file used to produce the image.
|
11385
|
-
# Corresponds to the JSON property `uri`
|
11386
|
-
# @return [String]
|
11387
|
-
attr_accessor :uri
|
11388
|
-
|
11389
|
-
def initialize(**args)
|
11390
|
-
update!(**args)
|
11391
|
-
end
|
11392
|
-
|
11393
|
-
# Update properties of this object
|
11394
|
-
def update!(**args)
|
11395
|
-
@page_number = args[:page_number] if args.key?(:page_number)
|
11396
|
-
@uri = args[:uri] if args.key?(:uri)
|
11397
|
-
end
|
11398
|
-
end
|
11399
|
-
|
11400
|
-
# Stores image properties, such as dominant colors.
|
11401
|
-
class ImageProperties
|
11402
|
-
include Google::Apis::Core::Hashable
|
11403
|
-
|
11404
|
-
# Set of dominant colors and their corresponding scores.
|
11405
|
-
# Corresponds to the JSON property `dominantColors`
|
11406
|
-
# @return [Google::Apis::VisionV1p1beta1::DominantColorsAnnotation]
|
11407
|
-
attr_accessor :dominant_colors
|
11408
|
-
|
11409
|
-
def initialize(**args)
|
11410
|
-
update!(**args)
|
11411
|
-
end
|
11412
|
-
|
11413
|
-
# Update properties of this object
|
11414
|
-
def update!(**args)
|
11415
|
-
@dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
|
11416
|
-
end
|
11417
|
-
end
|
11418
|
-
|
11419
|
-
# Response message for the `ImportProductSets` method.
|
11420
|
-
# This message is returned by the
|
11421
|
-
# google.longrunning.Operations.GetOperation method in the returned
|
11422
|
-
# google.longrunning.Operation.response field.
|
11423
|
-
class ImportProductSetsResponse
|
11424
|
-
include Google::Apis::Core::Hashable
|
11425
|
-
|
11426
|
-
# The list of reference_images that are imported successfully.
|
11427
|
-
# Corresponds to the JSON property `referenceImages`
|
11428
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::ReferenceImage>]
|
11429
|
-
attr_accessor :reference_images
|
11430
|
-
|
11431
|
-
# The rpc status for each ImportProductSet request, including both successes
|
11432
|
-
# and errors.
|
11433
|
-
# The number of statuses here matches the number of lines in the csv file,
|
11434
|
-
# and statuses[i] stores the success or failure status of processing the i-th
|
11435
|
-
# line of the csv, starting from line 0.
|
11436
|
-
# Corresponds to the JSON property `statuses`
|
11437
|
-
# @return [Array<Google::Apis::VisionV1p1beta1::Status>]
|
11438
|
-
attr_accessor :statuses
|
11439
|
-
|
11440
|
-
def initialize(**args)
|
11441
|
-
update!(**args)
|
11442
|
-
end
|
11443
|
-
|
11444
|
-
# Update properties of this object
|
11445
|
-
def update!(**args)
|
11446
|
-
@reference_images = args[:reference_images] if args.key?(:reference_images)
|
11447
|
-
@statuses = args[:statuses] if args.key?(:statuses)
|
11448
|
-
end
|
11449
|
-
end
|
11450
|
-
|
11451
|
-
# The desired input location and metadata.
|
11452
|
-
class InputConfig
|
11453
|
-
include Google::Apis::Core::Hashable
|
11454
|
-
|
11455
|
-
# File content, represented as a stream of bytes.
|
11456
|
-
# Note: As with all `bytes` fields, protobuffers use a pure binary
|
11457
|
-
# representation, whereas JSON representations use base64.
|
11458
|
-
# Currently, this field only works for BatchAnnotateFiles requests. It does
|
11459
|
-
# not work for AsyncBatchAnnotateFiles requests.
|
11460
|
-
# Corresponds to the JSON property `content`
|
11461
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
11462
|
-
# @return [String]
|
11463
|
-
attr_accessor :content
|
11464
|
-
|
11465
|
-
# The Google Cloud Storage location where the input will be read from.
|
11466
|
-
# Corresponds to the JSON property `gcsSource`
|
11467
|
-
# @return [Google::Apis::VisionV1p1beta1::GcsSource]
|
11468
|
-
attr_accessor :gcs_source
|
11469
|
-
|
11470
|
-
# The type of the file. Currently only "application/pdf", "image/tiff" and
|
11471
|
-
# "image/gif" are supported. Wildcards are not supported.
|
11472
|
-
# Corresponds to the JSON property `mimeType`
|
11473
|
-
# @return [String]
|
11474
|
-
attr_accessor :mime_type
|
11475
|
-
|
11476
|
-
def initialize(**args)
|
11477
|
-
update!(**args)
|
11478
|
-
end
|
11479
|
-
|
11480
|
-
# Update properties of this object
|
11481
|
-
def update!(**args)
|
11482
|
-
@content = args[:content] if args.key?(:content)
|
11483
|
-
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
11484
|
-
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
11485
|
-
end
|
11486
|
-
end
|
11487
|
-
|
11488
|
-
# A product label represented as a key-value pair.
|
11489
|
-
class KeyValue
|
11490
|
-
include Google::Apis::Core::Hashable
|
11491
|
-
|
11492
|
-
# The key of the label attached to the product. Cannot be empty and cannot
|
11493
|
-
# exceed 128 bytes.
|
11494
|
-
# Corresponds to the JSON property `key`
|
11495
|
-
# @return [String]
|
11496
|
-
attr_accessor :key
|
11497
|
-
|
11498
|
-
# The value of the label attached to the product. Cannot be empty and
|
11499
|
-
# cannot exceed 128 bytes.
|
11500
|
-
# Corresponds to the JSON property `value`
|
11501
|
-
# @return [String]
|
11502
|
-
attr_accessor :value
|
11503
|
-
|
11504
|
-
def initialize(**args)
|
11505
|
-
update!(**args)
|
11506
|
-
end
|
11507
|
-
|
11508
|
-
# Update properties of this object
|
11509
|
-
def update!(**args)
|
11510
|
-
@key = args[:key] if args.key?(:key)
|
11511
|
-
@value = args[:value] if args.key?(:value)
|
11512
|
-
end
|
11513
|
-
end
|
11514
|
-
|
11515
|
-
# A face-specific landmark (for example, a face feature).
|
11516
|
-
class Landmark
|
11517
|
-
include Google::Apis::Core::Hashable
|
11518
|
-
|
11519
|
-
# A 3D position in the image, used primarily for Face detection landmarks.
|
11520
|
-
# A valid Position must have both x and y coordinates.
|
11521
|
-
# The position coordinates are in the same scale as the original image.
|
11522
|
-
# Corresponds to the JSON property `position`
|
11523
|
-
# @return [Google::Apis::VisionV1p1beta1::Position]
|
11524
|
-
attr_accessor :position
|
11525
|
-
|
11526
|
-
# Face landmark type.
|
11527
|
-
# Corresponds to the JSON property `type`
|
9355
|
+
# Face landmark type.
|
9356
|
+
# Corresponds to the JSON property `type`
|
11528
9357
|
# @return [String]
|
11529
9358
|
attr_accessor :type
|
11530
9359
|
|
@@ -11969,11 +9798,11 @@ module Google
|
|
11969
9798
|
# @return [String]
|
11970
9799
|
attr_accessor :name
|
11971
9800
|
|
11972
|
-
# The category for the product identified by the reference image.
|
9801
|
+
# Immutable. The category for the product identified by the reference image.
|
9802
|
+
# This should
|
11973
9803
|
# be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
|
11974
9804
|
# "homegoods", "apparel", and "toys" are still supported, but these should
|
11975
9805
|
# not be used for new products.
|
11976
|
-
# This field is immutable.
|
11977
9806
|
# Corresponds to the JSON property `productCategory`
|
11978
9807
|
# @return [String]
|
11979
9808
|
attr_accessor :product_category
|
@@ -12078,8 +9907,9 @@ module Google
|
|
12078
9907
|
class ReferenceImage
|
12079
9908
|
include Google::Apis::Core::Hashable
|
12080
9909
|
|
12081
|
-
# Bounding polygons around the areas of interest in the reference
|
12082
|
-
#
|
9910
|
+
# Optional. Bounding polygons around the areas of interest in the reference
|
9911
|
+
# image.
|
9912
|
+
# If this field is empty, the system will try to detect regions of
|
12083
9913
|
# interest. At most 10 bounding polygons will be used.
|
12084
9914
|
# The provided shape is converted into a non-rotated rectangle. Once
|
12085
9915
|
# converted, the small edge of the rectangle must be greater than or equal
|
@@ -12098,9 +9928,8 @@ module Google
|
|
12098
9928
|
# @return [String]
|
12099
9929
|
attr_accessor :name
|
12100
9930
|
|
12101
|
-
# The Google Cloud Storage URI of the reference image.
|
9931
|
+
# Required. The Google Cloud Storage URI of the reference image.
|
12102
9932
|
# The URI must start with `gs://`.
|
12103
|
-
# Required.
|
12104
9933
|
# Corresponds to the JSON property `uri`
|
12105
9934
|
# @return [String]
|
12106
9935
|
attr_accessor :uri
|