google-api-client 0.23.9 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -190,6 +190,54 @@ module Google
190
190
  include Google::Apis::Core::JsonObjectSupport
191
191
  end
192
192
 
193
+ class IosDevice
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class IosDeviceCatalog
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class IosDeviceList
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class IosModel
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class IosRuntimeConfiguration
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class IosTestSetup
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class IosVersion
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class IosXcTest
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
193
241
  class LauncherActivityIntent
194
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
243
 
@@ -544,6 +592,8 @@ module Google
544
592
  class Representation < Google::Apis::Core::JsonRepresentation
545
593
  property :android_device, as: 'androidDevice', class: Google::Apis::TestingV1::AndroidDevice, decorator: Google::Apis::TestingV1::AndroidDevice::Representation
546
594
 
595
+ property :ios_device, as: 'iosDevice', class: Google::Apis::TestingV1::IosDevice, decorator: Google::Apis::TestingV1::IosDevice::Representation
596
+
547
597
  end
548
598
  end
549
599
 
@@ -554,6 +604,8 @@ module Google
554
604
 
555
605
  property :android_matrix, as: 'androidMatrix', class: Google::Apis::TestingV1::AndroidMatrix, decorator: Google::Apis::TestingV1::AndroidMatrix::Representation
556
606
 
607
+ property :ios_device_list, as: 'iosDeviceList', class: Google::Apis::TestingV1::IosDeviceList, decorator: Google::Apis::TestingV1::IosDeviceList::Representation
608
+
557
609
  end
558
610
  end
559
611
 
@@ -602,6 +654,84 @@ module Google
602
654
  end
603
655
  end
604
656
 
657
+ class IosDevice
658
+ # @private
659
+ class Representation < Google::Apis::Core::JsonRepresentation
660
+ property :ios_model_id, as: 'iosModelId'
661
+ property :ios_version_id, as: 'iosVersionId'
662
+ property :locale, as: 'locale'
663
+ property :orientation, as: 'orientation'
664
+ end
665
+ end
666
+
667
+ class IosDeviceCatalog
668
+ # @private
669
+ class Representation < Google::Apis::Core::JsonRepresentation
670
+ collection :models, as: 'models', class: Google::Apis::TestingV1::IosModel, decorator: Google::Apis::TestingV1::IosModel::Representation
671
+
672
+ property :runtime_configuration, as: 'runtimeConfiguration', class: Google::Apis::TestingV1::IosRuntimeConfiguration, decorator: Google::Apis::TestingV1::IosRuntimeConfiguration::Representation
673
+
674
+ collection :versions, as: 'versions', class: Google::Apis::TestingV1::IosVersion, decorator: Google::Apis::TestingV1::IosVersion::Representation
675
+
676
+ end
677
+ end
678
+
679
+ class IosDeviceList
680
+ # @private
681
+ class Representation < Google::Apis::Core::JsonRepresentation
682
+ collection :ios_devices, as: 'iosDevices', class: Google::Apis::TestingV1::IosDevice, decorator: Google::Apis::TestingV1::IosDevice::Representation
683
+
684
+ end
685
+ end
686
+
687
+ class IosModel
688
+ # @private
689
+ class Representation < Google::Apis::Core::JsonRepresentation
690
+ collection :device_capabilities, as: 'deviceCapabilities'
691
+ property :id, as: 'id'
692
+ property :name, as: 'name'
693
+ collection :supported_version_ids, as: 'supportedVersionIds'
694
+ collection :tags, as: 'tags'
695
+ end
696
+ end
697
+
698
+ class IosRuntimeConfiguration
699
+ # @private
700
+ class Representation < Google::Apis::Core::JsonRepresentation
701
+ collection :locales, as: 'locales', class: Google::Apis::TestingV1::Locale, decorator: Google::Apis::TestingV1::Locale::Representation
702
+
703
+ collection :orientations, as: 'orientations', class: Google::Apis::TestingV1::Orientation, decorator: Google::Apis::TestingV1::Orientation::Representation
704
+
705
+ end
706
+ end
707
+
708
+ class IosTestSetup
709
+ # @private
710
+ class Representation < Google::Apis::Core::JsonRepresentation
711
+ property :network_profile, as: 'networkProfile'
712
+ end
713
+ end
714
+
715
+ class IosVersion
716
+ # @private
717
+ class Representation < Google::Apis::Core::JsonRepresentation
718
+ property :id, as: 'id'
719
+ property :major_version, as: 'majorVersion'
720
+ property :minor_version, as: 'minorVersion'
721
+ collection :tags, as: 'tags'
722
+ end
723
+ end
724
+
725
+ class IosXcTest
726
+ # @private
727
+ class Representation < Google::Apis::Core::JsonRepresentation
728
+ property :tests_zip, as: 'testsZip', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
729
+
730
+ property :xctestrun, as: 'xctestrun', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
731
+
732
+ end
733
+ end
734
+
605
735
  class LauncherActivityIntent
606
736
  # @private
607
737
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -725,6 +855,8 @@ module Google
725
855
  class Representation < Google::Apis::Core::JsonRepresentation
726
856
  property :android_device_catalog, as: 'androidDeviceCatalog', class: Google::Apis::TestingV1::AndroidDeviceCatalog, decorator: Google::Apis::TestingV1::AndroidDeviceCatalog::Representation
727
857
 
858
+ property :ios_device_catalog, as: 'iosDeviceCatalog', class: Google::Apis::TestingV1::IosDeviceCatalog, decorator: Google::Apis::TestingV1::IosDeviceCatalog::Representation
859
+
728
860
  property :network_configuration_catalog, as: 'networkConfigurationCatalog', class: Google::Apis::TestingV1::NetworkConfigurationCatalog, decorator: Google::Apis::TestingV1::NetworkConfigurationCatalog::Representation
729
861
 
730
862
  property :software_catalog, as: 'softwareCatalog', class: Google::Apis::TestingV1::ProvidedSoftwareCatalog, decorator: Google::Apis::TestingV1::ProvidedSoftwareCatalog::Representation
@@ -800,6 +932,10 @@ module Google
800
932
  property :auto_google_login, as: 'autoGoogleLogin'
801
933
  property :disable_performance_metrics, as: 'disablePerformanceMetrics'
802
934
  property :disable_video_recording, as: 'disableVideoRecording'
935
+ property :ios_test_setup, as: 'iosTestSetup', class: Google::Apis::TestingV1::IosTestSetup, decorator: Google::Apis::TestingV1::IosTestSetup::Representation
936
+
937
+ property :ios_xc_test, as: 'iosXcTest', class: Google::Apis::TestingV1::IosXcTest, decorator: Google::Apis::TestingV1::IosXcTest::Representation
938
+
803
939
  property :test_setup, as: 'testSetup', class: Google::Apis::TestingV1::TestSetup, decorator: Google::Apis::TestingV1::TestSetup::Representation
804
940
 
805
941
  property :test_timeout, as: 'testTimeout'
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1
29
29
  VERSION = 'V1'
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'
@@ -169,6 +169,12 @@ module Google
169
169
  # @return [Array<Google::Apis::VisionV1::EntityAnnotation>]
170
170
  attr_accessor :landmark_annotations
171
171
 
172
+ # If present, localized object detection has completed successfully.
173
+ # This will be sorted descending by confidence score.
174
+ # Corresponds to the JSON property `localizedObjectAnnotations`
175
+ # @return [Array<Google::Apis::VisionV1::LocalizedObjectAnnotation>]
176
+ attr_accessor :localized_object_annotations
177
+
172
178
  # If present, logo detection has completed successfully.
173
179
  # Corresponds to the JSON property `logoAnnotations`
174
180
  # @return [Array<Google::Apis::VisionV1::EntityAnnotation>]
@@ -205,6 +211,7 @@ module Google
205
211
  @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
206
212
  @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
207
213
  @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
214
+ @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
208
215
  @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
209
216
  @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
210
217
  @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
@@ -1259,6 +1266,12 @@ module Google
1259
1266
  # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation>]
1260
1267
  attr_accessor :landmark_annotations
1261
1268
 
1269
+ # If present, localized object detection has completed successfully.
1270
+ # This will be sorted descending by confidence score.
1271
+ # Corresponds to the JSON property `localizedObjectAnnotations`
1272
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation>]
1273
+ attr_accessor :localized_object_annotations
1274
+
1262
1275
  # If present, logo detection has completed successfully.
1263
1276
  # Corresponds to the JSON property `logoAnnotations`
1264
1277
  # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation>]
@@ -1295,6 +1308,7 @@ module Google
1295
1308
  @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
1296
1309
  @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
1297
1310
  @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
1311
+ @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
1298
1312
  @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
1299
1313
  @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
1300
1314
  @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
@@ -1944,6 +1958,51 @@ module Google
1944
1958
  end
1945
1959
  end
1946
1960
 
1961
+ # Set of detected objects with bounding boxes.
1962
+ class GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation
1963
+ include Google::Apis::Core::Hashable
1964
+
1965
+ # A bounding polygon for the detected image annotation.
1966
+ # Corresponds to the JSON property `boundingPoly`
1967
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly]
1968
+ attr_accessor :bounding_poly
1969
+
1970
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
1971
+ # information, see
1972
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1973
+ # Corresponds to the JSON property `languageCode`
1974
+ # @return [String]
1975
+ attr_accessor :language_code
1976
+
1977
+ # Object ID that should align with EntityAnnotation mid.
1978
+ # Corresponds to the JSON property `mid`
1979
+ # @return [String]
1980
+ attr_accessor :mid
1981
+
1982
+ # Object name, expressed in its `language_code` language.
1983
+ # Corresponds to the JSON property `name`
1984
+ # @return [String]
1985
+ attr_accessor :name
1986
+
1987
+ # Score of the result. Range [0, 1].
1988
+ # Corresponds to the JSON property `score`
1989
+ # @return [Float]
1990
+ attr_accessor :score
1991
+
1992
+ def initialize(**args)
1993
+ update!(**args)
1994
+ end
1995
+
1996
+ # Update properties of this object
1997
+ def update!(**args)
1998
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
1999
+ @language_code = args[:language_code] if args.key?(:language_code)
2000
+ @mid = args[:mid] if args.key?(:mid)
2001
+ @name = args[:name] if args.key?(:name)
2002
+ @score = args[:score] if args.key?(:score)
2003
+ end
2004
+ end
2005
+
1947
2006
  # Detected entity location information.
1948
2007
  class GoogleCloudVisionV1p1beta1LocationInfo
1949
2008
  include Google::Apis::Core::Hashable
@@ -2738,6 +2797,12 @@ module Google
2738
2797
  # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
2739
2798
  attr_accessor :landmark_annotations
2740
2799
 
2800
+ # If present, localized object detection has completed successfully.
2801
+ # This will be sorted descending by confidence score.
2802
+ # Corresponds to the JSON property `localizedObjectAnnotations`
2803
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation>]
2804
+ attr_accessor :localized_object_annotations
2805
+
2741
2806
  # If present, logo detection has completed successfully.
2742
2807
  # Corresponds to the JSON property `logoAnnotations`
2743
2808
  # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation>]
@@ -2774,6 +2839,7 @@ module Google
2774
2839
  @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation)
2775
2840
  @label_annotations = args[:label_annotations] if args.key?(:label_annotations)
2776
2841
  @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations)
2842
+ @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations)
2777
2843
  @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations)
2778
2844
  @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation)
2779
2845
  @text_annotations = args[:text_annotations] if args.key?(:text_annotations)
@@ -3429,6 +3495,51 @@ module Google
3429
3495
  end
3430
3496
  end
3431
3497
 
3498
+ # Set of detected objects with bounding boxes.
3499
+ class GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation
3500
+ include Google::Apis::Core::Hashable
3501
+
3502
+ # A bounding polygon for the detected image annotation.
3503
+ # Corresponds to the JSON property `boundingPoly`
3504
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly]
3505
+ attr_accessor :bounding_poly
3506
+
3507
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
3508
+ # information, see
3509
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
3510
+ # Corresponds to the JSON property `languageCode`
3511
+ # @return [String]
3512
+ attr_accessor :language_code
3513
+
3514
+ # Object ID that should align with EntityAnnotation mid.
3515
+ # Corresponds to the JSON property `mid`
3516
+ # @return [String]
3517
+ attr_accessor :mid
3518
+
3519
+ # Object name, expressed in its `language_code` language.
3520
+ # Corresponds to the JSON property `name`
3521
+ # @return [String]
3522
+ attr_accessor :name
3523
+
3524
+ # Score of the result. Range [0, 1].
3525
+ # Corresponds to the JSON property `score`
3526
+ # @return [Float]
3527
+ attr_accessor :score
3528
+
3529
+ def initialize(**args)
3530
+ update!(**args)
3531
+ end
3532
+
3533
+ # Update properties of this object
3534
+ def update!(**args)
3535
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
3536
+ @language_code = args[:language_code] if args.key?(:language_code)
3537
+ @mid = args[:mid] if args.key?(:mid)
3538
+ @name = args[:name] if args.key?(:name)
3539
+ @score = args[:score] if args.key?(:score)
3540
+ end
3541
+ end
3542
+
3432
3543
  # Detected entity location information.
3433
3544
  class GoogleCloudVisionV1p2beta1LocationInfo
3434
3545
  include Google::Apis::Core::Hashable
@@ -5420,8 +5531,6 @@ module Google
5420
5531
 
5421
5532
  # A confidence level on the match, ranging from 0 (no confidence) to
5422
5533
  # 1 (full confidence).
5423
- # This field is returned only if `view` is set to `FULL` in
5424
- # the request.
5425
5534
  # Corresponds to the JSON property `score`
5426
5535
  # @return [Float]
5427
5536
  attr_accessor :score
@@ -6259,6 +6368,51 @@ module Google
6259
6368
  end
6260
6369
  end
6261
6370
 
6371
+ # Set of detected objects with bounding boxes.
6372
+ class LocalizedObjectAnnotation
6373
+ include Google::Apis::Core::Hashable
6374
+
6375
+ # A bounding polygon for the detected image annotation.
6376
+ # Corresponds to the JSON property `boundingPoly`
6377
+ # @return [Google::Apis::VisionV1::BoundingPoly]
6378
+ attr_accessor :bounding_poly
6379
+
6380
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
6381
+ # information, see
6382
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
6383
+ # Corresponds to the JSON property `languageCode`
6384
+ # @return [String]
6385
+ attr_accessor :language_code
6386
+
6387
+ # Object ID that should align with EntityAnnotation mid.
6388
+ # Corresponds to the JSON property `mid`
6389
+ # @return [String]
6390
+ attr_accessor :mid
6391
+
6392
+ # Object name, expressed in its `language_code` language.
6393
+ # Corresponds to the JSON property `name`
6394
+ # @return [String]
6395
+ attr_accessor :name
6396
+
6397
+ # Score of the result. Range [0, 1].
6398
+ # Corresponds to the JSON property `score`
6399
+ # @return [Float]
6400
+ attr_accessor :score
6401
+
6402
+ def initialize(**args)
6403
+ update!(**args)
6404
+ end
6405
+
6406
+ # Update properties of this object
6407
+ def update!(**args)
6408
+ @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
6409
+ @language_code = args[:language_code] if args.key?(:language_code)
6410
+ @mid = args[:mid] if args.key?(:mid)
6411
+ @name = args[:name] if args.key?(:name)
6412
+ @score = args[:score] if args.key?(:score)
6413
+ end
6414
+ end
6415
+
6262
6416
  # Detected entity location information.
6263
6417
  class LocationInfo
6264
6418
  include Google::Apis::Core::Hashable
@@ -286,6 +286,12 @@ module Google
286
286
  include Google::Apis::Core::JsonObjectSupport
287
287
  end
288
288
 
289
+ class GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
289
295
  class GoogleCloudVisionV1p1beta1LocationInfo
290
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
291
297
 
@@ -514,6 +520,12 @@ module Google
514
520
  include Google::Apis::Core::JsonObjectSupport
515
521
  end
516
522
 
523
+ class GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation
524
+ class Representation < Google::Apis::Core::JsonRepresentation; end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
517
529
  class GoogleCloudVisionV1p2beta1LocationInfo
518
530
  class Representation < Google::Apis::Core::JsonRepresentation; end
519
531
 
@@ -982,6 +994,12 @@ module Google
982
994
  include Google::Apis::Core::JsonObjectSupport
983
995
  end
984
996
 
997
+ class LocalizedObjectAnnotation
998
+ class Representation < Google::Apis::Core::JsonRepresentation; end
999
+
1000
+ include Google::Apis::Core::JsonObjectSupport
1001
+ end
1002
+
985
1003
  class LocationInfo
986
1004
  class Representation < Google::Apis::Core::JsonRepresentation; end
987
1005
 
@@ -1155,6 +1173,8 @@ module Google
1155
1173
 
1156
1174
  collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::Representation
1157
1175
 
1176
+ collection :localized_object_annotations, as: 'localizedObjectAnnotations', class: Google::Apis::VisionV1::LocalizedObjectAnnotation, decorator: Google::Apis::VisionV1::LocalizedObjectAnnotation::Representation
1177
+
1158
1178
  collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1::EntityAnnotation, decorator: Google::Apis::VisionV1::EntityAnnotation::Representation
1159
1179
 
1160
1180
  property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1::SafeSearchAnnotation, decorator: Google::Apis::VisionV1::SafeSearchAnnotation::Representation
@@ -1419,6 +1439,8 @@ module Google
1419
1439
 
1420
1440
  collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation::Representation
1421
1441
 
1442
+ collection :localized_object_annotations, as: 'localizedObjectAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation::Representation
1443
+
1422
1444
  collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1EntityAnnotation::Representation
1423
1445
 
1424
1446
  property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1SafeSearchAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1SafeSearchAnnotation::Representation
@@ -1594,6 +1616,18 @@ module Google
1594
1616
  end
1595
1617
  end
1596
1618
 
1619
+ class GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation
1620
+ # @private
1621
+ class Representation < Google::Apis::Core::JsonRepresentation
1622
+ property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p1beta1BoundingPoly::Representation
1623
+
1624
+ property :language_code, as: 'languageCode'
1625
+ property :mid, as: 'mid'
1626
+ property :name, as: 'name'
1627
+ property :score, as: 'score'
1628
+ end
1629
+ end
1630
+
1597
1631
  class GoogleCloudVisionV1p1beta1LocationInfo
1598
1632
  # @private
1599
1633
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1828,6 +1862,8 @@ module Google
1828
1862
 
1829
1863
  collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation::Representation
1830
1864
 
1865
+ collection :localized_object_annotations, as: 'localizedObjectAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation::Representation
1866
+
1831
1867
  collection :logo_annotations, as: 'logoAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1EntityAnnotation::Representation
1832
1868
 
1833
1869
  property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1SafeSearchAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1SafeSearchAnnotation::Representation
@@ -2005,6 +2041,18 @@ module Google
2005
2041
  end
2006
2042
  end
2007
2043
 
2044
+ class GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation
2045
+ # @private
2046
+ class Representation < Google::Apis::Core::JsonRepresentation
2047
+ property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1BoundingPoly::Representation
2048
+
2049
+ property :language_code, as: 'languageCode'
2050
+ property :mid, as: 'mid'
2051
+ property :name, as: 'name'
2052
+ property :score, as: 'score'
2053
+ end
2054
+ end
2055
+
2008
2056
  class GoogleCloudVisionV1p2beta1LocationInfo
2009
2057
  # @private
2010
2058
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2812,6 +2860,18 @@ module Google
2812
2860
  end
2813
2861
  end
2814
2862
 
2863
+ class LocalizedObjectAnnotation
2864
+ # @private
2865
+ class Representation < Google::Apis::Core::JsonRepresentation
2866
+ property :bounding_poly, as: 'boundingPoly', class: Google::Apis::VisionV1::BoundingPoly, decorator: Google::Apis::VisionV1::BoundingPoly::Representation
2867
+
2868
+ property :language_code, as: 'languageCode'
2869
+ property :mid, as: 'mid'
2870
+ property :name, as: 'name'
2871
+ property :score, as: 'score'
2872
+ end
2873
+ end
2874
+
2815
2875
  class LocationInfo
2816
2876
  # @private
2817
2877
  class Representation < Google::Apis::Core::JsonRepresentation