google-apis-retail_v2beta 0.38.0 → 0.41.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: 8f819a6b4602b73b75b02cd74776d7075e3e295e5d8bd54ead39cccc4c1d58f1
4
- data.tar.gz: 1fc0f04c70df32f515002005aa98714fd98d2151d6e7092f2a0f4e6c725060ec
3
+ metadata.gz: 063a734a8dda879211328ca79c4bd28d5029e171f4794ce25fa628bc41b7a2cb
4
+ data.tar.gz: 3b45287f0f802aa909567d704c16a06507d9fa96b8425124e723771d75afde18
5
5
  SHA512:
6
- metadata.gz: 3d31f6b11bc6b40f12b872aae9512c486abe2bc84c15bd637afca1b363d0d1b43d864b1f290b34df47976521b8f47ad5be4338a3b4e99ba1d31f347039ba90c2
7
- data.tar.gz: 79e9feab52306e7b3fac846dd1d23dd2b8298ac421af2290f0aa36edd3aed571a9106f1e17a8a3ade3b57866d0a45e4407042653d5d09c0e808a6f27a833b3a5
6
+ metadata.gz: e9f507df708a8d46a89e28f7f4c5e5e78661e0353c6feac6a473a06a402cff115f691f8e6d338e0276c844ad28f8504329b5641ee68ac8b851d89ea53e2c53ce
7
+ data.tar.gz: cf1730f7a96d4d42127b2c19171fa135361e795c8d70711263306f742c4159c848a5d16b2b78203db27df01978c184545cd0cdd44d0dbec415d22b62ca03a8e4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-retail_v2beta
2
2
 
3
+ ### v0.41.0 (2022-05-26)
4
+
5
+ * Regenerated from discovery document revision 20220519
6
+
7
+ ### v0.40.0 (2022-05-19)
8
+
9
+ * Regenerated from discovery document revision 20220512
10
+
11
+ ### v0.39.0 (2022-05-12)
12
+
13
+ * Regenerated from discovery document revision 20220505
14
+
3
15
  ### v0.38.0 (2022-05-05)
4
16
 
5
17
  * Regenerated from discovery document revision 20220430
@@ -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
 
@@ -295,7 +295,8 @@ module Google
295
295
  end
296
296
 
297
297
  # Response of the AddFulfillmentPlacesRequest. Currently empty because there is
298
- # no meaningful response populated from the AddFulfillmentPlaces method.
298
+ # no meaningful response populated from the ProductService.AddFulfillmentPlaces
299
+ # method.
299
300
  class GoogleCloudRetailV2AddFulfillmentPlacesResponse
300
301
  include Google::Apis::Core::Hashable
301
302
 
@@ -310,7 +311,7 @@ module Google
310
311
 
311
312
  # Metadata related to the progress of the AddLocalInventories operation.
312
313
  # Currently empty because there is no meaningful metadata populated from the
313
- # AddLocalInventories method.
314
+ # ProductService.AddLocalInventories method.
314
315
  class GoogleCloudRetailV2AddLocalInventoriesMetadata
315
316
  include Google::Apis::Core::Hashable
316
317
 
@@ -323,8 +324,9 @@ module Google
323
324
  end
324
325
  end
325
326
 
326
- # Response of the AddLocalInventories API. Currently empty because there is no
327
- # meaningful response populated from the AddLocalInventories method.
327
+ # Response of the ProductService.AddLocalInventories API. Currently empty
328
+ # because there is no meaningful response populated from the ProductService.
329
+ # AddLocalInventories method.
328
330
  class GoogleCloudRetailV2AddLocalInventoriesResponse
329
331
  include Google::Apis::Core::Hashable
330
332
 
@@ -677,7 +679,7 @@ module Google
677
679
 
678
680
  # Metadata related to the progress of the AddFulfillmentPlaces operation.
679
681
  # Currently empty because there is no meaningful metadata populated from the
680
- # AddFulfillmentPlaces method.
682
+ # ProductService.AddFulfillmentPlaces method.
681
683
  class GoogleCloudRetailV2alphaAddFulfillmentPlacesMetadata
682
684
  include Google::Apis::Core::Hashable
683
685
 
@@ -691,7 +693,8 @@ module Google
691
693
  end
692
694
 
693
695
  # Response of the AddFulfillmentPlacesRequest. Currently empty because there is
694
- # no meaningful response populated from the AddFulfillmentPlaces method.
696
+ # no meaningful response populated from the ProductService.AddFulfillmentPlaces
697
+ # method.
695
698
  class GoogleCloudRetailV2alphaAddFulfillmentPlacesResponse
696
699
  include Google::Apis::Core::Hashable
697
700
 
@@ -706,7 +709,7 @@ module Google
706
709
 
707
710
  # Metadata related to the progress of the AddLocalInventories operation.
708
711
  # Currently empty because there is no meaningful metadata populated from the
709
- # AddLocalInventories method.
712
+ # ProductService.AddLocalInventories method.
710
713
  class GoogleCloudRetailV2alphaAddLocalInventoriesMetadata
711
714
  include Google::Apis::Core::Hashable
712
715
 
@@ -719,8 +722,9 @@ module Google
719
722
  end
720
723
  end
721
724
 
722
- # Response of the AddLocalInventories API. Currently empty because there is no
723
- # meaningful response populated from the AddLocalInventories method.
725
+ # Response of the ProductService.AddLocalInventories API. Currently empty
726
+ # because there is no meaningful response populated from the ProductService.
727
+ # AddLocalInventories method.
724
728
  class GoogleCloudRetailV2alphaAddLocalInventoriesResponse
725
729
  include Google::Apis::Core::Hashable
726
730
 
@@ -1283,7 +1287,7 @@ module Google
1283
1287
 
1284
1288
  # Metadata related to the progress of the AddFulfillmentPlaces operation.
1285
1289
  # Currently empty because there is no meaningful metadata populated from the
1286
- # AddFulfillmentPlaces method.
1290
+ # ProductService.AddFulfillmentPlaces method.
1287
1291
  class GoogleCloudRetailV2betaAddFulfillmentPlacesMetadata
1288
1292
  include Google::Apis::Core::Hashable
1289
1293
 
@@ -1296,7 +1300,7 @@ module Google
1296
1300
  end
1297
1301
  end
1298
1302
 
1299
- # Request message for AddFulfillmentPlaces method.
1303
+ # Request message for ProductService.AddFulfillmentPlaces method.
1300
1304
  class GoogleCloudRetailV2betaAddFulfillmentPlacesRequest
1301
1305
  include Google::Apis::Core::Hashable
1302
1306
 
@@ -1353,7 +1357,8 @@ module Google
1353
1357
  end
1354
1358
 
1355
1359
  # Response of the AddFulfillmentPlacesRequest. Currently empty because there is
1356
- # no meaningful response populated from the AddFulfillmentPlaces method.
1360
+ # no meaningful response populated from the ProductService.AddFulfillmentPlaces
1361
+ # method.
1357
1362
  class GoogleCloudRetailV2betaAddFulfillmentPlacesResponse
1358
1363
  include Google::Apis::Core::Hashable
1359
1364
 
@@ -1368,7 +1373,7 @@ module Google
1368
1373
 
1369
1374
  # Metadata related to the progress of the AddLocalInventories operation.
1370
1375
  # Currently empty because there is no meaningful metadata populated from the
1371
- # AddLocalInventories method.
1376
+ # ProductService.AddLocalInventories method.
1372
1377
  class GoogleCloudRetailV2betaAddLocalInventoriesMetadata
1373
1378
  include Google::Apis::Core::Hashable
1374
1379
 
@@ -1381,7 +1386,7 @@ module Google
1381
1386
  end
1382
1387
  end
1383
1388
 
1384
- # Request message for AddLocalInventories method.
1389
+ # Request message for ProductService.AddLocalInventories method.
1385
1390
  class GoogleCloudRetailV2betaAddLocalInventoriesRequest
1386
1391
  include Google::Apis::Core::Hashable
1387
1392
 
@@ -1432,8 +1437,9 @@ module Google
1432
1437
  end
1433
1438
  end
1434
1439
 
1435
- # Response of the AddLocalInventories API. Currently empty because there is no
1436
- # meaningful response populated from the AddLocalInventories method.
1440
+ # Response of the ProductService.AddLocalInventories API. Currently empty
1441
+ # because there is no meaningful response populated from the ProductService.
1442
+ # AddLocalInventories method.
1437
1443
  class GoogleCloudRetailV2betaAddLocalInventoriesResponse
1438
1444
  include Google::Apis::Core::Hashable
1439
1445
 
@@ -1465,7 +1471,7 @@ module Google
1465
1471
  attr_accessor :catalog_attributes
1466
1472
 
1467
1473
  # Required. Immutable. The fully qualified resource name of the attribute config.
1468
- # Format: "projects/*/locations/*/catalogs/*/attributesConfig"
1474
+ # Format: `projects/*/locations/*/catalogs/*/attributesConfig`
1469
1475
  # Corresponds to the JSON property `name`
1470
1476
  # @return [String]
1471
1477
  attr_accessor :name
@@ -1650,12 +1656,13 @@ module Google
1650
1656
  # Output only. Indicates whether this attribute has been used by any products. `
1651
1657
  # True` if at least one Product is using this attribute in Product.attributes.
1652
1658
  # Otherwise, this field is `False`. CatalogAttribute can be pre-loaded by using
1653
- # AddCatalogAttribute, ImportCatalogAttributes, or UpdateAttributesConfig APIs.
1654
- # This field is `False` for pre-loaded CatalogAttributes. Only CatalogAttributes
1655
- # that are not in use by products can be deleted. CatalogAttributes that are in
1656
- # use by products cannot be deleted; however, their configuration properties
1657
- # will reset to default values upon removal request. After catalog changes, it
1658
- # takes about 10 minutes for this field to update.
1659
+ # CatalogService.AddCatalogAttribute, CatalogService.ImportCatalogAttributes, or
1660
+ # CatalogService.UpdateAttributesConfig APIs. This field is `False` for pre-
1661
+ # loaded CatalogAttributes. Only CatalogAttributes that are not in use by
1662
+ # products can be deleted. CatalogAttributes that are in use by products cannot
1663
+ # be deleted; however, their configuration properties will reset to default
1664
+ # values upon removal request. After catalog changes, it takes about 10 minutes
1665
+ # for this field to update.
1659
1666
  # Corresponds to the JSON property `inUse`
1660
1667
  # @return [Boolean]
1661
1668
  attr_accessor :in_use
@@ -1792,7 +1799,9 @@ module Google
1792
1799
 
1793
1800
  # Custom attributes for the suggestion term. * For "user-data", the attributes
1794
1801
  # are additional custom attributes ingested through BigQuery. * For "cloud-
1795
- # retail", the attributes are product attributes generated by Cloud Retail.
1802
+ # retail", the attributes are product attributes generated by Cloud Retail. This
1803
+ # is an experimental feature. Contact Retail Search support team if you are
1804
+ # interested in enabling it.
1796
1805
  # Corresponds to the JSON property `attributes`
1797
1806
  # @return [Hash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute>]
1798
1807
  attr_accessor :attributes
@@ -1898,8 +1907,8 @@ module Google
1898
1907
  # @return [Fixnum]
1899
1908
  attr_accessor :min_prefix_length
1900
1909
 
1901
- # Required. Immutable. Fully qualified name projects/*/locations/*/catalogs/*/
1902
- # completionConfig
1910
+ # Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/
1911
+ # completionConfig`
1903
1912
  # Corresponds to the JSON property `name`
1904
1913
  # @return [String]
1905
1914
  attr_accessor :name
@@ -2135,11 +2144,12 @@ module Google
2135
2144
 
2136
2145
  # This field is normally ignored unless AttributesConfig.attribute_config_level
2137
2146
  # of the Catalog is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode.
2138
- # You may learn more on [configuration mode] (https://cloud.google.com/retail/
2139
- # docs/attribute-config#config-modes). if true, custom attribute values are
2140
- # indexed, so that it can be filtered, faceted or boosted in SearchService.
2141
- # Search. This field is ignored in a UserEvent. See SearchRequest.filter,
2142
- # SearchRequest.facet_specs and SearchRequest.boost_spec for more details.
2147
+ # For information about product-level attribute configuration, see [
2148
+ # Configuration modes](https://cloud.google.com/retail/docs/attribute-config#
2149
+ # config-modes). If true, custom attribute values are indexed, so that they can
2150
+ # be filtered, faceted or boosted in SearchService.Search. This field is ignored
2151
+ # in a UserEvent. See SearchRequest.filter, SearchRequest.facet_specs and
2152
+ # SearchRequest.boost_spec for more details.
2143
2153
  # Corresponds to the JSON property `indexable`
2144
2154
  # @return [Boolean]
2145
2155
  attr_accessor :indexable
@@ -2154,11 +2164,11 @@ module Google
2154
2164
 
2155
2165
  # This field is normally ignored unless AttributesConfig.attribute_config_level
2156
2166
  # of the Catalog is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode.
2157
- # You may learn more on [configuration mode] (https://cloud.google.com/retail/
2158
- # docs/attribute-config#config-modes). If true, custom attribute values are
2159
- # searchable by text queries in SearchService.Search. This field is ignored in a
2160
- # UserEvent. Only set if type text is set. Otherwise, a INVALID_ARGUMENT error
2161
- # is returned.
2167
+ # For information about product-level attribute configuration, see [
2168
+ # Configuration modes](https://cloud.google.com/retail/docs/attribute-config#
2169
+ # config-modes). If true, custom attribute values are searchable by text queries
2170
+ # in SearchService.Search. This field is ignored in a UserEvent. Only set if
2171
+ # type text is set. Otherwise, a INVALID_ARGUMENT error is returned.
2162
2172
  # Corresponds to the JSON property `searchable`
2163
2173
  # @return [Boolean]
2164
2174
  attr_accessor :searchable
@@ -3006,7 +3016,7 @@ module Google
3006
3016
  # The labels applied to a resource must meet the following requirements: * Each
3007
3017
  # resource can have multiple labels, up to a maximum of 64. * Each label must be
3008
3018
  # a key-value pair. * Keys have a minimum length of 1 character and a maximum
3009
- # length of 63 characters, and cannot be empty. Values can be empty, and have a
3019
+ # length of 63 characters and cannot be empty. Values can be empty and have a
3010
3020
  # maximum length of 63 characters. * Keys and values can contain only lowercase
3011
3021
  # letters, numeric characters, underscores, and dashes. All characters must use
3012
3022
  # UTF-8 encoding, and international characters are allowed. * The key portion of
@@ -3134,9 +3144,9 @@ module Google
3134
3144
  attr_accessor :id
3135
3145
 
3136
3146
  # Additional product metadata / annotations. Possible values: * `product`: JSON
3137
- # representation of the product. Will be set if `returnProduct` is set to true
3138
- # in `PredictRequest.params`. * `score`: Prediction score in double value. Will
3139
- # be set if `returnScore` is set to true in `PredictRequest.params`.
3147
+ # representation of the product. Is set if `returnProduct` is set to true in `
3148
+ # PredictRequest.params`. * `score`: Prediction score in double value. Is set if
3149
+ # `returnScore` is set to true in `PredictRequest.params`.
3140
3150
  # Corresponds to the JSON property `metadata`
3141
3151
  # @return [Hash<String,Object>]
3142
3152
  attr_accessor :metadata
@@ -3499,9 +3509,9 @@ module Google
3499
3509
  # attribute, as specified in attributes. For Type.PRIMARY and Type.COLLECTION,
3500
3510
  # the following fields are always returned in SearchResponse by default: * name
3501
3511
  # For Type.VARIANT, the following fields are always returned in by default: *
3502
- # name * color_info Maximum number of paths is 30. Otherwise, an
3512
+ # name * color_info The maximum number of paths is 30. Otherwise, an
3503
3513
  # INVALID_ARGUMENT error is returned. Note: Returning more fields in
3504
- # SearchResponse may increase response payload size and serving latency.
3514
+ # SearchResponse can increase response payload size and serving latency.
3505
3515
  # Corresponds to the JSON property `retrievableFields`
3506
3516
  # @return [String]
3507
3517
  attr_accessor :retrievable_fields
@@ -4576,7 +4586,7 @@ module Google
4576
4586
  # The labels applied to a resource must meet the following requirements: * Each
4577
4587
  # resource can have multiple labels, up to a maximum of 64. * Each label must be
4578
4588
  # a key-value pair. * Keys have a minimum length of 1 character and a maximum
4579
- # length of 63 characters, and cannot be empty. Values can be empty, and have a
4589
+ # length of 63 characters and cannot be empty. Values can be empty and have a
4580
4590
  # maximum length of 63 characters. * Keys and values can contain only lowercase
4581
4591
  # letters, numeric characters, underscores, and dashes. All characters must use
4582
4592
  # UTF-8 encoding, and international characters are allowed. * The key portion of
@@ -4654,6 +4664,11 @@ module Google
4654
4664
  # @return [String]
4655
4665
  attr_accessor :search_mode
4656
4666
 
4667
+ # The specification for query spell correction.
4668
+ # Corresponds to the JSON property `spellCorrectionSpec`
4669
+ # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestSpellCorrectionSpec]
4670
+ attr_accessor :spell_correction_spec
4671
+
4657
4672
  # Information of an end user.
4658
4673
  # Corresponds to the JSON property `userInfo`
4659
4674
  # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaUserInfo]
@@ -4669,8 +4684,8 @@ module Google
4669
4684
  # the store ID. Supported keys are: * colorFamilies * price * originalPrice *
4670
4685
  # discount * variantId * inventory(place_id,price) * inventory(place_id,
4671
4686
  # original_price) * inventory(place_id,attributes.key), where key is any key in
4672
- # the Product.inventories.attributes map. * attributes.key, where key is any key
4673
- # in the Product.attributes map. * pickupInStore.id, where id is any
4687
+ # the Product.local_inventories.attributes map. * attributes.key, where key is
4688
+ # any key in the Product.attributes map. * pickupInStore.id, where id is any
4674
4689
  # FulfillmentInfo.place_ids for FulfillmentInfo.type "pickup-in-store". *
4675
4690
  # shipToStore.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.
4676
4691
  # type "ship-to-store". * sameDayDelivery.id, where id is any FulfillmentInfo.
@@ -4721,6 +4736,7 @@ module Google
4721
4736
  @query = args[:query] if args.key?(:query)
4722
4737
  @query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
4723
4738
  @search_mode = args[:search_mode] if args.key?(:search_mode)
4739
+ @spell_correction_spec = args[:spell_correction_spec] if args.key?(:spell_correction_spec)
4724
4740
  @user_info = args[:user_info] if args.key?(:user_info)
4725
4741
  @variant_rollup_keys = args[:variant_rollup_keys] if args.key?(:variant_rollup_keys)
4726
4742
  @visitor_id = args[:visitor_id] if args.key?(:visitor_id)
@@ -4733,7 +4749,7 @@ module Google
4733
4749
 
4734
4750
  # Condition boost specifications. If a product matches multiple conditions in
4735
4751
  # the specifictions, boost scores from these specifications are all applied and
4736
- # combined in a non-linear way. Maximum number of specifications is 10.
4752
+ # combined in a non-linear way. Maximum number of specifications is 20.
4737
4753
  # Corresponds to the JSON property `conditionBoostSpecs`
4738
4754
  # @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpecConditionBoostSpec>]
4739
4755
  attr_accessor :condition_boost_specs
@@ -4844,13 +4860,20 @@ module Google
4844
4860
  alias_method :enable_dynamic_position?, :enable_dynamic_position
4845
4861
 
4846
4862
  # List of keys to exclude when faceting. By default, FacetKey.key is not
4847
- # excluded from the filter unless it is listed in this field. For example,
4848
- # suppose there are 100 products with color facet "Red" and 200 products with
4849
- # color facet "Blue". A query containing the filter "colorFamilies:ANY("Red")"
4850
- # and have "colorFamilies" as FacetKey.key will by default return the "Red" with
4851
- # count 100. If this field contains "colorFamilies", then the query returns both
4852
- # the "Red" with count 100 and "Blue" with count 200, because the "colorFamilies"
4853
- # key is now excluded from the filter. A maximum of 100 values are allowed.
4863
+ # excluded from the filter unless it is listed in this field. Listing a facet
4864
+ # key in this field allows its values to appear as facet results, even when they
4865
+ # are filtered out of search results. Using this field does not affect what
4866
+ # search results are returned. For example, suppose there are 100 products with
4867
+ # the color facet "Red" and 200 products with the color facet "Blue". A query
4868
+ # containing the filter "colorFamilies:ANY("Red")" and having "colorFamilies" as
4869
+ # FacetKey.key would by default return only "Red" products in the search results,
4870
+ # and also return "Red" with count 100 as the only color facet. Although there
4871
+ # are also blue products available, "Blue" would not be shown as an available
4872
+ # facet value. If "colorFamilies" is listed in "excludedFilterKeys", then the
4873
+ # query returns the facet values "Red" with count 100 and "Blue" with count 200,
4874
+ # because the "colorFamilies" key is now excluded from the filter. Because this
4875
+ # field doesn't affect search results, the search results are still correctly
4876
+ # filtered to return only "Red" products. A maximum of 100 values are allowed.
4854
4877
  # Otherwise, an INVALID_ARGUMENT error is returned.
4855
4878
  # Corresponds to the JSON property `excludedFilterKeys`
4856
4879
  # @return [Array<String>]
@@ -4952,10 +4975,11 @@ module Google
4952
4975
  # Only get facet for the given restricted values. For example, when using "
4953
4976
  # pickupInStore" as key and set restricted values to ["store123", "store456"],
4954
4977
  # only facets for "store123" and "store456" are returned. Only supported on
4955
- # textual fields and fulfillments. Maximum is 20. Must be set for the
4956
- # fulfillment facet keys: * pickupInStore * shipToStore * sameDayDelivery *
4957
- # nextDayDelivery * customFulfillment1 * customFulfillment2 * customFulfillment3
4958
- # * customFulfillment4 * customFulfillment5
4978
+ # predefined textual fields, custom textual attributes and fulfillments. Maximum
4979
+ # is 20. Must be set for the fulfillment facet keys: * pickupInStore *
4980
+ # shipToStore * sameDayDelivery * nextDayDelivery * customFulfillment1 *
4981
+ # customFulfillment2 * customFulfillment3 * customFulfillment4 *
4982
+ # customFulfillment5
4959
4983
  # Corresponds to the JSON property `restrictedValues`
4960
4984
  # @return [Array<String>]
4961
4985
  attr_accessor :restricted_values
@@ -5024,6 +5048,26 @@ module Google
5024
5048
  end
5025
5049
  end
5026
5050
 
5051
+ # The specification for query spell correction.
5052
+ class GoogleCloudRetailV2betaSearchRequestSpellCorrectionSpec
5053
+ include Google::Apis::Core::Hashable
5054
+
5055
+ # The mode under which spell correction should take effect to replace the
5056
+ # original search query. Default to Mode.AUTO.
5057
+ # Corresponds to the JSON property `mode`
5058
+ # @return [String]
5059
+ attr_accessor :mode
5060
+
5061
+ def initialize(**args)
5062
+ update!(**args)
5063
+ end
5064
+
5065
+ # Update properties of this object
5066
+ def update!(**args)
5067
+ @mode = args[:mode] if args.key?(:mode)
5068
+ end
5069
+ end
5070
+
5027
5071
  # Response message for SearchService.Search method.
5028
5072
  class GoogleCloudRetailV2betaSearchResponse
5029
5073
  include Google::Apis::Core::Hashable
@@ -5042,8 +5086,8 @@ module Google
5042
5086
  attr_accessor :attribution_token
5043
5087
 
5044
5088
  # Contains the spell corrected query, if found. If the spell correction type is
5045
- # AUTOMATIC, then the search results will be based on corrected_query, otherwise
5046
- # the original query will be used for search.
5089
+ # AUTOMATIC, then the search results are based on corrected_query. Otherwise the
5090
+ # original query will be used for search.
5047
5091
  # Corresponds to the JSON property `correctedQuery`
5048
5092
  # @return [String]
5049
5093
  attr_accessor :corrected_query
@@ -5072,8 +5116,8 @@ module Google
5072
5116
  attr_accessor :query_expansion_info
5073
5117
 
5074
5118
  # The URI of a customer-defined redirect page. If redirect action is triggered,
5075
- # no search will be performed, and only redirect_uri and attribution_token will
5076
- # be set in the response.
5119
+ # no search is performed, and only redirect_uri and attribution_token are set in
5120
+ # the response.
5077
5121
  # Corresponds to the JSON property `redirectUri`
5078
5122
  # @return [String]
5079
5123
  attr_accessor :redirect_uri
@@ -5270,11 +5314,11 @@ module Google
5270
5314
  # Condition boost specifications. If a product matches multiple conditions in
5271
5315
  # the specifications, boost scores from these specifications are all applied and
5272
5316
  # combined in a non-linear way. Maximum number of specifications is 100. Notice
5273
- # that if both ServingConfig.boost_control_ids and [SearchRequest.boost_spec]
5274
- # are set, the boost conditions from both places are evaluated. If a search
5275
- # request matches multiple boost conditions, the final boost score is equal to
5276
- # the sum of the boost scores from all matched boost conditions. Can only be set
5277
- # if solution_types is SOLUTION_TYPE_SEARCH.
5317
+ # that if both ServingConfig.boost_control_ids and SearchRequest.boost_spec are
5318
+ # set, the boost conditions from both places are evaluated. If a search request
5319
+ # matches multiple boost conditions, the final boost score is equal to the sum
5320
+ # of the boost scores from all matched boost conditions. Can only be set if
5321
+ # solution_types is SOLUTION_TYPE_SEARCH.
5278
5322
  # Corresponds to the JSON property `boostControlIds`
5279
5323
  # @return [Array<String>]
5280
5324
  attr_accessor :boost_control_ids
@@ -5743,7 +5787,7 @@ module Google
5743
5787
  # which results in degraded model quality. The field must be a UTF-8 encoded
5744
5788
  # string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT
5745
5789
  # error is returned. The field should not contain PII or user-data. We recommend
5746
- # to use Google Analystics [Client ID](https://developers.google.com/analytics/
5790
+ # to use Google Analytics [Client ID](https://developers.google.com/analytics/
5747
5791
  # devguides/collection/analyticsjs/field-reference#clientId) for this field.
5748
5792
  # Corresponds to the JSON property `visitorId`
5749
5793
  # @return [String]
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2beta
18
18
  # Version of the google-apis-retail_v2beta gem
19
- GEM_VERSION = "0.38.0"
19
+ GEM_VERSION = "0.41.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 = "20220430"
25
+ REVISION = "20220519"
26
26
  end
27
27
  end
28
28
  end
@@ -904,6 +904,12 @@ module Google
904
904
  include Google::Apis::Core::JsonObjectSupport
905
905
  end
906
906
 
907
+ class GoogleCloudRetailV2betaSearchRequestSpellCorrectionSpec
908
+ class Representation < Google::Apis::Core::JsonRepresentation; end
909
+
910
+ include Google::Apis::Core::JsonObjectSupport
911
+ end
912
+
907
913
  class GoogleCloudRetailV2betaSearchResponse
908
914
  class Representation < Google::Apis::Core::JsonRepresentation; end
909
915
 
@@ -2284,6 +2290,8 @@ module Google
2284
2290
  property :query_expansion_spec, as: 'queryExpansionSpec', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestQueryExpansionSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestQueryExpansionSpec::Representation
2285
2291
 
2286
2292
  property :search_mode, as: 'searchMode'
2293
+ property :spell_correction_spec, as: 'spellCorrectionSpec', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestSpellCorrectionSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestSpellCorrectionSpec::Representation
2294
+
2287
2295
  property :user_info, as: 'userInfo', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaUserInfo, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaUserInfo::Representation
2288
2296
 
2289
2297
  collection :variant_rollup_keys, as: 'variantRollupKeys'
@@ -2355,6 +2363,13 @@ module Google
2355
2363
  end
2356
2364
  end
2357
2365
 
2366
+ class GoogleCloudRetailV2betaSearchRequestSpellCorrectionSpec
2367
+ # @private
2368
+ class Representation < Google::Apis::Core::JsonRepresentation
2369
+ property :mode, as: 'mode'
2370
+ end
2371
+ end
2372
+
2358
2373
  class GoogleCloudRetailV2betaSearchResponse
2359
2374
  # @private
2360
2375
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -360,7 +360,7 @@ module Google
360
360
  # options.
361
361
  # @param [String] name
362
362
  # Required. Immutable. The fully qualified resource name of the attribute config.
363
- # Format: "projects/*/locations/*/catalogs/*/attributesConfig"
363
+ # Format: `projects/*/locations/*/catalogs/*/attributesConfig`
364
364
  # @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAttributesConfig] google_cloud_retail_v2beta_attributes_config_object
365
365
  # @param [String] update_mask
366
366
  # Indicates which fields in the provided AttributesConfig to update. The
@@ -398,8 +398,8 @@ module Google
398
398
 
399
399
  # Updates the CompletionConfigs.
400
400
  # @param [String] name
401
- # Required. Immutable. Fully qualified name projects/*/locations/*/catalogs/*/
402
- # completionConfig
401
+ # Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/
402
+ # completionConfig`
403
403
  # @param [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionConfig] google_cloud_retail_v2beta_completion_config_object
404
404
  # @param [String] update_mask
405
405
  # Indicates which fields in the provided CompletionConfig to update. The
@@ -776,9 +776,9 @@ module Google
776
776
  execute_or_queue_command(command, &block)
777
777
  end
778
778
 
779
- # Bulk import of multiple Products. Request processing may be synchronous. No
780
- # partial updating is supported. Non-existing items are created. Note that it is
781
- # possible for a subset of the Products to be successfully updated.
779
+ # Bulk import of multiple Products. Request processing may be synchronous. Non-
780
+ # existing items are created. Note that it is possible for a subset of the
781
+ # Products to be successfully updated.
782
782
  # @param [String] parent
783
783
  # Required. `projects/1234/locations/global/catalogs/default_catalog/branches/
784
784
  # default_branch` If no updateMask is specified, requires products.create
@@ -1028,9 +1028,9 @@ module Google
1028
1028
  # this product will be used. If no inventory fields are set in
1029
1029
  # SetInventoryRequest.set_mask, then any existing inventory information will be
1030
1030
  # preserved. Pre-existing inventory information can only be updated with
1031
- # SetInventory, AddFulfillmentPlaces, and RemoveFulfillmentPlaces. This feature
1032
- # is only available for users who have Retail Search enabled. Please enable
1033
- # Retail Search on Cloud Console before using this feature.
1031
+ # SetInventory, ProductService.AddFulfillmentPlaces, and RemoveFulfillmentPlaces.
1032
+ # This feature is only available for users who have Retail Search enabled.
1033
+ # Please enable Retail Search on Cloud Console before using this feature.
1034
1034
  # @param [String] name
1035
1035
  # Immutable. Full resource name of the product, such as `projects/*/locations/
1036
1036
  # 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_v2beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.41.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-09 00:00:00.000000000 Z
11
+ date: 2022-05-30 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_v2beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.38.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.41.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2beta
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Retail API V2beta