google-api-client 0.34.0 → 0.34.1

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 (55) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/continuous/linux.cfg +2 -2
  3. data/.kokoro/continuous/post.cfg +30 -0
  4. data/.kokoro/presubmit/linux.cfg +1 -1
  5. data/.kokoro/release.cfg +94 -0
  6. data/.repo-metadata.json +5 -0
  7. data/.rubocop.yml +5 -0
  8. data/CHANGELOG.md +18 -0
  9. data/Gemfile +1 -0
  10. data/Rakefile +71 -2
  11. data/generated/google/apis/bigquery_v2.rb +1 -1
  12. data/generated/google/apis/bigquery_v2/classes.rb +33 -0
  13. data/generated/google/apis/bigquery_v2/representations.rb +18 -0
  14. data/generated/google/apis/cloudshell_v1.rb +1 -1
  15. data/generated/google/apis/cloudshell_v1/classes.rb +2 -1
  16. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  17. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +2 -1
  18. data/generated/google/apis/dlp_v2.rb +1 -1
  19. data/generated/google/apis/dlp_v2/classes.rb +25 -0
  20. data/generated/google/apis/dlp_v2/representations.rb +14 -0
  21. data/generated/google/apis/dlp_v2/service.rb +55 -43
  22. data/generated/google/apis/docs_v1.rb +1 -1
  23. data/generated/google/apis/docs_v1/classes.rb +8 -4
  24. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  25. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  26. data/generated/google/apis/redis_v1.rb +1 -1
  27. data/generated/google/apis/redis_v1/classes.rb +11 -11
  28. data/generated/google/apis/redis_v1/service.rb +5 -5
  29. data/generated/google/apis/redis_v1beta1.rb +1 -1
  30. data/generated/google/apis/redis_v1beta1/classes.rb +11 -11
  31. data/generated/google/apis/redis_v1beta1/service.rb +5 -5
  32. data/generated/google/apis/securitycenter_v1.rb +1 -1
  33. data/generated/google/apis/securitycenter_v1/classes.rb +22 -18
  34. data/generated/google/apis/securitycenter_v1/service.rb +14 -12
  35. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  36. data/generated/google/apis/securitycenter_v1beta1/classes.rb +8 -7
  37. data/generated/google/apis/securitycenter_v1beta1/service.rb +14 -12
  38. data/generated/google/apis/sheets_v4.rb +1 -1
  39. data/generated/google/apis/sheets_v4/classes.rb +768 -18
  40. data/generated/google/apis/sheets_v4/representations.rb +101 -0
  41. data/generated/google/apis/vision_v1.rb +1 -1
  42. data/generated/google/apis/vision_v1/classes.rb +66 -0
  43. data/generated/google/apis/vision_v1/representations.rb +32 -0
  44. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  45. data/generated/google/apis/vision_v1p1beta1/classes.rb +66 -0
  46. data/generated/google/apis/vision_v1p1beta1/representations.rb +32 -0
  47. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  48. data/generated/google/apis/vision_v1p2beta1/classes.rb +66 -0
  49. data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
  50. data/lib/google/apis/core/upload.rb +4 -0
  51. data/lib/google/apis/version.rb +1 -1
  52. data/rakelib/devsite/devsite_builder.rb +126 -0
  53. data/rakelib/devsite/link_checker.rb +64 -0
  54. data/rakelib/devsite/repo_metadata.rb +56 -0
  55. metadata +9 -3
@@ -112,6 +112,18 @@ module Google
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
+ class AddSlicerRequest
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class AddSlicerResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
115
127
  class AppendCellsRequest
116
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
129
 
@@ -952,6 +964,18 @@ module Google
952
964
  include Google::Apis::Core::JsonObjectSupport
953
965
  end
954
966
 
967
+ class Slicer
968
+ class Representation < Google::Apis::Core::JsonRepresentation; end
969
+
970
+ include Google::Apis::Core::JsonObjectSupport
971
+ end
972
+
973
+ class SlicerSpec
974
+ class Representation < Google::Apis::Core::JsonRepresentation; end
975
+
976
+ include Google::Apis::Core::JsonObjectSupport
977
+ end
978
+
955
979
  class SortRangeRequest
956
980
  class Representation < Google::Apis::Core::JsonRepresentation; end
957
981
 
@@ -1138,6 +1162,12 @@ module Google
1138
1162
  include Google::Apis::Core::JsonObjectSupport
1139
1163
  end
1140
1164
 
1165
+ class UpdateSlicerSpecRequest
1166
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1167
+
1168
+ include Google::Apis::Core::JsonObjectSupport
1169
+ end
1170
+
1141
1171
  class UpdateSpreadsheetPropertiesRequest
1142
1172
  class Representation < Google::Apis::Core::JsonRepresentation; end
1143
1173
 
@@ -1313,6 +1343,22 @@ module Google
1313
1343
  end
1314
1344
  end
1315
1345
 
1346
+ class AddSlicerRequest
1347
+ # @private
1348
+ class Representation < Google::Apis::Core::JsonRepresentation
1349
+ property :slicer, as: 'slicer', class: Google::Apis::SheetsV4::Slicer, decorator: Google::Apis::SheetsV4::Slicer::Representation
1350
+
1351
+ end
1352
+ end
1353
+
1354
+ class AddSlicerResponse
1355
+ # @private
1356
+ class Representation < Google::Apis::Core::JsonRepresentation
1357
+ property :slicer, as: 'slicer', class: Google::Apis::SheetsV4::Slicer, decorator: Google::Apis::SheetsV4::Slicer::Representation
1358
+
1359
+ end
1360
+ end
1361
+
1316
1362
  class AppendCellsRequest
1317
1363
  # @private
1318
1364
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2253,6 +2299,10 @@ module Google
2253
2299
  property :condition, as: 'condition', class: Google::Apis::SheetsV4::BooleanCondition, decorator: Google::Apis::SheetsV4::BooleanCondition::Representation
2254
2300
 
2255
2301
  collection :hidden_values, as: 'hiddenValues'
2302
+ property :visible_background_color, as: 'visibleBackgroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
2303
+
2304
+ property :visible_foreground_color, as: 'visibleForegroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
2305
+
2256
2306
  end
2257
2307
  end
2258
2308
 
@@ -2726,6 +2776,8 @@ module Google
2726
2776
 
2727
2777
  property :add_sheet, as: 'addSheet', class: Google::Apis::SheetsV4::AddSheetRequest, decorator: Google::Apis::SheetsV4::AddSheetRequest::Representation
2728
2778
 
2779
+ property :add_slicer, as: 'addSlicer', class: Google::Apis::SheetsV4::AddSlicerRequest, decorator: Google::Apis::SheetsV4::AddSlicerRequest::Representation
2780
+
2729
2781
  property :append_cells, as: 'appendCells', class: Google::Apis::SheetsV4::AppendCellsRequest, decorator: Google::Apis::SheetsV4::AppendCellsRequest::Representation
2730
2782
 
2731
2783
  property :append_dimension, as: 'appendDimension', class: Google::Apis::SheetsV4::AppendDimensionRequest, decorator: Google::Apis::SheetsV4::AppendDimensionRequest::Representation
@@ -2824,6 +2876,8 @@ module Google
2824
2876
 
2825
2877
  property :update_sheet_properties, as: 'updateSheetProperties', class: Google::Apis::SheetsV4::UpdateSheetPropertiesRequest, decorator: Google::Apis::SheetsV4::UpdateSheetPropertiesRequest::Representation
2826
2878
 
2879
+ property :update_slicer_spec, as: 'updateSlicerSpec', class: Google::Apis::SheetsV4::UpdateSlicerSpecRequest, decorator: Google::Apis::SheetsV4::UpdateSlicerSpecRequest::Representation
2880
+
2827
2881
  property :update_spreadsheet_properties, as: 'updateSpreadsheetProperties', class: Google::Apis::SheetsV4::UpdateSpreadsheetPropertiesRequest, decorator: Google::Apis::SheetsV4::UpdateSpreadsheetPropertiesRequest::Representation
2828
2882
 
2829
2883
  end
@@ -2846,6 +2900,8 @@ module Google
2846
2900
 
2847
2901
  property :add_sheet, as: 'addSheet', class: Google::Apis::SheetsV4::AddSheetResponse, decorator: Google::Apis::SheetsV4::AddSheetResponse::Representation
2848
2902
 
2903
+ property :add_slicer, as: 'addSlicer', class: Google::Apis::SheetsV4::AddSlicerResponse, decorator: Google::Apis::SheetsV4::AddSlicerResponse::Representation
2904
+
2849
2905
  property :create_developer_metadata, as: 'createDeveloperMetadata', class: Google::Apis::SheetsV4::CreateDeveloperMetadataResponse, decorator: Google::Apis::SheetsV4::CreateDeveloperMetadataResponse::Representation
2850
2906
 
2851
2907
  property :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse::Representation
@@ -2961,6 +3017,8 @@ module Google
2961
3017
 
2962
3018
  collection :row_groups, as: 'rowGroups', class: Google::Apis::SheetsV4::DimensionGroup, decorator: Google::Apis::SheetsV4::DimensionGroup::Representation
2963
3019
 
3020
+ collection :slicers, as: 'slicers', class: Google::Apis::SheetsV4::Slicer, decorator: Google::Apis::SheetsV4::Slicer::Representation
3021
+
2964
3022
  end
2965
3023
  end
2966
3024
 
@@ -2980,6 +3038,35 @@ module Google
2980
3038
  end
2981
3039
  end
2982
3040
 
3041
+ class Slicer
3042
+ # @private
3043
+ class Representation < Google::Apis::Core::JsonRepresentation
3044
+ property :position, as: 'position', class: Google::Apis::SheetsV4::EmbeddedObjectPosition, decorator: Google::Apis::SheetsV4::EmbeddedObjectPosition::Representation
3045
+
3046
+ property :slicer_id, as: 'slicerId'
3047
+ property :spec, as: 'spec', class: Google::Apis::SheetsV4::SlicerSpec, decorator: Google::Apis::SheetsV4::SlicerSpec::Representation
3048
+
3049
+ end
3050
+ end
3051
+
3052
+ class SlicerSpec
3053
+ # @private
3054
+ class Representation < Google::Apis::Core::JsonRepresentation
3055
+ property :apply_to_pivot_tables, as: 'applyToPivotTables'
3056
+ property :background_color, as: 'backgroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
3057
+
3058
+ property :column_index, as: 'columnIndex'
3059
+ property :data_range, as: 'dataRange', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
3060
+
3061
+ property :filter_criteria, as: 'filterCriteria', class: Google::Apis::SheetsV4::FilterCriteria, decorator: Google::Apis::SheetsV4::FilterCriteria::Representation
3062
+
3063
+ property :horizontal_alignment, as: 'horizontalAlignment'
3064
+ property :text_format, as: 'textFormat', class: Google::Apis::SheetsV4::TextFormat, decorator: Google::Apis::SheetsV4::TextFormat::Representation
3065
+
3066
+ property :title, as: 'title'
3067
+ end
3068
+ end
3069
+
2983
3070
  class SortRangeRequest
2984
3071
  # @private
2985
3072
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2993,7 +3080,11 @@ module Google
2993
3080
  class SortSpec
2994
3081
  # @private
2995
3082
  class Representation < Google::Apis::Core::JsonRepresentation
3083
+ property :background_color, as: 'backgroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
3084
+
2996
3085
  property :dimension_index, as: 'dimensionIndex'
3086
+ property :foreground_color, as: 'foregroundColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
3087
+
2997
3088
  property :sort_order, as: 'sortOrder'
2998
3089
  end
2999
3090
  end
@@ -3315,6 +3406,16 @@ module Google
3315
3406
  end
3316
3407
  end
3317
3408
 
3409
+ class UpdateSlicerSpecRequest
3410
+ # @private
3411
+ class Representation < Google::Apis::Core::JsonRepresentation
3412
+ property :fields, as: 'fields'
3413
+ property :slicer_id, as: 'slicerId'
3414
+ property :spec, as: 'spec', class: Google::Apis::SheetsV4::SlicerSpec, decorator: Google::Apis::SheetsV4::SlicerSpec::Representation
3415
+
3416
+ end
3417
+ end
3418
+
3318
3419
  class UpdateSpreadsheetPropertiesRequest
3319
3420
  # @private
3320
3421
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1
29
29
  VERSION = 'V1'
30
- REVISION = '20191011'
30
+ REVISION = '20191105'
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'
@@ -7251,6 +7251,38 @@ module Google
7251
7251
  end
7252
7252
  end
7253
7253
 
7254
+ # A Celebrity is a group of Faces with an identity.
7255
+ class GoogleCloudVisionV1p4beta1Celebrity
7256
+ include Google::Apis::Core::Hashable
7257
+
7258
+ # The Celebrity's description.
7259
+ # Corresponds to the JSON property `description`
7260
+ # @return [String]
7261
+ attr_accessor :description
7262
+
7263
+ # The Celebrity's display name.
7264
+ # Corresponds to the JSON property `displayName`
7265
+ # @return [String]
7266
+ attr_accessor :display_name
7267
+
7268
+ # The resource name of the preloaded Celebrity. Has the format
7269
+ # `builtin/`mid``.
7270
+ # Corresponds to the JSON property `name`
7271
+ # @return [String]
7272
+ attr_accessor :name
7273
+
7274
+ def initialize(**args)
7275
+ update!(**args)
7276
+ end
7277
+
7278
+ # Update properties of this object
7279
+ def update!(**args)
7280
+ @description = args[:description] if args.key?(:description)
7281
+ @display_name = args[:display_name] if args.key?(:display_name)
7282
+ @name = args[:name] if args.key?(:name)
7283
+ end
7284
+ end
7285
+
7254
7286
  # Color information consists of RGB channels, score, and the fraction of
7255
7287
  # the image that the color occupies in the image.
7256
7288
  class GoogleCloudVisionV1p4beta1ColorInfo
@@ -7595,6 +7627,14 @@ module Google
7595
7627
  # @return [Float]
7596
7628
  attr_accessor :pan_angle
7597
7629
 
7630
+ # Additional recognition information. Only computed if
7631
+ # image_context.face_recognition_params is provided, **and** a match is found
7632
+ # to a Celebrity in the input CelebritySet. This field is
7633
+ # sorted in order of decreasing confidence values.
7634
+ # Corresponds to the JSON property `recognitionResult`
7635
+ # @return [Array<Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1FaceRecognitionResult>]
7636
+ attr_accessor :recognition_result
7637
+
7598
7638
  # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
7599
7639
  # of the face relative to the image vertical about the axis perpendicular to
7600
7640
  # the face. Range [-180,180].
@@ -7639,6 +7679,7 @@ module Google
7639
7679
  @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
7640
7680
  @landmarks = args[:landmarks] if args.key?(:landmarks)
7641
7681
  @pan_angle = args[:pan_angle] if args.key?(:pan_angle)
7682
+ @recognition_result = args[:recognition_result] if args.key?(:recognition_result)
7642
7683
  @roll_angle = args[:roll_angle] if args.key?(:roll_angle)
7643
7684
  @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood)
7644
7685
  @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
@@ -7674,6 +7715,31 @@ module Google
7674
7715
  end
7675
7716
  end
7676
7717
 
7718
+ # Information about a face's identity.
7719
+ class GoogleCloudVisionV1p4beta1FaceRecognitionResult
7720
+ include Google::Apis::Core::Hashable
7721
+
7722
+ # A Celebrity is a group of Faces with an identity.
7723
+ # Corresponds to the JSON property `celebrity`
7724
+ # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Celebrity]
7725
+ attr_accessor :celebrity
7726
+
7727
+ # Recognition confidence. Range [0, 1].
7728
+ # Corresponds to the JSON property `confidence`
7729
+ # @return [Float]
7730
+ attr_accessor :confidence
7731
+
7732
+ def initialize(**args)
7733
+ update!(**args)
7734
+ end
7735
+
7736
+ # Update properties of this object
7737
+ def update!(**args)
7738
+ @celebrity = args[:celebrity] if args.key?(:celebrity)
7739
+ @confidence = args[:confidence] if args.key?(:confidence)
7740
+ end
7741
+ end
7742
+
7677
7743
  # The Google Cloud Storage location where the output will be written to.
7678
7744
  class GoogleCloudVisionV1p4beta1GcsDestination
7679
7745
  include Google::Apis::Core::Hashable
@@ -1120,6 +1120,12 @@ module Google
1120
1120
  include Google::Apis::Core::JsonObjectSupport
1121
1121
  end
1122
1122
 
1123
+ class GoogleCloudVisionV1p4beta1Celebrity
1124
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1125
+
1126
+ include Google::Apis::Core::JsonObjectSupport
1127
+ end
1128
+
1123
1129
  class GoogleCloudVisionV1p4beta1ColorInfo
1124
1130
  class Representation < Google::Apis::Core::JsonRepresentation; end
1125
1131
 
@@ -1162,6 +1168,12 @@ module Google
1162
1168
  include Google::Apis::Core::JsonObjectSupport
1163
1169
  end
1164
1170
 
1171
+ class GoogleCloudVisionV1p4beta1FaceRecognitionResult
1172
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1173
+
1174
+ include Google::Apis::Core::JsonObjectSupport
1175
+ end
1176
+
1165
1177
  class GoogleCloudVisionV1p4beta1GcsDestination
1166
1178
  class Representation < Google::Apis::Core::JsonRepresentation; end
1167
1179
 
@@ -3687,6 +3699,15 @@ module Google
3687
3699
  end
3688
3700
  end
3689
3701
 
3702
+ class GoogleCloudVisionV1p4beta1Celebrity
3703
+ # @private
3704
+ class Representation < Google::Apis::Core::JsonRepresentation
3705
+ property :description, as: 'description'
3706
+ property :display_name, as: 'displayName'
3707
+ property :name, as: 'name'
3708
+ end
3709
+ end
3710
+
3690
3711
  class GoogleCloudVisionV1p4beta1ColorInfo
3691
3712
  # @private
3692
3713
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3757,6 +3778,8 @@ module Google
3757
3778
  collection :landmarks, as: 'landmarks', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1FaceAnnotationLandmark, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1FaceAnnotationLandmark::Representation
3758
3779
 
3759
3780
  property :pan_angle, as: 'panAngle'
3781
+ collection :recognition_result, as: 'recognitionResult', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1FaceRecognitionResult, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1FaceRecognitionResult::Representation
3782
+
3760
3783
  property :roll_angle, as: 'rollAngle'
3761
3784
  property :sorrow_likelihood, as: 'sorrowLikelihood'
3762
3785
  property :surprise_likelihood, as: 'surpriseLikelihood'
@@ -3774,6 +3797,15 @@ module Google
3774
3797
  end
3775
3798
  end
3776
3799
 
3800
+ class GoogleCloudVisionV1p4beta1FaceRecognitionResult
3801
+ # @private
3802
+ class Representation < Google::Apis::Core::JsonRepresentation
3803
+ property :celebrity, as: 'celebrity', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Celebrity, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1Celebrity::Representation
3804
+
3805
+ property :confidence, as: 'confidence'
3806
+ end
3807
+ end
3808
+
3777
3809
  class GoogleCloudVisionV1p4beta1GcsDestination
3778
3810
  # @private
3779
3811
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/vision/
28
28
  module VisionV1p1beta1
29
29
  VERSION = 'V1p1beta1'
30
- REVISION = '20191011'
30
+ REVISION = '20191105'
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'
@@ -7442,6 +7442,38 @@ module Google
7442
7442
  end
7443
7443
  end
7444
7444
 
7445
+ # A Celebrity is a group of Faces with an identity.
7446
+ class GoogleCloudVisionV1p4beta1Celebrity
7447
+ include Google::Apis::Core::Hashable
7448
+
7449
+ # The Celebrity's description.
7450
+ # Corresponds to the JSON property `description`
7451
+ # @return [String]
7452
+ attr_accessor :description
7453
+
7454
+ # The Celebrity's display name.
7455
+ # Corresponds to the JSON property `displayName`
7456
+ # @return [String]
7457
+ attr_accessor :display_name
7458
+
7459
+ # The resource name of the preloaded Celebrity. Has the format
7460
+ # `builtin/`mid``.
7461
+ # Corresponds to the JSON property `name`
7462
+ # @return [String]
7463
+ attr_accessor :name
7464
+
7465
+ def initialize(**args)
7466
+ update!(**args)
7467
+ end
7468
+
7469
+ # Update properties of this object
7470
+ def update!(**args)
7471
+ @description = args[:description] if args.key?(:description)
7472
+ @display_name = args[:display_name] if args.key?(:display_name)
7473
+ @name = args[:name] if args.key?(:name)
7474
+ end
7475
+ end
7476
+
7445
7477
  # Color information consists of RGB channels, score, and the fraction of
7446
7478
  # the image that the color occupies in the image.
7447
7479
  class GoogleCloudVisionV1p4beta1ColorInfo
@@ -7786,6 +7818,14 @@ module Google
7786
7818
  # @return [Float]
7787
7819
  attr_accessor :pan_angle
7788
7820
 
7821
+ # Additional recognition information. Only computed if
7822
+ # image_context.face_recognition_params is provided, **and** a match is found
7823
+ # to a Celebrity in the input CelebritySet. This field is
7824
+ # sorted in order of decreasing confidence values.
7825
+ # Corresponds to the JSON property `recognitionResult`
7826
+ # @return [Array<Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1FaceRecognitionResult>]
7827
+ attr_accessor :recognition_result
7828
+
7789
7829
  # Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
7790
7830
  # of the face relative to the image vertical about the axis perpendicular to
7791
7831
  # the face. Range [-180,180].
@@ -7830,6 +7870,7 @@ module Google
7830
7870
  @landmarking_confidence = args[:landmarking_confidence] if args.key?(:landmarking_confidence)
7831
7871
  @landmarks = args[:landmarks] if args.key?(:landmarks)
7832
7872
  @pan_angle = args[:pan_angle] if args.key?(:pan_angle)
7873
+ @recognition_result = args[:recognition_result] if args.key?(:recognition_result)
7833
7874
  @roll_angle = args[:roll_angle] if args.key?(:roll_angle)
7834
7875
  @sorrow_likelihood = args[:sorrow_likelihood] if args.key?(:sorrow_likelihood)
7835
7876
  @surprise_likelihood = args[:surprise_likelihood] if args.key?(:surprise_likelihood)
@@ -7865,6 +7906,31 @@ module Google
7865
7906
  end
7866
7907
  end
7867
7908
 
7909
+ # Information about a face's identity.
7910
+ class GoogleCloudVisionV1p4beta1FaceRecognitionResult
7911
+ include Google::Apis::Core::Hashable
7912
+
7913
+ # A Celebrity is a group of Faces with an identity.
7914
+ # Corresponds to the JSON property `celebrity`
7915
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p4beta1Celebrity]
7916
+ attr_accessor :celebrity
7917
+
7918
+ # Recognition confidence. Range [0, 1].
7919
+ # Corresponds to the JSON property `confidence`
7920
+ # @return [Float]
7921
+ attr_accessor :confidence
7922
+
7923
+ def initialize(**args)
7924
+ update!(**args)
7925
+ end
7926
+
7927
+ # Update properties of this object
7928
+ def update!(**args)
7929
+ @celebrity = args[:celebrity] if args.key?(:celebrity)
7930
+ @confidence = args[:confidence] if args.key?(:confidence)
7931
+ end
7932
+ end
7933
+
7868
7934
  # The Google Cloud Storage location where the output will be written to.
7869
7935
  class GoogleCloudVisionV1p4beta1GcsDestination
7870
7936
  include Google::Apis::Core::Hashable