google-api-client 0.23.9 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +2030 -58
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +878 -43
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +604 -0
  7. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  8. data/generated/google/apis/adexperiencereport_v1/classes.rb +0 -1
  9. data/generated/google/apis/admin_directory_v1.rb +1 -1
  10. data/generated/google/apis/admin_directory_v1/classes.rb +8 -2
  11. data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
  12. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  13. data/generated/google/apis/androidenterprise_v1/classes.rb +108 -5
  14. data/generated/google/apis/androidenterprise_v1/representations.rb +60 -0
  15. data/generated/google/apis/appengine_v1.rb +1 -1
  16. data/generated/google/apis/appengine_v1/classes.rb +1 -1
  17. data/generated/google/apis/appengine_v1/service.rb +3 -3
  18. data/generated/google/apis/appengine_v1beta.rb +1 -1
  19. data/generated/google/apis/appengine_v1beta/classes.rb +1 -1
  20. data/generated/google/apis/appengine_v1beta/service.rb +3 -3
  21. data/generated/google/apis/classroom_v1.rb +1 -1
  22. data/generated/google/apis/classroom_v1/classes.rb +14 -14
  23. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1/classes.rb +6 -0
  25. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  26. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  27. data/generated/google/apis/cloudtrace_v1/classes.rb +3 -2
  28. data/generated/google/apis/composer_v1.rb +1 -1
  29. data/generated/google/apis/composer_v1/classes.rb +1 -1
  30. data/generated/google/apis/composer_v1/service.rb +6 -6
  31. data/generated/google/apis/composer_v1beta1.rb +1 -1
  32. data/generated/google/apis/composer_v1beta1/classes.rb +1 -1
  33. data/generated/google/apis/dataproc_v1.rb +1 -1
  34. data/generated/google/apis/dataproc_v1/classes.rb +475 -0
  35. data/generated/google/apis/dataproc_v1/representations.rb +188 -0
  36. data/generated/google/apis/dataproc_v1/service.rb +550 -0
  37. data/generated/google/apis/dlp_v2.rb +1 -1
  38. data/generated/google/apis/dlp_v2/classes.rb +21 -21
  39. data/generated/google/apis/file_v1beta1.rb +34 -0
  40. data/generated/google/apis/file_v1beta1/classes.rb +810 -0
  41. data/generated/google/apis/file_v1beta1/representations.rb +298 -0
  42. data/generated/google/apis/file_v1beta1/service.rb +472 -0
  43. data/generated/google/apis/jobs_v3.rb +1 -1
  44. data/generated/google/apis/jobs_v3/classes.rb +16 -17
  45. data/generated/google/apis/logging_v2.rb +1 -1
  46. data/generated/google/apis/logging_v2/classes.rb +8 -9
  47. data/generated/google/apis/logging_v2/service.rb +9 -9
  48. data/generated/google/apis/logging_v2beta1.rb +1 -1
  49. data/generated/google/apis/logging_v2beta1/classes.rb +8 -9
  50. data/generated/google/apis/logging_v2beta1/service.rb +1 -1
  51. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  52. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +14 -14
  53. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  54. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +142 -98
  55. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  56. data/generated/google/apis/servicecontrol_v1/classes.rb +0 -2
  57. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  58. data/generated/google/apis/servicemanagement_v1/classes.rb +142 -98
  59. data/generated/google/apis/serviceusage_v1.rb +1 -1
  60. data/generated/google/apis/serviceusage_v1/classes.rb +142 -98
  61. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  62. data/generated/google/apis/serviceusage_v1beta1/classes.rb +142 -98
  63. data/generated/google/apis/serviceuser_v1.rb +1 -1
  64. data/generated/google/apis/serviceuser_v1/classes.rb +142 -98
  65. data/generated/google/apis/speech_v1.rb +1 -1
  66. data/generated/google/apis/speech_v1/classes.rb +91 -0
  67. data/generated/google/apis/speech_v1/representations.rb +18 -0
  68. data/generated/google/apis/speech_v1/service.rb +47 -0
  69. data/generated/google/apis/speech_v1beta1.rb +1 -1
  70. data/generated/google/apis/speech_v1beta1/classes.rb +25 -0
  71. data/generated/google/apis/speech_v1beta1/representations.rb +15 -0
  72. data/generated/google/apis/speech_v1beta1/service.rb +47 -0
  73. data/generated/google/apis/sqladmin_v1beta4.rb +3 -3
  74. data/generated/google/apis/sqladmin_v1beta4/classes.rb +34 -31
  75. data/generated/google/apis/sqladmin_v1beta4/service.rb +8 -8
  76. data/generated/google/apis/storage_v1.rb +1 -1
  77. data/generated/google/apis/storage_v1/classes.rb +3 -4
  78. data/generated/google/apis/storage_v1/service.rb +2 -1
  79. data/generated/google/apis/storage_v1beta2.rb +1 -1
  80. data/generated/google/apis/storage_v1beta2/classes.rb +1 -2
  81. data/generated/google/apis/storage_v1beta2/service.rb +2 -1
  82. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  83. data/generated/google/apis/storagetransfer_v1/classes.rb +21 -21
  84. data/generated/google/apis/testing_v1.rb +1 -1
  85. data/generated/google/apis/testing_v1/classes.rb +308 -14
  86. data/generated/google/apis/testing_v1/representations.rb +136 -0
  87. data/generated/google/apis/vision_v1.rb +1 -1
  88. data/generated/google/apis/vision_v1/classes.rb +156 -2
  89. data/generated/google/apis/vision_v1/representations.rb +60 -0
  90. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  91. data/generated/google/apis/vision_v1p1beta1/classes.rb +156 -2
  92. data/generated/google/apis/vision_v1p1beta1/representations.rb +60 -0
  93. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  94. data/generated/google/apis/vision_v1p2beta1/classes.rb +156 -2
  95. data/generated/google/apis/vision_v1p2beta1/representations.rb +60 -0
  96. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  97. data/lib/google/apis/version.rb +1 -1
  98. metadata +6 -14
  99. data/generated/google/apis/adexchangeseller_v1.rb +0 -37
  100. data/generated/google/apis/adexchangeseller_v1/classes.rb +0 -557
  101. data/generated/google/apis/adexchangeseller_v1/representations.rb +0 -248
  102. data/generated/google/apis/adexchangeseller_v1/service.rb +0 -544
  103. data/generated/google/apis/adexchangeseller_v1_1.rb +0 -37
  104. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +0 -842
  105. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +0 -364
  106. data/generated/google/apis/adexchangeseller_v1_1/service.rb +0 -735
  107. data/generated/google/apis/adexchangeseller_v2_0.rb +0 -37
  108. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +0 -792
  109. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +0 -347
  110. data/generated/google/apis/adexchangeseller_v2_0/service.rb +0 -638
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1p1beta1
29
29
  VERSION = 'V1p1beta1'
30
- REVISION = '20180817'
30
+ REVISION = '20180907'
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'
@@ -137,6 +137,12 @@ module Google
137
137
  # @return [Array<Google::Apis::VisionV1p1beta1::EntityAnnotation>]
138
138
  attr_accessor :landmark_annotations
139
139
 
140
+ # If present, localized object detection has completed successfully.
141
+ # This will be sorted descending by confidence score.
142
+ # Corresponds to the JSON property `localizedObjectAnnotations`
143
+ # @return [Array<Google::Apis::VisionV1p1beta1::LocalizedObjectAnnotation>]
144
+ attr_accessor :localized_object_annotations
145
+
140
146
  # If present, logo detection has completed successfully.
141
147
  # Corresponds to the JSON property `logoAnnotations`
142
148
  # @return [Array<Google::Apis::VisionV1p1beta1::EntityAnnotation>]
@@ -173,6 +179,7 @@ module Google
173
179
  @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
174
180
  @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
175
181
  @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
182
+ @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
176
183
  @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
177
184
  @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
178
185
  @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
@@ -1072,6 +1079,12 @@ module Google
1072
1079
  # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1EntityAnnotation>]
1073
1080
  attr_accessor :landmark_annotations
1074
1081
 
1082
+ # If present, localized object detection has completed successfully.
1083
+ # This will be sorted descending by confidence score.
1084
+ # Corresponds to the JSON property `localizedObjectAnnotations`
1085
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation>]
1086
+ attr_accessor :localized_object_annotations
1087
+
1075
1088
  # If present, logo detection has completed successfully.
1076
1089
  # Corresponds to the JSON property `logoAnnotations`
1077
1090
  # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1EntityAnnotation>]
@@ -1108,6 +1121,7 @@ module Google
1108
1121
  @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
1109
1122
  @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
1110
1123
  @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
1124
+ @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
1111
1125
  @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
1112
1126
  @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
1113
1127
  @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
@@ -2059,6 +2073,51 @@ module Google
2059
2073
  end
2060
2074
  end
2061
2075
 
2076
+ # Set of detected objects with bounding boxes.
2077
+ class GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation
2078
+ include Google::Apis::Core::Hashable
2079
+
2080
+ # A bounding polygon for the detected image annotation.
2081
+ # Corresponds to the JSON property `boundingPoly`
2082
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1BoundingPoly]
2083
+ attr_accessor :bounding_poly
2084
+
2085
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
2086
+ # information, see
2087
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2088
+ # Corresponds to the JSON property `languageCode`
2089
+ # @return [String]
2090
+ attr_accessor :language_code
2091
+
2092
+ # Object ID that should align with EntityAnnotation mid.
2093
+ # Corresponds to the JSON property `mid`
2094
+ # @return [String]
2095
+ attr_accessor :mid
2096
+
2097
+ # Object name, expressed in its `language_code` language.
2098
+ # Corresponds to the JSON property `name`
2099
+ # @return [String]
2100
+ attr_accessor :name
2101
+
2102
+ # Score of the result. Range [0, 1].
2103
+ # Corresponds to the JSON property `score`
2104
+ # @return [Float]
2105
+ attr_accessor :score
2106
+
2107
+ def initialize(**args)
2108
+ update!(**args)
2109
+ end
2110
+
2111
+ # Update properties of this object
2112
+ def update!(**args)
2113
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
2114
+ @language_code = args[:language_code] if args.key?(:language_code)
2115
+ @mid = args[:mid] if args.key?(:mid)
2116
+ @name = args[:name] if args.key?(:name)
2117
+ @score = args[:score] if args.key?(:score)
2118
+ end
2119
+ end
2120
+
2062
2121
  # Detected entity location information.
2063
2122
  class GoogleCloudVisionV1p1beta1LocationInfo
2064
2123
  include Google::Apis::Core::Hashable
@@ -2873,6 +2932,12 @@ module Google
2873
2932
  # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
2874
2933
  attr_accessor :landmark_annotations
2875
2934
 
2935
+ # If present, localized object detection has completed successfully.
2936
+ # This will be sorted descending by confidence score.
2937
+ # Corresponds to the JSON property `localizedObjectAnnotations`
2938
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation>]
2939
+ attr_accessor :localized_object_annotations
2940
+
2876
2941
  # If present, logo detection has completed successfully.
2877
2942
  # Corresponds to the JSON property `logoAnnotations`
2878
2943
  # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
@@ -2909,6 +2974,7 @@ module Google
2909
2974
  @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
2910
2975
  @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
2911
2976
  @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
2977
+ @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
2912
2978
  @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
2913
2979
  @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
2914
2980
  @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
@@ -3564,6 +3630,51 @@ module Google
3564
3630
  end
3565
3631
  end
3566
3632
 
3633
+ # Set of detected objects with bounding boxes.
3634
+ class GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation
3635
+ include Google::Apis::Core::Hashable
3636
+
3637
+ # A bounding polygon for the detected image annotation.
3638
+ # Corresponds to the JSON property `boundingPoly`
3639
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
3640
+ attr_accessor :bounding_poly
3641
+
3642
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
3643
+ # information, see
3644
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
3645
+ # Corresponds to the JSON property `languageCode`
3646
+ # @return [String]
3647
+ attr_accessor :language_code
3648
+
3649
+ # Object ID that should align with EntityAnnotation mid.
3650
+ # Corresponds to the JSON property `mid`
3651
+ # @return [String]
3652
+ attr_accessor :mid
3653
+
3654
+ # Object name, expressed in its `language_code` language.
3655
+ # Corresponds to the JSON property `name`
3656
+ # @return [String]
3657
+ attr_accessor :name
3658
+
3659
+ # Score of the result. Range [0, 1].
3660
+ # Corresponds to the JSON property `score`
3661
+ # @return [Float]
3662
+ attr_accessor :score
3663
+
3664
+ def initialize(**args)
3665
+ update!(**args)
3666
+ end
3667
+
3668
+ # Update properties of this object
3669
+ def update!(**args)
3670
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
3671
+ @language_code = args[:language_code] if args.key?(:language_code)
3672
+ @mid = args[:mid] if args.key?(:mid)
3673
+ @name = args[:name] if args.key?(:name)
3674
+ @score = args[:score] if args.key?(:score)
3675
+ end
3676
+ end
3677
+
3567
3678
  # Detected entity location information.
3568
3679
  class GoogleCloudVisionV1p2beta1LocationInfo
3569
3680
  include Google::Apis::Core::Hashable
@@ -5555,8 +5666,6 @@ module Google
5555
5666
 
5556
5667
  # A confidence level on the match, ranging from 0 (no confidence) to
5557
5668
  # 1 (full confidence).
5558
- # This field is returned only if `view` is set to `FULL` in
5559
- # the request.
5560
5669
  # Corresponds to the JSON property `score`
5561
5670
  # @return [Float]
5562
5671
  attr_accessor :score
@@ -6222,6 +6331,51 @@ module Google
6222
6331
  end
6223
6332
  end
6224
6333
 
6334
+ # Set of detected objects with bounding boxes.
6335
+ class LocalizedObjectAnnotation
6336
+ include Google::Apis::Core::Hashable
6337
+
6338
+ # A bounding polygon for the detected image annotation.
6339
+ # Corresponds to the JSON property `boundingPoly`
6340
+ # @return [Google::Apis::VisionV1p1beta1::BoundingPoly]
6341
+ attr_accessor :bounding_poly
6342
+
6343
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
6344
+ # information, see
6345
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
6346
+ # Corresponds to the JSON property `languageCode`
6347
+ # @return [String]
6348
+ attr_accessor :language_code
6349
+
6350
+ # Object ID that should align with EntityAnnotation mid.
6351
+ # Corresponds to the JSON property `mid`
6352
+ # @return [String]
6353
+ attr_accessor :mid
6354
+
6355
+ # Object name, expressed in its `language_code` language.
6356
+ # Corresponds to the JSON property `name`
6357
+ # @return [String]
6358
+ attr_accessor :name
6359
+
6360
+ # Score of the result. Range [0, 1].
6361
+ # Corresponds to the JSON property `score`
6362
+ # @return [Float]
6363
+ attr_accessor :score
6364
+
6365
+ def initialize(**args)
6366
+ update!(**args)
6367
+ end
6368
+
6369
+ # Update properties of this object
6370
+ def update!(**args)
6371
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
6372
+ @language_code = args[:language_code] if args.key?(:language_code)
6373
+ @mid = args[:mid] if args.key?(:mid)
6374
+ @name = args[:name] if args.key?(:name)
6375
+ @score = args[:score] if args.key?(:score)
6376
+ end
6377
+ end
6378
+
6225
6379
  # Detected entity location information.
6226
6380
  class LocationInfo
6227
6381
  include Google::Apis::Core::Hashable
@@ -298,6 +298,12 @@ module Google
298
298
  include Google::Apis::Core::JsonObjectSupport
299
299
  end
300
300
 
301
+ class GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
301
307
  class GoogleCloudVisionV1p1beta1LocationInfo
302
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
303
309
 
@@ -532,6 +538,12 @@ module Google
532
538
  include Google::Apis::Core::JsonObjectSupport
533
539
  end
534
540
 
541
+ class GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation
542
+ class Representation < Google::Apis::Core::JsonRepresentation; end
543
+
544
+ include Google::Apis::Core::JsonObjectSupport
545
+ end
546
+
535
547
  class GoogleCloudVisionV1p2beta1LocationInfo
536
548
  class Representation < Google::Apis::Core::JsonRepresentation; end
537
549
 
@@ -970,6 +982,12 @@ module Google
970
982
  include Google::Apis::Core::JsonObjectSupport
971
983
  end
972
984
 
985
+ class LocalizedObjectAnnotation
986
+ class Representation < Google::Apis::Core::JsonRepresentation; end
987
+
988
+ include Google::Apis::Core::JsonObjectSupport
989
+ end
990
+
973
991
  class LocationInfo
974
992
  class Representation < Google::Apis::Core::JsonRepresentation; end
975
993
 
@@ -1125,6 +1143,8 @@ module Google
1125
1143
 
1126
1144
  collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1p1beta1::EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::EntityAnnotation::Representation
1127
1145
 
1146
+ collection :localized_object_annotations, as: 'localizedObjectAnnotations', class: Google::Apis::VisionV1p1beta1::LocalizedObjectAnnotation, decorator: Google::Apis::VisionV1p1beta1::LocalizedObjectAnnotation::Representation
1147
+
1128
1148
  collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1p1beta1::EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::EntityAnnotation::Representation
1129
1149
 
1130
1150
  property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1p1beta1::SafeSearchAnnotation, decorator: Google::Apis::VisionV1p1beta1::SafeSearchAnnotation::Representation
@@ -1335,6 +1355,8 @@ module Google
1335
1355
 
1336
1356
  collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1EntityAnnotation::Representation
1337
1357
 
1358
+ collection :localized_object_annotations, as: 'localizedObjectAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation::Representation
1359
+
1338
1360
  collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1EntityAnnotation::Representation
1339
1361
 
1340
1362
  property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1SafeSearchAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1SafeSearchAnnotation::Representation
@@ -1604,6 +1626,18 @@ module Google
1604
1626
  end
1605
1627
  end
1606
1628
 
1629
+ class GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation
1630
+ # @private
1631
+ class Representation < Google::Apis::Core::JsonRepresentation
1632
+ property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation
1633
+
1634
+ property :language_code, as: 'languageCode'
1635
+ property :mid, as: 'mid'
1636
+ property :name, as: 'name'
1637
+ property :score, as: 'score'
1638
+ end
1639
+ end
1640
+
1607
1641
  class GoogleCloudVisionV1p1beta1LocationInfo
1608
1642
  # @private
1609
1643
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1845,6 +1879,8 @@ module Google
1845
1879
 
1846
1880
  collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation::Representation
1847
1881
 
1882
+ collection :localized_object_annotations, as: 'localizedObjectAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation::Representation
1883
+
1848
1884
  collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1EntityAnnotation::Representation
1849
1885
 
1850
1886
  property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1SafeSearchAnnotation, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1SafeSearchAnnotation::Representation
@@ -2022,6 +2058,18 @@ module Google
2022
2058
  end
2023
2059
  end
2024
2060
 
2061
+ class GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation
2062
+ # @private
2063
+ class Representation < Google::Apis::Core::JsonRepresentation
2064
+ property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
2065
+
2066
+ property :language_code, as: 'languageCode'
2067
+ property :mid, as: 'mid'
2068
+ property :name, as: 'name'
2069
+ property :score, as: 'score'
2070
+ end
2071
+ end
2072
+
2025
2073
  class GoogleCloudVisionV1p2beta1LocationInfo
2026
2074
  # @private
2027
2075
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2780,6 +2828,18 @@ module Google
2780
2828
  end
2781
2829
  end
2782
2830
 
2831
+ class LocalizedObjectAnnotation
2832
+ # @private
2833
+ class Representation < Google::Apis::Core::JsonRepresentation
2834
+ property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1p1beta1::BoundingPoly, decorator: Google::Apis::VisionV1p1beta1::BoundingPoly::Representation
2835
+
2836
+ property :language_code, as: 'languageCode'
2837
+ property :mid, as: 'mid'
2838
+ property :name, as: 'name'
2839
+ property :score, as: 'score'
2840
+ end
2841
+ end
2842
+
2783
2843
  class LocationInfo
2784
2844
  # @private
2785
2845
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1p2beta1
29
29
  VERSION = 'V1p2beta1'
30
- REVISION = '20180817'
30
+ REVISION = '20180907'
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'
@@ -137,6 +137,12 @@ module Google
137
137
  # @return [Array<Google::Apis::VisionV1p2beta1::EntityAnnotation>]
138
138
  attr_accessor :landmark_annotations
139
139
 
140
+ # If present, localized object detection has completed successfully.
141
+ # This will be sorted descending by confidence score.
142
+ # Corresponds to the JSON property `localizedObjectAnnotations`
143
+ # @return [Array<Google::Apis::VisionV1p2beta1::LocalizedObjectAnnotation>]
144
+ attr_accessor :localized_object_annotations
145
+
140
146
  # If present, logo detection has completed successfully.
141
147
  # Corresponds to the JSON property `logoAnnotations`
142
148
  # @return [Array<Google::Apis::VisionV1p2beta1::EntityAnnotation>]
@@ -173,6 +179,7 @@ module Google
173
179
  @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
174
180
  @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
175
181
  @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
182
+ @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
176
183
  @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
177
184
  @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
178
185
  @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
@@ -1040,6 +1047,12 @@ module Google
1040
1047
  # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1EntityAnnotation>]
1041
1048
  attr_accessor :landmark_annotations
1042
1049
 
1050
+ # If present, localized object detection has completed successfully.
1051
+ # This will be sorted descending by confidence score.
1052
+ # Corresponds to the JSON property `localizedObjectAnnotations`
1053
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation>]
1054
+ attr_accessor :localized_object_annotations
1055
+
1043
1056
  # If present, logo detection has completed successfully.
1044
1057
  # Corresponds to the JSON property `logoAnnotations`
1045
1058
  # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1EntityAnnotation>]
@@ -1076,6 +1089,7 @@ module Google
1076
1089
  @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
1077
1090
  @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
1078
1091
  @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
1092
+ @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
1079
1093
  @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
1080
1094
  @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
1081
1095
  @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
@@ -1725,6 +1739,51 @@ module Google
1725
1739
  end
1726
1740
  end
1727
1741
 
1742
+ # Set of detected objects with bounding boxes.
1743
+ class GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation
1744
+ include Google::Apis::Core::Hashable
1745
+
1746
+ # A bounding polygon for the detected image annotation.
1747
+ # Corresponds to the JSON property `boundingPoly`
1748
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly]
1749
+ attr_accessor :bounding_poly
1750
+
1751
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
1752
+ # information, see
1753
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1754
+ # Corresponds to the JSON property `languageCode`
1755
+ # @return [String]
1756
+ attr_accessor :language_code
1757
+
1758
+ # Object ID that should align with EntityAnnotation mid.
1759
+ # Corresponds to the JSON property `mid`
1760
+ # @return [String]
1761
+ attr_accessor :mid
1762
+
1763
+ # Object name, expressed in its `language_code` language.
1764
+ # Corresponds to the JSON property `name`
1765
+ # @return [String]
1766
+ attr_accessor :name
1767
+
1768
+ # Score of the result. Range [0, 1].
1769
+ # Corresponds to the JSON property `score`
1770
+ # @return [Float]
1771
+ attr_accessor :score
1772
+
1773
+ def initialize(**args)
1774
+ update!(**args)
1775
+ end
1776
+
1777
+ # Update properties of this object
1778
+ def update!(**args)
1779
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
1780
+ @language_code = args[:language_code] if args.key?(:language_code)
1781
+ @mid = args[:mid] if args.key?(:mid)
1782
+ @name = args[:name] if args.key?(:name)
1783
+ @score = args[:score] if args.key?(:score)
1784
+ end
1785
+ end
1786
+
1728
1787
  # Detected entity location information.
1729
1788
  class GoogleCloudVisionV1p1beta1LocationInfo
1730
1789
  include Google::Apis::Core::Hashable
@@ -2551,6 +2610,12 @@ module Google
2551
2610
  # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
2552
2611
  attr_accessor :landmark_annotations
2553
2612
 
2613
+ # If present, localized object detection has completed successfully.
2614
+ # This will be sorted descending by confidence score.
2615
+ # Corresponds to the JSON property `localizedObjectAnnotations`
2616
+ # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation>]
2617
+ attr_accessor :localized_object_annotations
2618
+
2554
2619
  # If present, logo detection has completed successfully.
2555
2620
  # Corresponds to the JSON property `logoAnnotations`
2556
2621
  # @return [Array<Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
@@ -2587,6 +2652,7 @@ module Google
2587
2652
  @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
2588
2653
  @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
2589
2654
  @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
2655
+ @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
2590
2656
  @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
2591
2657
  @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
2592
2658
  @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
@@ -3544,6 +3610,51 @@ module Google
3544
3610
  end
3545
3611
  end
3546
3612
 
3613
+ # Set of detected objects with bounding boxes.
3614
+ class GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation
3615
+ include Google::Apis::Core::Hashable
3616
+
3617
+ # A bounding polygon for the detected image annotation.
3618
+ # Corresponds to the JSON property `boundingPoly`
3619
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BoundingPoly]
3620
+ attr_accessor :bounding_poly
3621
+
3622
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
3623
+ # information, see
3624
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
3625
+ # Corresponds to the JSON property `languageCode`
3626
+ # @return [String]
3627
+ attr_accessor :language_code
3628
+
3629
+ # Object ID that should align with EntityAnnotation mid.
3630
+ # Corresponds to the JSON property `mid`
3631
+ # @return [String]
3632
+ attr_accessor :mid
3633
+
3634
+ # Object name, expressed in its `language_code` language.
3635
+ # Corresponds to the JSON property `name`
3636
+ # @return [String]
3637
+ attr_accessor :name
3638
+
3639
+ # Score of the result. Range [0, 1].
3640
+ # Corresponds to the JSON property `score`
3641
+ # @return [Float]
3642
+ attr_accessor :score
3643
+
3644
+ def initialize(**args)
3645
+ update!(**args)
3646
+ end
3647
+
3648
+ # Update properties of this object
3649
+ def update!(**args)
3650
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
3651
+ @language_code = args[:language_code] if args.key?(:language_code)
3652
+ @mid = args[:mid] if args.key?(:mid)
3653
+ @name = args[:name] if args.key?(:name)
3654
+ @score = args[:score] if args.key?(:score)
3655
+ end
3656
+ end
3657
+
3547
3658
  # Detected entity location information.
3548
3659
  class GoogleCloudVisionV1p2beta1LocationInfo
3549
3660
  include Google::Apis::Core::Hashable
@@ -5555,8 +5666,6 @@ module Google
5555
5666
 
5556
5667
  # A confidence level on the match, ranging from 0 (no confidence) to
5557
5668
  # 1 (full confidence).
5558
- # This field is returned only if `view` is set to `FULL` in
5559
- # the request.
5560
5669
  # Corresponds to the JSON property `score`
5561
5670
  # @return [Float]
5562
5671
  attr_accessor :score
@@ -6222,6 +6331,51 @@ module Google
6222
6331
  end
6223
6332
  end
6224
6333
 
6334
+ # Set of detected objects with bounding boxes.
6335
+ class LocalizedObjectAnnotation
6336
+ include Google::Apis::Core::Hashable
6337
+
6338
+ # A bounding polygon for the detected image annotation.
6339
+ # Corresponds to the JSON property `boundingPoly`
6340
+ # @return [Google::Apis::VisionV1p2beta1::BoundingPoly]
6341
+ attr_accessor :bounding_poly
6342
+
6343
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
6344
+ # information, see
6345
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
6346
+ # Corresponds to the JSON property `languageCode`
6347
+ # @return [String]
6348
+ attr_accessor :language_code
6349
+
6350
+ # Object ID that should align with EntityAnnotation mid.
6351
+ # Corresponds to the JSON property `mid`
6352
+ # @return [String]
6353
+ attr_accessor :mid
6354
+
6355
+ # Object name, expressed in its `language_code` language.
6356
+ # Corresponds to the JSON property `name`
6357
+ # @return [String]
6358
+ attr_accessor :name
6359
+
6360
+ # Score of the result. Range [0, 1].
6361
+ # Corresponds to the JSON property `score`
6362
+ # @return [Float]
6363
+ attr_accessor :score
6364
+
6365
+ def initialize(**args)
6366
+ update!(**args)
6367
+ end
6368
+
6369
+ # Update properties of this object
6370
+ def update!(**args)
6371
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
6372
+ @language_code = args[:language_code] if args.key?(:language_code)
6373
+ @mid = args[:mid] if args.key?(:mid)
6374
+ @name = args[:name] if args.key?(:name)
6375
+ @score = args[:score] if args.key?(:score)
6376
+ end
6377
+ end
6378
+
6225
6379
  # Detected entity location information.
6226
6380
  class LocationInfo
6227
6381
  include Google::Apis::Core::Hashable