google-api-client 0.30.7 → 0.30.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -0
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +1 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +9 -4
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +456 -0
- data/generated/google/apis/cloudasset_v1/representations.rb +145 -0
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1/classes.rb +7 -0
- data/generated/google/apis/cloudshell_v1/representations.rb +1 -0
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +7 -0
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +75 -0
- data/generated/google/apis/container_v1beta1/representations.rb +36 -0
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +51 -4
- data/generated/google/apis/docs_v1/representations.rb +17 -0
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +6 -0
- data/generated/google/apis/genomics_v1/representations.rb +1 -0
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +6 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +1 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +6 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -0
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +22 -14
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +22 -14
- data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +20 -12
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +22 -14
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +173 -0
- data/generated/google/apis/sheets_v4/representations.rb +64 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +100 -2015
- data/generated/google/apis/vision_v1/representations.rb +866 -1703
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +100 -2015
- data/generated/google/apis/vision_v1p1beta1/representations.rb +938 -1775
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +100 -2015
- data/generated/google/apis/vision_v1p2beta1/representations.rb +990 -1827
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# @see https://cloud.google.com/vision/
|
28
28
|
module VisionV1p2beta1
|
29
29
|
VERSION = 'V1p2beta1'
|
30
|
-
REVISION = '
|
30
|
+
REVISION = '20190718'
|
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'
|
@@ -32,7 +32,8 @@ module Google
|
|
32
32
|
# @return [Google::Apis::VisionV1p2beta1::InputConfig]
|
33
33
|
attr_accessor :input_config
|
34
34
|
|
35
|
-
# Individual responses to images found within the file.
|
35
|
+
# Individual responses to images found within the file. This field will be
|
36
|
+
# empty if the `error` field is set.
|
36
37
|
# Corresponds to the JSON property `responses`
|
37
38
|
# @return [Array<Google::Apis::VisionV1p2beta1::AnnotateImageResponse>]
|
38
39
|
attr_accessor :responses
|
@@ -1008,7 +1009,8 @@ module Google
|
|
1008
1009
|
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1InputConfig]
|
1009
1010
|
attr_accessor :input_config
|
1010
1011
|
|
1011
|
-
# Individual responses to images found within the file.
|
1012
|
+
# Individual responses to images found within the file. This field will be
|
1013
|
+
# empty if the `error` field is set.
|
1012
1014
|
# Corresponds to the JSON property `responses`
|
1013
1015
|
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1AnnotateImageResponse>]
|
1014
1016
|
attr_accessor :responses
|
@@ -2034,7 +2036,7 @@ module Google
|
|
2034
2036
|
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty]
|
2035
2037
|
attr_accessor :property
|
2036
2038
|
|
2037
|
-
# List of words in this paragraph.
|
2039
|
+
# List of all words in this paragraph.
|
2038
2040
|
# Corresponds to the JSON property `words`
|
2039
2041
|
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1Word>]
|
2040
2042
|
attr_accessor :words
|
@@ -2124,7 +2126,10 @@ module Google
|
|
2124
2126
|
# strings with integer values can match a range-based restriction which is
|
2125
2127
|
# to be supported soon.
|
2126
2128
|
# Multiple values can be assigned to the same key. One product may have up to
|
2127
|
-
#
|
2129
|
+
# 500 product_labels.
|
2130
|
+
# Notice that the total number of distinct product_labels over all products
|
2131
|
+
# in one ProductSet cannot exceed 1M, otherwise the product search pipeline
|
2132
|
+
# will refuse to work for that ProductSet.
|
2128
2133
|
# Corresponds to the JSON property `productLabels`
|
2129
2134
|
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1ProductKeyValue>]
|
2130
2135
|
attr_accessor :product_labels
|
@@ -2798,7 +2803,8 @@ module Google
|
|
2798
2803
|
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1InputConfig]
|
2799
2804
|
attr_accessor :input_config
|
2800
2805
|
|
2801
|
-
# Individual responses to images found within the file.
|
2806
|
+
# Individual responses to images found within the file. This field will be
|
2807
|
+
# empty if the `error` field is set.
|
2802
2808
|
# Corresponds to the JSON property `responses`
|
2803
2809
|
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AnnotateImageResponse>]
|
2804
2810
|
attr_accessor :responses
|
@@ -4229,7 +4235,7 @@ module Google
|
|
4229
4235
|
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
|
4230
4236
|
attr_accessor :property
|
4231
4237
|
|
4232
|
-
# List of words in this paragraph.
|
4238
|
+
# List of all words in this paragraph.
|
4233
4239
|
# Corresponds to the JSON property `words`
|
4234
4240
|
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Word>]
|
4235
4241
|
attr_accessor :words
|
@@ -4319,7 +4325,10 @@ module Google
|
|
4319
4325
|
# strings with integer values can match a range-based restriction which is
|
4320
4326
|
# to be supported soon.
|
4321
4327
|
# Multiple values can be assigned to the same key. One product may have up to
|
4322
|
-
#
|
4328
|
+
# 500 product_labels.
|
4329
|
+
# Notice that the total number of distinct product_labels over all products
|
4330
|
+
# in one ProductSet cannot exceed 1M, otherwise the product search pipeline
|
4331
|
+
# will refuse to work for that ProductSet.
|
4323
4332
|
# Corresponds to the JSON property `productLabels`
|
4324
4333
|
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ProductKeyValue>]
|
4325
4334
|
attr_accessor :product_labels
|
@@ -5018,7 +5027,8 @@ module Google
|
|
5018
5027
|
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1InputConfig]
|
5019
5028
|
attr_accessor :input_config
|
5020
5029
|
|
5021
|
-
# Individual responses to images found within the file.
|
5030
|
+
# Individual responses to images found within the file. This field will be
|
5031
|
+
# empty if the `error` field is set.
|
5022
5032
|
# Corresponds to the JSON property `responses`
|
5023
5033
|
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1AnnotateImageResponse>]
|
5024
5034
|
attr_accessor :responses
|
@@ -6110,7 +6120,7 @@ module Google
|
|
6110
6120
|
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty]
|
6111
6121
|
attr_accessor :property
|
6112
6122
|
|
6113
|
-
# List of words in this paragraph.
|
6123
|
+
# List of all words in this paragraph.
|
6114
6124
|
# Corresponds to the JSON property `words`
|
6115
6125
|
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1Word>]
|
6116
6126
|
attr_accessor :words
|
@@ -6200,7 +6210,10 @@ module Google
|
|
6200
6210
|
# strings with integer values can match a range-based restriction which is
|
6201
6211
|
# to be supported soon.
|
6202
6212
|
# Multiple values can be assigned to the same key. One product may have up to
|
6203
|
-
#
|
6213
|
+
# 500 product_labels.
|
6214
|
+
# Notice that the total number of distinct product_labels over all products
|
6215
|
+
# in one ProductSet cannot exceed 1M, otherwise the product search pipeline
|
6216
|
+
# will refuse to work for that ProductSet.
|
6204
6217
|
# Corresponds to the JSON property `productLabels`
|
6205
6218
|
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p3beta1ProductKeyValue>]
|
6206
6219
|
attr_accessor :product_labels
|
@@ -6872,7 +6885,8 @@ module Google
|
|
6872
6885
|
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1InputConfig]
|
6873
6886
|
attr_accessor :input_config
|
6874
6887
|
|
6875
|
-
# Individual responses to images found within the file.
|
6888
|
+
# Individual responses to images found within the file. This field will be
|
6889
|
+
# empty if the `error` field is set.
|
6876
6890
|
# Corresponds to the JSON property `responses`
|
6877
6891
|
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1AnnotateImageResponse>]
|
6878
6892
|
attr_accessor :responses
|
@@ -6940,6 +6954,11 @@ module Google
|
|
6940
6954
|
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ImageProperties]
|
6941
6955
|
attr_accessor :image_properties_annotation
|
6942
6956
|
|
6957
|
+
# Stores image quality scores, could be aesthetic quality or technical quality.
|
6958
|
+
# Corresponds to the JSON property `imageQualityAnnotation`
|
6959
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ImageQuality]
|
6960
|
+
attr_accessor :image_quality_annotation
|
6961
|
+
|
6943
6962
|
# If present, label detection has completed successfully.
|
6944
6963
|
# Corresponds to the JSON property `labelAnnotations`
|
6945
6964
|
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
|
@@ -6966,6 +6985,11 @@ module Google
|
|
6966
6985
|
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ProductSearchResults]
|
6967
6986
|
attr_accessor :product_search_results
|
6968
6987
|
|
6988
|
+
# Stores enhanced image bytes.
|
6989
|
+
# Corresponds to the JSON property `qualityOptimizationResult`
|
6990
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1QualityOptimizationResult]
|
6991
|
+
attr_accessor :quality_optimization_result
|
6992
|
+
|
6969
6993
|
# Set of features pertaining to the image, computed by computer vision
|
6970
6994
|
# methods over safe-search verticals (for example, adult, spoof, medical,
|
6971
6995
|
# violence).
|
@@ -6995,11 +7019,13 @@ module Google
|
|
6995
7019
|
@face_annotations = args[:face_annotations] if args.key?(:face_annotations)
|
6996
7020
|
@full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
|
6997
7021
|
@image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
|
7022
|
+
@image_quality_annotation = args[:image_quality_annotation] if args.key?(:image_quality_annotation)
|
6998
7023
|
@label_annotations = args[:label_annotations] if args.key?(:label_annotations)
|
6999
7024
|
@landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
|
7000
7025
|
@localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
|
7001
7026
|
@logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
|
7002
7027
|
@product_search_results = args[:product_search_results] if args.key?(:product_search_results)
|
7028
|
+
@quality_optimization_result = args[:quality_optimization_result] if args.key?(:quality_optimization_result)
|
7003
7029
|
@safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
|
7004
7030
|
@text_annotations = args[:text_annotations] if args.key?(:text_annotations)
|
7005
7031
|
@web_detection = args[:web_detection] if args.key?(:web_detection)
|
@@ -7711,6 +7737,19 @@ module Google
|
|
7711
7737
|
end
|
7712
7738
|
end
|
7713
7739
|
|
7740
|
+
# Stores image quality scores, could be aesthetic quality or technical quality.
|
7741
|
+
class GoogleCloudVisionV1p4beta1ImageQuality
|
7742
|
+
include Google::Apis::Core::Hashable
|
7743
|
+
|
7744
|
+
def initialize(**args)
|
7745
|
+
update!(**args)
|
7746
|
+
end
|
7747
|
+
|
7748
|
+
# Update properties of this object
|
7749
|
+
def update!(**args)
|
7750
|
+
end
|
7751
|
+
end
|
7752
|
+
|
7714
7753
|
# Response message for the `ImportProductSets` method.
|
7715
7754
|
# This message is returned by the
|
7716
7755
|
# google.longrunning.Operations.GetOperation method in the returned
|
@@ -8003,7 +8042,7 @@ module Google
|
|
8003
8042
|
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
|
8004
8043
|
attr_accessor :property
|
8005
8044
|
|
8006
|
-
# List of words in this paragraph.
|
8045
|
+
# List of all words in this paragraph.
|
8007
8046
|
# Corresponds to the JSON property `words`
|
8008
8047
|
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1Word>]
|
8009
8048
|
attr_accessor :words
|
@@ -8093,7 +8132,10 @@ module Google
|
|
8093
8132
|
# strings with integer values can match a range-based restriction which is
|
8094
8133
|
# to be supported soon.
|
8095
8134
|
# Multiple values can be assigned to the same key. One product may have up to
|
8096
|
-
#
|
8135
|
+
# 500 product_labels.
|
8136
|
+
# Notice that the total number of distinct product_labels over all products
|
8137
|
+
# in one ProductSet cannot exceed 1M, otherwise the product search pipeline
|
8138
|
+
# will refuse to work for that ProductSet.
|
8097
8139
|
# Corresponds to the JSON property `productLabels`
|
8098
8140
|
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p4beta1ProductKeyValue>]
|
8099
8141
|
attr_accessor :product_labels
|
@@ -8265,6 +8307,38 @@ module Google
|
|
8265
8307
|
end
|
8266
8308
|
end
|
8267
8309
|
|
8310
|
+
# Stores enhanced image bytes.
|
8311
|
+
class GoogleCloudVisionV1p4beta1QualityOptimizationResult
|
8312
|
+
include Google::Apis::Core::Hashable
|
8313
|
+
|
8314
|
+
# Optimized image bytes.
|
8315
|
+
# Corresponds to the JSON property `image`
|
8316
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
8317
|
+
# @return [String]
|
8318
|
+
attr_accessor :image
|
8319
|
+
|
8320
|
+
# Mime type of the output image.
|
8321
|
+
# Corresponds to the JSON property `mimeType`
|
8322
|
+
# @return [String]
|
8323
|
+
attr_accessor :mime_type
|
8324
|
+
|
8325
|
+
# Required optimization type.
|
8326
|
+
# Corresponds to the JSON property `qualityOptimizationType`
|
8327
|
+
# @return [String]
|
8328
|
+
attr_accessor :quality_optimization_type
|
8329
|
+
|
8330
|
+
def initialize(**args)
|
8331
|
+
update!(**args)
|
8332
|
+
end
|
8333
|
+
|
8334
|
+
# Update properties of this object
|
8335
|
+
def update!(**args)
|
8336
|
+
@image = args[:image] if args.key?(:image)
|
8337
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
8338
|
+
@quality_optimization_type = args[:quality_optimization_type] if args.key?(:quality_optimization_type)
|
8339
|
+
end
|
8340
|
+
end
|
8341
|
+
|
8268
8342
|
# A `ReferenceImage` represents a product image and its associated metadata,
|
8269
8343
|
# such as bounding boxes.
|
8270
8344
|
class GoogleCloudVisionV1p4beta1ReferenceImage
|
@@ -8765,7 +8839,8 @@ module Google
|
|
8765
8839
|
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1InputConfig]
|
8766
8840
|
attr_accessor :input_config
|
8767
8841
|
|
8768
|
-
# Individual responses to images found within the file.
|
8842
|
+
# Individual responses to images found within the file. This field will be
|
8843
|
+
# empty if the `error` field is set.
|
8769
8844
|
# Corresponds to the JSON property `responses`
|
8770
8845
|
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1AnnotateImageResponse>]
|
8771
8846
|
attr_accessor :responses
|
@@ -9972,8 +10047,7 @@ module Google
|
|
9972
10047
|
attr_accessor :confidence
|
9973
10048
|
|
9974
10049
|
# All UTF-8 text detected in this paragraph. This field is by default not
|
9975
|
-
# returned unless specified in
|
9976
|
-
# TextDetectionParams.paragraph_filter.
|
10050
|
+
# returned unless specified in TextDetectionParams.paragraph_filter.
|
9977
10051
|
# Corresponds to the JSON property `mergedText`
|
9978
10052
|
# @return [String]
|
9979
10053
|
attr_accessor :merged_text
|
@@ -9983,7 +10057,7 @@ module Google
|
|
9983
10057
|
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty]
|
9984
10058
|
attr_accessor :property
|
9985
10059
|
|
9986
|
-
# List of words in this paragraph.
|
10060
|
+
# List of all words in this paragraph.
|
9987
10061
|
# Corresponds to the JSON property `words`
|
9988
10062
|
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1Word>]
|
9989
10063
|
attr_accessor :words
|
@@ -10074,7 +10148,10 @@ module Google
|
|
10074
10148
|
# strings with integer values can match a range-based restriction which is
|
10075
10149
|
# to be supported soon.
|
10076
10150
|
# Multiple values can be assigned to the same key. One product may have up to
|
10077
|
-
#
|
10151
|
+
# 500 product_labels.
|
10152
|
+
# Notice that the total number of distinct product_labels over all products
|
10153
|
+
# in one ProductSet cannot exceed 1M, otherwise the product search pipeline
|
10154
|
+
# will refuse to work for that ProductSet.
|
10078
10155
|
# Corresponds to the JSON property `productLabels`
|
10079
10156
|
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p5beta1ProductKeyValue>]
|
10080
10157
|
attr_accessor :product_labels
|
@@ -10825,2001 +10902,6 @@ module Google
|
|
10825
10902
|
end
|
10826
10903
|
end
|
10827
10904
|
|
10828
|
-
# Response to a single file annotation request. A file may contain one or more
|
10829
|
-
# images, which individually have their own responses.
|
10830
|
-
class GoogleCloudVisionV1p6beta1AnnotateFileResponse
|
10831
|
-
include Google::Apis::Core::Hashable
|
10832
|
-
|
10833
|
-
# The desired input location and metadata.
|
10834
|
-
# Corresponds to the JSON property `inputConfig`
|
10835
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1InputConfig]
|
10836
|
-
attr_accessor :input_config
|
10837
|
-
|
10838
|
-
# Individual responses to images found within the file.
|
10839
|
-
# Corresponds to the JSON property `responses`
|
10840
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1AnnotateImageResponse>]
|
10841
|
-
attr_accessor :responses
|
10842
|
-
|
10843
|
-
# This field gives the total number of pages in the file.
|
10844
|
-
# Corresponds to the JSON property `totalPages`
|
10845
|
-
# @return [Fixnum]
|
10846
|
-
attr_accessor :total_pages
|
10847
|
-
|
10848
|
-
def initialize(**args)
|
10849
|
-
update!(**args)
|
10850
|
-
end
|
10851
|
-
|
10852
|
-
# Update properties of this object
|
10853
|
-
def update!(**args)
|
10854
|
-
@input_config = args[:input_config] if args.key?(:input_config)
|
10855
|
-
@responses = args[:responses] if args.key?(:responses)
|
10856
|
-
@total_pages = args[:total_pages] if args.key?(:total_pages)
|
10857
|
-
end
|
10858
|
-
end
|
10859
|
-
|
10860
|
-
# Response to an image annotation request.
|
10861
|
-
class GoogleCloudVisionV1p6beta1AnnotateImageResponse
|
10862
|
-
include Google::Apis::Core::Hashable
|
10863
|
-
|
10864
|
-
# If an image was produced from a file (e.g. a PDF), this message gives
|
10865
|
-
# information about the source of that image.
|
10866
|
-
# Corresponds to the JSON property `context`
|
10867
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1ImageAnnotationContext]
|
10868
|
-
attr_accessor :context
|
10869
|
-
|
10870
|
-
# Set of crop hints that are used to generate new crops when serving images.
|
10871
|
-
# Corresponds to the JSON property `cropHintsAnnotation`
|
10872
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1CropHintsAnnotation]
|
10873
|
-
attr_accessor :crop_hints_annotation
|
10874
|
-
|
10875
|
-
# The `Status` type defines a logical error model that is suitable for
|
10876
|
-
# different programming environments, including REST APIs and RPC APIs. It is
|
10877
|
-
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
10878
|
-
# three pieces of data: error code, error message, and error details.
|
10879
|
-
# You can find out more about this error model and how to work with it in the
|
10880
|
-
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
10881
|
-
# Corresponds to the JSON property `error`
|
10882
|
-
# @return [Google::Apis::VisionV1p2beta1::Status]
|
10883
|
-
attr_accessor :error
|
10884
|
-
|
10885
|
-
# If present, face detection has completed successfully.
|
10886
|
-
# Corresponds to the JSON property `faceAnnotations`
|
10887
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1FaceAnnotation>]
|
10888
|
-
attr_accessor :face_annotations
|
10889
|
-
|
10890
|
-
# TextAnnotation contains a structured representation of OCR extracted text.
|
10891
|
-
# The hierarchy of an OCR extracted text structure is like this:
|
10892
|
-
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
10893
|
-
# Each structural component, starting from Page, may further have their own
|
10894
|
-
# properties. Properties describe detected languages, breaks etc.. Please refer
|
10895
|
-
# to the TextAnnotation.TextProperty message definition below for more
|
10896
|
-
# detail.
|
10897
|
-
# Corresponds to the JSON property `fullTextAnnotation`
|
10898
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1TextAnnotation]
|
10899
|
-
attr_accessor :full_text_annotation
|
10900
|
-
|
10901
|
-
# Stores image properties, such as dominant colors.
|
10902
|
-
# Corresponds to the JSON property `imagePropertiesAnnotation`
|
10903
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1ImageProperties]
|
10904
|
-
attr_accessor :image_properties_annotation
|
10905
|
-
|
10906
|
-
# Stores image quality scores, could be aesthetic quality or technical quality.
|
10907
|
-
# Corresponds to the JSON property `imageQualityAnnotation`
|
10908
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1ImageQuality]
|
10909
|
-
attr_accessor :image_quality_annotation
|
10910
|
-
|
10911
|
-
# If present, label detection has completed successfully.
|
10912
|
-
# Corresponds to the JSON property `labelAnnotations`
|
10913
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1EntityAnnotation>]
|
10914
|
-
attr_accessor :label_annotations
|
10915
|
-
|
10916
|
-
# If present, landmark detection has completed successfully.
|
10917
|
-
# Corresponds to the JSON property `landmarkAnnotations`
|
10918
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1EntityAnnotation>]
|
10919
|
-
attr_accessor :landmark_annotations
|
10920
|
-
|
10921
|
-
# If present, localized object detection has completed successfully.
|
10922
|
-
# This will be sorted descending by confidence score.
|
10923
|
-
# Corresponds to the JSON property `localizedObjectAnnotations`
|
10924
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1LocalizedObjectAnnotation>]
|
10925
|
-
attr_accessor :localized_object_annotations
|
10926
|
-
|
10927
|
-
# If present, logo detection has completed successfully.
|
10928
|
-
# Corresponds to the JSON property `logoAnnotations`
|
10929
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1EntityAnnotation>]
|
10930
|
-
attr_accessor :logo_annotations
|
10931
|
-
|
10932
|
-
# If present, objects attributes calculation has completed successfully. The
|
10933
|
-
# attributes value will be filled in the EntityAnnotation.properties.
|
10934
|
-
# Example:
|
10935
|
-
# object_attribute_annotations `
|
10936
|
-
# properties `
|
10937
|
-
# name: "color"
|
10938
|
-
# value: "blue"
|
10939
|
-
# confidence: 0.1
|
10940
|
-
# `
|
10941
|
-
# properties `
|
10942
|
-
# name: "color"
|
10943
|
-
# value: "white"
|
10944
|
-
# confidence: 0.2
|
10945
|
-
# `
|
10946
|
-
# properties `
|
10947
|
-
# name: "material"
|
10948
|
-
# value: "silk"
|
10949
|
-
# confidence: 0.3
|
10950
|
-
# `
|
10951
|
-
# `
|
10952
|
-
# Corresponds to the JSON property `objectAttributeAnnotations`
|
10953
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1EntityAnnotation>]
|
10954
|
-
attr_accessor :object_attribute_annotations
|
10955
|
-
|
10956
|
-
# Results for a product search request.
|
10957
|
-
# Corresponds to the JSON property `productSearchResults`
|
10958
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1ProductSearchResults]
|
10959
|
-
attr_accessor :product_search_results
|
10960
|
-
|
10961
|
-
# Stores enhanced image bytes.
|
10962
|
-
# Corresponds to the JSON property `qualityOptimizationResult`
|
10963
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1QualityOptimizationResult]
|
10964
|
-
attr_accessor :quality_optimization_result
|
10965
|
-
|
10966
|
-
# Set of features pertaining to the image, computed by computer vision
|
10967
|
-
# methods over safe-search verticals (for example, adult, spoof, medical,
|
10968
|
-
# violence).
|
10969
|
-
# Corresponds to the JSON property `safeSearchAnnotation`
|
10970
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1SafeSearchAnnotation]
|
10971
|
-
attr_accessor :safe_search_annotation
|
10972
|
-
|
10973
|
-
# If present, text (OCR) detection has completed successfully.
|
10974
|
-
# Corresponds to the JSON property `textAnnotations`
|
10975
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1EntityAnnotation>]
|
10976
|
-
attr_accessor :text_annotations
|
10977
|
-
|
10978
|
-
# Relevant information for the image from the Internet.
|
10979
|
-
# Corresponds to the JSON property `webDetection`
|
10980
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1WebDetection]
|
10981
|
-
attr_accessor :web_detection
|
10982
|
-
|
10983
|
-
def initialize(**args)
|
10984
|
-
update!(**args)
|
10985
|
-
end
|
10986
|
-
|
10987
|
-
# Update properties of this object
|
10988
|
-
def update!(**args)
|
10989
|
-
@context = args[:context] if args.key?(:context)
|
10990
|
-
@crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
|
10991
|
-
@error = args[:error] if args.key?(:error)
|
10992
|
-
@face_annotations = args[:face_annotations] if args.key?(:face_annotations)
|
10993
|
-
@full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
|
10994
|
-
@image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
|
10995
|
-
@image_quality_annotation = args[:image_quality_annotation] if args.key?(:image_quality_annotation)
|
10996
|
-
@label_annotations = args[:label_annotations] if args.key?(:label_annotations)
|
10997
|
-
@landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
|
10998
|
-
@localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
|
10999
|
-
@logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
|
11000
|
-
@object_attribute_annotations = args[:object_attribute_annotations] if args.key?(:object_attribute_annotations)
|
11001
|
-
@product_search_results = args[:product_search_results] if args.key?(:product_search_results)
|
11002
|
-
@quality_optimization_result = args[:quality_optimization_result] if args.key?(:quality_optimization_result)
|
11003
|
-
@safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
|
11004
|
-
@text_annotations = args[:text_annotations] if args.key?(:text_annotations)
|
11005
|
-
@web_detection = args[:web_detection] if args.key?(:web_detection)
|
11006
|
-
end
|
11007
|
-
end
|
11008
|
-
|
11009
|
-
# The response for a single offline file annotation request.
|
11010
|
-
class GoogleCloudVisionV1p6beta1AsyncAnnotateFileResponse
|
11011
|
-
include Google::Apis::Core::Hashable
|
11012
|
-
|
11013
|
-
# The desired output location and metadata.
|
11014
|
-
# Corresponds to the JSON property `outputConfig`
|
11015
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1OutputConfig]
|
11016
|
-
attr_accessor :output_config
|
11017
|
-
|
11018
|
-
def initialize(**args)
|
11019
|
-
update!(**args)
|
11020
|
-
end
|
11021
|
-
|
11022
|
-
# Update properties of this object
|
11023
|
-
def update!(**args)
|
11024
|
-
@output_config = args[:output_config] if args.key?(:output_config)
|
11025
|
-
end
|
11026
|
-
end
|
11027
|
-
|
11028
|
-
# Response to an async batch file annotation request.
|
11029
|
-
class GoogleCloudVisionV1p6beta1AsyncBatchAnnotateFilesResponse
|
11030
|
-
include Google::Apis::Core::Hashable
|
11031
|
-
|
11032
|
-
# The list of file annotation responses, one for each request in
|
11033
|
-
# AsyncBatchAnnotateFilesRequest.
|
11034
|
-
# Corresponds to the JSON property `responses`
|
11035
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1AsyncAnnotateFileResponse>]
|
11036
|
-
attr_accessor :responses
|
11037
|
-
|
11038
|
-
def initialize(**args)
|
11039
|
-
update!(**args)
|
11040
|
-
end
|
11041
|
-
|
11042
|
-
# Update properties of this object
|
11043
|
-
def update!(**args)
|
11044
|
-
@responses = args[:responses] if args.key?(:responses)
|
11045
|
-
end
|
11046
|
-
end
|
11047
|
-
|
11048
|
-
# Response to an async batch image annotation request.
|
11049
|
-
class GoogleCloudVisionV1p6beta1AsyncBatchAnnotateImagesResponse
|
11050
|
-
include Google::Apis::Core::Hashable
|
11051
|
-
|
11052
|
-
# The desired output location and metadata.
|
11053
|
-
# Corresponds to the JSON property `outputConfig`
|
11054
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1OutputConfig]
|
11055
|
-
attr_accessor :output_config
|
11056
|
-
|
11057
|
-
def initialize(**args)
|
11058
|
-
update!(**args)
|
11059
|
-
end
|
11060
|
-
|
11061
|
-
# Update properties of this object
|
11062
|
-
def update!(**args)
|
11063
|
-
@output_config = args[:output_config] if args.key?(:output_config)
|
11064
|
-
end
|
11065
|
-
end
|
11066
|
-
|
11067
|
-
# A list of file annotation responses.
|
11068
|
-
class GoogleCloudVisionV1p6beta1BatchAnnotateFilesResponse
|
11069
|
-
include Google::Apis::Core::Hashable
|
11070
|
-
|
11071
|
-
# The list of file annotation responses, each response corresponding to each
|
11072
|
-
# AnnotateFileRequest in BatchAnnotateFilesRequest.
|
11073
|
-
# Corresponds to the JSON property `responses`
|
11074
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1AnnotateFileResponse>]
|
11075
|
-
attr_accessor :responses
|
11076
|
-
|
11077
|
-
def initialize(**args)
|
11078
|
-
update!(**args)
|
11079
|
-
end
|
11080
|
-
|
11081
|
-
# Update properties of this object
|
11082
|
-
def update!(**args)
|
11083
|
-
@responses = args[:responses] if args.key?(:responses)
|
11084
|
-
end
|
11085
|
-
end
|
11086
|
-
|
11087
|
-
# Metadata for the batch operations such as the current state.
|
11088
|
-
# This is included in the `metadata` field of the `Operation` returned by the
|
11089
|
-
# `GetOperation` call of the `google::longrunning::Operations` service.
|
11090
|
-
class GoogleCloudVisionV1p6beta1BatchOperationMetadata
|
11091
|
-
include Google::Apis::Core::Hashable
|
11092
|
-
|
11093
|
-
# The time when the batch request is finished and
|
11094
|
-
# google.longrunning.Operation.done is set to true.
|
11095
|
-
# Corresponds to the JSON property `endTime`
|
11096
|
-
# @return [String]
|
11097
|
-
attr_accessor :end_time
|
11098
|
-
|
11099
|
-
# The current state of the batch operation.
|
11100
|
-
# Corresponds to the JSON property `state`
|
11101
|
-
# @return [String]
|
11102
|
-
attr_accessor :state
|
11103
|
-
|
11104
|
-
# The time when the batch request was submitted to the server.
|
11105
|
-
# Corresponds to the JSON property `submitTime`
|
11106
|
-
# @return [String]
|
11107
|
-
attr_accessor :submit_time
|
11108
|
-
|
11109
|
-
def initialize(**args)
|
11110
|
-
update!(**args)
|
11111
|
-
end
|
11112
|
-
|
11113
|
-
# Update properties of this object
|
11114
|
-
def update!(**args)
|
11115
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
11116
|
-
@state = args[:state] if args.key?(:state)
|
11117
|
-
@submit_time = args[:submit_time] if args.key?(:submit_time)
|
11118
|
-
end
|
11119
|
-
end
|
11120
|
-
|
11121
|
-
# Logical element on the page.
|
11122
|
-
class GoogleCloudVisionV1p6beta1Block
|
11123
|
-
include Google::Apis::Core::Hashable
|
11124
|
-
|
11125
|
-
# Detected block type (text, image etc) for this block.
|
11126
|
-
# Corresponds to the JSON property `blockType`
|
11127
|
-
# @return [String]
|
11128
|
-
attr_accessor :block_type
|
11129
|
-
|
11130
|
-
# A bounding polygon for the detected image annotation.
|
11131
|
-
# Corresponds to the JSON property `boundingBox`
|
11132
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
11133
|
-
attr_accessor :bounding_box
|
11134
|
-
|
11135
|
-
# Confidence of the OCR results on the block. Range [0, 1].
|
11136
|
-
# Corresponds to the JSON property `confidence`
|
11137
|
-
# @return [Float]
|
11138
|
-
attr_accessor :confidence
|
11139
|
-
|
11140
|
-
# List of paragraphs in this block (if this blocks is of type text).
|
11141
|
-
# Corresponds to the JSON property `paragraphs`
|
11142
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1Paragraph>]
|
11143
|
-
attr_accessor :paragraphs
|
11144
|
-
|
11145
|
-
# Additional information detected on the structural component.
|
11146
|
-
# Corresponds to the JSON property `property`
|
11147
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1TextAnnotationTextProperty]
|
11148
|
-
attr_accessor :property
|
11149
|
-
|
11150
|
-
def initialize(**args)
|
11151
|
-
update!(**args)
|
11152
|
-
end
|
11153
|
-
|
11154
|
-
# Update properties of this object
|
11155
|
-
def update!(**args)
|
11156
|
-
@block_type = args[:block_type] if args.key?(:block_type)
|
11157
|
-
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
11158
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
11159
|
-
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
11160
|
-
@property = args[:property] if args.key?(:property)
|
11161
|
-
end
|
11162
|
-
end
|
11163
|
-
|
11164
|
-
# A bounding polygon for the detected image annotation.
|
11165
|
-
class GoogleCloudVisionV1p6beta1BoundingPoly
|
11166
|
-
include Google::Apis::Core::Hashable
|
11167
|
-
|
11168
|
-
# The bounding polygon normalized vertices.
|
11169
|
-
# Corresponds to the JSON property `normalizedVertices`
|
11170
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1NormalizedVertex>]
|
11171
|
-
attr_accessor :normalized_vertices
|
11172
|
-
|
11173
|
-
# The bounding polygon vertices.
|
11174
|
-
# Corresponds to the JSON property `vertices`
|
11175
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1Vertex>]
|
11176
|
-
attr_accessor :vertices
|
11177
|
-
|
11178
|
-
def initialize(**args)
|
11179
|
-
update!(**args)
|
11180
|
-
end
|
11181
|
-
|
11182
|
-
# Update properties of this object
|
11183
|
-
def update!(**args)
|
11184
|
-
@normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
|
11185
|
-
@vertices = args[:vertices] if args.key?(:vertices)
|
11186
|
-
end
|
11187
|
-
end
|
11188
|
-
|
11189
|
-
# Color information consists of RGB channels, score, and the fraction of
|
11190
|
-
# the image that the color occupies in the image.
|
11191
|
-
class GoogleCloudVisionV1p6beta1ColorInfo
|
11192
|
-
include Google::Apis::Core::Hashable
|
11193
|
-
|
11194
|
-
# Represents a color in the RGBA color space. This representation is designed
|
11195
|
-
# for simplicity of conversion to/from color representations in various
|
11196
|
-
# languages over compactness; for example, the fields of this representation
|
11197
|
-
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
|
11198
|
-
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
11199
|
-
# method in iOS; and, with just a little work, it can be easily formatted into
|
11200
|
-
# a CSS "rgba()" string in JavaScript, as well.
|
11201
|
-
# Note: this proto does not carry information about the absolute color space
|
11202
|
-
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
|
11203
|
-
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
|
11204
|
-
# space.
|
11205
|
-
# Example (Java):
|
11206
|
-
# import com.google.type.Color;
|
11207
|
-
# // ...
|
11208
|
-
# public static java.awt.Color fromProto(Color protocolor) `
|
11209
|
-
# float alpha = protocolor.hasAlpha()
|
11210
|
-
# ? protocolor.getAlpha().getValue()
|
11211
|
-
# : 1.0;
|
11212
|
-
# return new java.awt.Color(
|
11213
|
-
# protocolor.getRed(),
|
11214
|
-
# protocolor.getGreen(),
|
11215
|
-
# protocolor.getBlue(),
|
11216
|
-
# alpha);
|
11217
|
-
# `
|
11218
|
-
# public static Color toProto(java.awt.Color color) `
|
11219
|
-
# float red = (float) color.getRed();
|
11220
|
-
# float green = (float) color.getGreen();
|
11221
|
-
# float blue = (float) color.getBlue();
|
11222
|
-
# float denominator = 255.0;
|
11223
|
-
# Color.Builder resultBuilder =
|
11224
|
-
# Color
|
11225
|
-
# .newBuilder()
|
11226
|
-
# .setRed(red / denominator)
|
11227
|
-
# .setGreen(green / denominator)
|
11228
|
-
# .setBlue(blue / denominator);
|
11229
|
-
# int alpha = color.getAlpha();
|
11230
|
-
# if (alpha != 255) `
|
11231
|
-
# result.setAlpha(
|
11232
|
-
# FloatValue
|
11233
|
-
# .newBuilder()
|
11234
|
-
# .setValue(((float) alpha) / denominator)
|
11235
|
-
# .build());
|
11236
|
-
# `
|
11237
|
-
# return resultBuilder.build();
|
11238
|
-
# `
|
11239
|
-
# // ...
|
11240
|
-
# Example (iOS / Obj-C):
|
11241
|
-
# // ...
|
11242
|
-
# static UIColor* fromProto(Color* protocolor) `
|
11243
|
-
# float red = [protocolor red];
|
11244
|
-
# float green = [protocolor green];
|
11245
|
-
# float blue = [protocolor blue];
|
11246
|
-
# FloatValue* alpha_wrapper = [protocolor alpha];
|
11247
|
-
# float alpha = 1.0;
|
11248
|
-
# if (alpha_wrapper != nil) `
|
11249
|
-
# alpha = [alpha_wrapper value];
|
11250
|
-
# `
|
11251
|
-
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
|
11252
|
-
# `
|
11253
|
-
# static Color* toProto(UIColor* color) `
|
11254
|
-
# CGFloat red, green, blue, alpha;
|
11255
|
-
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
|
11256
|
-
# return nil;
|
11257
|
-
# `
|
11258
|
-
# Color* result = [[Color alloc] init];
|
11259
|
-
# [result setRed:red];
|
11260
|
-
# [result setGreen:green];
|
11261
|
-
# [result setBlue:blue];
|
11262
|
-
# if (alpha <= 0.9999) `
|
11263
|
-
# [result setAlpha:floatWrapperWithValue(alpha)];
|
11264
|
-
# `
|
11265
|
-
# [result autorelease];
|
11266
|
-
# return result;
|
11267
|
-
# `
|
11268
|
-
# // ...
|
11269
|
-
# Example (JavaScript):
|
11270
|
-
# // ...
|
11271
|
-
# var protoToCssColor = function(rgb_color) `
|
11272
|
-
# var redFrac = rgb_color.red || 0.0;
|
11273
|
-
# var greenFrac = rgb_color.green || 0.0;
|
11274
|
-
# var blueFrac = rgb_color.blue || 0.0;
|
11275
|
-
# var red = Math.floor(redFrac * 255);
|
11276
|
-
# var green = Math.floor(greenFrac * 255);
|
11277
|
-
# var blue = Math.floor(blueFrac * 255);
|
11278
|
-
# if (!('alpha' in rgb_color)) `
|
11279
|
-
# return rgbToCssColor_(red, green, blue);
|
11280
|
-
# `
|
11281
|
-
# var alphaFrac = rgb_color.alpha.value || 0.0;
|
11282
|
-
# var rgbParams = [red, green, blue].join(',');
|
11283
|
-
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
|
11284
|
-
# `;
|
11285
|
-
# var rgbToCssColor_ = function(red, green, blue) `
|
11286
|
-
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
|
11287
|
-
# var hexString = rgbNumber.toString(16);
|
11288
|
-
# var missingZeros = 6 - hexString.length;
|
11289
|
-
# var resultBuilder = ['#'];
|
11290
|
-
# for (var i = 0; i < missingZeros; i++) `
|
11291
|
-
# resultBuilder.push('0');
|
11292
|
-
# `
|
11293
|
-
# resultBuilder.push(hexString);
|
11294
|
-
# return resultBuilder.join('');
|
11295
|
-
# `;
|
11296
|
-
# // ...
|
11297
|
-
# Corresponds to the JSON property `color`
|
11298
|
-
# @return [Google::Apis::VisionV1p2beta1::Color]
|
11299
|
-
attr_accessor :color
|
11300
|
-
|
11301
|
-
# The fraction of pixels the color occupies in the image.
|
11302
|
-
# Value in range [0, 1].
|
11303
|
-
# Corresponds to the JSON property `pixelFraction`
|
11304
|
-
# @return [Float]
|
11305
|
-
attr_accessor :pixel_fraction
|
11306
|
-
|
11307
|
-
# Image-specific score for this color. Value in range [0, 1].
|
11308
|
-
# Corresponds to the JSON property `score`
|
11309
|
-
# @return [Float]
|
11310
|
-
attr_accessor :score
|
11311
|
-
|
11312
|
-
def initialize(**args)
|
11313
|
-
update!(**args)
|
11314
|
-
end
|
11315
|
-
|
11316
|
-
# Update properties of this object
|
11317
|
-
def update!(**args)
|
11318
|
-
@color = args[:color] if args.key?(:color)
|
11319
|
-
@pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction)
|
11320
|
-
@score = args[:score] if args.key?(:score)
|
11321
|
-
end
|
11322
|
-
end
|
11323
|
-
|
11324
|
-
# Single crop hint that is used to generate a new crop when serving an image.
|
11325
|
-
class GoogleCloudVisionV1p6beta1CropHint
|
11326
|
-
include Google::Apis::Core::Hashable
|
11327
|
-
|
11328
|
-
# A bounding polygon for the detected image annotation.
|
11329
|
-
# Corresponds to the JSON property `boundingPoly`
|
11330
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
11331
|
-
attr_accessor :bounding_poly
|
11332
|
-
|
11333
|
-
# Confidence of this being a salient region. Range [0, 1].
|
11334
|
-
# Corresponds to the JSON property `confidence`
|
11335
|
-
# @return [Float]
|
11336
|
-
attr_accessor :confidence
|
11337
|
-
|
11338
|
-
# Fraction of importance of this salient region with respect to the original
|
11339
|
-
# image.
|
11340
|
-
# Corresponds to the JSON property `importanceFraction`
|
11341
|
-
# @return [Float]
|
11342
|
-
attr_accessor :importance_fraction
|
11343
|
-
|
11344
|
-
def initialize(**args)
|
11345
|
-
update!(**args)
|
11346
|
-
end
|
11347
|
-
|
11348
|
-
# Update properties of this object
|
11349
|
-
def update!(**args)
|
11350
|
-
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
11351
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
11352
|
-
@importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction)
|
11353
|
-
end
|
11354
|
-
end
|
11355
|
-
|
11356
|
-
# Set of crop hints that are used to generate new crops when serving images.
|
11357
|
-
class GoogleCloudVisionV1p6beta1CropHintsAnnotation
|
11358
|
-
include Google::Apis::Core::Hashable
|
11359
|
-
|
11360
|
-
# Crop hint results.
|
11361
|
-
# Corresponds to the JSON property `cropHints`
|
11362
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1CropHint>]
|
11363
|
-
attr_accessor :crop_hints
|
11364
|
-
|
11365
|
-
def initialize(**args)
|
11366
|
-
update!(**args)
|
11367
|
-
end
|
11368
|
-
|
11369
|
-
# Update properties of this object
|
11370
|
-
def update!(**args)
|
11371
|
-
@crop_hints = args[:crop_hints] if args.key?(:crop_hints)
|
11372
|
-
end
|
11373
|
-
end
|
11374
|
-
|
11375
|
-
# Set of dominant colors and their corresponding scores.
|
11376
|
-
class GoogleCloudVisionV1p6beta1DominantColorsAnnotation
|
11377
|
-
include Google::Apis::Core::Hashable
|
11378
|
-
|
11379
|
-
# RGB color values with their score and pixel fraction.
|
11380
|
-
# Corresponds to the JSON property `colors`
|
11381
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1ColorInfo>]
|
11382
|
-
attr_accessor :colors
|
11383
|
-
|
11384
|
-
def initialize(**args)
|
11385
|
-
update!(**args)
|
11386
|
-
end
|
11387
|
-
|
11388
|
-
# Update properties of this object
|
11389
|
-
def update!(**args)
|
11390
|
-
@colors = args[:colors] if args.key?(:colors)
|
11391
|
-
end
|
11392
|
-
end
|
11393
|
-
|
11394
|
-
# Set of detected entity features.
|
11395
|
-
class GoogleCloudVisionV1p6beta1EntityAnnotation
|
11396
|
-
include Google::Apis::Core::Hashable
|
11397
|
-
|
11398
|
-
# A bounding polygon for the detected image annotation.
|
11399
|
-
# Corresponds to the JSON property `boundingPoly`
|
11400
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
11401
|
-
attr_accessor :bounding_poly
|
11402
|
-
|
11403
|
-
# **Deprecated. Use `score` instead.**
|
11404
|
-
# The accuracy of the entity detection in an image.
|
11405
|
-
# For example, for an image in which the "Eiffel Tower" entity is detected,
|
11406
|
-
# this field represents the confidence that there is a tower in the query
|
11407
|
-
# image. Range [0, 1].
|
11408
|
-
# Corresponds to the JSON property `confidence`
|
11409
|
-
# @return [Float]
|
11410
|
-
attr_accessor :confidence
|
11411
|
-
|
11412
|
-
# Entity textual description, expressed in its `locale` language.
|
11413
|
-
# Corresponds to the JSON property `description`
|
11414
|
-
# @return [String]
|
11415
|
-
attr_accessor :description
|
11416
|
-
|
11417
|
-
# The language code for the locale in which the entity textual
|
11418
|
-
# `description` is expressed.
|
11419
|
-
# Corresponds to the JSON property `locale`
|
11420
|
-
# @return [String]
|
11421
|
-
attr_accessor :locale
|
11422
|
-
|
11423
|
-
# The location information for the detected entity. Multiple
|
11424
|
-
# `LocationInfo` elements can be present because one location may
|
11425
|
-
# indicate the location of the scene in the image, and another location
|
11426
|
-
# may indicate the location of the place where the image was taken.
|
11427
|
-
# Location information is usually present for landmarks.
|
11428
|
-
# Corresponds to the JSON property `locations`
|
11429
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1LocationInfo>]
|
11430
|
-
attr_accessor :locations
|
11431
|
-
|
11432
|
-
# Opaque entity ID. Some IDs may be available in
|
11433
|
-
# [Google Knowledge Graph Search
|
11434
|
-
# API](https://developers.google.com/knowledge-graph/).
|
11435
|
-
# Corresponds to the JSON property `mid`
|
11436
|
-
# @return [String]
|
11437
|
-
attr_accessor :mid
|
11438
|
-
|
11439
|
-
# Some entities may have optional user-supplied `Property` (name/value)
|
11440
|
-
# fields, such a score or string that qualifies the entity.
|
11441
|
-
# Corresponds to the JSON property `properties`
|
11442
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1Property>]
|
11443
|
-
attr_accessor :properties
|
11444
|
-
|
11445
|
-
# Overall score of the result. Range [0, 1].
|
11446
|
-
# Corresponds to the JSON property `score`
|
11447
|
-
# @return [Float]
|
11448
|
-
attr_accessor :score
|
11449
|
-
|
11450
|
-
# The relevancy of the ICA (Image Content Annotation) label to the
|
11451
|
-
# image. For example, the relevancy of "tower" is likely higher to an image
|
11452
|
-
# containing the detected "Eiffel Tower" than to an image containing a
|
11453
|
-
# detected distant towering building, even though the confidence that
|
11454
|
-
# there is a tower in each image may be the same. Range [0, 1].
|
11455
|
-
# Corresponds to the JSON property `topicality`
|
11456
|
-
# @return [Float]
|
11457
|
-
attr_accessor :topicality
|
11458
|
-
|
11459
|
-
def initialize(**args)
|
11460
|
-
update!(**args)
|
11461
|
-
end
|
11462
|
-
|
11463
|
-
# Update properties of this object
|
11464
|
-
def update!(**args)
|
11465
|
-
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
11466
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
11467
|
-
@description = args[:description] if args.key?(:description)
|
11468
|
-
@locale = args[:locale] if args.key?(:locale)
|
11469
|
-
@locations = args[:locations] if args.key?(:locations)
|
11470
|
-
@mid = args[:mid] if args.key?(:mid)
|
11471
|
-
@properties = args[:properties] if args.key?(:properties)
|
11472
|
-
@score = args[:score] if args.key?(:score)
|
11473
|
-
@topicality = args[:topicality] if args.key?(:topicality)
|
11474
|
-
end
|
11475
|
-
end
|
11476
|
-
|
11477
|
-
# A face annotation object contains the results of face detection.
|
11478
|
-
class GoogleCloudVisionV1p6beta1FaceAnnotation
|
11479
|
-
include Google::Apis::Core::Hashable
|
11480
|
-
|
11481
|
-
# Anger likelihood.
|
11482
|
-
# Corresponds to the JSON property `angerLikelihood`
|
11483
|
-
# @return [String]
|
11484
|
-
attr_accessor :anger_likelihood
|
11485
|
-
|
11486
|
-
# Blurred likelihood.
|
11487
|
-
# Corresponds to the JSON property `blurredLikelihood`
|
11488
|
-
# @return [String]
|
11489
|
-
attr_accessor :blurred_likelihood
|
11490
|
-
|
11491
|
-
# A bounding polygon for the detected image annotation.
|
11492
|
-
# Corresponds to the JSON property `boundingPoly`
|
11493
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
11494
|
-
attr_accessor :bounding_poly
|
11495
|
-
|
11496
|
-
# Detection confidence. Range [0, 1].
|
11497
|
-
# Corresponds to the JSON property `detectionConfidence`
|
11498
|
-
# @return [Float]
|
11499
|
-
attr_accessor :detection_confidence
|
11500
|
-
|
11501
|
-
# A bounding polygon for the detected image annotation.
|
11502
|
-
# Corresponds to the JSON property `fdBoundingPoly`
|
11503
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
11504
|
-
attr_accessor :fd_bounding_poly
|
11505
|
-
|
11506
|
-
# Headwear likelihood.
|
11507
|
-
# Corresponds to the JSON property `headwearLikelihood`
|
11508
|
-
# @return [String]
|
11509
|
-
attr_accessor :headwear_likelihood
|
11510
|
-
|
11511
|
-
# Joy likelihood.
|
11512
|
-
# Corresponds to the JSON property `joyLikelihood`
|
11513
|
-
# @return [String]
|
11514
|
-
attr_accessor :joy_likelihood
|
11515
|
-
|
11516
|
-
# Face landmarking confidence. Range [0, 1].
|
11517
|
-
# Corresponds to the JSON property `landmarkingConfidence`
|
11518
|
-
# @return [Float]
|
11519
|
-
attr_accessor :landmarking_confidence
|
11520
|
-
|
11521
|
-
# Detected face landmarks.
|
11522
|
-
# Corresponds to the JSON property `landmarks`
|
11523
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1FaceAnnotationLandmark>]
|
11524
|
-
attr_accessor :landmarks
|
11525
|
-
|
11526
|
-
# Yaw angle, which indicates the leftward/rightward angle that the face is
|
11527
|
-
# pointing relative to the vertical plane perpendicular to the image. Range
|
11528
|
-
# [-180,180].
|
11529
|
-
# Corresponds to the JSON property `panAngle`
|
11530
|
-
# @return [Float]
|
11531
|
-
attr_accessor :pan_angle
|
11532
|
-
|
11533
|
-
# Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
|
11534
|
-
# of the face relative to the image vertical about the axis perpendicular to
|
11535
|
-
# the face. Range [-180,180].
|
11536
|
-
# Corresponds to the JSON property `rollAngle`
|
11537
|
-
# @return [Float]
|
11538
|
-
attr_accessor :roll_angle
|
11539
|
-
|
11540
|
-
# Sorrow likelihood.
|
11541
|
-
# Corresponds to the JSON property `sorrowLikelihood`
|
11542
|
-
# @return [String]
|
11543
|
-
attr_accessor :sorrow_likelihood
|
11544
|
-
|
11545
|
-
# Surprise likelihood.
|
11546
|
-
# Corresponds to the JSON property `surpriseLikelihood`
|
11547
|
-
# @return [String]
|
11548
|
-
attr_accessor :surprise_likelihood
|
11549
|
-
|
11550
|
-
# Pitch angle, which indicates the upwards/downwards angle that the face is
|
11551
|
-
# pointing relative to the image's horizontal plane. Range [-180,180].
|
11552
|
-
# Corresponds to the JSON property `tiltAngle`
|
11553
|
-
# @return [Float]
|
11554
|
-
attr_accessor :tilt_angle
|
11555
|
-
|
11556
|
-
# Under-exposed likelihood.
|
11557
|
-
# Corresponds to the JSON property `underExposedLikelihood`
|
11558
|
-
# @return [String]
|
11559
|
-
attr_accessor :under_exposed_likelihood
|
11560
|
-
|
11561
|
-
def initialize(**args)
|
11562
|
-
update!(**args)
|
11563
|
-
end
|
11564
|
-
|
11565
|
-
# Update properties of this object
|
11566
|
-
def update!(**args)
|
11567
|
-
@anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood)
|
11568
|
-
@blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood)
|
11569
|
-
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
11570
|
-
@detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence)
|
11571
|
-
@fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly)
|
11572
|
-
@headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood)
|
11573
|
-
@joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood)
|
11574
|
-
@landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
|
11575
|
-
@landmarks = args[:landmarks] if args.key?(:landmarks)
|
11576
|
-
@pan_angle = args[:pan_angle] if args.key?(:pan_angle)
|
11577
|
-
@roll_angle = args[:roll_angle] if args.key?(:roll_angle)
|
11578
|
-
@sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood)
|
11579
|
-
@surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
|
11580
|
-
@tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle)
|
11581
|
-
@under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood)
|
11582
|
-
end
|
11583
|
-
end
|
11584
|
-
|
11585
|
-
# A face-specific landmark (for example, a face feature).
|
11586
|
-
class GoogleCloudVisionV1p6beta1FaceAnnotationLandmark
|
11587
|
-
include Google::Apis::Core::Hashable
|
11588
|
-
|
11589
|
-
# A 3D position in the image, used primarily for Face detection landmarks.
|
11590
|
-
# A valid Position must have both x and y coordinates.
|
11591
|
-
# The position coordinates are in the same scale as the original image.
|
11592
|
-
# Corresponds to the JSON property `position`
|
11593
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1Position]
|
11594
|
-
attr_accessor :position
|
11595
|
-
|
11596
|
-
# Face landmark type.
|
11597
|
-
# Corresponds to the JSON property `type`
|
11598
|
-
# @return [String]
|
11599
|
-
attr_accessor :type
|
11600
|
-
|
11601
|
-
def initialize(**args)
|
11602
|
-
update!(**args)
|
11603
|
-
end
|
11604
|
-
|
11605
|
-
# Update properties of this object
|
11606
|
-
def update!(**args)
|
11607
|
-
@position = args[:position] if args.key?(:position)
|
11608
|
-
@type = args[:type] if args.key?(:type)
|
11609
|
-
end
|
11610
|
-
end
|
11611
|
-
|
11612
|
-
# The Google Cloud Storage location where the output will be written to.
|
11613
|
-
class GoogleCloudVisionV1p6beta1GcsDestination
|
11614
|
-
include Google::Apis::Core::Hashable
|
11615
|
-
|
11616
|
-
# Google Cloud Storage URI prefix where the results will be stored. Results
|
11617
|
-
# will be in JSON format and preceded by its corresponding input URI prefix.
|
11618
|
-
# This field can either represent a gcs file prefix or gcs directory. In
|
11619
|
-
# either case, the uri should be unique because in order to get all of the
|
11620
|
-
# output files, you will need to do a wildcard gcs search on the uri prefix
|
11621
|
-
# you provide.
|
11622
|
-
# Examples:
|
11623
|
-
# * File Prefix: gs://bucket-name/here/filenameprefix The output files
|
11624
|
-
# will be created in gs://bucket-name/here/ and the names of the
|
11625
|
-
# output files will begin with "filenameprefix".
|
11626
|
-
# * Directory Prefix: gs://bucket-name/some/location/ The output files
|
11627
|
-
# will be created in gs://bucket-name/some/location/ and the names of the
|
11628
|
-
# output files could be anything because there was no filename prefix
|
11629
|
-
# specified.
|
11630
|
-
# If multiple outputs, each response is still AnnotateFileResponse, each of
|
11631
|
-
# which contains some subset of the full list of AnnotateImageResponse.
|
11632
|
-
# Multiple outputs can happen if, for example, the output JSON is too large
|
11633
|
-
# and overflows into multiple sharded files.
|
11634
|
-
# Corresponds to the JSON property `uri`
|
11635
|
-
# @return [String]
|
11636
|
-
attr_accessor :uri
|
11637
|
-
|
11638
|
-
def initialize(**args)
|
11639
|
-
update!(**args)
|
11640
|
-
end
|
11641
|
-
|
11642
|
-
# Update properties of this object
|
11643
|
-
def update!(**args)
|
11644
|
-
@uri = args[:uri] if args.key?(:uri)
|
11645
|
-
end
|
11646
|
-
end
|
11647
|
-
|
11648
|
-
# The Google Cloud Storage location where the input will be read from.
|
11649
|
-
class GoogleCloudVisionV1p6beta1GcsSource
|
11650
|
-
include Google::Apis::Core::Hashable
|
11651
|
-
|
11652
|
-
# Google Cloud Storage URI for the input file. This must only be a
|
11653
|
-
# Google Cloud Storage object. Wildcards are not currently supported.
|
11654
|
-
# Corresponds to the JSON property `uri`
|
11655
|
-
# @return [String]
|
11656
|
-
attr_accessor :uri
|
11657
|
-
|
11658
|
-
def initialize(**args)
|
11659
|
-
update!(**args)
|
11660
|
-
end
|
11661
|
-
|
11662
|
-
# Update properties of this object
|
11663
|
-
def update!(**args)
|
11664
|
-
@uri = args[:uri] if args.key?(:uri)
|
11665
|
-
end
|
11666
|
-
end
|
11667
|
-
|
11668
|
-
# If an image was produced from a file (e.g. a PDF), this message gives
|
11669
|
-
# information about the source of that image.
|
11670
|
-
class GoogleCloudVisionV1p6beta1ImageAnnotationContext
|
11671
|
-
include Google::Apis::Core::Hashable
|
11672
|
-
|
11673
|
-
# If the file was a PDF or TIFF, this field gives the page number within
|
11674
|
-
# the file used to produce the image.
|
11675
|
-
# Corresponds to the JSON property `pageNumber`
|
11676
|
-
# @return [Fixnum]
|
11677
|
-
attr_accessor :page_number
|
11678
|
-
|
11679
|
-
# The URI of the file used to produce the image.
|
11680
|
-
# Corresponds to the JSON property `uri`
|
11681
|
-
# @return [String]
|
11682
|
-
attr_accessor :uri
|
11683
|
-
|
11684
|
-
def initialize(**args)
|
11685
|
-
update!(**args)
|
11686
|
-
end
|
11687
|
-
|
11688
|
-
# Update properties of this object
|
11689
|
-
def update!(**args)
|
11690
|
-
@page_number = args[:page_number] if args.key?(:page_number)
|
11691
|
-
@uri = args[:uri] if args.key?(:uri)
|
11692
|
-
end
|
11693
|
-
end
|
11694
|
-
|
11695
|
-
# Stores image properties, such as dominant colors.
|
11696
|
-
class GoogleCloudVisionV1p6beta1ImageProperties
|
11697
|
-
include Google::Apis::Core::Hashable
|
11698
|
-
|
11699
|
-
# Set of dominant colors and their corresponding scores.
|
11700
|
-
# Corresponds to the JSON property `dominantColors`
|
11701
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1DominantColorsAnnotation]
|
11702
|
-
attr_accessor :dominant_colors
|
11703
|
-
|
11704
|
-
def initialize(**args)
|
11705
|
-
update!(**args)
|
11706
|
-
end
|
11707
|
-
|
11708
|
-
# Update properties of this object
|
11709
|
-
def update!(**args)
|
11710
|
-
@dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
|
11711
|
-
end
|
11712
|
-
end
|
11713
|
-
|
11714
|
-
# Stores image quality scores, could be aesthetic quality or technical quality.
|
11715
|
-
class GoogleCloudVisionV1p6beta1ImageQuality
|
11716
|
-
include Google::Apis::Core::Hashable
|
11717
|
-
|
11718
|
-
def initialize(**args)
|
11719
|
-
update!(**args)
|
11720
|
-
end
|
11721
|
-
|
11722
|
-
# Update properties of this object
|
11723
|
-
def update!(**args)
|
11724
|
-
end
|
11725
|
-
end
|
11726
|
-
|
11727
|
-
# Response message for the `ImportProductSets` method.
|
11728
|
-
# This message is returned by the
|
11729
|
-
# google.longrunning.Operations.GetOperation method in the returned
|
11730
|
-
# google.longrunning.Operation.response field.
|
11731
|
-
class GoogleCloudVisionV1p6beta1ImportProductSetsResponse
|
11732
|
-
include Google::Apis::Core::Hashable
|
11733
|
-
|
11734
|
-
# The list of reference_images that are imported successfully.
|
11735
|
-
# Corresponds to the JSON property `referenceImages`
|
11736
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1ReferenceImage>]
|
11737
|
-
attr_accessor :reference_images
|
11738
|
-
|
11739
|
-
# The rpc status for each ImportProductSet request, including both successes
|
11740
|
-
# and errors.
|
11741
|
-
# The number of statuses here matches the number of lines in the csv file,
|
11742
|
-
# and statuses[i] stores the success or failure status of processing the i-th
|
11743
|
-
# line of the csv, starting from line 0.
|
11744
|
-
# Corresponds to the JSON property `statuses`
|
11745
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::Status>]
|
11746
|
-
attr_accessor :statuses
|
11747
|
-
|
11748
|
-
def initialize(**args)
|
11749
|
-
update!(**args)
|
11750
|
-
end
|
11751
|
-
|
11752
|
-
# Update properties of this object
|
11753
|
-
def update!(**args)
|
11754
|
-
@reference_images = args[:reference_images] if args.key?(:reference_images)
|
11755
|
-
@statuses = args[:statuses] if args.key?(:statuses)
|
11756
|
-
end
|
11757
|
-
end
|
11758
|
-
|
11759
|
-
# The desired input location and metadata.
|
11760
|
-
class GoogleCloudVisionV1p6beta1InputConfig
|
11761
|
-
include Google::Apis::Core::Hashable
|
11762
|
-
|
11763
|
-
# File content, represented as a stream of bytes.
|
11764
|
-
# Note: As with all `bytes` fields, protobuffers use a pure binary
|
11765
|
-
# representation, whereas JSON representations use base64.
|
11766
|
-
# Currently, this field only works for BatchAnnotateFiles requests. It does
|
11767
|
-
# not work for AsyncBatchAnnotateFiles requests.
|
11768
|
-
# Corresponds to the JSON property `content`
|
11769
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
11770
|
-
# @return [String]
|
11771
|
-
attr_accessor :content
|
11772
|
-
|
11773
|
-
# The Google Cloud Storage location where the input will be read from.
|
11774
|
-
# Corresponds to the JSON property `gcsSource`
|
11775
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1GcsSource]
|
11776
|
-
attr_accessor :gcs_source
|
11777
|
-
|
11778
|
-
# The type of the file. Currently only "application/pdf", "image/tiff" and
|
11779
|
-
# "image/gif" are supported. Wildcards are not supported.
|
11780
|
-
# Corresponds to the JSON property `mimeType`
|
11781
|
-
# @return [String]
|
11782
|
-
attr_accessor :mime_type
|
11783
|
-
|
11784
|
-
def initialize(**args)
|
11785
|
-
update!(**args)
|
11786
|
-
end
|
11787
|
-
|
11788
|
-
# Update properties of this object
|
11789
|
-
def update!(**args)
|
11790
|
-
@content = args[:content] if args.key?(:content)
|
11791
|
-
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
11792
|
-
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
11793
|
-
end
|
11794
|
-
end
|
11795
|
-
|
11796
|
-
# Set of detected objects with bounding boxes.
|
11797
|
-
class GoogleCloudVisionV1p6beta1LocalizedObjectAnnotation
|
11798
|
-
include Google::Apis::Core::Hashable
|
11799
|
-
|
11800
|
-
# A bounding polygon for the detected image annotation.
|
11801
|
-
# Corresponds to the JSON property `boundingPoly`
|
11802
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
11803
|
-
attr_accessor :bounding_poly
|
11804
|
-
|
11805
|
-
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
11806
|
-
# information, see
|
11807
|
-
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
11808
|
-
# Corresponds to the JSON property `languageCode`
|
11809
|
-
# @return [String]
|
11810
|
-
attr_accessor :language_code
|
11811
|
-
|
11812
|
-
# Object ID that should align with EntityAnnotation mid.
|
11813
|
-
# Corresponds to the JSON property `mid`
|
11814
|
-
# @return [String]
|
11815
|
-
attr_accessor :mid
|
11816
|
-
|
11817
|
-
# Object name, expressed in its `language_code` language.
|
11818
|
-
# Corresponds to the JSON property `name`
|
11819
|
-
# @return [String]
|
11820
|
-
attr_accessor :name
|
11821
|
-
|
11822
|
-
# Score of the result. Range [0, 1].
|
11823
|
-
# Corresponds to the JSON property `score`
|
11824
|
-
# @return [Float]
|
11825
|
-
attr_accessor :score
|
11826
|
-
|
11827
|
-
def initialize(**args)
|
11828
|
-
update!(**args)
|
11829
|
-
end
|
11830
|
-
|
11831
|
-
# Update properties of this object
|
11832
|
-
def update!(**args)
|
11833
|
-
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
11834
|
-
@language_code = args[:language_code] if args.key?(:language_code)
|
11835
|
-
@mid = args[:mid] if args.key?(:mid)
|
11836
|
-
@name = args[:name] if args.key?(:name)
|
11837
|
-
@score = args[:score] if args.key?(:score)
|
11838
|
-
end
|
11839
|
-
end
|
11840
|
-
|
11841
|
-
# Detected entity location information.
|
11842
|
-
class GoogleCloudVisionV1p6beta1LocationInfo
|
11843
|
-
include Google::Apis::Core::Hashable
|
11844
|
-
|
11845
|
-
# An object representing a latitude/longitude pair. This is expressed as a pair
|
11846
|
-
# of doubles representing degrees latitude and degrees longitude. Unless
|
11847
|
-
# specified otherwise, this must conform to the
|
11848
|
-
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
11849
|
-
# standard</a>. Values must be within normalized ranges.
|
11850
|
-
# Corresponds to the JSON property `latLng`
|
11851
|
-
# @return [Google::Apis::VisionV1p2beta1::LatLng]
|
11852
|
-
attr_accessor :lat_lng
|
11853
|
-
|
11854
|
-
def initialize(**args)
|
11855
|
-
update!(**args)
|
11856
|
-
end
|
11857
|
-
|
11858
|
-
# Update properties of this object
|
11859
|
-
def update!(**args)
|
11860
|
-
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
11861
|
-
end
|
11862
|
-
end
|
11863
|
-
|
11864
|
-
# A vertex represents a 2D point in the image.
|
11865
|
-
# NOTE: the normalized vertex coordinates are relative to the original image
|
11866
|
-
# and range from 0 to 1.
|
11867
|
-
class GoogleCloudVisionV1p6beta1NormalizedVertex
|
11868
|
-
include Google::Apis::Core::Hashable
|
11869
|
-
|
11870
|
-
# X coordinate.
|
11871
|
-
# Corresponds to the JSON property `x`
|
11872
|
-
# @return [Float]
|
11873
|
-
attr_accessor :x
|
11874
|
-
|
11875
|
-
# Y coordinate.
|
11876
|
-
# Corresponds to the JSON property `y`
|
11877
|
-
# @return [Float]
|
11878
|
-
attr_accessor :y
|
11879
|
-
|
11880
|
-
def initialize(**args)
|
11881
|
-
update!(**args)
|
11882
|
-
end
|
11883
|
-
|
11884
|
-
# Update properties of this object
|
11885
|
-
def update!(**args)
|
11886
|
-
@x = args[:x] if args.key?(:x)
|
11887
|
-
@y = args[:y] if args.key?(:y)
|
11888
|
-
end
|
11889
|
-
end
|
11890
|
-
|
11891
|
-
# Contains metadata for the BatchAnnotateImages operation.
|
11892
|
-
class GoogleCloudVisionV1p6beta1OperationMetadata
|
11893
|
-
include Google::Apis::Core::Hashable
|
11894
|
-
|
11895
|
-
# The time when the batch request was received.
|
11896
|
-
# Corresponds to the JSON property `createTime`
|
11897
|
-
# @return [String]
|
11898
|
-
attr_accessor :create_time
|
11899
|
-
|
11900
|
-
# Current state of the batch operation.
|
11901
|
-
# Corresponds to the JSON property `state`
|
11902
|
-
# @return [String]
|
11903
|
-
attr_accessor :state
|
11904
|
-
|
11905
|
-
# The time when the operation result was last updated.
|
11906
|
-
# Corresponds to the JSON property `updateTime`
|
11907
|
-
# @return [String]
|
11908
|
-
attr_accessor :update_time
|
11909
|
-
|
11910
|
-
def initialize(**args)
|
11911
|
-
update!(**args)
|
11912
|
-
end
|
11913
|
-
|
11914
|
-
# Update properties of this object
|
11915
|
-
def update!(**args)
|
11916
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
11917
|
-
@state = args[:state] if args.key?(:state)
|
11918
|
-
@update_time = args[:update_time] if args.key?(:update_time)
|
11919
|
-
end
|
11920
|
-
end
|
11921
|
-
|
11922
|
-
# The desired output location and metadata.
|
11923
|
-
class GoogleCloudVisionV1p6beta1OutputConfig
|
11924
|
-
include Google::Apis::Core::Hashable
|
11925
|
-
|
11926
|
-
# The max number of response protos to put into each output JSON file on
|
11927
|
-
# Google Cloud Storage.
|
11928
|
-
# The valid range is [1, 100]. If not specified, the default value is 20.
|
11929
|
-
# For example, for one pdf file with 100 pages, 100 response protos will
|
11930
|
-
# be generated. If `batch_size` = 20, then 5 json files each
|
11931
|
-
# containing 20 response protos will be written under the prefix
|
11932
|
-
# `gcs_destination`.`uri`.
|
11933
|
-
# Currently, batch_size only applies to GcsDestination, with potential future
|
11934
|
-
# support for other output configurations.
|
11935
|
-
# Corresponds to the JSON property `batchSize`
|
11936
|
-
# @return [Fixnum]
|
11937
|
-
attr_accessor :batch_size
|
11938
|
-
|
11939
|
-
# The Google Cloud Storage location where the output will be written to.
|
11940
|
-
# Corresponds to the JSON property `gcsDestination`
|
11941
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1GcsDestination]
|
11942
|
-
attr_accessor :gcs_destination
|
11943
|
-
|
11944
|
-
def initialize(**args)
|
11945
|
-
update!(**args)
|
11946
|
-
end
|
11947
|
-
|
11948
|
-
# Update properties of this object
|
11949
|
-
def update!(**args)
|
11950
|
-
@batch_size = args[:batch_size] if args.key?(:batch_size)
|
11951
|
-
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
|
11952
|
-
end
|
11953
|
-
end
|
11954
|
-
|
11955
|
-
# Detected page from OCR.
|
11956
|
-
class GoogleCloudVisionV1p6beta1Page
|
11957
|
-
include Google::Apis::Core::Hashable
|
11958
|
-
|
11959
|
-
# List of blocks of text, images etc on this page.
|
11960
|
-
# Corresponds to the JSON property `blocks`
|
11961
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1Block>]
|
11962
|
-
attr_accessor :blocks
|
11963
|
-
|
11964
|
-
# Confidence of the OCR results on the page. Range [0, 1].
|
11965
|
-
# Corresponds to the JSON property `confidence`
|
11966
|
-
# @return [Float]
|
11967
|
-
attr_accessor :confidence
|
11968
|
-
|
11969
|
-
# Page height. For PDFs the unit is points. For images (including
|
11970
|
-
# TIFFs) the unit is pixels.
|
11971
|
-
# Corresponds to the JSON property `height`
|
11972
|
-
# @return [Fixnum]
|
11973
|
-
attr_accessor :height
|
11974
|
-
|
11975
|
-
# Additional information detected on the structural component.
|
11976
|
-
# Corresponds to the JSON property `property`
|
11977
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1TextAnnotationTextProperty]
|
11978
|
-
attr_accessor :property
|
11979
|
-
|
11980
|
-
# Page width. For PDFs the unit is points. For images (including
|
11981
|
-
# TIFFs) the unit is pixels.
|
11982
|
-
# Corresponds to the JSON property `width`
|
11983
|
-
# @return [Fixnum]
|
11984
|
-
attr_accessor :width
|
11985
|
-
|
11986
|
-
def initialize(**args)
|
11987
|
-
update!(**args)
|
11988
|
-
end
|
11989
|
-
|
11990
|
-
# Update properties of this object
|
11991
|
-
def update!(**args)
|
11992
|
-
@blocks = args[:blocks] if args.key?(:blocks)
|
11993
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
11994
|
-
@height = args[:height] if args.key?(:height)
|
11995
|
-
@property = args[:property] if args.key?(:property)
|
11996
|
-
@width = args[:width] if args.key?(:width)
|
11997
|
-
end
|
11998
|
-
end
|
11999
|
-
|
12000
|
-
# Structural unit of text representing a number of words in certain order.
|
12001
|
-
class GoogleCloudVisionV1p6beta1Paragraph
|
12002
|
-
include Google::Apis::Core::Hashable
|
12003
|
-
|
12004
|
-
# A bounding polygon for the detected image annotation.
|
12005
|
-
# Corresponds to the JSON property `boundingBox`
|
12006
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
12007
|
-
attr_accessor :bounding_box
|
12008
|
-
|
12009
|
-
# Confidence of the OCR results for the paragraph. Range [0, 1].
|
12010
|
-
# Corresponds to the JSON property `confidence`
|
12011
|
-
# @return [Float]
|
12012
|
-
attr_accessor :confidence
|
12013
|
-
|
12014
|
-
# Additional information detected on the structural component.
|
12015
|
-
# Corresponds to the JSON property `property`
|
12016
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1TextAnnotationTextProperty]
|
12017
|
-
attr_accessor :property
|
12018
|
-
|
12019
|
-
# List of words in this paragraph.
|
12020
|
-
# Corresponds to the JSON property `words`
|
12021
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1Word>]
|
12022
|
-
attr_accessor :words
|
12023
|
-
|
12024
|
-
def initialize(**args)
|
12025
|
-
update!(**args)
|
12026
|
-
end
|
12027
|
-
|
12028
|
-
# Update properties of this object
|
12029
|
-
def update!(**args)
|
12030
|
-
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
12031
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
12032
|
-
@property = args[:property] if args.key?(:property)
|
12033
|
-
@words = args[:words] if args.key?(:words)
|
12034
|
-
end
|
12035
|
-
end
|
12036
|
-
|
12037
|
-
# A 3D position in the image, used primarily for Face detection landmarks.
|
12038
|
-
# A valid Position must have both x and y coordinates.
|
12039
|
-
# The position coordinates are in the same scale as the original image.
|
12040
|
-
class GoogleCloudVisionV1p6beta1Position
|
12041
|
-
include Google::Apis::Core::Hashable
|
12042
|
-
|
12043
|
-
# X coordinate.
|
12044
|
-
# Corresponds to the JSON property `x`
|
12045
|
-
# @return [Float]
|
12046
|
-
attr_accessor :x
|
12047
|
-
|
12048
|
-
# Y coordinate.
|
12049
|
-
# Corresponds to the JSON property `y`
|
12050
|
-
# @return [Float]
|
12051
|
-
attr_accessor :y
|
12052
|
-
|
12053
|
-
# Z coordinate (or depth).
|
12054
|
-
# Corresponds to the JSON property `z`
|
12055
|
-
# @return [Float]
|
12056
|
-
attr_accessor :z
|
12057
|
-
|
12058
|
-
def initialize(**args)
|
12059
|
-
update!(**args)
|
12060
|
-
end
|
12061
|
-
|
12062
|
-
# Update properties of this object
|
12063
|
-
def update!(**args)
|
12064
|
-
@x = args[:x] if args.key?(:x)
|
12065
|
-
@y = args[:y] if args.key?(:y)
|
12066
|
-
@z = args[:z] if args.key?(:z)
|
12067
|
-
end
|
12068
|
-
end
|
12069
|
-
|
12070
|
-
# A Product contains ReferenceImages.
|
12071
|
-
class GoogleCloudVisionV1p6beta1Product
|
12072
|
-
include Google::Apis::Core::Hashable
|
12073
|
-
|
12074
|
-
# User-provided metadata to be stored with this product. Must be at most 4096
|
12075
|
-
# characters long.
|
12076
|
-
# Corresponds to the JSON property `description`
|
12077
|
-
# @return [String]
|
12078
|
-
attr_accessor :description
|
12079
|
-
|
12080
|
-
# The user-provided name for this Product. Must not be empty. Must be at most
|
12081
|
-
# 4096 characters long.
|
12082
|
-
# Corresponds to the JSON property `displayName`
|
12083
|
-
# @return [String]
|
12084
|
-
attr_accessor :display_name
|
12085
|
-
|
12086
|
-
# The resource name of the product.
|
12087
|
-
# Format is:
|
12088
|
-
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
12089
|
-
# This field is ignored when creating a product.
|
12090
|
-
# Corresponds to the JSON property `name`
|
12091
|
-
# @return [String]
|
12092
|
-
attr_accessor :name
|
12093
|
-
|
12094
|
-
# The category for the product identified by the reference image. This should
|
12095
|
-
# be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
|
12096
|
-
# "homegoods", "apparel", and "toys" are still supported, but these should
|
12097
|
-
# not be used for new products.
|
12098
|
-
# This field is immutable.
|
12099
|
-
# Corresponds to the JSON property `productCategory`
|
12100
|
-
# @return [String]
|
12101
|
-
attr_accessor :product_category
|
12102
|
-
|
12103
|
-
# Key-value pairs that can be attached to a product. At query time,
|
12104
|
-
# constraints can be specified based on the product_labels.
|
12105
|
-
# Note that integer values can be provided as strings, e.g. "1199". Only
|
12106
|
-
# strings with integer values can match a range-based restriction which is
|
12107
|
-
# to be supported soon.
|
12108
|
-
# Multiple values can be assigned to the same key. One product may have up to
|
12109
|
-
# 100 product_labels.
|
12110
|
-
# Corresponds to the JSON property `productLabels`
|
12111
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1ProductKeyValue>]
|
12112
|
-
attr_accessor :product_labels
|
12113
|
-
|
12114
|
-
def initialize(**args)
|
12115
|
-
update!(**args)
|
12116
|
-
end
|
12117
|
-
|
12118
|
-
# Update properties of this object
|
12119
|
-
def update!(**args)
|
12120
|
-
@description = args[:description] if args.key?(:description)
|
12121
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
12122
|
-
@name = args[:name] if args.key?(:name)
|
12123
|
-
@product_category = args[:product_category] if args.key?(:product_category)
|
12124
|
-
@product_labels = args[:product_labels] if args.key?(:product_labels)
|
12125
|
-
end
|
12126
|
-
end
|
12127
|
-
|
12128
|
-
# A product label represented as a key-value pair.
|
12129
|
-
class GoogleCloudVisionV1p6beta1ProductKeyValue
|
12130
|
-
include Google::Apis::Core::Hashable
|
12131
|
-
|
12132
|
-
# The key of the label attached to the product. Cannot be empty and cannot
|
12133
|
-
# exceed 128 bytes.
|
12134
|
-
# Corresponds to the JSON property `key`
|
12135
|
-
# @return [String]
|
12136
|
-
attr_accessor :key
|
12137
|
-
|
12138
|
-
# The value of the label attached to the product. Cannot be empty and
|
12139
|
-
# cannot exceed 128 bytes.
|
12140
|
-
# Corresponds to the JSON property `value`
|
12141
|
-
# @return [String]
|
12142
|
-
attr_accessor :value
|
12143
|
-
|
12144
|
-
def initialize(**args)
|
12145
|
-
update!(**args)
|
12146
|
-
end
|
12147
|
-
|
12148
|
-
# Update properties of this object
|
12149
|
-
def update!(**args)
|
12150
|
-
@key = args[:key] if args.key?(:key)
|
12151
|
-
@value = args[:value] if args.key?(:value)
|
12152
|
-
end
|
12153
|
-
end
|
12154
|
-
|
12155
|
-
# Results for a product search request.
|
12156
|
-
class GoogleCloudVisionV1p6beta1ProductSearchResults
|
12157
|
-
include Google::Apis::Core::Hashable
|
12158
|
-
|
12159
|
-
# Timestamp of the index which provided these results. Products added to the
|
12160
|
-
# product set and products removed from the product set after this time are
|
12161
|
-
# not reflected in the current results.
|
12162
|
-
# Corresponds to the JSON property `indexTime`
|
12163
|
-
# @return [String]
|
12164
|
-
attr_accessor :index_time
|
12165
|
-
|
12166
|
-
# List of results grouped by products detected in the query image. Each entry
|
12167
|
-
# corresponds to one bounding polygon in the query image, and contains the
|
12168
|
-
# matching products specific to that region. There may be duplicate product
|
12169
|
-
# matches in the union of all the per-product results.
|
12170
|
-
# Corresponds to the JSON property `productGroupedResults`
|
12171
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1ProductSearchResultsGroupedResult>]
|
12172
|
-
attr_accessor :product_grouped_results
|
12173
|
-
|
12174
|
-
# List of results, one for each product match.
|
12175
|
-
# Corresponds to the JSON property `results`
|
12176
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1ProductSearchResultsResult>]
|
12177
|
-
attr_accessor :results
|
12178
|
-
|
12179
|
-
def initialize(**args)
|
12180
|
-
update!(**args)
|
12181
|
-
end
|
12182
|
-
|
12183
|
-
# Update properties of this object
|
12184
|
-
def update!(**args)
|
12185
|
-
@index_time = args[:index_time] if args.key?(:index_time)
|
12186
|
-
@product_grouped_results = args[:product_grouped_results] if args.key?(:product_grouped_results)
|
12187
|
-
@results = args[:results] if args.key?(:results)
|
12188
|
-
end
|
12189
|
-
end
|
12190
|
-
|
12191
|
-
# Information about the products similar to a single product in a query
|
12192
|
-
# image.
|
12193
|
-
class GoogleCloudVisionV1p6beta1ProductSearchResultsGroupedResult
|
12194
|
-
include Google::Apis::Core::Hashable
|
12195
|
-
|
12196
|
-
# A bounding polygon for the detected image annotation.
|
12197
|
-
# Corresponds to the JSON property `boundingPoly`
|
12198
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
12199
|
-
attr_accessor :bounding_poly
|
12200
|
-
|
12201
|
-
# List of results, one for each product match.
|
12202
|
-
# Corresponds to the JSON property `results`
|
12203
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1ProductSearchResultsResult>]
|
12204
|
-
attr_accessor :results
|
12205
|
-
|
12206
|
-
def initialize(**args)
|
12207
|
-
update!(**args)
|
12208
|
-
end
|
12209
|
-
|
12210
|
-
# Update properties of this object
|
12211
|
-
def update!(**args)
|
12212
|
-
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
12213
|
-
@results = args[:results] if args.key?(:results)
|
12214
|
-
end
|
12215
|
-
end
|
12216
|
-
|
12217
|
-
# Information about a product.
|
12218
|
-
class GoogleCloudVisionV1p6beta1ProductSearchResultsResult
|
12219
|
-
include Google::Apis::Core::Hashable
|
12220
|
-
|
12221
|
-
# The resource name of the image from the product that is the closest match
|
12222
|
-
# to the query.
|
12223
|
-
# Corresponds to the JSON property `image`
|
12224
|
-
# @return [String]
|
12225
|
-
attr_accessor :image
|
12226
|
-
|
12227
|
-
# A Product contains ReferenceImages.
|
12228
|
-
# Corresponds to the JSON property `product`
|
12229
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1Product]
|
12230
|
-
attr_accessor :product
|
12231
|
-
|
12232
|
-
# A confidence level on the match, ranging from 0 (no confidence) to
|
12233
|
-
# 1 (full confidence).
|
12234
|
-
# Corresponds to the JSON property `score`
|
12235
|
-
# @return [Float]
|
12236
|
-
attr_accessor :score
|
12237
|
-
|
12238
|
-
def initialize(**args)
|
12239
|
-
update!(**args)
|
12240
|
-
end
|
12241
|
-
|
12242
|
-
# Update properties of this object
|
12243
|
-
def update!(**args)
|
12244
|
-
@image = args[:image] if args.key?(:image)
|
12245
|
-
@product = args[:product] if args.key?(:product)
|
12246
|
-
@score = args[:score] if args.key?(:score)
|
12247
|
-
end
|
12248
|
-
end
|
12249
|
-
|
12250
|
-
# A `Property` consists of a user-supplied name/value pair.
|
12251
|
-
class GoogleCloudVisionV1p6beta1Property
|
12252
|
-
include Google::Apis::Core::Hashable
|
12253
|
-
|
12254
|
-
# Value in range [0..1]. Confidence of this property value.
|
12255
|
-
# Corresponds to the JSON property `confidence`
|
12256
|
-
# @return [Float]
|
12257
|
-
attr_accessor :confidence
|
12258
|
-
|
12259
|
-
# Opaque property value ID. Some IDs may be available in
|
12260
|
-
# [Google Knowledge Graph Search
|
12261
|
-
# API](https://developers.google.com/knowledge-graph/).
|
12262
|
-
# An example property for a blue coat would be:
|
12263
|
-
# Property `
|
12264
|
-
# name: 'color'
|
12265
|
-
# value: 'blue'
|
12266
|
-
# mid: '/m/01g5v' // For color blue
|
12267
|
-
# `
|
12268
|
-
# Corresponds to the JSON property `mid`
|
12269
|
-
# @return [String]
|
12270
|
-
attr_accessor :mid
|
12271
|
-
|
12272
|
-
# Name of the property.
|
12273
|
-
# Corresponds to the JSON property `name`
|
12274
|
-
# @return [String]
|
12275
|
-
attr_accessor :name
|
12276
|
-
|
12277
|
-
# Value of numeric properties.
|
12278
|
-
# Corresponds to the JSON property `uint64Value`
|
12279
|
-
# @return [Fixnum]
|
12280
|
-
attr_accessor :uint64_value
|
12281
|
-
|
12282
|
-
# Value of the property.
|
12283
|
-
# Corresponds to the JSON property `value`
|
12284
|
-
# @return [String]
|
12285
|
-
attr_accessor :value
|
12286
|
-
|
12287
|
-
def initialize(**args)
|
12288
|
-
update!(**args)
|
12289
|
-
end
|
12290
|
-
|
12291
|
-
# Update properties of this object
|
12292
|
-
def update!(**args)
|
12293
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
12294
|
-
@mid = args[:mid] if args.key?(:mid)
|
12295
|
-
@name = args[:name] if args.key?(:name)
|
12296
|
-
@uint64_value = args[:uint64_value] if args.key?(:uint64_value)
|
12297
|
-
@value = args[:value] if args.key?(:value)
|
12298
|
-
end
|
12299
|
-
end
|
12300
|
-
|
12301
|
-
# Stores enhanced image bytes.
|
12302
|
-
class GoogleCloudVisionV1p6beta1QualityOptimizationResult
|
12303
|
-
include Google::Apis::Core::Hashable
|
12304
|
-
|
12305
|
-
# Optimized image bytes.
|
12306
|
-
# Corresponds to the JSON property `image`
|
12307
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
12308
|
-
# @return [String]
|
12309
|
-
attr_accessor :image
|
12310
|
-
|
12311
|
-
# Mime type of the output image.
|
12312
|
-
# Corresponds to the JSON property `mimeType`
|
12313
|
-
# @return [String]
|
12314
|
-
attr_accessor :mime_type
|
12315
|
-
|
12316
|
-
# Required optimization type.
|
12317
|
-
# Corresponds to the JSON property `qualityOptimizationType`
|
12318
|
-
# @return [String]
|
12319
|
-
attr_accessor :quality_optimization_type
|
12320
|
-
|
12321
|
-
def initialize(**args)
|
12322
|
-
update!(**args)
|
12323
|
-
end
|
12324
|
-
|
12325
|
-
# Update properties of this object
|
12326
|
-
def update!(**args)
|
12327
|
-
@image = args[:image] if args.key?(:image)
|
12328
|
-
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
12329
|
-
@quality_optimization_type = args[:quality_optimization_type] if args.key?(:quality_optimization_type)
|
12330
|
-
end
|
12331
|
-
end
|
12332
|
-
|
12333
|
-
# A `ReferenceImage` represents a product image and its associated metadata,
|
12334
|
-
# such as bounding boxes.
|
12335
|
-
class GoogleCloudVisionV1p6beta1ReferenceImage
|
12336
|
-
include Google::Apis::Core::Hashable
|
12337
|
-
|
12338
|
-
# Bounding polygons around the areas of interest in the reference image.
|
12339
|
-
# Optional. If this field is empty, the system will try to detect regions of
|
12340
|
-
# interest. At most 10 bounding polygons will be used.
|
12341
|
-
# The provided shape is converted into a non-rotated rectangle. Once
|
12342
|
-
# converted, the small edge of the rectangle must be greater than or equal
|
12343
|
-
# to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5
|
12344
|
-
# is not).
|
12345
|
-
# Corresponds to the JSON property `boundingPolys`
|
12346
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1BoundingPoly>]
|
12347
|
-
attr_accessor :bounding_polys
|
12348
|
-
|
12349
|
-
# The resource name of the reference image.
|
12350
|
-
# Format is:
|
12351
|
-
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/
|
12352
|
-
# IMAGE_ID`.
|
12353
|
-
# This field is ignored when creating a reference image.
|
12354
|
-
# Corresponds to the JSON property `name`
|
12355
|
-
# @return [String]
|
12356
|
-
attr_accessor :name
|
12357
|
-
|
12358
|
-
# The Google Cloud Storage URI of the reference image.
|
12359
|
-
# The URI must start with `gs://`.
|
12360
|
-
# Required.
|
12361
|
-
# Corresponds to the JSON property `uri`
|
12362
|
-
# @return [String]
|
12363
|
-
attr_accessor :uri
|
12364
|
-
|
12365
|
-
def initialize(**args)
|
12366
|
-
update!(**args)
|
12367
|
-
end
|
12368
|
-
|
12369
|
-
# Update properties of this object
|
12370
|
-
def update!(**args)
|
12371
|
-
@bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys)
|
12372
|
-
@name = args[:name] if args.key?(:name)
|
12373
|
-
@uri = args[:uri] if args.key?(:uri)
|
12374
|
-
end
|
12375
|
-
end
|
12376
|
-
|
12377
|
-
# Set of features pertaining to the image, computed by computer vision
|
12378
|
-
# methods over safe-search verticals (for example, adult, spoof, medical,
|
12379
|
-
# violence).
|
12380
|
-
class GoogleCloudVisionV1p6beta1SafeSearchAnnotation
|
12381
|
-
include Google::Apis::Core::Hashable
|
12382
|
-
|
12383
|
-
# Represents the adult content likelihood for the image. Adult content may
|
12384
|
-
# contain elements such as nudity, pornographic images or cartoons, or
|
12385
|
-
# sexual activities.
|
12386
|
-
# Corresponds to the JSON property `adult`
|
12387
|
-
# @return [String]
|
12388
|
-
attr_accessor :adult
|
12389
|
-
|
12390
|
-
# Likelihood that this is a medical image.
|
12391
|
-
# Corresponds to the JSON property `medical`
|
12392
|
-
# @return [String]
|
12393
|
-
attr_accessor :medical
|
12394
|
-
|
12395
|
-
# Likelihood that the request image contains racy content. Racy content may
|
12396
|
-
# include (but is not limited to) skimpy or sheer clothing, strategically
|
12397
|
-
# covered nudity, lewd or provocative poses, or close-ups of sensitive
|
12398
|
-
# body areas.
|
12399
|
-
# Corresponds to the JSON property `racy`
|
12400
|
-
# @return [String]
|
12401
|
-
attr_accessor :racy
|
12402
|
-
|
12403
|
-
# Spoof likelihood. The likelihood that an modification
|
12404
|
-
# was made to the image's canonical version to make it appear
|
12405
|
-
# funny or offensive.
|
12406
|
-
# Corresponds to the JSON property `spoof`
|
12407
|
-
# @return [String]
|
12408
|
-
attr_accessor :spoof
|
12409
|
-
|
12410
|
-
# Likelihood that this image contains violent content.
|
12411
|
-
# Corresponds to the JSON property `violence`
|
12412
|
-
# @return [String]
|
12413
|
-
attr_accessor :violence
|
12414
|
-
|
12415
|
-
def initialize(**args)
|
12416
|
-
update!(**args)
|
12417
|
-
end
|
12418
|
-
|
12419
|
-
# Update properties of this object
|
12420
|
-
def update!(**args)
|
12421
|
-
@adult = args[:adult] if args.key?(:adult)
|
12422
|
-
@medical = args[:medical] if args.key?(:medical)
|
12423
|
-
@racy = args[:racy] if args.key?(:racy)
|
12424
|
-
@spoof = args[:spoof] if args.key?(:spoof)
|
12425
|
-
@violence = args[:violence] if args.key?(:violence)
|
12426
|
-
end
|
12427
|
-
end
|
12428
|
-
|
12429
|
-
# A single symbol representation.
|
12430
|
-
class GoogleCloudVisionV1p6beta1Symbol
|
12431
|
-
include Google::Apis::Core::Hashable
|
12432
|
-
|
12433
|
-
# A bounding polygon for the detected image annotation.
|
12434
|
-
# Corresponds to the JSON property `boundingBox`
|
12435
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
12436
|
-
attr_accessor :bounding_box
|
12437
|
-
|
12438
|
-
# Confidence of the OCR results for the symbol. Range [0, 1].
|
12439
|
-
# Corresponds to the JSON property `confidence`
|
12440
|
-
# @return [Float]
|
12441
|
-
attr_accessor :confidence
|
12442
|
-
|
12443
|
-
# Additional information detected on the structural component.
|
12444
|
-
# Corresponds to the JSON property `property`
|
12445
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1TextAnnotationTextProperty]
|
12446
|
-
attr_accessor :property
|
12447
|
-
|
12448
|
-
# The actual UTF-8 representation of the symbol.
|
12449
|
-
# Corresponds to the JSON property `text`
|
12450
|
-
# @return [String]
|
12451
|
-
attr_accessor :text
|
12452
|
-
|
12453
|
-
def initialize(**args)
|
12454
|
-
update!(**args)
|
12455
|
-
end
|
12456
|
-
|
12457
|
-
# Update properties of this object
|
12458
|
-
def update!(**args)
|
12459
|
-
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
12460
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
12461
|
-
@property = args[:property] if args.key?(:property)
|
12462
|
-
@text = args[:text] if args.key?(:text)
|
12463
|
-
end
|
12464
|
-
end
|
12465
|
-
|
12466
|
-
# TextAnnotation contains a structured representation of OCR extracted text.
|
12467
|
-
# The hierarchy of an OCR extracted text structure is like this:
|
12468
|
-
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
12469
|
-
# Each structural component, starting from Page, may further have their own
|
12470
|
-
# properties. Properties describe detected languages, breaks etc.. Please refer
|
12471
|
-
# to the TextAnnotation.TextProperty message definition below for more
|
12472
|
-
# detail.
|
12473
|
-
class GoogleCloudVisionV1p6beta1TextAnnotation
|
12474
|
-
include Google::Apis::Core::Hashable
|
12475
|
-
|
12476
|
-
# List of pages detected by OCR.
|
12477
|
-
# Corresponds to the JSON property `pages`
|
12478
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1Page>]
|
12479
|
-
attr_accessor :pages
|
12480
|
-
|
12481
|
-
# UTF-8 text detected on the pages.
|
12482
|
-
# Corresponds to the JSON property `text`
|
12483
|
-
# @return [String]
|
12484
|
-
attr_accessor :text
|
12485
|
-
|
12486
|
-
def initialize(**args)
|
12487
|
-
update!(**args)
|
12488
|
-
end
|
12489
|
-
|
12490
|
-
# Update properties of this object
|
12491
|
-
def update!(**args)
|
12492
|
-
@pages = args[:pages] if args.key?(:pages)
|
12493
|
-
@text = args[:text] if args.key?(:text)
|
12494
|
-
end
|
12495
|
-
end
|
12496
|
-
|
12497
|
-
# Detected start or end of a structural component.
|
12498
|
-
class GoogleCloudVisionV1p6beta1TextAnnotationDetectedBreak
|
12499
|
-
include Google::Apis::Core::Hashable
|
12500
|
-
|
12501
|
-
# True if break prepends the element.
|
12502
|
-
# Corresponds to the JSON property `isPrefix`
|
12503
|
-
# @return [Boolean]
|
12504
|
-
attr_accessor :is_prefix
|
12505
|
-
alias_method :is_prefix?, :is_prefix
|
12506
|
-
|
12507
|
-
# Detected break type.
|
12508
|
-
# Corresponds to the JSON property `type`
|
12509
|
-
# @return [String]
|
12510
|
-
attr_accessor :type
|
12511
|
-
|
12512
|
-
def initialize(**args)
|
12513
|
-
update!(**args)
|
12514
|
-
end
|
12515
|
-
|
12516
|
-
# Update properties of this object
|
12517
|
-
def update!(**args)
|
12518
|
-
@is_prefix = args[:is_prefix] if args.key?(:is_prefix)
|
12519
|
-
@type = args[:type] if args.key?(:type)
|
12520
|
-
end
|
12521
|
-
end
|
12522
|
-
|
12523
|
-
# Detected language for a structural component.
|
12524
|
-
class GoogleCloudVisionV1p6beta1TextAnnotationDetectedLanguage
|
12525
|
-
include Google::Apis::Core::Hashable
|
12526
|
-
|
12527
|
-
# Confidence of detected language. Range [0, 1].
|
12528
|
-
# Corresponds to the JSON property `confidence`
|
12529
|
-
# @return [Float]
|
12530
|
-
attr_accessor :confidence
|
12531
|
-
|
12532
|
-
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
12533
|
-
# information, see
|
12534
|
-
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
12535
|
-
# Corresponds to the JSON property `languageCode`
|
12536
|
-
# @return [String]
|
12537
|
-
attr_accessor :language_code
|
12538
|
-
|
12539
|
-
def initialize(**args)
|
12540
|
-
update!(**args)
|
12541
|
-
end
|
12542
|
-
|
12543
|
-
# Update properties of this object
|
12544
|
-
def update!(**args)
|
12545
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
12546
|
-
@language_code = args[:language_code] if args.key?(:language_code)
|
12547
|
-
end
|
12548
|
-
end
|
12549
|
-
|
12550
|
-
# Additional information detected on the structural component.
|
12551
|
-
class GoogleCloudVisionV1p6beta1TextAnnotationTextProperty
|
12552
|
-
include Google::Apis::Core::Hashable
|
12553
|
-
|
12554
|
-
# Detected start or end of a structural component.
|
12555
|
-
# Corresponds to the JSON property `detectedBreak`
|
12556
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1TextAnnotationDetectedBreak]
|
12557
|
-
attr_accessor :detected_break
|
12558
|
-
|
12559
|
-
# A list of detected languages together with confidence.
|
12560
|
-
# Corresponds to the JSON property `detectedLanguages`
|
12561
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1TextAnnotationDetectedLanguage>]
|
12562
|
-
attr_accessor :detected_languages
|
12563
|
-
|
12564
|
-
def initialize(**args)
|
12565
|
-
update!(**args)
|
12566
|
-
end
|
12567
|
-
|
12568
|
-
# Update properties of this object
|
12569
|
-
def update!(**args)
|
12570
|
-
@detected_break = args[:detected_break] if args.key?(:detected_break)
|
12571
|
-
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
12572
|
-
end
|
12573
|
-
end
|
12574
|
-
|
12575
|
-
# A vertex represents a 2D point in the image.
|
12576
|
-
# NOTE: the vertex coordinates are in the same scale as the original image.
|
12577
|
-
class GoogleCloudVisionV1p6beta1Vertex
|
12578
|
-
include Google::Apis::Core::Hashable
|
12579
|
-
|
12580
|
-
# X coordinate.
|
12581
|
-
# Corresponds to the JSON property `x`
|
12582
|
-
# @return [Fixnum]
|
12583
|
-
attr_accessor :x
|
12584
|
-
|
12585
|
-
# Y coordinate.
|
12586
|
-
# Corresponds to the JSON property `y`
|
12587
|
-
# @return [Fixnum]
|
12588
|
-
attr_accessor :y
|
12589
|
-
|
12590
|
-
def initialize(**args)
|
12591
|
-
update!(**args)
|
12592
|
-
end
|
12593
|
-
|
12594
|
-
# Update properties of this object
|
12595
|
-
def update!(**args)
|
12596
|
-
@x = args[:x] if args.key?(:x)
|
12597
|
-
@y = args[:y] if args.key?(:y)
|
12598
|
-
end
|
12599
|
-
end
|
12600
|
-
|
12601
|
-
# Relevant information for the image from the Internet.
|
12602
|
-
class GoogleCloudVisionV1p6beta1WebDetection
|
12603
|
-
include Google::Apis::Core::Hashable
|
12604
|
-
|
12605
|
-
# The service's best guess as to the topic of the request image.
|
12606
|
-
# Inferred from similar images on the open web.
|
12607
|
-
# Corresponds to the JSON property `bestGuessLabels`
|
12608
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1WebDetectionWebLabel>]
|
12609
|
-
attr_accessor :best_guess_labels
|
12610
|
-
|
12611
|
-
# Fully matching images from the Internet.
|
12612
|
-
# Can include resized copies of the query image.
|
12613
|
-
# Corresponds to the JSON property `fullMatchingImages`
|
12614
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1WebDetectionWebImage>]
|
12615
|
-
attr_accessor :full_matching_images
|
12616
|
-
|
12617
|
-
# Web pages containing the matching images from the Internet.
|
12618
|
-
# Corresponds to the JSON property `pagesWithMatchingImages`
|
12619
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1WebDetectionWebPage>]
|
12620
|
-
attr_accessor :pages_with_matching_images
|
12621
|
-
|
12622
|
-
# Partial matching images from the Internet.
|
12623
|
-
# Those images are similar enough to share some key-point features. For
|
12624
|
-
# example an original image will likely have partial matching for its crops.
|
12625
|
-
# Corresponds to the JSON property `partialMatchingImages`
|
12626
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1WebDetectionWebImage>]
|
12627
|
-
attr_accessor :partial_matching_images
|
12628
|
-
|
12629
|
-
# The visually similar image results.
|
12630
|
-
# Corresponds to the JSON property `visuallySimilarImages`
|
12631
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1WebDetectionWebImage>]
|
12632
|
-
attr_accessor :visually_similar_images
|
12633
|
-
|
12634
|
-
# Deduced entities from similar images on the Internet.
|
12635
|
-
# Corresponds to the JSON property `webEntities`
|
12636
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1WebDetectionWebEntity>]
|
12637
|
-
attr_accessor :web_entities
|
12638
|
-
|
12639
|
-
def initialize(**args)
|
12640
|
-
update!(**args)
|
12641
|
-
end
|
12642
|
-
|
12643
|
-
# Update properties of this object
|
12644
|
-
def update!(**args)
|
12645
|
-
@best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
|
12646
|
-
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
12647
|
-
@pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
|
12648
|
-
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
12649
|
-
@visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
|
12650
|
-
@web_entities = args[:web_entities] if args.key?(:web_entities)
|
12651
|
-
end
|
12652
|
-
end
|
12653
|
-
|
12654
|
-
# Entity deduced from similar images on the Internet.
|
12655
|
-
class GoogleCloudVisionV1p6beta1WebDetectionWebEntity
|
12656
|
-
include Google::Apis::Core::Hashable
|
12657
|
-
|
12658
|
-
# Canonical description of the entity, in English.
|
12659
|
-
# Corresponds to the JSON property `description`
|
12660
|
-
# @return [String]
|
12661
|
-
attr_accessor :description
|
12662
|
-
|
12663
|
-
# Opaque entity ID.
|
12664
|
-
# Corresponds to the JSON property `entityId`
|
12665
|
-
# @return [String]
|
12666
|
-
attr_accessor :entity_id
|
12667
|
-
|
12668
|
-
# Overall relevancy score for the entity.
|
12669
|
-
# Not normalized and not comparable across different image queries.
|
12670
|
-
# Corresponds to the JSON property `score`
|
12671
|
-
# @return [Float]
|
12672
|
-
attr_accessor :score
|
12673
|
-
|
12674
|
-
def initialize(**args)
|
12675
|
-
update!(**args)
|
12676
|
-
end
|
12677
|
-
|
12678
|
-
# Update properties of this object
|
12679
|
-
def update!(**args)
|
12680
|
-
@description = args[:description] if args.key?(:description)
|
12681
|
-
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
12682
|
-
@score = args[:score] if args.key?(:score)
|
12683
|
-
end
|
12684
|
-
end
|
12685
|
-
|
12686
|
-
# Metadata for online images.
|
12687
|
-
class GoogleCloudVisionV1p6beta1WebDetectionWebImage
|
12688
|
-
include Google::Apis::Core::Hashable
|
12689
|
-
|
12690
|
-
# (Deprecated) Overall relevancy score for the image.
|
12691
|
-
# Corresponds to the JSON property `score`
|
12692
|
-
# @return [Float]
|
12693
|
-
attr_accessor :score
|
12694
|
-
|
12695
|
-
# The result image URL.
|
12696
|
-
# Corresponds to the JSON property `url`
|
12697
|
-
# @return [String]
|
12698
|
-
attr_accessor :url
|
12699
|
-
|
12700
|
-
def initialize(**args)
|
12701
|
-
update!(**args)
|
12702
|
-
end
|
12703
|
-
|
12704
|
-
# Update properties of this object
|
12705
|
-
def update!(**args)
|
12706
|
-
@score = args[:score] if args.key?(:score)
|
12707
|
-
@url = args[:url] if args.key?(:url)
|
12708
|
-
end
|
12709
|
-
end
|
12710
|
-
|
12711
|
-
# Label to provide extra metadata for the web detection.
|
12712
|
-
class GoogleCloudVisionV1p6beta1WebDetectionWebLabel
|
12713
|
-
include Google::Apis::Core::Hashable
|
12714
|
-
|
12715
|
-
# Label for extra metadata.
|
12716
|
-
# Corresponds to the JSON property `label`
|
12717
|
-
# @return [String]
|
12718
|
-
attr_accessor :label
|
12719
|
-
|
12720
|
-
# The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
|
12721
|
-
# For more information, see
|
12722
|
-
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
12723
|
-
# Corresponds to the JSON property `languageCode`
|
12724
|
-
# @return [String]
|
12725
|
-
attr_accessor :language_code
|
12726
|
-
|
12727
|
-
def initialize(**args)
|
12728
|
-
update!(**args)
|
12729
|
-
end
|
12730
|
-
|
12731
|
-
# Update properties of this object
|
12732
|
-
def update!(**args)
|
12733
|
-
@label = args[:label] if args.key?(:label)
|
12734
|
-
@language_code = args[:language_code] if args.key?(:language_code)
|
12735
|
-
end
|
12736
|
-
end
|
12737
|
-
|
12738
|
-
# Metadata for web pages.
|
12739
|
-
class GoogleCloudVisionV1p6beta1WebDetectionWebPage
|
12740
|
-
include Google::Apis::Core::Hashable
|
12741
|
-
|
12742
|
-
# Fully matching images on the page.
|
12743
|
-
# Can include resized copies of the query image.
|
12744
|
-
# Corresponds to the JSON property `fullMatchingImages`
|
12745
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1WebDetectionWebImage>]
|
12746
|
-
attr_accessor :full_matching_images
|
12747
|
-
|
12748
|
-
# Title for the web page, may contain HTML markups.
|
12749
|
-
# Corresponds to the JSON property `pageTitle`
|
12750
|
-
# @return [String]
|
12751
|
-
attr_accessor :page_title
|
12752
|
-
|
12753
|
-
# Partial matching images on the page.
|
12754
|
-
# Those images are similar enough to share some key-point features. For
|
12755
|
-
# example an original image will likely have partial matching for its
|
12756
|
-
# crops.
|
12757
|
-
# Corresponds to the JSON property `partialMatchingImages`
|
12758
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1WebDetectionWebImage>]
|
12759
|
-
attr_accessor :partial_matching_images
|
12760
|
-
|
12761
|
-
# (Deprecated) Overall relevancy score for the web page.
|
12762
|
-
# Corresponds to the JSON property `score`
|
12763
|
-
# @return [Float]
|
12764
|
-
attr_accessor :score
|
12765
|
-
|
12766
|
-
# The result web page URL.
|
12767
|
-
# Corresponds to the JSON property `url`
|
12768
|
-
# @return [String]
|
12769
|
-
attr_accessor :url
|
12770
|
-
|
12771
|
-
def initialize(**args)
|
12772
|
-
update!(**args)
|
12773
|
-
end
|
12774
|
-
|
12775
|
-
# Update properties of this object
|
12776
|
-
def update!(**args)
|
12777
|
-
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
12778
|
-
@page_title = args[:page_title] if args.key?(:page_title)
|
12779
|
-
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
12780
|
-
@score = args[:score] if args.key?(:score)
|
12781
|
-
@url = args[:url] if args.key?(:url)
|
12782
|
-
end
|
12783
|
-
end
|
12784
|
-
|
12785
|
-
# A word representation.
|
12786
|
-
class GoogleCloudVisionV1p6beta1Word
|
12787
|
-
include Google::Apis::Core::Hashable
|
12788
|
-
|
12789
|
-
# A bounding polygon for the detected image annotation.
|
12790
|
-
# Corresponds to the JSON property `boundingBox`
|
12791
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
12792
|
-
attr_accessor :bounding_box
|
12793
|
-
|
12794
|
-
# Confidence of the OCR results for the word. Range [0, 1].
|
12795
|
-
# Corresponds to the JSON property `confidence`
|
12796
|
-
# @return [Float]
|
12797
|
-
attr_accessor :confidence
|
12798
|
-
|
12799
|
-
# Additional information detected on the structural component.
|
12800
|
-
# Corresponds to the JSON property `property`
|
12801
|
-
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1TextAnnotationTextProperty]
|
12802
|
-
attr_accessor :property
|
12803
|
-
|
12804
|
-
# List of symbols in the word.
|
12805
|
-
# The order of the symbols follows the natural reading order.
|
12806
|
-
# Corresponds to the JSON property `symbols`
|
12807
|
-
# @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p6beta1Symbol>]
|
12808
|
-
attr_accessor :symbols
|
12809
|
-
|
12810
|
-
def initialize(**args)
|
12811
|
-
update!(**args)
|
12812
|
-
end
|
12813
|
-
|
12814
|
-
# Update properties of this object
|
12815
|
-
def update!(**args)
|
12816
|
-
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
12817
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
12818
|
-
@property = args[:property] if args.key?(:property)
|
12819
|
-
@symbols = args[:symbols] if args.key?(:symbols)
|
12820
|
-
end
|
12821
|
-
end
|
12822
|
-
|
12823
10905
|
# Information about the products similar to a single product in a query
|
12824
10906
|
# image.
|
12825
10907
|
class GroupedResult
|
@@ -13331,7 +11413,7 @@ module Google
|
|
13331
11413
|
# @return [Google::Apis::VisionV1p2beta1::TextProperty]
|
13332
11414
|
attr_accessor :property
|
13333
11415
|
|
13334
|
-
# List of words in this paragraph.
|
11416
|
+
# List of all words in this paragraph.
|
13335
11417
|
# Corresponds to the JSON property `words`
|
13336
11418
|
# @return [Array<Google::Apis::VisionV1p2beta1::Word>]
|
13337
11419
|
attr_accessor :words
|
@@ -13421,7 +11503,10 @@ module Google
|
|
13421
11503
|
# strings with integer values can match a range-based restriction which is
|
13422
11504
|
# to be supported soon.
|
13423
11505
|
# Multiple values can be assigned to the same key. One product may have up to
|
13424
|
-
#
|
11506
|
+
# 500 product_labels.
|
11507
|
+
# Notice that the total number of distinct product_labels over all products
|
11508
|
+
# in one ProductSet cannot exceed 1M, otherwise the product search pipeline
|
11509
|
+
# will refuse to work for that ProductSet.
|
13425
11510
|
# Corresponds to the JSON property `productLabels`
|
13426
11511
|
# @return [Array<Google::Apis::VisionV1p2beta1::KeyValue>]
|
13427
11512
|
attr_accessor :product_labels
|