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 VisionV1
|
29
29
|
VERSION = 'V1'
|
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'
|
@@ -99,7 +99,8 @@ module Google
|
|
99
99
|
# @return [Google::Apis::VisionV1::InputConfig]
|
100
100
|
attr_accessor :input_config
|
101
101
|
|
102
|
-
# Individual responses to images found within the file.
|
102
|
+
# Individual responses to images found within the file. This field will be
|
103
|
+
# empty if the `error` field is set.
|
103
104
|
# Corresponds to the JSON property `responses`
|
104
105
|
# @return [Array<Google::Apis::VisionV1::AnnotateImageResponse>]
|
105
106
|
attr_accessor :responses
|
@@ -1339,7 +1340,8 @@ module Google
|
|
1339
1340
|
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1InputConfig]
|
1340
1341
|
attr_accessor :input_config
|
1341
1342
|
|
1342
|
-
# Individual responses to images found within the file.
|
1343
|
+
# Individual responses to images found within the file. This field will be
|
1344
|
+
# empty if the `error` field is set.
|
1343
1345
|
# Corresponds to the JSON property `responses`
|
1344
1346
|
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1AnnotateImageResponse>]
|
1345
1347
|
attr_accessor :responses
|
@@ -2365,7 +2367,7 @@ module Google
|
|
2365
2367
|
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1TextAnnotationTextProperty]
|
2366
2368
|
attr_accessor :property
|
2367
2369
|
|
2368
|
-
# List of words in this paragraph.
|
2370
|
+
# List of all words in this paragraph.
|
2369
2371
|
# Corresponds to the JSON property `words`
|
2370
2372
|
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1Word>]
|
2371
2373
|
attr_accessor :words
|
@@ -2455,7 +2457,10 @@ module Google
|
|
2455
2457
|
# strings with integer values can match a range-based restriction which is
|
2456
2458
|
# to be supported soon.
|
2457
2459
|
# Multiple values can be assigned to the same key. One product may have up to
|
2458
|
-
#
|
2460
|
+
# 500 product_labels.
|
2461
|
+
# Notice that the total number of distinct product_labels over all products
|
2462
|
+
# in one ProductSet cannot exceed 1M, otherwise the product search pipeline
|
2463
|
+
# will refuse to work for that ProductSet.
|
2459
2464
|
# Corresponds to the JSON property `productLabels`
|
2460
2465
|
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1ProductKeyValue>]
|
2461
2466
|
attr_accessor :product_labels
|
@@ -3083,7 +3088,8 @@ module Google
|
|
3083
3088
|
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1InputConfig]
|
3084
3089
|
attr_accessor :input_config
|
3085
3090
|
|
3086
|
-
# Individual responses to images found within the file.
|
3091
|
+
# Individual responses to images found within the file. This field will be
|
3092
|
+
# empty if the `error` field is set.
|
3087
3093
|
# Corresponds to the JSON property `responses`
|
3088
3094
|
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1AnnotateImageResponse>]
|
3089
3095
|
attr_accessor :responses
|
@@ -4109,7 +4115,7 @@ module Google
|
|
4109
4115
|
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1TextAnnotationTextProperty]
|
4110
4116
|
attr_accessor :property
|
4111
4117
|
|
4112
|
-
# List of words in this paragraph.
|
4118
|
+
# List of all words in this paragraph.
|
4113
4119
|
# Corresponds to the JSON property `words`
|
4114
4120
|
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1Word>]
|
4115
4121
|
attr_accessor :words
|
@@ -4199,7 +4205,10 @@ module Google
|
|
4199
4205
|
# strings with integer values can match a range-based restriction which is
|
4200
4206
|
# to be supported soon.
|
4201
4207
|
# Multiple values can be assigned to the same key. One product may have up to
|
4202
|
-
#
|
4208
|
+
# 500 product_labels.
|
4209
|
+
# Notice that the total number of distinct product_labels over all products
|
4210
|
+
# in one ProductSet cannot exceed 1M, otherwise the product search pipeline
|
4211
|
+
# will refuse to work for that ProductSet.
|
4203
4212
|
# Corresponds to the JSON property `productLabels`
|
4204
4213
|
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ProductKeyValue>]
|
4205
4214
|
attr_accessor :product_labels
|
@@ -4827,7 +4836,8 @@ module Google
|
|
4827
4836
|
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1InputConfig]
|
4828
4837
|
attr_accessor :input_config
|
4829
4838
|
|
4830
|
-
# Individual responses to images found within the file.
|
4839
|
+
# Individual responses to images found within the file. This field will be
|
4840
|
+
# empty if the `error` field is set.
|
4831
4841
|
# Corresponds to the JSON property `responses`
|
4832
4842
|
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1AnnotateImageResponse>]
|
4833
4843
|
attr_accessor :responses
|
@@ -5919,7 +5929,7 @@ module Google
|
|
5919
5929
|
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1TextAnnotationTextProperty]
|
5920
5930
|
attr_accessor :property
|
5921
5931
|
|
5922
|
-
# List of words in this paragraph.
|
5932
|
+
# List of all words in this paragraph.
|
5923
5933
|
# Corresponds to the JSON property `words`
|
5924
5934
|
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1Word>]
|
5925
5935
|
attr_accessor :words
|
@@ -6009,7 +6019,10 @@ module Google
|
|
6009
6019
|
# strings with integer values can match a range-based restriction which is
|
6010
6020
|
# to be supported soon.
|
6011
6021
|
# Multiple values can be assigned to the same key. One product may have up to
|
6012
|
-
#
|
6022
|
+
# 500 product_labels.
|
6023
|
+
# Notice that the total number of distinct product_labels over all products
|
6024
|
+
# in one ProductSet cannot exceed 1M, otherwise the product search pipeline
|
6025
|
+
# will refuse to work for that ProductSet.
|
6013
6026
|
# Corresponds to the JSON property `productLabels`
|
6014
6027
|
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p3beta1ProductKeyValue>]
|
6015
6028
|
attr_accessor :product_labels
|
@@ -6681,7 +6694,8 @@ module Google
|
|
6681
6694
|
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1InputConfig]
|
6682
6695
|
attr_accessor :input_config
|
6683
6696
|
|
6684
|
-
# Individual responses to images found within the file.
|
6697
|
+
# Individual responses to images found within the file. This field will be
|
6698
|
+
# empty if the `error` field is set.
|
6685
6699
|
# Corresponds to the JSON property `responses`
|
6686
6700
|
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1AnnotateImageResponse>]
|
6687
6701
|
attr_accessor :responses
|
@@ -6749,6 +6763,11 @@ module Google
|
|
6749
6763
|
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ImageProperties]
|
6750
6764
|
attr_accessor :image_properties_annotation
|
6751
6765
|
|
6766
|
+
# Stores image quality scores, could be aesthetic quality or technical quality.
|
6767
|
+
# Corresponds to the JSON property `imageQualityAnnotation`
|
6768
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ImageQuality]
|
6769
|
+
attr_accessor :image_quality_annotation
|
6770
|
+
|
6752
6771
|
# If present, label detection has completed successfully.
|
6753
6772
|
# Corresponds to the JSON property `labelAnnotations`
|
6754
6773
|
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation>]
|
@@ -6775,6 +6794,11 @@ module Google
|
|
6775
6794
|
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResults]
|
6776
6795
|
attr_accessor :product_search_results
|
6777
6796
|
|
6797
|
+
# Stores enhanced image bytes.
|
6798
|
+
# Corresponds to the JSON property `qualityOptimizationResult`
|
6799
|
+
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1QualityOptimizationResult]
|
6800
|
+
attr_accessor :quality_optimization_result
|
6801
|
+
|
6778
6802
|
# Set of features pertaining to the image, computed by computer vision
|
6779
6803
|
# methods over safe-search verticals (for example, adult, spoof, medical,
|
6780
6804
|
# violence).
|
@@ -6804,11 +6828,13 @@ module Google
|
|
6804
6828
|
@face_annotations = args[:face_annotations] if args.key?(:face_annotations)
|
6805
6829
|
@full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
|
6806
6830
|
@image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
|
6831
|
+
@image_quality_annotation = args[:image_quality_annotation] if args.key?(:image_quality_annotation)
|
6807
6832
|
@label_annotations = args[:label_annotations] if args.key?(:label_annotations)
|
6808
6833
|
@landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
|
6809
6834
|
@localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
|
6810
6835
|
@logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
|
6811
6836
|
@product_search_results = args[:product_search_results] if args.key?(:product_search_results)
|
6837
|
+
@quality_optimization_result = args[:quality_optimization_result] if args.key?(:quality_optimization_result)
|
6812
6838
|
@safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
|
6813
6839
|
@text_annotations = args[:text_annotations] if args.key?(:text_annotations)
|
6814
6840
|
@web_detection = args[:web_detection] if args.key?(:web_detection)
|
@@ -7520,6 +7546,19 @@ module Google
|
|
7520
7546
|
end
|
7521
7547
|
end
|
7522
7548
|
|
7549
|
+
# Stores image quality scores, could be aesthetic quality or technical quality.
|
7550
|
+
class GoogleCloudVisionV1p4beta1ImageQuality
|
7551
|
+
include Google::Apis::Core::Hashable
|
7552
|
+
|
7553
|
+
def initialize(**args)
|
7554
|
+
update!(**args)
|
7555
|
+
end
|
7556
|
+
|
7557
|
+
# Update properties of this object
|
7558
|
+
def update!(**args)
|
7559
|
+
end
|
7560
|
+
end
|
7561
|
+
|
7523
7562
|
# Response message for the `ImportProductSets` method.
|
7524
7563
|
# This message is returned by the
|
7525
7564
|
# google.longrunning.Operations.GetOperation method in the returned
|
@@ -7812,7 +7851,7 @@ module Google
|
|
7812
7851
|
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1TextAnnotationTextProperty]
|
7813
7852
|
attr_accessor :property
|
7814
7853
|
|
7815
|
-
# List of words in this paragraph.
|
7854
|
+
# List of all words in this paragraph.
|
7816
7855
|
# Corresponds to the JSON property `words`
|
7817
7856
|
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Word>]
|
7818
7857
|
attr_accessor :words
|
@@ -7902,7 +7941,10 @@ module Google
|
|
7902
7941
|
# strings with integer values can match a range-based restriction which is
|
7903
7942
|
# to be supported soon.
|
7904
7943
|
# Multiple values can be assigned to the same key. One product may have up to
|
7905
|
-
#
|
7944
|
+
# 500 product_labels.
|
7945
|
+
# Notice that the total number of distinct product_labels over all products
|
7946
|
+
# in one ProductSet cannot exceed 1M, otherwise the product search pipeline
|
7947
|
+
# will refuse to work for that ProductSet.
|
7906
7948
|
# Corresponds to the JSON property `productLabels`
|
7907
7949
|
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductKeyValue>]
|
7908
7950
|
attr_accessor :product_labels
|
@@ -8074,6 +8116,38 @@ module Google
|
|
8074
8116
|
end
|
8075
8117
|
end
|
8076
8118
|
|
8119
|
+
# Stores enhanced image bytes.
|
8120
|
+
class GoogleCloudVisionV1p4beta1QualityOptimizationResult
|
8121
|
+
include Google::Apis::Core::Hashable
|
8122
|
+
|
8123
|
+
# Optimized image bytes.
|
8124
|
+
# Corresponds to the JSON property `image`
|
8125
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
8126
|
+
# @return [String]
|
8127
|
+
attr_accessor :image
|
8128
|
+
|
8129
|
+
# Mime type of the output image.
|
8130
|
+
# Corresponds to the JSON property `mimeType`
|
8131
|
+
# @return [String]
|
8132
|
+
attr_accessor :mime_type
|
8133
|
+
|
8134
|
+
# Required optimization type.
|
8135
|
+
# Corresponds to the JSON property `qualityOptimizationType`
|
8136
|
+
# @return [String]
|
8137
|
+
attr_accessor :quality_optimization_type
|
8138
|
+
|
8139
|
+
def initialize(**args)
|
8140
|
+
update!(**args)
|
8141
|
+
end
|
8142
|
+
|
8143
|
+
# Update properties of this object
|
8144
|
+
def update!(**args)
|
8145
|
+
@image = args[:image] if args.key?(:image)
|
8146
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
8147
|
+
@quality_optimization_type = args[:quality_optimization_type] if args.key?(:quality_optimization_type)
|
8148
|
+
end
|
8149
|
+
end
|
8150
|
+
|
8077
8151
|
# A `ReferenceImage` represents a product image and its associated metadata,
|
8078
8152
|
# such as bounding boxes.
|
8079
8153
|
class GoogleCloudVisionV1p4beta1ReferenceImage
|
@@ -8574,7 +8648,8 @@ module Google
|
|
8574
8648
|
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1InputConfig]
|
8575
8649
|
attr_accessor :input_config
|
8576
8650
|
|
8577
|
-
# Individual responses to images found within the file.
|
8651
|
+
# Individual responses to images found within the file. This field will be
|
8652
|
+
# empty if the `error` field is set.
|
8578
8653
|
# Corresponds to the JSON property `responses`
|
8579
8654
|
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1AnnotateImageResponse>]
|
8580
8655
|
attr_accessor :responses
|
@@ -9781,8 +9856,7 @@ module Google
|
|
9781
9856
|
attr_accessor :confidence
|
9782
9857
|
|
9783
9858
|
# All UTF-8 text detected in this paragraph. This field is by default not
|
9784
|
-
# returned unless specified in
|
9785
|
-
# TextDetectionParams.paragraph_filter.
|
9859
|
+
# returned unless specified in TextDetectionParams.paragraph_filter.
|
9786
9860
|
# Corresponds to the JSON property `mergedText`
|
9787
9861
|
# @return [String]
|
9788
9862
|
attr_accessor :merged_text
|
@@ -9792,7 +9866,7 @@ module Google
|
|
9792
9866
|
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1TextAnnotationTextProperty]
|
9793
9867
|
attr_accessor :property
|
9794
9868
|
|
9795
|
-
# List of words in this paragraph.
|
9869
|
+
# List of all words in this paragraph.
|
9796
9870
|
# Corresponds to the JSON property `words`
|
9797
9871
|
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1Word>]
|
9798
9872
|
attr_accessor :words
|
@@ -9883,7 +9957,10 @@ module Google
|
|
9883
9957
|
# strings with integer values can match a range-based restriction which is
|
9884
9958
|
# to be supported soon.
|
9885
9959
|
# Multiple values can be assigned to the same key. One product may have up to
|
9886
|
-
#
|
9960
|
+
# 500 product_labels.
|
9961
|
+
# Notice that the total number of distinct product_labels over all products
|
9962
|
+
# in one ProductSet cannot exceed 1M, otherwise the product search pipeline
|
9963
|
+
# will refuse to work for that ProductSet.
|
9887
9964
|
# Corresponds to the JSON property `productLabels`
|
9888
9965
|
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p5beta1ProductKeyValue>]
|
9889
9966
|
attr_accessor :product_labels
|
@@ -10634,2001 +10711,6 @@ module Google
|
|
10634
10711
|
end
|
10635
10712
|
end
|
10636
10713
|
|
10637
|
-
# Response to a single file annotation request. A file may contain one or more
|
10638
|
-
# images, which individually have their own responses.
|
10639
|
-
class GoogleCloudVisionV1p6beta1AnnotateFileResponse
|
10640
|
-
include Google::Apis::Core::Hashable
|
10641
|
-
|
10642
|
-
# The desired input location and metadata.
|
10643
|
-
# Corresponds to the JSON property `inputConfig`
|
10644
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1InputConfig]
|
10645
|
-
attr_accessor :input_config
|
10646
|
-
|
10647
|
-
# Individual responses to images found within the file.
|
10648
|
-
# Corresponds to the JSON property `responses`
|
10649
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1AnnotateImageResponse>]
|
10650
|
-
attr_accessor :responses
|
10651
|
-
|
10652
|
-
# This field gives the total number of pages in the file.
|
10653
|
-
# Corresponds to the JSON property `totalPages`
|
10654
|
-
# @return [Fixnum]
|
10655
|
-
attr_accessor :total_pages
|
10656
|
-
|
10657
|
-
def initialize(**args)
|
10658
|
-
update!(**args)
|
10659
|
-
end
|
10660
|
-
|
10661
|
-
# Update properties of this object
|
10662
|
-
def update!(**args)
|
10663
|
-
@input_config = args[:input_config] if args.key?(:input_config)
|
10664
|
-
@responses = args[:responses] if args.key?(:responses)
|
10665
|
-
@total_pages = args[:total_pages] if args.key?(:total_pages)
|
10666
|
-
end
|
10667
|
-
end
|
10668
|
-
|
10669
|
-
# Response to an image annotation request.
|
10670
|
-
class GoogleCloudVisionV1p6beta1AnnotateImageResponse
|
10671
|
-
include Google::Apis::Core::Hashable
|
10672
|
-
|
10673
|
-
# If an image was produced from a file (e.g. a PDF), this message gives
|
10674
|
-
# information about the source of that image.
|
10675
|
-
# Corresponds to the JSON property `context`
|
10676
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1ImageAnnotationContext]
|
10677
|
-
attr_accessor :context
|
10678
|
-
|
10679
|
-
# Set of crop hints that are used to generate new crops when serving images.
|
10680
|
-
# Corresponds to the JSON property `cropHintsAnnotation`
|
10681
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1CropHintsAnnotation]
|
10682
|
-
attr_accessor :crop_hints_annotation
|
10683
|
-
|
10684
|
-
# The `Status` type defines a logical error model that is suitable for
|
10685
|
-
# different programming environments, including REST APIs and RPC APIs. It is
|
10686
|
-
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
10687
|
-
# three pieces of data: error code, error message, and error details.
|
10688
|
-
# You can find out more about this error model and how to work with it in the
|
10689
|
-
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
10690
|
-
# Corresponds to the JSON property `error`
|
10691
|
-
# @return [Google::Apis::VisionV1::Status]
|
10692
|
-
attr_accessor :error
|
10693
|
-
|
10694
|
-
# If present, face detection has completed successfully.
|
10695
|
-
# Corresponds to the JSON property `faceAnnotations`
|
10696
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1FaceAnnotation>]
|
10697
|
-
attr_accessor :face_annotations
|
10698
|
-
|
10699
|
-
# TextAnnotation contains a structured representation of OCR extracted text.
|
10700
|
-
# The hierarchy of an OCR extracted text structure is like this:
|
10701
|
-
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
10702
|
-
# Each structural component, starting from Page, may further have their own
|
10703
|
-
# properties. Properties describe detected languages, breaks etc.. Please refer
|
10704
|
-
# to the TextAnnotation.TextProperty message definition below for more
|
10705
|
-
# detail.
|
10706
|
-
# Corresponds to the JSON property `fullTextAnnotation`
|
10707
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1TextAnnotation]
|
10708
|
-
attr_accessor :full_text_annotation
|
10709
|
-
|
10710
|
-
# Stores image properties, such as dominant colors.
|
10711
|
-
# Corresponds to the JSON property `imagePropertiesAnnotation`
|
10712
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1ImageProperties]
|
10713
|
-
attr_accessor :image_properties_annotation
|
10714
|
-
|
10715
|
-
# Stores image quality scores, could be aesthetic quality or technical quality.
|
10716
|
-
# Corresponds to the JSON property `imageQualityAnnotation`
|
10717
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1ImageQuality]
|
10718
|
-
attr_accessor :image_quality_annotation
|
10719
|
-
|
10720
|
-
# If present, label detection has completed successfully.
|
10721
|
-
# Corresponds to the JSON property `labelAnnotations`
|
10722
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1EntityAnnotation>]
|
10723
|
-
attr_accessor :label_annotations
|
10724
|
-
|
10725
|
-
# If present, landmark detection has completed successfully.
|
10726
|
-
# Corresponds to the JSON property `landmarkAnnotations`
|
10727
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1EntityAnnotation>]
|
10728
|
-
attr_accessor :landmark_annotations
|
10729
|
-
|
10730
|
-
# If present, localized object detection has completed successfully.
|
10731
|
-
# This will be sorted descending by confidence score.
|
10732
|
-
# Corresponds to the JSON property `localizedObjectAnnotations`
|
10733
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1LocalizedObjectAnnotation>]
|
10734
|
-
attr_accessor :localized_object_annotations
|
10735
|
-
|
10736
|
-
# If present, logo detection has completed successfully.
|
10737
|
-
# Corresponds to the JSON property `logoAnnotations`
|
10738
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1EntityAnnotation>]
|
10739
|
-
attr_accessor :logo_annotations
|
10740
|
-
|
10741
|
-
# If present, objects attributes calculation has completed successfully. The
|
10742
|
-
# attributes value will be filled in the EntityAnnotation.properties.
|
10743
|
-
# Example:
|
10744
|
-
# object_attribute_annotations `
|
10745
|
-
# properties `
|
10746
|
-
# name: "color"
|
10747
|
-
# value: "blue"
|
10748
|
-
# confidence: 0.1
|
10749
|
-
# `
|
10750
|
-
# properties `
|
10751
|
-
# name: "color"
|
10752
|
-
# value: "white"
|
10753
|
-
# confidence: 0.2
|
10754
|
-
# `
|
10755
|
-
# properties `
|
10756
|
-
# name: "material"
|
10757
|
-
# value: "silk"
|
10758
|
-
# confidence: 0.3
|
10759
|
-
# `
|
10760
|
-
# `
|
10761
|
-
# Corresponds to the JSON property `objectAttributeAnnotations`
|
10762
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1EntityAnnotation>]
|
10763
|
-
attr_accessor :object_attribute_annotations
|
10764
|
-
|
10765
|
-
# Results for a product search request.
|
10766
|
-
# Corresponds to the JSON property `productSearchResults`
|
10767
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1ProductSearchResults]
|
10768
|
-
attr_accessor :product_search_results
|
10769
|
-
|
10770
|
-
# Stores enhanced image bytes.
|
10771
|
-
# Corresponds to the JSON property `qualityOptimizationResult`
|
10772
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1QualityOptimizationResult]
|
10773
|
-
attr_accessor :quality_optimization_result
|
10774
|
-
|
10775
|
-
# Set of features pertaining to the image, computed by computer vision
|
10776
|
-
# methods over safe-search verticals (for example, adult, spoof, medical,
|
10777
|
-
# violence).
|
10778
|
-
# Corresponds to the JSON property `safeSearchAnnotation`
|
10779
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1SafeSearchAnnotation]
|
10780
|
-
attr_accessor :safe_search_annotation
|
10781
|
-
|
10782
|
-
# If present, text (OCR) detection has completed successfully.
|
10783
|
-
# Corresponds to the JSON property `textAnnotations`
|
10784
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1EntityAnnotation>]
|
10785
|
-
attr_accessor :text_annotations
|
10786
|
-
|
10787
|
-
# Relevant information for the image from the Internet.
|
10788
|
-
# Corresponds to the JSON property `webDetection`
|
10789
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1WebDetection]
|
10790
|
-
attr_accessor :web_detection
|
10791
|
-
|
10792
|
-
def initialize(**args)
|
10793
|
-
update!(**args)
|
10794
|
-
end
|
10795
|
-
|
10796
|
-
# Update properties of this object
|
10797
|
-
def update!(**args)
|
10798
|
-
@context = args[:context] if args.key?(:context)
|
10799
|
-
@crop_hints_annotation = args[:crop_hints_annotation] if args.key?(:crop_hints_annotation)
|
10800
|
-
@error = args[:error] if args.key?(:error)
|
10801
|
-
@face_annotations = args[:face_annotations] if args.key?(:face_annotations)
|
10802
|
-
@full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation)
|
10803
|
-
@image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
|
10804
|
-
@image_quality_annotation = args[:image_quality_annotation] if args.key?(:image_quality_annotation)
|
10805
|
-
@label_annotations = args[:label_annotations] if args.key?(:label_annotations)
|
10806
|
-
@landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
|
10807
|
-
@localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
|
10808
|
-
@logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
|
10809
|
-
@object_attribute_annotations = args[:object_attribute_annotations] if args.key?(:object_attribute_annotations)
|
10810
|
-
@product_search_results = args[:product_search_results] if args.key?(:product_search_results)
|
10811
|
-
@quality_optimization_result = args[:quality_optimization_result] if args.key?(:quality_optimization_result)
|
10812
|
-
@safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
|
10813
|
-
@text_annotations = args[:text_annotations] if args.key?(:text_annotations)
|
10814
|
-
@web_detection = args[:web_detection] if args.key?(:web_detection)
|
10815
|
-
end
|
10816
|
-
end
|
10817
|
-
|
10818
|
-
# The response for a single offline file annotation request.
|
10819
|
-
class GoogleCloudVisionV1p6beta1AsyncAnnotateFileResponse
|
10820
|
-
include Google::Apis::Core::Hashable
|
10821
|
-
|
10822
|
-
# The desired output location and metadata.
|
10823
|
-
# Corresponds to the JSON property `outputConfig`
|
10824
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1OutputConfig]
|
10825
|
-
attr_accessor :output_config
|
10826
|
-
|
10827
|
-
def initialize(**args)
|
10828
|
-
update!(**args)
|
10829
|
-
end
|
10830
|
-
|
10831
|
-
# Update properties of this object
|
10832
|
-
def update!(**args)
|
10833
|
-
@output_config = args[:output_config] if args.key?(:output_config)
|
10834
|
-
end
|
10835
|
-
end
|
10836
|
-
|
10837
|
-
# Response to an async batch file annotation request.
|
10838
|
-
class GoogleCloudVisionV1p6beta1AsyncBatchAnnotateFilesResponse
|
10839
|
-
include Google::Apis::Core::Hashable
|
10840
|
-
|
10841
|
-
# The list of file annotation responses, one for each request in
|
10842
|
-
# AsyncBatchAnnotateFilesRequest.
|
10843
|
-
# Corresponds to the JSON property `responses`
|
10844
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1AsyncAnnotateFileResponse>]
|
10845
|
-
attr_accessor :responses
|
10846
|
-
|
10847
|
-
def initialize(**args)
|
10848
|
-
update!(**args)
|
10849
|
-
end
|
10850
|
-
|
10851
|
-
# Update properties of this object
|
10852
|
-
def update!(**args)
|
10853
|
-
@responses = args[:responses] if args.key?(:responses)
|
10854
|
-
end
|
10855
|
-
end
|
10856
|
-
|
10857
|
-
# Response to an async batch image annotation request.
|
10858
|
-
class GoogleCloudVisionV1p6beta1AsyncBatchAnnotateImagesResponse
|
10859
|
-
include Google::Apis::Core::Hashable
|
10860
|
-
|
10861
|
-
# The desired output location and metadata.
|
10862
|
-
# Corresponds to the JSON property `outputConfig`
|
10863
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1OutputConfig]
|
10864
|
-
attr_accessor :output_config
|
10865
|
-
|
10866
|
-
def initialize(**args)
|
10867
|
-
update!(**args)
|
10868
|
-
end
|
10869
|
-
|
10870
|
-
# Update properties of this object
|
10871
|
-
def update!(**args)
|
10872
|
-
@output_config = args[:output_config] if args.key?(:output_config)
|
10873
|
-
end
|
10874
|
-
end
|
10875
|
-
|
10876
|
-
# A list of file annotation responses.
|
10877
|
-
class GoogleCloudVisionV1p6beta1BatchAnnotateFilesResponse
|
10878
|
-
include Google::Apis::Core::Hashable
|
10879
|
-
|
10880
|
-
# The list of file annotation responses, each response corresponding to each
|
10881
|
-
# AnnotateFileRequest in BatchAnnotateFilesRequest.
|
10882
|
-
# Corresponds to the JSON property `responses`
|
10883
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1AnnotateFileResponse>]
|
10884
|
-
attr_accessor :responses
|
10885
|
-
|
10886
|
-
def initialize(**args)
|
10887
|
-
update!(**args)
|
10888
|
-
end
|
10889
|
-
|
10890
|
-
# Update properties of this object
|
10891
|
-
def update!(**args)
|
10892
|
-
@responses = args[:responses] if args.key?(:responses)
|
10893
|
-
end
|
10894
|
-
end
|
10895
|
-
|
10896
|
-
# Metadata for the batch operations such as the current state.
|
10897
|
-
# This is included in the `metadata` field of the `Operation` returned by the
|
10898
|
-
# `GetOperation` call of the `google::longrunning::Operations` service.
|
10899
|
-
class GoogleCloudVisionV1p6beta1BatchOperationMetadata
|
10900
|
-
include Google::Apis::Core::Hashable
|
10901
|
-
|
10902
|
-
# The time when the batch request is finished and
|
10903
|
-
# google.longrunning.Operation.done is set to true.
|
10904
|
-
# Corresponds to the JSON property `endTime`
|
10905
|
-
# @return [String]
|
10906
|
-
attr_accessor :end_time
|
10907
|
-
|
10908
|
-
# The current state of the batch operation.
|
10909
|
-
# Corresponds to the JSON property `state`
|
10910
|
-
# @return [String]
|
10911
|
-
attr_accessor :state
|
10912
|
-
|
10913
|
-
# The time when the batch request was submitted to the server.
|
10914
|
-
# Corresponds to the JSON property `submitTime`
|
10915
|
-
# @return [String]
|
10916
|
-
attr_accessor :submit_time
|
10917
|
-
|
10918
|
-
def initialize(**args)
|
10919
|
-
update!(**args)
|
10920
|
-
end
|
10921
|
-
|
10922
|
-
# Update properties of this object
|
10923
|
-
def update!(**args)
|
10924
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
10925
|
-
@state = args[:state] if args.key?(:state)
|
10926
|
-
@submit_time = args[:submit_time] if args.key?(:submit_time)
|
10927
|
-
end
|
10928
|
-
end
|
10929
|
-
|
10930
|
-
# Logical element on the page.
|
10931
|
-
class GoogleCloudVisionV1p6beta1Block
|
10932
|
-
include Google::Apis::Core::Hashable
|
10933
|
-
|
10934
|
-
# Detected block type (text, image etc) for this block.
|
10935
|
-
# Corresponds to the JSON property `blockType`
|
10936
|
-
# @return [String]
|
10937
|
-
attr_accessor :block_type
|
10938
|
-
|
10939
|
-
# A bounding polygon for the detected image annotation.
|
10940
|
-
# Corresponds to the JSON property `boundingBox`
|
10941
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
10942
|
-
attr_accessor :bounding_box
|
10943
|
-
|
10944
|
-
# Confidence of the OCR results on the block. Range [0, 1].
|
10945
|
-
# Corresponds to the JSON property `confidence`
|
10946
|
-
# @return [Float]
|
10947
|
-
attr_accessor :confidence
|
10948
|
-
|
10949
|
-
# List of paragraphs in this block (if this blocks is of type text).
|
10950
|
-
# Corresponds to the JSON property `paragraphs`
|
10951
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1Paragraph>]
|
10952
|
-
attr_accessor :paragraphs
|
10953
|
-
|
10954
|
-
# Additional information detected on the structural component.
|
10955
|
-
# Corresponds to the JSON property `property`
|
10956
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1TextAnnotationTextProperty]
|
10957
|
-
attr_accessor :property
|
10958
|
-
|
10959
|
-
def initialize(**args)
|
10960
|
-
update!(**args)
|
10961
|
-
end
|
10962
|
-
|
10963
|
-
# Update properties of this object
|
10964
|
-
def update!(**args)
|
10965
|
-
@block_type = args[:block_type] if args.key?(:block_type)
|
10966
|
-
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
10967
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
10968
|
-
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
10969
|
-
@property = args[:property] if args.key?(:property)
|
10970
|
-
end
|
10971
|
-
end
|
10972
|
-
|
10973
|
-
# A bounding polygon for the detected image annotation.
|
10974
|
-
class GoogleCloudVisionV1p6beta1BoundingPoly
|
10975
|
-
include Google::Apis::Core::Hashable
|
10976
|
-
|
10977
|
-
# The bounding polygon normalized vertices.
|
10978
|
-
# Corresponds to the JSON property `normalizedVertices`
|
10979
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1NormalizedVertex>]
|
10980
|
-
attr_accessor :normalized_vertices
|
10981
|
-
|
10982
|
-
# The bounding polygon vertices.
|
10983
|
-
# Corresponds to the JSON property `vertices`
|
10984
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1Vertex>]
|
10985
|
-
attr_accessor :vertices
|
10986
|
-
|
10987
|
-
def initialize(**args)
|
10988
|
-
update!(**args)
|
10989
|
-
end
|
10990
|
-
|
10991
|
-
# Update properties of this object
|
10992
|
-
def update!(**args)
|
10993
|
-
@normalized_vertices = args[:normalized_vertices] if args.key?(:normalized_vertices)
|
10994
|
-
@vertices = args[:vertices] if args.key?(:vertices)
|
10995
|
-
end
|
10996
|
-
end
|
10997
|
-
|
10998
|
-
# Color information consists of RGB channels, score, and the fraction of
|
10999
|
-
# the image that the color occupies in the image.
|
11000
|
-
class GoogleCloudVisionV1p6beta1ColorInfo
|
11001
|
-
include Google::Apis::Core::Hashable
|
11002
|
-
|
11003
|
-
# Represents a color in the RGBA color space. This representation is designed
|
11004
|
-
# for simplicity of conversion to/from color representations in various
|
11005
|
-
# languages over compactness; for example, the fields of this representation
|
11006
|
-
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
|
11007
|
-
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
|
11008
|
-
# method in iOS; and, with just a little work, it can be easily formatted into
|
11009
|
-
# a CSS "rgba()" string in JavaScript, as well.
|
11010
|
-
# Note: this proto does not carry information about the absolute color space
|
11011
|
-
# that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
|
11012
|
-
# DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
|
11013
|
-
# space.
|
11014
|
-
# Example (Java):
|
11015
|
-
# import com.google.type.Color;
|
11016
|
-
# // ...
|
11017
|
-
# public static java.awt.Color fromProto(Color protocolor) `
|
11018
|
-
# float alpha = protocolor.hasAlpha()
|
11019
|
-
# ? protocolor.getAlpha().getValue()
|
11020
|
-
# : 1.0;
|
11021
|
-
# return new java.awt.Color(
|
11022
|
-
# protocolor.getRed(),
|
11023
|
-
# protocolor.getGreen(),
|
11024
|
-
# protocolor.getBlue(),
|
11025
|
-
# alpha);
|
11026
|
-
# `
|
11027
|
-
# public static Color toProto(java.awt.Color color) `
|
11028
|
-
# float red = (float) color.getRed();
|
11029
|
-
# float green = (float) color.getGreen();
|
11030
|
-
# float blue = (float) color.getBlue();
|
11031
|
-
# float denominator = 255.0;
|
11032
|
-
# Color.Builder resultBuilder =
|
11033
|
-
# Color
|
11034
|
-
# .newBuilder()
|
11035
|
-
# .setRed(red / denominator)
|
11036
|
-
# .setGreen(green / denominator)
|
11037
|
-
# .setBlue(blue / denominator);
|
11038
|
-
# int alpha = color.getAlpha();
|
11039
|
-
# if (alpha != 255) `
|
11040
|
-
# result.setAlpha(
|
11041
|
-
# FloatValue
|
11042
|
-
# .newBuilder()
|
11043
|
-
# .setValue(((float) alpha) / denominator)
|
11044
|
-
# .build());
|
11045
|
-
# `
|
11046
|
-
# return resultBuilder.build();
|
11047
|
-
# `
|
11048
|
-
# // ...
|
11049
|
-
# Example (iOS / Obj-C):
|
11050
|
-
# // ...
|
11051
|
-
# static UIColor* fromProto(Color* protocolor) `
|
11052
|
-
# float red = [protocolor red];
|
11053
|
-
# float green = [protocolor green];
|
11054
|
-
# float blue = [protocolor blue];
|
11055
|
-
# FloatValue* alpha_wrapper = [protocolor alpha];
|
11056
|
-
# float alpha = 1.0;
|
11057
|
-
# if (alpha_wrapper != nil) `
|
11058
|
-
# alpha = [alpha_wrapper value];
|
11059
|
-
# `
|
11060
|
-
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
|
11061
|
-
# `
|
11062
|
-
# static Color* toProto(UIColor* color) `
|
11063
|
-
# CGFloat red, green, blue, alpha;
|
11064
|
-
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
|
11065
|
-
# return nil;
|
11066
|
-
# `
|
11067
|
-
# Color* result = [[Color alloc] init];
|
11068
|
-
# [result setRed:red];
|
11069
|
-
# [result setGreen:green];
|
11070
|
-
# [result setBlue:blue];
|
11071
|
-
# if (alpha <= 0.9999) `
|
11072
|
-
# [result setAlpha:floatWrapperWithValue(alpha)];
|
11073
|
-
# `
|
11074
|
-
# [result autorelease];
|
11075
|
-
# return result;
|
11076
|
-
# `
|
11077
|
-
# // ...
|
11078
|
-
# Example (JavaScript):
|
11079
|
-
# // ...
|
11080
|
-
# var protoToCssColor = function(rgb_color) `
|
11081
|
-
# var redFrac = rgb_color.red || 0.0;
|
11082
|
-
# var greenFrac = rgb_color.green || 0.0;
|
11083
|
-
# var blueFrac = rgb_color.blue || 0.0;
|
11084
|
-
# var red = Math.floor(redFrac * 255);
|
11085
|
-
# var green = Math.floor(greenFrac * 255);
|
11086
|
-
# var blue = Math.floor(blueFrac * 255);
|
11087
|
-
# if (!('alpha' in rgb_color)) `
|
11088
|
-
# return rgbToCssColor_(red, green, blue);
|
11089
|
-
# `
|
11090
|
-
# var alphaFrac = rgb_color.alpha.value || 0.0;
|
11091
|
-
# var rgbParams = [red, green, blue].join(',');
|
11092
|
-
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
|
11093
|
-
# `;
|
11094
|
-
# var rgbToCssColor_ = function(red, green, blue) `
|
11095
|
-
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
|
11096
|
-
# var hexString = rgbNumber.toString(16);
|
11097
|
-
# var missingZeros = 6 - hexString.length;
|
11098
|
-
# var resultBuilder = ['#'];
|
11099
|
-
# for (var i = 0; i < missingZeros; i++) `
|
11100
|
-
# resultBuilder.push('0');
|
11101
|
-
# `
|
11102
|
-
# resultBuilder.push(hexString);
|
11103
|
-
# return resultBuilder.join('');
|
11104
|
-
# `;
|
11105
|
-
# // ...
|
11106
|
-
# Corresponds to the JSON property `color`
|
11107
|
-
# @return [Google::Apis::VisionV1::Color]
|
11108
|
-
attr_accessor :color
|
11109
|
-
|
11110
|
-
# The fraction of pixels the color occupies in the image.
|
11111
|
-
# Value in range [0, 1].
|
11112
|
-
# Corresponds to the JSON property `pixelFraction`
|
11113
|
-
# @return [Float]
|
11114
|
-
attr_accessor :pixel_fraction
|
11115
|
-
|
11116
|
-
# Image-specific score for this color. Value in range [0, 1].
|
11117
|
-
# Corresponds to the JSON property `score`
|
11118
|
-
# @return [Float]
|
11119
|
-
attr_accessor :score
|
11120
|
-
|
11121
|
-
def initialize(**args)
|
11122
|
-
update!(**args)
|
11123
|
-
end
|
11124
|
-
|
11125
|
-
# Update properties of this object
|
11126
|
-
def update!(**args)
|
11127
|
-
@color = args[:color] if args.key?(:color)
|
11128
|
-
@pixel_fraction = args[:pixel_fraction] if args.key?(:pixel_fraction)
|
11129
|
-
@score = args[:score] if args.key?(:score)
|
11130
|
-
end
|
11131
|
-
end
|
11132
|
-
|
11133
|
-
# Single crop hint that is used to generate a new crop when serving an image.
|
11134
|
-
class GoogleCloudVisionV1p6beta1CropHint
|
11135
|
-
include Google::Apis::Core::Hashable
|
11136
|
-
|
11137
|
-
# A bounding polygon for the detected image annotation.
|
11138
|
-
# Corresponds to the JSON property `boundingPoly`
|
11139
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
11140
|
-
attr_accessor :bounding_poly
|
11141
|
-
|
11142
|
-
# Confidence of this being a salient region. Range [0, 1].
|
11143
|
-
# Corresponds to the JSON property `confidence`
|
11144
|
-
# @return [Float]
|
11145
|
-
attr_accessor :confidence
|
11146
|
-
|
11147
|
-
# Fraction of importance of this salient region with respect to the original
|
11148
|
-
# image.
|
11149
|
-
# Corresponds to the JSON property `importanceFraction`
|
11150
|
-
# @return [Float]
|
11151
|
-
attr_accessor :importance_fraction
|
11152
|
-
|
11153
|
-
def initialize(**args)
|
11154
|
-
update!(**args)
|
11155
|
-
end
|
11156
|
-
|
11157
|
-
# Update properties of this object
|
11158
|
-
def update!(**args)
|
11159
|
-
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
11160
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
11161
|
-
@importance_fraction = args[:importance_fraction] if args.key?(:importance_fraction)
|
11162
|
-
end
|
11163
|
-
end
|
11164
|
-
|
11165
|
-
# Set of crop hints that are used to generate new crops when serving images.
|
11166
|
-
class GoogleCloudVisionV1p6beta1CropHintsAnnotation
|
11167
|
-
include Google::Apis::Core::Hashable
|
11168
|
-
|
11169
|
-
# Crop hint results.
|
11170
|
-
# Corresponds to the JSON property `cropHints`
|
11171
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1CropHint>]
|
11172
|
-
attr_accessor :crop_hints
|
11173
|
-
|
11174
|
-
def initialize(**args)
|
11175
|
-
update!(**args)
|
11176
|
-
end
|
11177
|
-
|
11178
|
-
# Update properties of this object
|
11179
|
-
def update!(**args)
|
11180
|
-
@crop_hints = args[:crop_hints] if args.key?(:crop_hints)
|
11181
|
-
end
|
11182
|
-
end
|
11183
|
-
|
11184
|
-
# Set of dominant colors and their corresponding scores.
|
11185
|
-
class GoogleCloudVisionV1p6beta1DominantColorsAnnotation
|
11186
|
-
include Google::Apis::Core::Hashable
|
11187
|
-
|
11188
|
-
# RGB color values with their score and pixel fraction.
|
11189
|
-
# Corresponds to the JSON property `colors`
|
11190
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1ColorInfo>]
|
11191
|
-
attr_accessor :colors
|
11192
|
-
|
11193
|
-
def initialize(**args)
|
11194
|
-
update!(**args)
|
11195
|
-
end
|
11196
|
-
|
11197
|
-
# Update properties of this object
|
11198
|
-
def update!(**args)
|
11199
|
-
@colors = args[:colors] if args.key?(:colors)
|
11200
|
-
end
|
11201
|
-
end
|
11202
|
-
|
11203
|
-
# Set of detected entity features.
|
11204
|
-
class GoogleCloudVisionV1p6beta1EntityAnnotation
|
11205
|
-
include Google::Apis::Core::Hashable
|
11206
|
-
|
11207
|
-
# A bounding polygon for the detected image annotation.
|
11208
|
-
# Corresponds to the JSON property `boundingPoly`
|
11209
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
11210
|
-
attr_accessor :bounding_poly
|
11211
|
-
|
11212
|
-
# **Deprecated. Use `score` instead.**
|
11213
|
-
# The accuracy of the entity detection in an image.
|
11214
|
-
# For example, for an image in which the "Eiffel Tower" entity is detected,
|
11215
|
-
# this field represents the confidence that there is a tower in the query
|
11216
|
-
# image. Range [0, 1].
|
11217
|
-
# Corresponds to the JSON property `confidence`
|
11218
|
-
# @return [Float]
|
11219
|
-
attr_accessor :confidence
|
11220
|
-
|
11221
|
-
# Entity textual description, expressed in its `locale` language.
|
11222
|
-
# Corresponds to the JSON property `description`
|
11223
|
-
# @return [String]
|
11224
|
-
attr_accessor :description
|
11225
|
-
|
11226
|
-
# The language code for the locale in which the entity textual
|
11227
|
-
# `description` is expressed.
|
11228
|
-
# Corresponds to the JSON property `locale`
|
11229
|
-
# @return [String]
|
11230
|
-
attr_accessor :locale
|
11231
|
-
|
11232
|
-
# The location information for the detected entity. Multiple
|
11233
|
-
# `LocationInfo` elements can be present because one location may
|
11234
|
-
# indicate the location of the scene in the image, and another location
|
11235
|
-
# may indicate the location of the place where the image was taken.
|
11236
|
-
# Location information is usually present for landmarks.
|
11237
|
-
# Corresponds to the JSON property `locations`
|
11238
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1LocationInfo>]
|
11239
|
-
attr_accessor :locations
|
11240
|
-
|
11241
|
-
# Opaque entity ID. Some IDs may be available in
|
11242
|
-
# [Google Knowledge Graph Search
|
11243
|
-
# API](https://developers.google.com/knowledge-graph/).
|
11244
|
-
# Corresponds to the JSON property `mid`
|
11245
|
-
# @return [String]
|
11246
|
-
attr_accessor :mid
|
11247
|
-
|
11248
|
-
# Some entities may have optional user-supplied `Property` (name/value)
|
11249
|
-
# fields, such a score or string that qualifies the entity.
|
11250
|
-
# Corresponds to the JSON property `properties`
|
11251
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1Property>]
|
11252
|
-
attr_accessor :properties
|
11253
|
-
|
11254
|
-
# Overall score of the result. Range [0, 1].
|
11255
|
-
# Corresponds to the JSON property `score`
|
11256
|
-
# @return [Float]
|
11257
|
-
attr_accessor :score
|
11258
|
-
|
11259
|
-
# The relevancy of the ICA (Image Content Annotation) label to the
|
11260
|
-
# image. For example, the relevancy of "tower" is likely higher to an image
|
11261
|
-
# containing the detected "Eiffel Tower" than to an image containing a
|
11262
|
-
# detected distant towering building, even though the confidence that
|
11263
|
-
# there is a tower in each image may be the same. Range [0, 1].
|
11264
|
-
# Corresponds to the JSON property `topicality`
|
11265
|
-
# @return [Float]
|
11266
|
-
attr_accessor :topicality
|
11267
|
-
|
11268
|
-
def initialize(**args)
|
11269
|
-
update!(**args)
|
11270
|
-
end
|
11271
|
-
|
11272
|
-
# Update properties of this object
|
11273
|
-
def update!(**args)
|
11274
|
-
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
11275
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
11276
|
-
@description = args[:description] if args.key?(:description)
|
11277
|
-
@locale = args[:locale] if args.key?(:locale)
|
11278
|
-
@locations = args[:locations] if args.key?(:locations)
|
11279
|
-
@mid = args[:mid] if args.key?(:mid)
|
11280
|
-
@properties = args[:properties] if args.key?(:properties)
|
11281
|
-
@score = args[:score] if args.key?(:score)
|
11282
|
-
@topicality = args[:topicality] if args.key?(:topicality)
|
11283
|
-
end
|
11284
|
-
end
|
11285
|
-
|
11286
|
-
# A face annotation object contains the results of face detection.
|
11287
|
-
class GoogleCloudVisionV1p6beta1FaceAnnotation
|
11288
|
-
include Google::Apis::Core::Hashable
|
11289
|
-
|
11290
|
-
# Anger likelihood.
|
11291
|
-
# Corresponds to the JSON property `angerLikelihood`
|
11292
|
-
# @return [String]
|
11293
|
-
attr_accessor :anger_likelihood
|
11294
|
-
|
11295
|
-
# Blurred likelihood.
|
11296
|
-
# Corresponds to the JSON property `blurredLikelihood`
|
11297
|
-
# @return [String]
|
11298
|
-
attr_accessor :blurred_likelihood
|
11299
|
-
|
11300
|
-
# A bounding polygon for the detected image annotation.
|
11301
|
-
# Corresponds to the JSON property `boundingPoly`
|
11302
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
11303
|
-
attr_accessor :bounding_poly
|
11304
|
-
|
11305
|
-
# Detection confidence. Range [0, 1].
|
11306
|
-
# Corresponds to the JSON property `detectionConfidence`
|
11307
|
-
# @return [Float]
|
11308
|
-
attr_accessor :detection_confidence
|
11309
|
-
|
11310
|
-
# A bounding polygon for the detected image annotation.
|
11311
|
-
# Corresponds to the JSON property `fdBoundingPoly`
|
11312
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
11313
|
-
attr_accessor :fd_bounding_poly
|
11314
|
-
|
11315
|
-
# Headwear likelihood.
|
11316
|
-
# Corresponds to the JSON property `headwearLikelihood`
|
11317
|
-
# @return [String]
|
11318
|
-
attr_accessor :headwear_likelihood
|
11319
|
-
|
11320
|
-
# Joy likelihood.
|
11321
|
-
# Corresponds to the JSON property `joyLikelihood`
|
11322
|
-
# @return [String]
|
11323
|
-
attr_accessor :joy_likelihood
|
11324
|
-
|
11325
|
-
# Face landmarking confidence. Range [0, 1].
|
11326
|
-
# Corresponds to the JSON property `landmarkingConfidence`
|
11327
|
-
# @return [Float]
|
11328
|
-
attr_accessor :landmarking_confidence
|
11329
|
-
|
11330
|
-
# Detected face landmarks.
|
11331
|
-
# Corresponds to the JSON property `landmarks`
|
11332
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1FaceAnnotationLandmark>]
|
11333
|
-
attr_accessor :landmarks
|
11334
|
-
|
11335
|
-
# Yaw angle, which indicates the leftward/rightward angle that the face is
|
11336
|
-
# pointing relative to the vertical plane perpendicular to the image. Range
|
11337
|
-
# [-180,180].
|
11338
|
-
# Corresponds to the JSON property `panAngle`
|
11339
|
-
# @return [Float]
|
11340
|
-
attr_accessor :pan_angle
|
11341
|
-
|
11342
|
-
# Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
|
11343
|
-
# of the face relative to the image vertical about the axis perpendicular to
|
11344
|
-
# the face. Range [-180,180].
|
11345
|
-
# Corresponds to the JSON property `rollAngle`
|
11346
|
-
# @return [Float]
|
11347
|
-
attr_accessor :roll_angle
|
11348
|
-
|
11349
|
-
# Sorrow likelihood.
|
11350
|
-
# Corresponds to the JSON property `sorrowLikelihood`
|
11351
|
-
# @return [String]
|
11352
|
-
attr_accessor :sorrow_likelihood
|
11353
|
-
|
11354
|
-
# Surprise likelihood.
|
11355
|
-
# Corresponds to the JSON property `surpriseLikelihood`
|
11356
|
-
# @return [String]
|
11357
|
-
attr_accessor :surprise_likelihood
|
11358
|
-
|
11359
|
-
# Pitch angle, which indicates the upwards/downwards angle that the face is
|
11360
|
-
# pointing relative to the image's horizontal plane. Range [-180,180].
|
11361
|
-
# Corresponds to the JSON property `tiltAngle`
|
11362
|
-
# @return [Float]
|
11363
|
-
attr_accessor :tilt_angle
|
11364
|
-
|
11365
|
-
# Under-exposed likelihood.
|
11366
|
-
# Corresponds to the JSON property `underExposedLikelihood`
|
11367
|
-
# @return [String]
|
11368
|
-
attr_accessor :under_exposed_likelihood
|
11369
|
-
|
11370
|
-
def initialize(**args)
|
11371
|
-
update!(**args)
|
11372
|
-
end
|
11373
|
-
|
11374
|
-
# Update properties of this object
|
11375
|
-
def update!(**args)
|
11376
|
-
@anger_likelihood = args[:anger_likelihood] if args.key?(:anger_likelihood)
|
11377
|
-
@blurred_likelihood = args[:blurred_likelihood] if args.key?(:blurred_likelihood)
|
11378
|
-
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
11379
|
-
@detection_confidence = args[:detection_confidence] if args.key?(:detection_confidence)
|
11380
|
-
@fd_bounding_poly = args[:fd_bounding_poly] if args.key?(:fd_bounding_poly)
|
11381
|
-
@headwear_likelihood = args[:headwear_likelihood] if args.key?(:headwear_likelihood)
|
11382
|
-
@joy_likelihood = args[:joy_likelihood] if args.key?(:joy_likelihood)
|
11383
|
-
@landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
|
11384
|
-
@landmarks = args[:landmarks] if args.key?(:landmarks)
|
11385
|
-
@pan_angle = args[:pan_angle] if args.key?(:pan_angle)
|
11386
|
-
@roll_angle = args[:roll_angle] if args.key?(:roll_angle)
|
11387
|
-
@sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood)
|
11388
|
-
@surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
|
11389
|
-
@tilt_angle = args[:tilt_angle] if args.key?(:tilt_angle)
|
11390
|
-
@under_exposed_likelihood = args[:under_exposed_likelihood] if args.key?(:under_exposed_likelihood)
|
11391
|
-
end
|
11392
|
-
end
|
11393
|
-
|
11394
|
-
# A face-specific landmark (for example, a face feature).
|
11395
|
-
class GoogleCloudVisionV1p6beta1FaceAnnotationLandmark
|
11396
|
-
include Google::Apis::Core::Hashable
|
11397
|
-
|
11398
|
-
# A 3D position in the image, used primarily for Face detection landmarks.
|
11399
|
-
# A valid Position must have both x and y coordinates.
|
11400
|
-
# The position coordinates are in the same scale as the original image.
|
11401
|
-
# Corresponds to the JSON property `position`
|
11402
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1Position]
|
11403
|
-
attr_accessor :position
|
11404
|
-
|
11405
|
-
# Face landmark type.
|
11406
|
-
# Corresponds to the JSON property `type`
|
11407
|
-
# @return [String]
|
11408
|
-
attr_accessor :type
|
11409
|
-
|
11410
|
-
def initialize(**args)
|
11411
|
-
update!(**args)
|
11412
|
-
end
|
11413
|
-
|
11414
|
-
# Update properties of this object
|
11415
|
-
def update!(**args)
|
11416
|
-
@position = args[:position] if args.key?(:position)
|
11417
|
-
@type = args[:type] if args.key?(:type)
|
11418
|
-
end
|
11419
|
-
end
|
11420
|
-
|
11421
|
-
# The Google Cloud Storage location where the output will be written to.
|
11422
|
-
class GoogleCloudVisionV1p6beta1GcsDestination
|
11423
|
-
include Google::Apis::Core::Hashable
|
11424
|
-
|
11425
|
-
# Google Cloud Storage URI prefix where the results will be stored. Results
|
11426
|
-
# will be in JSON format and preceded by its corresponding input URI prefix.
|
11427
|
-
# This field can either represent a gcs file prefix or gcs directory. In
|
11428
|
-
# either case, the uri should be unique because in order to get all of the
|
11429
|
-
# output files, you will need to do a wildcard gcs search on the uri prefix
|
11430
|
-
# you provide.
|
11431
|
-
# Examples:
|
11432
|
-
# * File Prefix: gs://bucket-name/here/filenameprefix The output files
|
11433
|
-
# will be created in gs://bucket-name/here/ and the names of the
|
11434
|
-
# output files will begin with "filenameprefix".
|
11435
|
-
# * Directory Prefix: gs://bucket-name/some/location/ The output files
|
11436
|
-
# will be created in gs://bucket-name/some/location/ and the names of the
|
11437
|
-
# output files could be anything because there was no filename prefix
|
11438
|
-
# specified.
|
11439
|
-
# If multiple outputs, each response is still AnnotateFileResponse, each of
|
11440
|
-
# which contains some subset of the full list of AnnotateImageResponse.
|
11441
|
-
# Multiple outputs can happen if, for example, the output JSON is too large
|
11442
|
-
# and overflows into multiple sharded files.
|
11443
|
-
# Corresponds to the JSON property `uri`
|
11444
|
-
# @return [String]
|
11445
|
-
attr_accessor :uri
|
11446
|
-
|
11447
|
-
def initialize(**args)
|
11448
|
-
update!(**args)
|
11449
|
-
end
|
11450
|
-
|
11451
|
-
# Update properties of this object
|
11452
|
-
def update!(**args)
|
11453
|
-
@uri = args[:uri] if args.key?(:uri)
|
11454
|
-
end
|
11455
|
-
end
|
11456
|
-
|
11457
|
-
# The Google Cloud Storage location where the input will be read from.
|
11458
|
-
class GoogleCloudVisionV1p6beta1GcsSource
|
11459
|
-
include Google::Apis::Core::Hashable
|
11460
|
-
|
11461
|
-
# Google Cloud Storage URI for the input file. This must only be a
|
11462
|
-
# Google Cloud Storage object. Wildcards are not currently supported.
|
11463
|
-
# Corresponds to the JSON property `uri`
|
11464
|
-
# @return [String]
|
11465
|
-
attr_accessor :uri
|
11466
|
-
|
11467
|
-
def initialize(**args)
|
11468
|
-
update!(**args)
|
11469
|
-
end
|
11470
|
-
|
11471
|
-
# Update properties of this object
|
11472
|
-
def update!(**args)
|
11473
|
-
@uri = args[:uri] if args.key?(:uri)
|
11474
|
-
end
|
11475
|
-
end
|
11476
|
-
|
11477
|
-
# If an image was produced from a file (e.g. a PDF), this message gives
|
11478
|
-
# information about the source of that image.
|
11479
|
-
class GoogleCloudVisionV1p6beta1ImageAnnotationContext
|
11480
|
-
include Google::Apis::Core::Hashable
|
11481
|
-
|
11482
|
-
# If the file was a PDF or TIFF, this field gives the page number within
|
11483
|
-
# the file used to produce the image.
|
11484
|
-
# Corresponds to the JSON property `pageNumber`
|
11485
|
-
# @return [Fixnum]
|
11486
|
-
attr_accessor :page_number
|
11487
|
-
|
11488
|
-
# The URI of the file used to produce the image.
|
11489
|
-
# Corresponds to the JSON property `uri`
|
11490
|
-
# @return [String]
|
11491
|
-
attr_accessor :uri
|
11492
|
-
|
11493
|
-
def initialize(**args)
|
11494
|
-
update!(**args)
|
11495
|
-
end
|
11496
|
-
|
11497
|
-
# Update properties of this object
|
11498
|
-
def update!(**args)
|
11499
|
-
@page_number = args[:page_number] if args.key?(:page_number)
|
11500
|
-
@uri = args[:uri] if args.key?(:uri)
|
11501
|
-
end
|
11502
|
-
end
|
11503
|
-
|
11504
|
-
# Stores image properties, such as dominant colors.
|
11505
|
-
class GoogleCloudVisionV1p6beta1ImageProperties
|
11506
|
-
include Google::Apis::Core::Hashable
|
11507
|
-
|
11508
|
-
# Set of dominant colors and their corresponding scores.
|
11509
|
-
# Corresponds to the JSON property `dominantColors`
|
11510
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1DominantColorsAnnotation]
|
11511
|
-
attr_accessor :dominant_colors
|
11512
|
-
|
11513
|
-
def initialize(**args)
|
11514
|
-
update!(**args)
|
11515
|
-
end
|
11516
|
-
|
11517
|
-
# Update properties of this object
|
11518
|
-
def update!(**args)
|
11519
|
-
@dominant_colors = args[:dominant_colors] if args.key?(:dominant_colors)
|
11520
|
-
end
|
11521
|
-
end
|
11522
|
-
|
11523
|
-
# Stores image quality scores, could be aesthetic quality or technical quality.
|
11524
|
-
class GoogleCloudVisionV1p6beta1ImageQuality
|
11525
|
-
include Google::Apis::Core::Hashable
|
11526
|
-
|
11527
|
-
def initialize(**args)
|
11528
|
-
update!(**args)
|
11529
|
-
end
|
11530
|
-
|
11531
|
-
# Update properties of this object
|
11532
|
-
def update!(**args)
|
11533
|
-
end
|
11534
|
-
end
|
11535
|
-
|
11536
|
-
# Response message for the `ImportProductSets` method.
|
11537
|
-
# This message is returned by the
|
11538
|
-
# google.longrunning.Operations.GetOperation method in the returned
|
11539
|
-
# google.longrunning.Operation.response field.
|
11540
|
-
class GoogleCloudVisionV1p6beta1ImportProductSetsResponse
|
11541
|
-
include Google::Apis::Core::Hashable
|
11542
|
-
|
11543
|
-
# The list of reference_images that are imported successfully.
|
11544
|
-
# Corresponds to the JSON property `referenceImages`
|
11545
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1ReferenceImage>]
|
11546
|
-
attr_accessor :reference_images
|
11547
|
-
|
11548
|
-
# The rpc status for each ImportProductSet request, including both successes
|
11549
|
-
# and errors.
|
11550
|
-
# The number of statuses here matches the number of lines in the csv file,
|
11551
|
-
# and statuses[i] stores the success or failure status of processing the i-th
|
11552
|
-
# line of the csv, starting from line 0.
|
11553
|
-
# Corresponds to the JSON property `statuses`
|
11554
|
-
# @return [Array<Google::Apis::VisionV1::Status>]
|
11555
|
-
attr_accessor :statuses
|
11556
|
-
|
11557
|
-
def initialize(**args)
|
11558
|
-
update!(**args)
|
11559
|
-
end
|
11560
|
-
|
11561
|
-
# Update properties of this object
|
11562
|
-
def update!(**args)
|
11563
|
-
@reference_images = args[:reference_images] if args.key?(:reference_images)
|
11564
|
-
@statuses = args[:statuses] if args.key?(:statuses)
|
11565
|
-
end
|
11566
|
-
end
|
11567
|
-
|
11568
|
-
# The desired input location and metadata.
|
11569
|
-
class GoogleCloudVisionV1p6beta1InputConfig
|
11570
|
-
include Google::Apis::Core::Hashable
|
11571
|
-
|
11572
|
-
# File content, represented as a stream of bytes.
|
11573
|
-
# Note: As with all `bytes` fields, protobuffers use a pure binary
|
11574
|
-
# representation, whereas JSON representations use base64.
|
11575
|
-
# Currently, this field only works for BatchAnnotateFiles requests. It does
|
11576
|
-
# not work for AsyncBatchAnnotateFiles requests.
|
11577
|
-
# Corresponds to the JSON property `content`
|
11578
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
11579
|
-
# @return [String]
|
11580
|
-
attr_accessor :content
|
11581
|
-
|
11582
|
-
# The Google Cloud Storage location where the input will be read from.
|
11583
|
-
# Corresponds to the JSON property `gcsSource`
|
11584
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1GcsSource]
|
11585
|
-
attr_accessor :gcs_source
|
11586
|
-
|
11587
|
-
# The type of the file. Currently only "application/pdf", "image/tiff" and
|
11588
|
-
# "image/gif" are supported. Wildcards are not supported.
|
11589
|
-
# Corresponds to the JSON property `mimeType`
|
11590
|
-
# @return [String]
|
11591
|
-
attr_accessor :mime_type
|
11592
|
-
|
11593
|
-
def initialize(**args)
|
11594
|
-
update!(**args)
|
11595
|
-
end
|
11596
|
-
|
11597
|
-
# Update properties of this object
|
11598
|
-
def update!(**args)
|
11599
|
-
@content = args[:content] if args.key?(:content)
|
11600
|
-
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
11601
|
-
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
11602
|
-
end
|
11603
|
-
end
|
11604
|
-
|
11605
|
-
# Set of detected objects with bounding boxes.
|
11606
|
-
class GoogleCloudVisionV1p6beta1LocalizedObjectAnnotation
|
11607
|
-
include Google::Apis::Core::Hashable
|
11608
|
-
|
11609
|
-
# A bounding polygon for the detected image annotation.
|
11610
|
-
# Corresponds to the JSON property `boundingPoly`
|
11611
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
11612
|
-
attr_accessor :bounding_poly
|
11613
|
-
|
11614
|
-
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
11615
|
-
# information, see
|
11616
|
-
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
11617
|
-
# Corresponds to the JSON property `languageCode`
|
11618
|
-
# @return [String]
|
11619
|
-
attr_accessor :language_code
|
11620
|
-
|
11621
|
-
# Object ID that should align with EntityAnnotation mid.
|
11622
|
-
# Corresponds to the JSON property `mid`
|
11623
|
-
# @return [String]
|
11624
|
-
attr_accessor :mid
|
11625
|
-
|
11626
|
-
# Object name, expressed in its `language_code` language.
|
11627
|
-
# Corresponds to the JSON property `name`
|
11628
|
-
# @return [String]
|
11629
|
-
attr_accessor :name
|
11630
|
-
|
11631
|
-
# Score of the result. Range [0, 1].
|
11632
|
-
# Corresponds to the JSON property `score`
|
11633
|
-
# @return [Float]
|
11634
|
-
attr_accessor :score
|
11635
|
-
|
11636
|
-
def initialize(**args)
|
11637
|
-
update!(**args)
|
11638
|
-
end
|
11639
|
-
|
11640
|
-
# Update properties of this object
|
11641
|
-
def update!(**args)
|
11642
|
-
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
11643
|
-
@language_code = args[:language_code] if args.key?(:language_code)
|
11644
|
-
@mid = args[:mid] if args.key?(:mid)
|
11645
|
-
@name = args[:name] if args.key?(:name)
|
11646
|
-
@score = args[:score] if args.key?(:score)
|
11647
|
-
end
|
11648
|
-
end
|
11649
|
-
|
11650
|
-
# Detected entity location information.
|
11651
|
-
class GoogleCloudVisionV1p6beta1LocationInfo
|
11652
|
-
include Google::Apis::Core::Hashable
|
11653
|
-
|
11654
|
-
# An object representing a latitude/longitude pair. This is expressed as a pair
|
11655
|
-
# of doubles representing degrees latitude and degrees longitude. Unless
|
11656
|
-
# specified otherwise, this must conform to the
|
11657
|
-
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
11658
|
-
# standard</a>. Values must be within normalized ranges.
|
11659
|
-
# Corresponds to the JSON property `latLng`
|
11660
|
-
# @return [Google::Apis::VisionV1::LatLng]
|
11661
|
-
attr_accessor :lat_lng
|
11662
|
-
|
11663
|
-
def initialize(**args)
|
11664
|
-
update!(**args)
|
11665
|
-
end
|
11666
|
-
|
11667
|
-
# Update properties of this object
|
11668
|
-
def update!(**args)
|
11669
|
-
@lat_lng = args[:lat_lng] if args.key?(:lat_lng)
|
11670
|
-
end
|
11671
|
-
end
|
11672
|
-
|
11673
|
-
# A vertex represents a 2D point in the image.
|
11674
|
-
# NOTE: the normalized vertex coordinates are relative to the original image
|
11675
|
-
# and range from 0 to 1.
|
11676
|
-
class GoogleCloudVisionV1p6beta1NormalizedVertex
|
11677
|
-
include Google::Apis::Core::Hashable
|
11678
|
-
|
11679
|
-
# X coordinate.
|
11680
|
-
# Corresponds to the JSON property `x`
|
11681
|
-
# @return [Float]
|
11682
|
-
attr_accessor :x
|
11683
|
-
|
11684
|
-
# Y coordinate.
|
11685
|
-
# Corresponds to the JSON property `y`
|
11686
|
-
# @return [Float]
|
11687
|
-
attr_accessor :y
|
11688
|
-
|
11689
|
-
def initialize(**args)
|
11690
|
-
update!(**args)
|
11691
|
-
end
|
11692
|
-
|
11693
|
-
# Update properties of this object
|
11694
|
-
def update!(**args)
|
11695
|
-
@x = args[:x] if args.key?(:x)
|
11696
|
-
@y = args[:y] if args.key?(:y)
|
11697
|
-
end
|
11698
|
-
end
|
11699
|
-
|
11700
|
-
# Contains metadata for the BatchAnnotateImages operation.
|
11701
|
-
class GoogleCloudVisionV1p6beta1OperationMetadata
|
11702
|
-
include Google::Apis::Core::Hashable
|
11703
|
-
|
11704
|
-
# The time when the batch request was received.
|
11705
|
-
# Corresponds to the JSON property `createTime`
|
11706
|
-
# @return [String]
|
11707
|
-
attr_accessor :create_time
|
11708
|
-
|
11709
|
-
# Current state of the batch operation.
|
11710
|
-
# Corresponds to the JSON property `state`
|
11711
|
-
# @return [String]
|
11712
|
-
attr_accessor :state
|
11713
|
-
|
11714
|
-
# The time when the operation result was last updated.
|
11715
|
-
# Corresponds to the JSON property `updateTime`
|
11716
|
-
# @return [String]
|
11717
|
-
attr_accessor :update_time
|
11718
|
-
|
11719
|
-
def initialize(**args)
|
11720
|
-
update!(**args)
|
11721
|
-
end
|
11722
|
-
|
11723
|
-
# Update properties of this object
|
11724
|
-
def update!(**args)
|
11725
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
11726
|
-
@state = args[:state] if args.key?(:state)
|
11727
|
-
@update_time = args[:update_time] if args.key?(:update_time)
|
11728
|
-
end
|
11729
|
-
end
|
11730
|
-
|
11731
|
-
# The desired output location and metadata.
|
11732
|
-
class GoogleCloudVisionV1p6beta1OutputConfig
|
11733
|
-
include Google::Apis::Core::Hashable
|
11734
|
-
|
11735
|
-
# The max number of response protos to put into each output JSON file on
|
11736
|
-
# Google Cloud Storage.
|
11737
|
-
# The valid range is [1, 100]. If not specified, the default value is 20.
|
11738
|
-
# For example, for one pdf file with 100 pages, 100 response protos will
|
11739
|
-
# be generated. If `batch_size` = 20, then 5 json files each
|
11740
|
-
# containing 20 response protos will be written under the prefix
|
11741
|
-
# `gcs_destination`.`uri`.
|
11742
|
-
# Currently, batch_size only applies to GcsDestination, with potential future
|
11743
|
-
# support for other output configurations.
|
11744
|
-
# Corresponds to the JSON property `batchSize`
|
11745
|
-
# @return [Fixnum]
|
11746
|
-
attr_accessor :batch_size
|
11747
|
-
|
11748
|
-
# The Google Cloud Storage location where the output will be written to.
|
11749
|
-
# Corresponds to the JSON property `gcsDestination`
|
11750
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1GcsDestination]
|
11751
|
-
attr_accessor :gcs_destination
|
11752
|
-
|
11753
|
-
def initialize(**args)
|
11754
|
-
update!(**args)
|
11755
|
-
end
|
11756
|
-
|
11757
|
-
# Update properties of this object
|
11758
|
-
def update!(**args)
|
11759
|
-
@batch_size = args[:batch_size] if args.key?(:batch_size)
|
11760
|
-
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
|
11761
|
-
end
|
11762
|
-
end
|
11763
|
-
|
11764
|
-
# Detected page from OCR.
|
11765
|
-
class GoogleCloudVisionV1p6beta1Page
|
11766
|
-
include Google::Apis::Core::Hashable
|
11767
|
-
|
11768
|
-
# List of blocks of text, images etc on this page.
|
11769
|
-
# Corresponds to the JSON property `blocks`
|
11770
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1Block>]
|
11771
|
-
attr_accessor :blocks
|
11772
|
-
|
11773
|
-
# Confidence of the OCR results on the page. Range [0, 1].
|
11774
|
-
# Corresponds to the JSON property `confidence`
|
11775
|
-
# @return [Float]
|
11776
|
-
attr_accessor :confidence
|
11777
|
-
|
11778
|
-
# Page height. For PDFs the unit is points. For images (including
|
11779
|
-
# TIFFs) the unit is pixels.
|
11780
|
-
# Corresponds to the JSON property `height`
|
11781
|
-
# @return [Fixnum]
|
11782
|
-
attr_accessor :height
|
11783
|
-
|
11784
|
-
# Additional information detected on the structural component.
|
11785
|
-
# Corresponds to the JSON property `property`
|
11786
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1TextAnnotationTextProperty]
|
11787
|
-
attr_accessor :property
|
11788
|
-
|
11789
|
-
# Page width. For PDFs the unit is points. For images (including
|
11790
|
-
# TIFFs) the unit is pixels.
|
11791
|
-
# Corresponds to the JSON property `width`
|
11792
|
-
# @return [Fixnum]
|
11793
|
-
attr_accessor :width
|
11794
|
-
|
11795
|
-
def initialize(**args)
|
11796
|
-
update!(**args)
|
11797
|
-
end
|
11798
|
-
|
11799
|
-
# Update properties of this object
|
11800
|
-
def update!(**args)
|
11801
|
-
@blocks = args[:blocks] if args.key?(:blocks)
|
11802
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
11803
|
-
@height = args[:height] if args.key?(:height)
|
11804
|
-
@property = args[:property] if args.key?(:property)
|
11805
|
-
@width = args[:width] if args.key?(:width)
|
11806
|
-
end
|
11807
|
-
end
|
11808
|
-
|
11809
|
-
# Structural unit of text representing a number of words in certain order.
|
11810
|
-
class GoogleCloudVisionV1p6beta1Paragraph
|
11811
|
-
include Google::Apis::Core::Hashable
|
11812
|
-
|
11813
|
-
# A bounding polygon for the detected image annotation.
|
11814
|
-
# Corresponds to the JSON property `boundingBox`
|
11815
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
11816
|
-
attr_accessor :bounding_box
|
11817
|
-
|
11818
|
-
# Confidence of the OCR results for the paragraph. Range [0, 1].
|
11819
|
-
# Corresponds to the JSON property `confidence`
|
11820
|
-
# @return [Float]
|
11821
|
-
attr_accessor :confidence
|
11822
|
-
|
11823
|
-
# Additional information detected on the structural component.
|
11824
|
-
# Corresponds to the JSON property `property`
|
11825
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1TextAnnotationTextProperty]
|
11826
|
-
attr_accessor :property
|
11827
|
-
|
11828
|
-
# List of words in this paragraph.
|
11829
|
-
# Corresponds to the JSON property `words`
|
11830
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1Word>]
|
11831
|
-
attr_accessor :words
|
11832
|
-
|
11833
|
-
def initialize(**args)
|
11834
|
-
update!(**args)
|
11835
|
-
end
|
11836
|
-
|
11837
|
-
# Update properties of this object
|
11838
|
-
def update!(**args)
|
11839
|
-
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
11840
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
11841
|
-
@property = args[:property] if args.key?(:property)
|
11842
|
-
@words = args[:words] if args.key?(:words)
|
11843
|
-
end
|
11844
|
-
end
|
11845
|
-
|
11846
|
-
# A 3D position in the image, used primarily for Face detection landmarks.
|
11847
|
-
# A valid Position must have both x and y coordinates.
|
11848
|
-
# The position coordinates are in the same scale as the original image.
|
11849
|
-
class GoogleCloudVisionV1p6beta1Position
|
11850
|
-
include Google::Apis::Core::Hashable
|
11851
|
-
|
11852
|
-
# X coordinate.
|
11853
|
-
# Corresponds to the JSON property `x`
|
11854
|
-
# @return [Float]
|
11855
|
-
attr_accessor :x
|
11856
|
-
|
11857
|
-
# Y coordinate.
|
11858
|
-
# Corresponds to the JSON property `y`
|
11859
|
-
# @return [Float]
|
11860
|
-
attr_accessor :y
|
11861
|
-
|
11862
|
-
# Z coordinate (or depth).
|
11863
|
-
# Corresponds to the JSON property `z`
|
11864
|
-
# @return [Float]
|
11865
|
-
attr_accessor :z
|
11866
|
-
|
11867
|
-
def initialize(**args)
|
11868
|
-
update!(**args)
|
11869
|
-
end
|
11870
|
-
|
11871
|
-
# Update properties of this object
|
11872
|
-
def update!(**args)
|
11873
|
-
@x = args[:x] if args.key?(:x)
|
11874
|
-
@y = args[:y] if args.key?(:y)
|
11875
|
-
@z = args[:z] if args.key?(:z)
|
11876
|
-
end
|
11877
|
-
end
|
11878
|
-
|
11879
|
-
# A Product contains ReferenceImages.
|
11880
|
-
class GoogleCloudVisionV1p6beta1Product
|
11881
|
-
include Google::Apis::Core::Hashable
|
11882
|
-
|
11883
|
-
# User-provided metadata to be stored with this product. Must be at most 4096
|
11884
|
-
# characters long.
|
11885
|
-
# Corresponds to the JSON property `description`
|
11886
|
-
# @return [String]
|
11887
|
-
attr_accessor :description
|
11888
|
-
|
11889
|
-
# The user-provided name for this Product. Must not be empty. Must be at most
|
11890
|
-
# 4096 characters long.
|
11891
|
-
# Corresponds to the JSON property `displayName`
|
11892
|
-
# @return [String]
|
11893
|
-
attr_accessor :display_name
|
11894
|
-
|
11895
|
-
# The resource name of the product.
|
11896
|
-
# Format is:
|
11897
|
-
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
11898
|
-
# This field is ignored when creating a product.
|
11899
|
-
# Corresponds to the JSON property `name`
|
11900
|
-
# @return [String]
|
11901
|
-
attr_accessor :name
|
11902
|
-
|
11903
|
-
# The category for the product identified by the reference image. This should
|
11904
|
-
# be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
|
11905
|
-
# "homegoods", "apparel", and "toys" are still supported, but these should
|
11906
|
-
# not be used for new products.
|
11907
|
-
# This field is immutable.
|
11908
|
-
# Corresponds to the JSON property `productCategory`
|
11909
|
-
# @return [String]
|
11910
|
-
attr_accessor :product_category
|
11911
|
-
|
11912
|
-
# Key-value pairs that can be attached to a product. At query time,
|
11913
|
-
# constraints can be specified based on the product_labels.
|
11914
|
-
# Note that integer values can be provided as strings, e.g. "1199". Only
|
11915
|
-
# strings with integer values can match a range-based restriction which is
|
11916
|
-
# to be supported soon.
|
11917
|
-
# Multiple values can be assigned to the same key. One product may have up to
|
11918
|
-
# 100 product_labels.
|
11919
|
-
# Corresponds to the JSON property `productLabels`
|
11920
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1ProductKeyValue>]
|
11921
|
-
attr_accessor :product_labels
|
11922
|
-
|
11923
|
-
def initialize(**args)
|
11924
|
-
update!(**args)
|
11925
|
-
end
|
11926
|
-
|
11927
|
-
# Update properties of this object
|
11928
|
-
def update!(**args)
|
11929
|
-
@description = args[:description] if args.key?(:description)
|
11930
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
11931
|
-
@name = args[:name] if args.key?(:name)
|
11932
|
-
@product_category = args[:product_category] if args.key?(:product_category)
|
11933
|
-
@product_labels = args[:product_labels] if args.key?(:product_labels)
|
11934
|
-
end
|
11935
|
-
end
|
11936
|
-
|
11937
|
-
# A product label represented as a key-value pair.
|
11938
|
-
class GoogleCloudVisionV1p6beta1ProductKeyValue
|
11939
|
-
include Google::Apis::Core::Hashable
|
11940
|
-
|
11941
|
-
# The key of the label attached to the product. Cannot be empty and cannot
|
11942
|
-
# exceed 128 bytes.
|
11943
|
-
# Corresponds to the JSON property `key`
|
11944
|
-
# @return [String]
|
11945
|
-
attr_accessor :key
|
11946
|
-
|
11947
|
-
# The value of the label attached to the product. Cannot be empty and
|
11948
|
-
# cannot exceed 128 bytes.
|
11949
|
-
# Corresponds to the JSON property `value`
|
11950
|
-
# @return [String]
|
11951
|
-
attr_accessor :value
|
11952
|
-
|
11953
|
-
def initialize(**args)
|
11954
|
-
update!(**args)
|
11955
|
-
end
|
11956
|
-
|
11957
|
-
# Update properties of this object
|
11958
|
-
def update!(**args)
|
11959
|
-
@key = args[:key] if args.key?(:key)
|
11960
|
-
@value = args[:value] if args.key?(:value)
|
11961
|
-
end
|
11962
|
-
end
|
11963
|
-
|
11964
|
-
# Results for a product search request.
|
11965
|
-
class GoogleCloudVisionV1p6beta1ProductSearchResults
|
11966
|
-
include Google::Apis::Core::Hashable
|
11967
|
-
|
11968
|
-
# Timestamp of the index which provided these results. Products added to the
|
11969
|
-
# product set and products removed from the product set after this time are
|
11970
|
-
# not reflected in the current results.
|
11971
|
-
# Corresponds to the JSON property `indexTime`
|
11972
|
-
# @return [String]
|
11973
|
-
attr_accessor :index_time
|
11974
|
-
|
11975
|
-
# List of results grouped by products detected in the query image. Each entry
|
11976
|
-
# corresponds to one bounding polygon in the query image, and contains the
|
11977
|
-
# matching products specific to that region. There may be duplicate product
|
11978
|
-
# matches in the union of all the per-product results.
|
11979
|
-
# Corresponds to the JSON property `productGroupedResults`
|
11980
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1ProductSearchResultsGroupedResult>]
|
11981
|
-
attr_accessor :product_grouped_results
|
11982
|
-
|
11983
|
-
# List of results, one for each product match.
|
11984
|
-
# Corresponds to the JSON property `results`
|
11985
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1ProductSearchResultsResult>]
|
11986
|
-
attr_accessor :results
|
11987
|
-
|
11988
|
-
def initialize(**args)
|
11989
|
-
update!(**args)
|
11990
|
-
end
|
11991
|
-
|
11992
|
-
# Update properties of this object
|
11993
|
-
def update!(**args)
|
11994
|
-
@index_time = args[:index_time] if args.key?(:index_time)
|
11995
|
-
@product_grouped_results = args[:product_grouped_results] if args.key?(:product_grouped_results)
|
11996
|
-
@results = args[:results] if args.key?(:results)
|
11997
|
-
end
|
11998
|
-
end
|
11999
|
-
|
12000
|
-
# Information about the products similar to a single product in a query
|
12001
|
-
# image.
|
12002
|
-
class GoogleCloudVisionV1p6beta1ProductSearchResultsGroupedResult
|
12003
|
-
include Google::Apis::Core::Hashable
|
12004
|
-
|
12005
|
-
# A bounding polygon for the detected image annotation.
|
12006
|
-
# Corresponds to the JSON property `boundingPoly`
|
12007
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
12008
|
-
attr_accessor :bounding_poly
|
12009
|
-
|
12010
|
-
# List of results, one for each product match.
|
12011
|
-
# Corresponds to the JSON property `results`
|
12012
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1ProductSearchResultsResult>]
|
12013
|
-
attr_accessor :results
|
12014
|
-
|
12015
|
-
def initialize(**args)
|
12016
|
-
update!(**args)
|
12017
|
-
end
|
12018
|
-
|
12019
|
-
# Update properties of this object
|
12020
|
-
def update!(**args)
|
12021
|
-
@bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
|
12022
|
-
@results = args[:results] if args.key?(:results)
|
12023
|
-
end
|
12024
|
-
end
|
12025
|
-
|
12026
|
-
# Information about a product.
|
12027
|
-
class GoogleCloudVisionV1p6beta1ProductSearchResultsResult
|
12028
|
-
include Google::Apis::Core::Hashable
|
12029
|
-
|
12030
|
-
# The resource name of the image from the product that is the closest match
|
12031
|
-
# to the query.
|
12032
|
-
# Corresponds to the JSON property `image`
|
12033
|
-
# @return [String]
|
12034
|
-
attr_accessor :image
|
12035
|
-
|
12036
|
-
# A Product contains ReferenceImages.
|
12037
|
-
# Corresponds to the JSON property `product`
|
12038
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1Product]
|
12039
|
-
attr_accessor :product
|
12040
|
-
|
12041
|
-
# A confidence level on the match, ranging from 0 (no confidence) to
|
12042
|
-
# 1 (full confidence).
|
12043
|
-
# Corresponds to the JSON property `score`
|
12044
|
-
# @return [Float]
|
12045
|
-
attr_accessor :score
|
12046
|
-
|
12047
|
-
def initialize(**args)
|
12048
|
-
update!(**args)
|
12049
|
-
end
|
12050
|
-
|
12051
|
-
# Update properties of this object
|
12052
|
-
def update!(**args)
|
12053
|
-
@image = args[:image] if args.key?(:image)
|
12054
|
-
@product = args[:product] if args.key?(:product)
|
12055
|
-
@score = args[:score] if args.key?(:score)
|
12056
|
-
end
|
12057
|
-
end
|
12058
|
-
|
12059
|
-
# A `Property` consists of a user-supplied name/value pair.
|
12060
|
-
class GoogleCloudVisionV1p6beta1Property
|
12061
|
-
include Google::Apis::Core::Hashable
|
12062
|
-
|
12063
|
-
# Value in range [0..1]. Confidence of this property value.
|
12064
|
-
# Corresponds to the JSON property `confidence`
|
12065
|
-
# @return [Float]
|
12066
|
-
attr_accessor :confidence
|
12067
|
-
|
12068
|
-
# Opaque property value ID. Some IDs may be available in
|
12069
|
-
# [Google Knowledge Graph Search
|
12070
|
-
# API](https://developers.google.com/knowledge-graph/).
|
12071
|
-
# An example property for a blue coat would be:
|
12072
|
-
# Property `
|
12073
|
-
# name: 'color'
|
12074
|
-
# value: 'blue'
|
12075
|
-
# mid: '/m/01g5v' // For color blue
|
12076
|
-
# `
|
12077
|
-
# Corresponds to the JSON property `mid`
|
12078
|
-
# @return [String]
|
12079
|
-
attr_accessor :mid
|
12080
|
-
|
12081
|
-
# Name of the property.
|
12082
|
-
# Corresponds to the JSON property `name`
|
12083
|
-
# @return [String]
|
12084
|
-
attr_accessor :name
|
12085
|
-
|
12086
|
-
# Value of numeric properties.
|
12087
|
-
# Corresponds to the JSON property `uint64Value`
|
12088
|
-
# @return [Fixnum]
|
12089
|
-
attr_accessor :uint64_value
|
12090
|
-
|
12091
|
-
# Value of the property.
|
12092
|
-
# Corresponds to the JSON property `value`
|
12093
|
-
# @return [String]
|
12094
|
-
attr_accessor :value
|
12095
|
-
|
12096
|
-
def initialize(**args)
|
12097
|
-
update!(**args)
|
12098
|
-
end
|
12099
|
-
|
12100
|
-
# Update properties of this object
|
12101
|
-
def update!(**args)
|
12102
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
12103
|
-
@mid = args[:mid] if args.key?(:mid)
|
12104
|
-
@name = args[:name] if args.key?(:name)
|
12105
|
-
@uint64_value = args[:uint64_value] if args.key?(:uint64_value)
|
12106
|
-
@value = args[:value] if args.key?(:value)
|
12107
|
-
end
|
12108
|
-
end
|
12109
|
-
|
12110
|
-
# Stores enhanced image bytes.
|
12111
|
-
class GoogleCloudVisionV1p6beta1QualityOptimizationResult
|
12112
|
-
include Google::Apis::Core::Hashable
|
12113
|
-
|
12114
|
-
# Optimized image bytes.
|
12115
|
-
# Corresponds to the JSON property `image`
|
12116
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
12117
|
-
# @return [String]
|
12118
|
-
attr_accessor :image
|
12119
|
-
|
12120
|
-
# Mime type of the output image.
|
12121
|
-
# Corresponds to the JSON property `mimeType`
|
12122
|
-
# @return [String]
|
12123
|
-
attr_accessor :mime_type
|
12124
|
-
|
12125
|
-
# Required optimization type.
|
12126
|
-
# Corresponds to the JSON property `qualityOptimizationType`
|
12127
|
-
# @return [String]
|
12128
|
-
attr_accessor :quality_optimization_type
|
12129
|
-
|
12130
|
-
def initialize(**args)
|
12131
|
-
update!(**args)
|
12132
|
-
end
|
12133
|
-
|
12134
|
-
# Update properties of this object
|
12135
|
-
def update!(**args)
|
12136
|
-
@image = args[:image] if args.key?(:image)
|
12137
|
-
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
12138
|
-
@quality_optimization_type = args[:quality_optimization_type] if args.key?(:quality_optimization_type)
|
12139
|
-
end
|
12140
|
-
end
|
12141
|
-
|
12142
|
-
# A `ReferenceImage` represents a product image and its associated metadata,
|
12143
|
-
# such as bounding boxes.
|
12144
|
-
class GoogleCloudVisionV1p6beta1ReferenceImage
|
12145
|
-
include Google::Apis::Core::Hashable
|
12146
|
-
|
12147
|
-
# Bounding polygons around the areas of interest in the reference image.
|
12148
|
-
# Optional. If this field is empty, the system will try to detect regions of
|
12149
|
-
# interest. At most 10 bounding polygons will be used.
|
12150
|
-
# The provided shape is converted into a non-rotated rectangle. Once
|
12151
|
-
# converted, the small edge of the rectangle must be greater than or equal
|
12152
|
-
# to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5
|
12153
|
-
# is not).
|
12154
|
-
# Corresponds to the JSON property `boundingPolys`
|
12155
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1BoundingPoly>]
|
12156
|
-
attr_accessor :bounding_polys
|
12157
|
-
|
12158
|
-
# The resource name of the reference image.
|
12159
|
-
# Format is:
|
12160
|
-
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/
|
12161
|
-
# IMAGE_ID`.
|
12162
|
-
# This field is ignored when creating a reference image.
|
12163
|
-
# Corresponds to the JSON property `name`
|
12164
|
-
# @return [String]
|
12165
|
-
attr_accessor :name
|
12166
|
-
|
12167
|
-
# The Google Cloud Storage URI of the reference image.
|
12168
|
-
# The URI must start with `gs://`.
|
12169
|
-
# Required.
|
12170
|
-
# Corresponds to the JSON property `uri`
|
12171
|
-
# @return [String]
|
12172
|
-
attr_accessor :uri
|
12173
|
-
|
12174
|
-
def initialize(**args)
|
12175
|
-
update!(**args)
|
12176
|
-
end
|
12177
|
-
|
12178
|
-
# Update properties of this object
|
12179
|
-
def update!(**args)
|
12180
|
-
@bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys)
|
12181
|
-
@name = args[:name] if args.key?(:name)
|
12182
|
-
@uri = args[:uri] if args.key?(:uri)
|
12183
|
-
end
|
12184
|
-
end
|
12185
|
-
|
12186
|
-
# Set of features pertaining to the image, computed by computer vision
|
12187
|
-
# methods over safe-search verticals (for example, adult, spoof, medical,
|
12188
|
-
# violence).
|
12189
|
-
class GoogleCloudVisionV1p6beta1SafeSearchAnnotation
|
12190
|
-
include Google::Apis::Core::Hashable
|
12191
|
-
|
12192
|
-
# Represents the adult content likelihood for the image. Adult content may
|
12193
|
-
# contain elements such as nudity, pornographic images or cartoons, or
|
12194
|
-
# sexual activities.
|
12195
|
-
# Corresponds to the JSON property `adult`
|
12196
|
-
# @return [String]
|
12197
|
-
attr_accessor :adult
|
12198
|
-
|
12199
|
-
# Likelihood that this is a medical image.
|
12200
|
-
# Corresponds to the JSON property `medical`
|
12201
|
-
# @return [String]
|
12202
|
-
attr_accessor :medical
|
12203
|
-
|
12204
|
-
# Likelihood that the request image contains racy content. Racy content may
|
12205
|
-
# include (but is not limited to) skimpy or sheer clothing, strategically
|
12206
|
-
# covered nudity, lewd or provocative poses, or close-ups of sensitive
|
12207
|
-
# body areas.
|
12208
|
-
# Corresponds to the JSON property `racy`
|
12209
|
-
# @return [String]
|
12210
|
-
attr_accessor :racy
|
12211
|
-
|
12212
|
-
# Spoof likelihood. The likelihood that an modification
|
12213
|
-
# was made to the image's canonical version to make it appear
|
12214
|
-
# funny or offensive.
|
12215
|
-
# Corresponds to the JSON property `spoof`
|
12216
|
-
# @return [String]
|
12217
|
-
attr_accessor :spoof
|
12218
|
-
|
12219
|
-
# Likelihood that this image contains violent content.
|
12220
|
-
# Corresponds to the JSON property `violence`
|
12221
|
-
# @return [String]
|
12222
|
-
attr_accessor :violence
|
12223
|
-
|
12224
|
-
def initialize(**args)
|
12225
|
-
update!(**args)
|
12226
|
-
end
|
12227
|
-
|
12228
|
-
# Update properties of this object
|
12229
|
-
def update!(**args)
|
12230
|
-
@adult = args[:adult] if args.key?(:adult)
|
12231
|
-
@medical = args[:medical] if args.key?(:medical)
|
12232
|
-
@racy = args[:racy] if args.key?(:racy)
|
12233
|
-
@spoof = args[:spoof] if args.key?(:spoof)
|
12234
|
-
@violence = args[:violence] if args.key?(:violence)
|
12235
|
-
end
|
12236
|
-
end
|
12237
|
-
|
12238
|
-
# A single symbol representation.
|
12239
|
-
class GoogleCloudVisionV1p6beta1Symbol
|
12240
|
-
include Google::Apis::Core::Hashable
|
12241
|
-
|
12242
|
-
# A bounding polygon for the detected image annotation.
|
12243
|
-
# Corresponds to the JSON property `boundingBox`
|
12244
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
12245
|
-
attr_accessor :bounding_box
|
12246
|
-
|
12247
|
-
# Confidence of the OCR results for the symbol. Range [0, 1].
|
12248
|
-
# Corresponds to the JSON property `confidence`
|
12249
|
-
# @return [Float]
|
12250
|
-
attr_accessor :confidence
|
12251
|
-
|
12252
|
-
# Additional information detected on the structural component.
|
12253
|
-
# Corresponds to the JSON property `property`
|
12254
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1TextAnnotationTextProperty]
|
12255
|
-
attr_accessor :property
|
12256
|
-
|
12257
|
-
# The actual UTF-8 representation of the symbol.
|
12258
|
-
# Corresponds to the JSON property `text`
|
12259
|
-
# @return [String]
|
12260
|
-
attr_accessor :text
|
12261
|
-
|
12262
|
-
def initialize(**args)
|
12263
|
-
update!(**args)
|
12264
|
-
end
|
12265
|
-
|
12266
|
-
# Update properties of this object
|
12267
|
-
def update!(**args)
|
12268
|
-
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
12269
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
12270
|
-
@property = args[:property] if args.key?(:property)
|
12271
|
-
@text = args[:text] if args.key?(:text)
|
12272
|
-
end
|
12273
|
-
end
|
12274
|
-
|
12275
|
-
# TextAnnotation contains a structured representation of OCR extracted text.
|
12276
|
-
# The hierarchy of an OCR extracted text structure is like this:
|
12277
|
-
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
12278
|
-
# Each structural component, starting from Page, may further have their own
|
12279
|
-
# properties. Properties describe detected languages, breaks etc.. Please refer
|
12280
|
-
# to the TextAnnotation.TextProperty message definition below for more
|
12281
|
-
# detail.
|
12282
|
-
class GoogleCloudVisionV1p6beta1TextAnnotation
|
12283
|
-
include Google::Apis::Core::Hashable
|
12284
|
-
|
12285
|
-
# List of pages detected by OCR.
|
12286
|
-
# Corresponds to the JSON property `pages`
|
12287
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1Page>]
|
12288
|
-
attr_accessor :pages
|
12289
|
-
|
12290
|
-
# UTF-8 text detected on the pages.
|
12291
|
-
# Corresponds to the JSON property `text`
|
12292
|
-
# @return [String]
|
12293
|
-
attr_accessor :text
|
12294
|
-
|
12295
|
-
def initialize(**args)
|
12296
|
-
update!(**args)
|
12297
|
-
end
|
12298
|
-
|
12299
|
-
# Update properties of this object
|
12300
|
-
def update!(**args)
|
12301
|
-
@pages = args[:pages] if args.key?(:pages)
|
12302
|
-
@text = args[:text] if args.key?(:text)
|
12303
|
-
end
|
12304
|
-
end
|
12305
|
-
|
12306
|
-
# Detected start or end of a structural component.
|
12307
|
-
class GoogleCloudVisionV1p6beta1TextAnnotationDetectedBreak
|
12308
|
-
include Google::Apis::Core::Hashable
|
12309
|
-
|
12310
|
-
# True if break prepends the element.
|
12311
|
-
# Corresponds to the JSON property `isPrefix`
|
12312
|
-
# @return [Boolean]
|
12313
|
-
attr_accessor :is_prefix
|
12314
|
-
alias_method :is_prefix?, :is_prefix
|
12315
|
-
|
12316
|
-
# Detected break type.
|
12317
|
-
# Corresponds to the JSON property `type`
|
12318
|
-
# @return [String]
|
12319
|
-
attr_accessor :type
|
12320
|
-
|
12321
|
-
def initialize(**args)
|
12322
|
-
update!(**args)
|
12323
|
-
end
|
12324
|
-
|
12325
|
-
# Update properties of this object
|
12326
|
-
def update!(**args)
|
12327
|
-
@is_prefix = args[:is_prefix] if args.key?(:is_prefix)
|
12328
|
-
@type = args[:type] if args.key?(:type)
|
12329
|
-
end
|
12330
|
-
end
|
12331
|
-
|
12332
|
-
# Detected language for a structural component.
|
12333
|
-
class GoogleCloudVisionV1p6beta1TextAnnotationDetectedLanguage
|
12334
|
-
include Google::Apis::Core::Hashable
|
12335
|
-
|
12336
|
-
# Confidence of detected language. Range [0, 1].
|
12337
|
-
# Corresponds to the JSON property `confidence`
|
12338
|
-
# @return [Float]
|
12339
|
-
attr_accessor :confidence
|
12340
|
-
|
12341
|
-
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
12342
|
-
# information, see
|
12343
|
-
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
12344
|
-
# Corresponds to the JSON property `languageCode`
|
12345
|
-
# @return [String]
|
12346
|
-
attr_accessor :language_code
|
12347
|
-
|
12348
|
-
def initialize(**args)
|
12349
|
-
update!(**args)
|
12350
|
-
end
|
12351
|
-
|
12352
|
-
# Update properties of this object
|
12353
|
-
def update!(**args)
|
12354
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
12355
|
-
@language_code = args[:language_code] if args.key?(:language_code)
|
12356
|
-
end
|
12357
|
-
end
|
12358
|
-
|
12359
|
-
# Additional information detected on the structural component.
|
12360
|
-
class GoogleCloudVisionV1p6beta1TextAnnotationTextProperty
|
12361
|
-
include Google::Apis::Core::Hashable
|
12362
|
-
|
12363
|
-
# Detected start or end of a structural component.
|
12364
|
-
# Corresponds to the JSON property `detectedBreak`
|
12365
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1TextAnnotationDetectedBreak]
|
12366
|
-
attr_accessor :detected_break
|
12367
|
-
|
12368
|
-
# A list of detected languages together with confidence.
|
12369
|
-
# Corresponds to the JSON property `detectedLanguages`
|
12370
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1TextAnnotationDetectedLanguage>]
|
12371
|
-
attr_accessor :detected_languages
|
12372
|
-
|
12373
|
-
def initialize(**args)
|
12374
|
-
update!(**args)
|
12375
|
-
end
|
12376
|
-
|
12377
|
-
# Update properties of this object
|
12378
|
-
def update!(**args)
|
12379
|
-
@detected_break = args[:detected_break] if args.key?(:detected_break)
|
12380
|
-
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
12381
|
-
end
|
12382
|
-
end
|
12383
|
-
|
12384
|
-
# A vertex represents a 2D point in the image.
|
12385
|
-
# NOTE: the vertex coordinates are in the same scale as the original image.
|
12386
|
-
class GoogleCloudVisionV1p6beta1Vertex
|
12387
|
-
include Google::Apis::Core::Hashable
|
12388
|
-
|
12389
|
-
# X coordinate.
|
12390
|
-
# Corresponds to the JSON property `x`
|
12391
|
-
# @return [Fixnum]
|
12392
|
-
attr_accessor :x
|
12393
|
-
|
12394
|
-
# Y coordinate.
|
12395
|
-
# Corresponds to the JSON property `y`
|
12396
|
-
# @return [Fixnum]
|
12397
|
-
attr_accessor :y
|
12398
|
-
|
12399
|
-
def initialize(**args)
|
12400
|
-
update!(**args)
|
12401
|
-
end
|
12402
|
-
|
12403
|
-
# Update properties of this object
|
12404
|
-
def update!(**args)
|
12405
|
-
@x = args[:x] if args.key?(:x)
|
12406
|
-
@y = args[:y] if args.key?(:y)
|
12407
|
-
end
|
12408
|
-
end
|
12409
|
-
|
12410
|
-
# Relevant information for the image from the Internet.
|
12411
|
-
class GoogleCloudVisionV1p6beta1WebDetection
|
12412
|
-
include Google::Apis::Core::Hashable
|
12413
|
-
|
12414
|
-
# The service's best guess as to the topic of the request image.
|
12415
|
-
# Inferred from similar images on the open web.
|
12416
|
-
# Corresponds to the JSON property `bestGuessLabels`
|
12417
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1WebDetectionWebLabel>]
|
12418
|
-
attr_accessor :best_guess_labels
|
12419
|
-
|
12420
|
-
# Fully matching images from the Internet.
|
12421
|
-
# Can include resized copies of the query image.
|
12422
|
-
# Corresponds to the JSON property `fullMatchingImages`
|
12423
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1WebDetectionWebImage>]
|
12424
|
-
attr_accessor :full_matching_images
|
12425
|
-
|
12426
|
-
# Web pages containing the matching images from the Internet.
|
12427
|
-
# Corresponds to the JSON property `pagesWithMatchingImages`
|
12428
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1WebDetectionWebPage>]
|
12429
|
-
attr_accessor :pages_with_matching_images
|
12430
|
-
|
12431
|
-
# Partial matching images from the Internet.
|
12432
|
-
# Those images are similar enough to share some key-point features. For
|
12433
|
-
# example an original image will likely have partial matching for its crops.
|
12434
|
-
# Corresponds to the JSON property `partialMatchingImages`
|
12435
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1WebDetectionWebImage>]
|
12436
|
-
attr_accessor :partial_matching_images
|
12437
|
-
|
12438
|
-
# The visually similar image results.
|
12439
|
-
# Corresponds to the JSON property `visuallySimilarImages`
|
12440
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1WebDetectionWebImage>]
|
12441
|
-
attr_accessor :visually_similar_images
|
12442
|
-
|
12443
|
-
# Deduced entities from similar images on the Internet.
|
12444
|
-
# Corresponds to the JSON property `webEntities`
|
12445
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1WebDetectionWebEntity>]
|
12446
|
-
attr_accessor :web_entities
|
12447
|
-
|
12448
|
-
def initialize(**args)
|
12449
|
-
update!(**args)
|
12450
|
-
end
|
12451
|
-
|
12452
|
-
# Update properties of this object
|
12453
|
-
def update!(**args)
|
12454
|
-
@best_guess_labels = args[:best_guess_labels] if args.key?(:best_guess_labels)
|
12455
|
-
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
12456
|
-
@pages_with_matching_images = args[:pages_with_matching_images] if args.key?(:pages_with_matching_images)
|
12457
|
-
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
12458
|
-
@visually_similar_images = args[:visually_similar_images] if args.key?(:visually_similar_images)
|
12459
|
-
@web_entities = args[:web_entities] if args.key?(:web_entities)
|
12460
|
-
end
|
12461
|
-
end
|
12462
|
-
|
12463
|
-
# Entity deduced from similar images on the Internet.
|
12464
|
-
class GoogleCloudVisionV1p6beta1WebDetectionWebEntity
|
12465
|
-
include Google::Apis::Core::Hashable
|
12466
|
-
|
12467
|
-
# Canonical description of the entity, in English.
|
12468
|
-
# Corresponds to the JSON property `description`
|
12469
|
-
# @return [String]
|
12470
|
-
attr_accessor :description
|
12471
|
-
|
12472
|
-
# Opaque entity ID.
|
12473
|
-
# Corresponds to the JSON property `entityId`
|
12474
|
-
# @return [String]
|
12475
|
-
attr_accessor :entity_id
|
12476
|
-
|
12477
|
-
# Overall relevancy score for the entity.
|
12478
|
-
# Not normalized and not comparable across different image queries.
|
12479
|
-
# Corresponds to the JSON property `score`
|
12480
|
-
# @return [Float]
|
12481
|
-
attr_accessor :score
|
12482
|
-
|
12483
|
-
def initialize(**args)
|
12484
|
-
update!(**args)
|
12485
|
-
end
|
12486
|
-
|
12487
|
-
# Update properties of this object
|
12488
|
-
def update!(**args)
|
12489
|
-
@description = args[:description] if args.key?(:description)
|
12490
|
-
@entity_id = args[:entity_id] if args.key?(:entity_id)
|
12491
|
-
@score = args[:score] if args.key?(:score)
|
12492
|
-
end
|
12493
|
-
end
|
12494
|
-
|
12495
|
-
# Metadata for online images.
|
12496
|
-
class GoogleCloudVisionV1p6beta1WebDetectionWebImage
|
12497
|
-
include Google::Apis::Core::Hashable
|
12498
|
-
|
12499
|
-
# (Deprecated) Overall relevancy score for the image.
|
12500
|
-
# Corresponds to the JSON property `score`
|
12501
|
-
# @return [Float]
|
12502
|
-
attr_accessor :score
|
12503
|
-
|
12504
|
-
# The result image URL.
|
12505
|
-
# Corresponds to the JSON property `url`
|
12506
|
-
# @return [String]
|
12507
|
-
attr_accessor :url
|
12508
|
-
|
12509
|
-
def initialize(**args)
|
12510
|
-
update!(**args)
|
12511
|
-
end
|
12512
|
-
|
12513
|
-
# Update properties of this object
|
12514
|
-
def update!(**args)
|
12515
|
-
@score = args[:score] if args.key?(:score)
|
12516
|
-
@url = args[:url] if args.key?(:url)
|
12517
|
-
end
|
12518
|
-
end
|
12519
|
-
|
12520
|
-
# Label to provide extra metadata for the web detection.
|
12521
|
-
class GoogleCloudVisionV1p6beta1WebDetectionWebLabel
|
12522
|
-
include Google::Apis::Core::Hashable
|
12523
|
-
|
12524
|
-
# Label for extra metadata.
|
12525
|
-
# Corresponds to the JSON property `label`
|
12526
|
-
# @return [String]
|
12527
|
-
attr_accessor :label
|
12528
|
-
|
12529
|
-
# The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
|
12530
|
-
# For more information, see
|
12531
|
-
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
12532
|
-
# Corresponds to the JSON property `languageCode`
|
12533
|
-
# @return [String]
|
12534
|
-
attr_accessor :language_code
|
12535
|
-
|
12536
|
-
def initialize(**args)
|
12537
|
-
update!(**args)
|
12538
|
-
end
|
12539
|
-
|
12540
|
-
# Update properties of this object
|
12541
|
-
def update!(**args)
|
12542
|
-
@label = args[:label] if args.key?(:label)
|
12543
|
-
@language_code = args[:language_code] if args.key?(:language_code)
|
12544
|
-
end
|
12545
|
-
end
|
12546
|
-
|
12547
|
-
# Metadata for web pages.
|
12548
|
-
class GoogleCloudVisionV1p6beta1WebDetectionWebPage
|
12549
|
-
include Google::Apis::Core::Hashable
|
12550
|
-
|
12551
|
-
# Fully matching images on the page.
|
12552
|
-
# Can include resized copies of the query image.
|
12553
|
-
# Corresponds to the JSON property `fullMatchingImages`
|
12554
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1WebDetectionWebImage>]
|
12555
|
-
attr_accessor :full_matching_images
|
12556
|
-
|
12557
|
-
# Title for the web page, may contain HTML markups.
|
12558
|
-
# Corresponds to the JSON property `pageTitle`
|
12559
|
-
# @return [String]
|
12560
|
-
attr_accessor :page_title
|
12561
|
-
|
12562
|
-
# Partial matching images on the page.
|
12563
|
-
# Those images are similar enough to share some key-point features. For
|
12564
|
-
# example an original image will likely have partial matching for its
|
12565
|
-
# crops.
|
12566
|
-
# Corresponds to the JSON property `partialMatchingImages`
|
12567
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1WebDetectionWebImage>]
|
12568
|
-
attr_accessor :partial_matching_images
|
12569
|
-
|
12570
|
-
# (Deprecated) Overall relevancy score for the web page.
|
12571
|
-
# Corresponds to the JSON property `score`
|
12572
|
-
# @return [Float]
|
12573
|
-
attr_accessor :score
|
12574
|
-
|
12575
|
-
# The result web page URL.
|
12576
|
-
# Corresponds to the JSON property `url`
|
12577
|
-
# @return [String]
|
12578
|
-
attr_accessor :url
|
12579
|
-
|
12580
|
-
def initialize(**args)
|
12581
|
-
update!(**args)
|
12582
|
-
end
|
12583
|
-
|
12584
|
-
# Update properties of this object
|
12585
|
-
def update!(**args)
|
12586
|
-
@full_matching_images = args[:full_matching_images] if args.key?(:full_matching_images)
|
12587
|
-
@page_title = args[:page_title] if args.key?(:page_title)
|
12588
|
-
@partial_matching_images = args[:partial_matching_images] if args.key?(:partial_matching_images)
|
12589
|
-
@score = args[:score] if args.key?(:score)
|
12590
|
-
@url = args[:url] if args.key?(:url)
|
12591
|
-
end
|
12592
|
-
end
|
12593
|
-
|
12594
|
-
# A word representation.
|
12595
|
-
class GoogleCloudVisionV1p6beta1Word
|
12596
|
-
include Google::Apis::Core::Hashable
|
12597
|
-
|
12598
|
-
# A bounding polygon for the detected image annotation.
|
12599
|
-
# Corresponds to the JSON property `boundingBox`
|
12600
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1BoundingPoly]
|
12601
|
-
attr_accessor :bounding_box
|
12602
|
-
|
12603
|
-
# Confidence of the OCR results for the word. Range [0, 1].
|
12604
|
-
# Corresponds to the JSON property `confidence`
|
12605
|
-
# @return [Float]
|
12606
|
-
attr_accessor :confidence
|
12607
|
-
|
12608
|
-
# Additional information detected on the structural component.
|
12609
|
-
# Corresponds to the JSON property `property`
|
12610
|
-
# @return [Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1TextAnnotationTextProperty]
|
12611
|
-
attr_accessor :property
|
12612
|
-
|
12613
|
-
# List of symbols in the word.
|
12614
|
-
# The order of the symbols follows the natural reading order.
|
12615
|
-
# Corresponds to the JSON property `symbols`
|
12616
|
-
# @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p6beta1Symbol>]
|
12617
|
-
attr_accessor :symbols
|
12618
|
-
|
12619
|
-
def initialize(**args)
|
12620
|
-
update!(**args)
|
12621
|
-
end
|
12622
|
-
|
12623
|
-
# Update properties of this object
|
12624
|
-
def update!(**args)
|
12625
|
-
@bounding_box = args[:bounding_box] if args.key?(:bounding_box)
|
12626
|
-
@confidence = args[:confidence] if args.key?(:confidence)
|
12627
|
-
@property = args[:property] if args.key?(:property)
|
12628
|
-
@symbols = args[:symbols] if args.key?(:symbols)
|
12629
|
-
end
|
12630
|
-
end
|
12631
|
-
|
12632
10714
|
# Information about the products similar to a single product in a query
|
12633
10715
|
# image.
|
12634
10716
|
class GroupedResult
|
@@ -13532,7 +11614,7 @@ module Google
|
|
13532
11614
|
# @return [Google::Apis::VisionV1::TextProperty]
|
13533
11615
|
attr_accessor :property
|
13534
11616
|
|
13535
|
-
# List of words in this paragraph.
|
11617
|
+
# List of all words in this paragraph.
|
13536
11618
|
# Corresponds to the JSON property `words`
|
13537
11619
|
# @return [Array<Google::Apis::VisionV1::Word>]
|
13538
11620
|
attr_accessor :words
|
@@ -13622,7 +11704,10 @@ module Google
|
|
13622
11704
|
# strings with integer values can match a range-based restriction which is
|
13623
11705
|
# to be supported soon.
|
13624
11706
|
# Multiple values can be assigned to the same key. One product may have up to
|
13625
|
-
#
|
11707
|
+
# 500 product_labels.
|
11708
|
+
# Notice that the total number of distinct product_labels over all products
|
11709
|
+
# in one ProductSet cannot exceed 1M, otherwise the product search pipeline
|
11710
|
+
# will refuse to work for that ProductSet.
|
13626
11711
|
# Corresponds to the JSON property `productLabels`
|
13627
11712
|
# @return [Array<Google::Apis::VisionV1::KeyValue>]
|
13628
11713
|
attr_accessor :product_labels
|