google-apis-retail_v2 0.36.0 → 0.39.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1176a95df6f47189465edd0a3ad3b8889c60ec42deb7c350350e78b8194d48c
4
- data.tar.gz: 41654fa63564cb523233faf5f9f2c2a89a2b5f420364e948b95038197eb787d1
3
+ metadata.gz: 58686d962239593f090e16060a3834f53286167ca8da5622068af3defc635bef
4
+ data.tar.gz: 85d2470832b5358bcd063982273ae5fa176351dd111fad143cff34512214dafe
5
5
  SHA512:
6
- metadata.gz: 5954282fe9adc8af9905659fad8bc938b4da81bf5c2362147f117713092a5c8d4f9b3fe66ec5cd14f83d8dd9cec58baba9ba49a4698fec3036dfade3c7449dab
7
- data.tar.gz: 1bed26a6aafa607dd3c3b81f3ed233dd17823b16e5616f578df3eec2ac8be868a491553581fdc10c1185d3031665ca25e55f1181c0275f8afc909f2bf3064658
6
+ metadata.gz: 7e4e064c05bd6394e4b077ebb7eb1f154aa3cbe7867b76db0cf8096166e8015291caad7e32aeff6790d63d1f2f1532b8e220627e41d3e3424ed37a5d786e0ebd
7
+ data.tar.gz: c68ffdb70d0f2281b66205f653b942e0e5d65a27c57e7d34cba29b5bc854bf9149a090955375e2fe29fab992c6733656c429502ca1c7a54caf146f4360a3b85c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.39.0 (2022-05-19)
4
+
5
+ * Regenerated from discovery document revision 20220512
6
+
7
+ ### v0.38.0 (2022-05-12)
8
+
9
+ * Regenerated from discovery document revision 20220505
10
+
11
+ ### v0.37.0 (2022-05-05)
12
+
13
+ * Regenerated from discovery document revision 20220430
14
+
3
15
  ### v0.36.0 (2022-04-28)
4
16
 
5
17
  * Regenerated from discovery document revision 20220421
@@ -281,7 +281,7 @@ module Google
281
281
 
282
282
  # Metadata related to the progress of the AddFulfillmentPlaces operation.
283
283
  # Currently empty because there is no meaningful metadata populated from the
284
- # AddFulfillmentPlaces method.
284
+ # ProductService.AddFulfillmentPlaces method.
285
285
  class GoogleCloudRetailV2AddFulfillmentPlacesMetadata
286
286
  include Google::Apis::Core::Hashable
287
287
 
@@ -294,7 +294,7 @@ module Google
294
294
  end
295
295
  end
296
296
 
297
- # Request message for AddFulfillmentPlaces method.
297
+ # Request message for ProductService.AddFulfillmentPlaces method.
298
298
  class GoogleCloudRetailV2AddFulfillmentPlacesRequest
299
299
  include Google::Apis::Core::Hashable
300
300
 
@@ -351,7 +351,8 @@ module Google
351
351
  end
352
352
 
353
353
  # Response of the AddFulfillmentPlacesRequest. Currently empty because there is
354
- # no meaningful response populated from the AddFulfillmentPlaces method.
354
+ # no meaningful response populated from the ProductService.AddFulfillmentPlaces
355
+ # method.
355
356
  class GoogleCloudRetailV2AddFulfillmentPlacesResponse
356
357
  include Google::Apis::Core::Hashable
357
358
 
@@ -366,7 +367,7 @@ module Google
366
367
 
367
368
  # Metadata related to the progress of the AddLocalInventories operation.
368
369
  # Currently empty because there is no meaningful metadata populated from the
369
- # AddLocalInventories method.
370
+ # ProductService.AddLocalInventories method.
370
371
  class GoogleCloudRetailV2AddLocalInventoriesMetadata
371
372
  include Google::Apis::Core::Hashable
372
373
 
@@ -379,7 +380,7 @@ module Google
379
380
  end
380
381
  end
381
382
 
382
- # Request message for AddLocalInventories method.
383
+ # Request message for ProductService.AddLocalInventories method.
383
384
  class GoogleCloudRetailV2AddLocalInventoriesRequest
384
385
  include Google::Apis::Core::Hashable
385
386
 
@@ -430,8 +431,9 @@ module Google
430
431
  end
431
432
  end
432
433
 
433
- # Response of the AddLocalInventories API. Currently empty because there is no
434
- # meaningful response populated from the AddLocalInventories method.
434
+ # Response of the ProductService.AddLocalInventories API. Currently empty
435
+ # because there is no meaningful response populated from the ProductService.
436
+ # AddLocalInventories method.
435
437
  class GoogleCloudRetailV2AddLocalInventoriesResponse
436
438
  include Google::Apis::Core::Hashable
437
439
 
@@ -678,7 +680,9 @@ module Google
678
680
 
679
681
  # Custom attributes for the suggestion term. * For "user-data", the attributes
680
682
  # are additional custom attributes ingested through BigQuery. * For "cloud-
681
- # retail", the attributes are product attributes generated by Cloud Retail.
683
+ # retail", the attributes are product attributes generated by Cloud Retail. This
684
+ # is an experimental feature. Contact Retail Search support team if you are
685
+ # interested in enabling it.
682
686
  # Corresponds to the JSON property `attributes`
683
687
  # @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute>]
684
688
  attr_accessor :attributes
@@ -776,11 +780,12 @@ module Google
776
780
 
777
781
  # This field is normally ignored unless AttributesConfig.attribute_config_level
778
782
  # of the Catalog is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode.
779
- # You may learn more on [configuration mode] (https://cloud.google.com/retail/
780
- # docs/attribute-config#config-modes). if true, custom attribute values are
781
- # indexed, so that it can be filtered, faceted or boosted in SearchService.
782
- # Search. This field is ignored in a UserEvent. See SearchRequest.filter,
783
- # SearchRequest.facet_specs and SearchRequest.boost_spec for more details.
783
+ # For information about product-level attribute configuration, see [
784
+ # Configuration modes](https://cloud.google.com/retail/docs/attribute-config#
785
+ # config-modes). If true, custom attribute values are indexed, so that they can
786
+ # be filtered, faceted or boosted in SearchService.Search. This field is ignored
787
+ # in a UserEvent. See SearchRequest.filter, SearchRequest.facet_specs and
788
+ # SearchRequest.boost_spec for more details.
784
789
  # Corresponds to the JSON property `indexable`
785
790
  # @return [Boolean]
786
791
  attr_accessor :indexable
@@ -795,11 +800,11 @@ module Google
795
800
 
796
801
  # This field is normally ignored unless AttributesConfig.attribute_config_level
797
802
  # of the Catalog is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode.
798
- # You may learn more on [configuration mode] (https://cloud.google.com/retail/
799
- # docs/attribute-config#config-modes). If true, custom attribute values are
800
- # searchable by text queries in SearchService.Search. This field is ignored in a
801
- # UserEvent. Only set if type text is set. Otherwise, a INVALID_ARGUMENT error
802
- # is returned.
803
+ # For information about product-level attribute configuration, see [
804
+ # Configuration modes](https://cloud.google.com/retail/docs/attribute-config#
805
+ # config-modes). If true, custom attribute values are searchable by text queries
806
+ # in SearchService.Search. This field is ignored in a UserEvent. Only set if
807
+ # type text is set. Otherwise, a INVALID_ARGUMENT error is returned.
803
808
  # Corresponds to the JSON property `searchable`
804
809
  # @return [Boolean]
805
810
  attr_accessor :searchable
@@ -1413,7 +1418,7 @@ module Google
1413
1418
  # The labels applied to a resource must meet the following requirements: * Each
1414
1419
  # resource can have multiple labels, up to a maximum of 64. * Each label must be
1415
1420
  # a key-value pair. * Keys have a minimum length of 1 character and a maximum
1416
- # length of 63 characters, and cannot be empty. Values can be empty, and have a
1421
+ # length of 63 characters and cannot be empty. Values can be empty and have a
1417
1422
  # maximum length of 63 characters. * Keys and values can contain only lowercase
1418
1423
  # letters, numeric characters, underscores, and dashes. All characters must use
1419
1424
  # UTF-8 encoding, and international characters are allowed. * The key portion of
@@ -1541,9 +1546,9 @@ module Google
1541
1546
  attr_accessor :id
1542
1547
 
1543
1548
  # Additional product metadata / annotations. Possible values: * `product`: JSON
1544
- # representation of the product. Will be set if `returnProduct` is set to true
1545
- # in `PredictRequest.params`. * `score`: Prediction score in double value. Will
1546
- # be set if `returnScore` is set to true in `PredictRequest.params`.
1549
+ # representation of the product. Is set if `returnProduct` is set to true in `
1550
+ # PredictRequest.params`. * `score`: Prediction score in double value. Is set if
1551
+ # `returnScore` is set to true in `PredictRequest.params`.
1547
1552
  # Corresponds to the JSON property `metadata`
1548
1553
  # @return [Hash<String,Object>]
1549
1554
  attr_accessor :metadata
@@ -1906,9 +1911,9 @@ module Google
1906
1911
  # attribute, as specified in attributes. For Type.PRIMARY and Type.COLLECTION,
1907
1912
  # the following fields are always returned in SearchResponse by default: * name
1908
1913
  # For Type.VARIANT, the following fields are always returned in by default: *
1909
- # name * color_info Maximum number of paths is 30. Otherwise, an
1914
+ # name * color_info The maximum number of paths is 30. Otherwise, an
1910
1915
  # INVALID_ARGUMENT error is returned. Note: Returning more fields in
1911
- # SearchResponse may increase response payload size and serving latency.
1916
+ # SearchResponse can increase response payload size and serving latency.
1912
1917
  # Corresponds to the JSON property `retrievableFields`
1913
1918
  # @return [String]
1914
1919
  attr_accessor :retrievable_fields
@@ -2589,7 +2594,7 @@ module Google
2589
2594
  # The labels applied to a resource must meet the following requirements: * Each
2590
2595
  # resource can have multiple labels, up to a maximum of 64. * Each label must be
2591
2596
  # a key-value pair. * Keys have a minimum length of 1 character and a maximum
2592
- # length of 63 characters, and cannot be empty. Values can be empty, and have a
2597
+ # length of 63 characters and cannot be empty. Values can be empty and have a
2593
2598
  # maximum length of 63 characters. * Keys and values can contain only lowercase
2594
2599
  # letters, numeric characters, underscores, and dashes. All characters must use
2595
2600
  # UTF-8 encoding, and international characters are allowed. * The key portion of
@@ -2667,6 +2672,11 @@ module Google
2667
2672
  # @return [String]
2668
2673
  attr_accessor :search_mode
2669
2674
 
2675
+ # The specification for query spell correction.
2676
+ # Corresponds to the JSON property `spellCorrectionSpec`
2677
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestSpellCorrectionSpec]
2678
+ attr_accessor :spell_correction_spec
2679
+
2670
2680
  # Information of an end user.
2671
2681
  # Corresponds to the JSON property `userInfo`
2672
2682
  # @return [Google::Apis::RetailV2::GoogleCloudRetailV2UserInfo]
@@ -2682,8 +2692,8 @@ module Google
2682
2692
  # the store ID. Supported keys are: * colorFamilies * price * originalPrice *
2683
2693
  # discount * variantId * inventory(place_id,price) * inventory(place_id,
2684
2694
  # original_price) * inventory(place_id,attributes.key), where key is any key in
2685
- # the Product.inventories.attributes map. * attributes.key, where key is any key
2686
- # in the Product.attributes map. * pickupInStore.id, where id is any
2695
+ # the Product.local_inventories.attributes map. * attributes.key, where key is
2696
+ # any key in the Product.attributes map. * pickupInStore.id, where id is any
2687
2697
  # FulfillmentInfo.place_ids for FulfillmentInfo.type "pickup-in-store". *
2688
2698
  # shipToStore.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.
2689
2699
  # type "ship-to-store". * sameDayDelivery.id, where id is any FulfillmentInfo.
@@ -2734,6 +2744,7 @@ module Google
2734
2744
  @query = args[:query] if args.key?(:query)
2735
2745
  @query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
2736
2746
  @search_mode = args[:search_mode] if args.key?(:search_mode)
2747
+ @spell_correction_spec = args[:spell_correction_spec] if args.key?(:spell_correction_spec)
2737
2748
  @user_info = args[:user_info] if args.key?(:user_info)
2738
2749
  @variant_rollup_keys = args[:variant_rollup_keys] if args.key?(:variant_rollup_keys)
2739
2750
  @visitor_id = args[:visitor_id] if args.key?(:visitor_id)
@@ -2746,7 +2757,7 @@ module Google
2746
2757
 
2747
2758
  # Condition boost specifications. If a product matches multiple conditions in
2748
2759
  # the specifictions, boost scores from these specifications are all applied and
2749
- # combined in a non-linear way. Maximum number of specifications is 10.
2760
+ # combined in a non-linear way. Maximum number of specifications is 20.
2750
2761
  # Corresponds to the JSON property `conditionBoostSpecs`
2751
2762
  # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec>]
2752
2763
  attr_accessor :condition_boost_specs
@@ -2857,13 +2868,20 @@ module Google
2857
2868
  alias_method :enable_dynamic_position?, :enable_dynamic_position
2858
2869
 
2859
2870
  # List of keys to exclude when faceting. By default, FacetKey.key is not
2860
- # excluded from the filter unless it is listed in this field. For example,
2861
- # suppose there are 100 products with color facet "Red" and 200 products with
2862
- # color facet "Blue". A query containing the filter "colorFamilies:ANY("Red")"
2863
- # and have "colorFamilies" as FacetKey.key will by default return the "Red" with
2864
- # count 100. If this field contains "colorFamilies", then the query returns both
2865
- # the "Red" with count 100 and "Blue" with count 200, because the "colorFamilies"
2866
- # key is now excluded from the filter. A maximum of 100 values are allowed.
2871
+ # excluded from the filter unless it is listed in this field. Listing a facet
2872
+ # key in this field allows its values to appear as facet results, even when they
2873
+ # are filtered out of search results. Using this field does not affect what
2874
+ # search results are returned. For example, suppose there are 100 products with
2875
+ # the color facet "Red" and 200 products with the color facet "Blue". A query
2876
+ # containing the filter "colorFamilies:ANY("Red")" and having "colorFamilies" as
2877
+ # FacetKey.key would by default return only "Red" products in the search results,
2878
+ # and also return "Red" with count 100 as the only color facet. Although there
2879
+ # are also blue products available, "Blue" would not be shown as an available
2880
+ # facet value. If "colorFamilies" is listed in "excludedFilterKeys", then the
2881
+ # query returns the facet values "Red" with count 100 and "Blue" with count 200,
2882
+ # because the "colorFamilies" key is now excluded from the filter. Because this
2883
+ # field doesn't affect search results, the search results are still correctly
2884
+ # filtered to return only "Red" products. A maximum of 100 values are allowed.
2867
2885
  # Otherwise, an INVALID_ARGUMENT error is returned.
2868
2886
  # Corresponds to the JSON property `excludedFilterKeys`
2869
2887
  # @return [Array<String>]
@@ -3037,6 +3055,26 @@ module Google
3037
3055
  end
3038
3056
  end
3039
3057
 
3058
+ # The specification for query spell correction.
3059
+ class GoogleCloudRetailV2SearchRequestSpellCorrectionSpec
3060
+ include Google::Apis::Core::Hashable
3061
+
3062
+ # The mode under which spell correction should take effect to replace the
3063
+ # original search query. Default to Mode.AUTO.
3064
+ # Corresponds to the JSON property `mode`
3065
+ # @return [String]
3066
+ attr_accessor :mode
3067
+
3068
+ def initialize(**args)
3069
+ update!(**args)
3070
+ end
3071
+
3072
+ # Update properties of this object
3073
+ def update!(**args)
3074
+ @mode = args[:mode] if args.key?(:mode)
3075
+ end
3076
+ end
3077
+
3040
3078
  # Response message for SearchService.Search method.
3041
3079
  class GoogleCloudRetailV2SearchResponse
3042
3080
  include Google::Apis::Core::Hashable
@@ -3055,8 +3093,8 @@ module Google
3055
3093
  attr_accessor :attribution_token
3056
3094
 
3057
3095
  # Contains the spell corrected query, if found. If the spell correction type is
3058
- # AUTOMATIC, then the search results will be based on corrected_query, otherwise
3059
- # the original query will be used for search.
3096
+ # AUTOMATIC, then the search results are based on corrected_query. Otherwise the
3097
+ # original query will be used for search.
3060
3098
  # Corresponds to the JSON property `correctedQuery`
3061
3099
  # @return [String]
3062
3100
  attr_accessor :corrected_query
@@ -3085,8 +3123,8 @@ module Google
3085
3123
  attr_accessor :query_expansion_info
3086
3124
 
3087
3125
  # The URI of a customer-defined redirect page. If redirect action is triggered,
3088
- # no search will be performed, and only redirect_uri and attribution_token will
3089
- # be set in the response.
3126
+ # no search is performed, and only redirect_uri and attribution_token are set in
3127
+ # the response.
3090
3128
  # Corresponds to the JSON property `redirectUri`
3091
3129
  # @return [String]
3092
3130
  attr_accessor :redirect_uri
@@ -3579,7 +3617,7 @@ module Google
3579
3617
  # which results in degraded model quality. The field must be a UTF-8 encoded
3580
3618
  # string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT
3581
3619
  # error is returned. The field should not contain PII or user-data. We recommend
3582
- # to use Google Analystics [Client ID](https://developers.google.com/analytics/
3620
+ # to use Google Analytics [Client ID](https://developers.google.com/analytics/
3583
3621
  # devguides/collection/analyticsjs/field-reference#clientId) for this field.
3584
3622
  # Corresponds to the JSON property `visitorId`
3585
3623
  # @return [String]
@@ -3751,7 +3789,7 @@ module Google
3751
3789
 
3752
3790
  # Metadata related to the progress of the AddFulfillmentPlaces operation.
3753
3791
  # Currently empty because there is no meaningful metadata populated from the
3754
- # AddFulfillmentPlaces method.
3792
+ # ProductService.AddFulfillmentPlaces method.
3755
3793
  class GoogleCloudRetailV2alphaAddFulfillmentPlacesMetadata
3756
3794
  include Google::Apis::Core::Hashable
3757
3795
 
@@ -3765,7 +3803,8 @@ module Google
3765
3803
  end
3766
3804
 
3767
3805
  # Response of the AddFulfillmentPlacesRequest. Currently empty because there is
3768
- # no meaningful response populated from the AddFulfillmentPlaces method.
3806
+ # no meaningful response populated from the ProductService.AddFulfillmentPlaces
3807
+ # method.
3769
3808
  class GoogleCloudRetailV2alphaAddFulfillmentPlacesResponse
3770
3809
  include Google::Apis::Core::Hashable
3771
3810
 
@@ -3780,7 +3819,7 @@ module Google
3780
3819
 
3781
3820
  # Metadata related to the progress of the AddLocalInventories operation.
3782
3821
  # Currently empty because there is no meaningful metadata populated from the
3783
- # AddLocalInventories method.
3822
+ # ProductService.AddLocalInventories method.
3784
3823
  class GoogleCloudRetailV2alphaAddLocalInventoriesMetadata
3785
3824
  include Google::Apis::Core::Hashable
3786
3825
 
@@ -3793,8 +3832,9 @@ module Google
3793
3832
  end
3794
3833
  end
3795
3834
 
3796
- # Response of the AddLocalInventories API. Currently empty because there is no
3797
- # meaningful response populated from the AddLocalInventories method.
3835
+ # Response of the ProductService.AddLocalInventories API. Currently empty
3836
+ # because there is no meaningful response populated from the ProductService.
3837
+ # AddLocalInventories method.
3798
3838
  class GoogleCloudRetailV2alphaAddLocalInventoriesResponse
3799
3839
  include Google::Apis::Core::Hashable
3800
3840
 
@@ -4317,7 +4357,7 @@ module Google
4317
4357
 
4318
4358
  # Metadata related to the progress of the AddFulfillmentPlaces operation.
4319
4359
  # Currently empty because there is no meaningful metadata populated from the
4320
- # AddFulfillmentPlaces method.
4360
+ # ProductService.AddFulfillmentPlaces method.
4321
4361
  class GoogleCloudRetailV2betaAddFulfillmentPlacesMetadata
4322
4362
  include Google::Apis::Core::Hashable
4323
4363
 
@@ -4331,7 +4371,8 @@ module Google
4331
4371
  end
4332
4372
 
4333
4373
  # Response of the AddFulfillmentPlacesRequest. Currently empty because there is
4334
- # no meaningful response populated from the AddFulfillmentPlaces method.
4374
+ # no meaningful response populated from the ProductService.AddFulfillmentPlaces
4375
+ # method.
4335
4376
  class GoogleCloudRetailV2betaAddFulfillmentPlacesResponse
4336
4377
  include Google::Apis::Core::Hashable
4337
4378
 
@@ -4346,7 +4387,7 @@ module Google
4346
4387
 
4347
4388
  # Metadata related to the progress of the AddLocalInventories operation.
4348
4389
  # Currently empty because there is no meaningful metadata populated from the
4349
- # AddLocalInventories method.
4390
+ # ProductService.AddLocalInventories method.
4350
4391
  class GoogleCloudRetailV2betaAddLocalInventoriesMetadata
4351
4392
  include Google::Apis::Core::Hashable
4352
4393
 
@@ -4359,8 +4400,9 @@ module Google
4359
4400
  end
4360
4401
  end
4361
4402
 
4362
- # Response of the AddLocalInventories API. Currently empty because there is no
4363
- # meaningful response populated from the AddLocalInventories method.
4403
+ # Response of the ProductService.AddLocalInventories API. Currently empty
4404
+ # because there is no meaningful response populated from the ProductService.
4405
+ # AddLocalInventories method.
4364
4406
  class GoogleCloudRetailV2betaAddLocalInventoriesResponse
4365
4407
  include Google::Apis::Core::Hashable
4366
4408
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2
18
18
  # Version of the google-apis-retail_v2 gem
19
- GEM_VERSION = "0.36.0"
19
+ GEM_VERSION = "0.39.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220421"
25
+ REVISION = "20220512"
26
26
  end
27
27
  end
28
28
  end
@@ -454,6 +454,12 @@ module Google
454
454
  include Google::Apis::Core::JsonObjectSupport
455
455
  end
456
456
 
457
+ class GoogleCloudRetailV2SearchRequestSpellCorrectionSpec
458
+ class Representation < Google::Apis::Core::JsonRepresentation; end
459
+
460
+ include Google::Apis::Core::JsonObjectSupport
461
+ end
462
+
457
463
  class GoogleCloudRetailV2SearchResponse
458
464
  class Representation < Google::Apis::Core::JsonRepresentation; end
459
465
 
@@ -1508,6 +1514,8 @@ module Google
1508
1514
  property :query_expansion_spec, as: 'queryExpansionSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec::Representation
1509
1515
 
1510
1516
  property :search_mode, as: 'searchMode'
1517
+ property :spell_correction_spec, as: 'spellCorrectionSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestSpellCorrectionSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestSpellCorrectionSpec::Representation
1518
+
1511
1519
  property :user_info, as: 'userInfo', class: Google::Apis::RetailV2::GoogleCloudRetailV2UserInfo, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2UserInfo::Representation
1512
1520
 
1513
1521
  collection :variant_rollup_keys, as: 'variantRollupKeys'
@@ -1579,6 +1587,13 @@ module Google
1579
1587
  end
1580
1588
  end
1581
1589
 
1590
+ class GoogleCloudRetailV2SearchRequestSpellCorrectionSpec
1591
+ # @private
1592
+ class Representation < Google::Apis::Core::JsonRepresentation
1593
+ property :mode, as: 'mode'
1594
+ end
1595
+ end
1596
+
1582
1597
  class GoogleCloudRetailV2SearchResponse
1583
1598
  # @private
1584
1599
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -62,8 +62,9 @@ module Google
62
62
  # the imported dataset through CompletionService.ImportCompletionData. "cloud-
63
63
  # retail" will use the dataset generated by cloud retail based on user events.
64
64
  # If leave empty, it will use the "user-data". Current supported values: * user-
65
- # data * cloud-retail This option requires additional allowlisting. Before using
66
- # cloud-retail, contact Cloud Retail support team first.
65
+ # data * cloud-retail: This option requires enabling auto-learning function
66
+ # first. See [guidelines](https://cloud.google.com/retail/docs/completion-
67
+ # overview#generated-completion-dataset).
67
68
  # @param [String] device_type
68
69
  # The device type context for completion suggestions. It is useful to apply
69
70
  # different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If
@@ -522,9 +523,9 @@ module Google
522
523
  execute_or_queue_command(command, &block)
523
524
  end
524
525
 
525
- # Bulk import of multiple Products. Request processing may be synchronous. No
526
- # partial updating is supported. Non-existing items are created. Note that it is
527
- # possible for a subset of the Products to be successfully updated.
526
+ # Bulk import of multiple Products. Request processing may be synchronous. Non-
527
+ # existing items are created. Note that it is possible for a subset of the
528
+ # Products to be successfully updated.
528
529
  # @param [String] parent
529
530
  # Required. `projects/1234/locations/global/catalogs/default_catalog/branches/
530
531
  # default_branch` If no updateMask is specified, requires products.create
@@ -774,9 +775,9 @@ module Google
774
775
  # this product will be used. If no inventory fields are set in
775
776
  # SetInventoryRequest.set_mask, then any existing inventory information will be
776
777
  # preserved. Pre-existing inventory information can only be updated with
777
- # SetInventory, AddFulfillmentPlaces, and RemoveFulfillmentPlaces. This feature
778
- # is only available for users who have Retail Search enabled. Please enable
779
- # Retail Search on Cloud Console before using this feature.
778
+ # SetInventory, ProductService.AddFulfillmentPlaces, and RemoveFulfillmentPlaces.
779
+ # This feature is only available for users who have Retail Search enabled.
780
+ # Please enable Retail Search on Cloud Console before using this feature.
780
781
  # @param [String] name
781
782
  # Immutable. Full resource name of the product, such as `projects/*/locations/
782
783
  # global/catalogs/default_catalog/branches/default_branch/products/product_id`.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.0
4
+ version: 0.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-02 00:00:00.000000000 Z
11
+ date: 2022-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.36.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.39.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
63
63
  post_install_message:
64
64
  rdoc_options: []