google-apis-retail_v2alpha 0.39.0 → 0.42.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: fc97dcae81e3de777b4b63166b309e307df06890111fa84dab2ec3578069b5fa
4
- data.tar.gz: cea589c40ae8f3cb627e34316c25912ea01dc7a554bdc1f5aa4ff7922f584e4c
3
+ metadata.gz: e823af18b5bf14b161a537d9ee1869c4e1dbadaa214a19771d35176907593eca
4
+ data.tar.gz: 83e06fa3b2af23955f54b1e005a787f356d35d18d61a4665f528b0318270c095
5
5
  SHA512:
6
- metadata.gz: 2f676dea871f7d524f472fcc09b0fd07e66b904093186222d0d062e02e62c166bbc51bb57c65b4b177d5fd6b3efe14fa5776b5c72a4ce790ef6700472a11ef3b
7
- data.tar.gz: bf53d423e21173419dc47fe59f1f0eba340af03d6fec9a94f3f47c84b31d9172277edc728dffcb887a00ec97dedd74f6730c8085767ee84e438d6ed0a459efda
6
+ metadata.gz: be029c6dcab6b2fc958afeffc3824d12d15eb1fa86978fb6acae90cfe62b335435d6f8058b6787c18fa281857ec1c77c669b3e14ed7d796dd522fce4257a5619
7
+ data.tar.gz: 939f2064d93411db05fb4ace528d50aae2bd10ab29e65db4cbd3a428620d7d99c88842563e9c52ab1d5e9054bf37cc332165cf32cf60045097d4ff62e349a4ba
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.42.0 (2022-05-26)
4
+
5
+ * Regenerated from discovery document revision 20220519
6
+
7
+ ### v0.41.0 (2022-05-19)
8
+
9
+ * Regenerated from discovery document revision 20220512
10
+
11
+ ### v0.40.0 (2022-05-12)
12
+
13
+ * Regenerated from discovery document revision 20220505
14
+
3
15
  ### v0.39.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
 
@@ -717,7 +719,7 @@ module Google
717
719
 
718
720
  # Metadata related to the progress of the AddFulfillmentPlaces operation.
719
721
  # Currently empty because there is no meaningful metadata populated from the
720
- # AddFulfillmentPlaces method.
722
+ # ProductService.AddFulfillmentPlaces method.
721
723
  class GoogleCloudRetailV2alphaAddFulfillmentPlacesMetadata
722
724
  include Google::Apis::Core::Hashable
723
725
 
@@ -730,7 +732,7 @@ module Google
730
732
  end
731
733
  end
732
734
 
733
- # Request message for AddFulfillmentPlaces method.
735
+ # Request message for ProductService.AddFulfillmentPlaces method.
734
736
  class GoogleCloudRetailV2alphaAddFulfillmentPlacesRequest
735
737
  include Google::Apis::Core::Hashable
736
738
 
@@ -787,7 +789,8 @@ module Google
787
789
  end
788
790
 
789
791
  # Response of the AddFulfillmentPlacesRequest. Currently empty because there is
790
- # no meaningful response populated from the AddFulfillmentPlaces method.
792
+ # no meaningful response populated from the ProductService.AddFulfillmentPlaces
793
+ # method.
791
794
  class GoogleCloudRetailV2alphaAddFulfillmentPlacesResponse
792
795
  include Google::Apis::Core::Hashable
793
796
 
@@ -802,7 +805,7 @@ module Google
802
805
 
803
806
  # Metadata related to the progress of the AddLocalInventories operation.
804
807
  # Currently empty because there is no meaningful metadata populated from the
805
- # AddLocalInventories method.
808
+ # ProductService.AddLocalInventories method.
806
809
  class GoogleCloudRetailV2alphaAddLocalInventoriesMetadata
807
810
  include Google::Apis::Core::Hashable
808
811
 
@@ -815,7 +818,7 @@ module Google
815
818
  end
816
819
  end
817
820
 
818
- # Request message for AddLocalInventories method.
821
+ # Request message for ProductService.AddLocalInventories method.
819
822
  class GoogleCloudRetailV2alphaAddLocalInventoriesRequest
820
823
  include Google::Apis::Core::Hashable
821
824
 
@@ -866,8 +869,9 @@ module Google
866
869
  end
867
870
  end
868
871
 
869
- # Response of the AddLocalInventories API. Currently empty because there is no
870
- # meaningful response populated from the AddLocalInventories method.
872
+ # Response of the ProductService.AddLocalInventories API. Currently empty
873
+ # because there is no meaningful response populated from the ProductService.
874
+ # AddLocalInventories method.
871
875
  class GoogleCloudRetailV2alphaAddLocalInventoriesResponse
872
876
  include Google::Apis::Core::Hashable
873
877
 
@@ -899,7 +903,7 @@ module Google
899
903
  attr_accessor :catalog_attributes
900
904
 
901
905
  # Required. Immutable. The fully qualified resource name of the attribute config.
902
- # Format: "projects/*/locations/*/catalogs/*/attributesConfig"
906
+ # Format: `projects/*/locations/*/catalogs/*/attributesConfig`
903
907
  # Corresponds to the JSON property `name`
904
908
  # @return [String]
905
909
  attr_accessor :name
@@ -1084,12 +1088,13 @@ module Google
1084
1088
  # Output only. Indicates whether this attribute has been used by any products. `
1085
1089
  # True` if at least one Product is using this attribute in Product.attributes.
1086
1090
  # Otherwise, this field is `False`. CatalogAttribute can be pre-loaded by using
1087
- # AddCatalogAttribute, ImportCatalogAttributes, or UpdateAttributesConfig APIs.
1088
- # This field is `False` for pre-loaded CatalogAttributes. Only CatalogAttributes
1089
- # that are not in use by products can be deleted. CatalogAttributes that are in
1090
- # use by products cannot be deleted; however, their configuration properties
1091
- # will reset to default values upon removal request. After catalog changes, it
1092
- # takes about 10 minutes for this field to update.
1091
+ # CatalogService.AddCatalogAttribute, CatalogService.ImportCatalogAttributes, or
1092
+ # CatalogService.UpdateAttributesConfig APIs. This field is `False` for pre-
1093
+ # loaded CatalogAttributes. Only CatalogAttributes that are not in use by
1094
+ # products can be deleted. CatalogAttributes that are in use by products cannot
1095
+ # be deleted; however, their configuration properties will reset to default
1096
+ # values upon removal request. After catalog changes, it takes about 10 minutes
1097
+ # for this field to update.
1093
1098
  # Corresponds to the JSON property `inUse`
1094
1099
  # @return [Boolean]
1095
1100
  attr_accessor :in_use
@@ -1226,7 +1231,9 @@ module Google
1226
1231
 
1227
1232
  # Custom attributes for the suggestion term. * For "user-data", the attributes
1228
1233
  # are additional custom attributes ingested through BigQuery. * For "cloud-
1229
- # retail", the attributes are product attributes generated by Cloud Retail.
1234
+ # retail", the attributes are product attributes generated by Cloud Retail. This
1235
+ # is an experimental feature. Contact Retail Search support team if you are
1236
+ # interested in enabling it.
1230
1237
  # Corresponds to the JSON property `attributes`
1231
1238
  # @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>]
1232
1239
  attr_accessor :attributes
@@ -1332,8 +1339,8 @@ module Google
1332
1339
  # @return [Fixnum]
1333
1340
  attr_accessor :min_prefix_length
1334
1341
 
1335
- # Required. Immutable. Fully qualified name projects/*/locations/*/catalogs/*/
1336
- # completionConfig
1342
+ # Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/
1343
+ # completionConfig`
1337
1344
  # Corresponds to the JSON property `name`
1338
1345
  # @return [String]
1339
1346
  attr_accessor :name
@@ -1569,11 +1576,12 @@ module Google
1569
1576
 
1570
1577
  # This field is normally ignored unless AttributesConfig.attribute_config_level
1571
1578
  # of the Catalog is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode.
1572
- # You may learn more on [configuration mode] (https://cloud.google.com/retail/
1573
- # docs/attribute-config#config-modes). if true, custom attribute values are
1574
- # indexed, so that it can be filtered, faceted or boosted in SearchService.
1575
- # Search. This field is ignored in a UserEvent. See SearchRequest.filter,
1576
- # SearchRequest.facet_specs and SearchRequest.boost_spec for more details.
1579
+ # For information about product-level attribute configuration, see [
1580
+ # Configuration modes](https://cloud.google.com/retail/docs/attribute-config#
1581
+ # config-modes). If true, custom attribute values are indexed, so that they can
1582
+ # be filtered, faceted or boosted in SearchService.Search. This field is ignored
1583
+ # in a UserEvent. See SearchRequest.filter, SearchRequest.facet_specs and
1584
+ # SearchRequest.boost_spec for more details.
1577
1585
  # Corresponds to the JSON property `indexable`
1578
1586
  # @return [Boolean]
1579
1587
  attr_accessor :indexable
@@ -1588,11 +1596,11 @@ module Google
1588
1596
 
1589
1597
  # This field is normally ignored unless AttributesConfig.attribute_config_level
1590
1598
  # of the Catalog is set to the deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode.
1591
- # You may learn more on [configuration mode] (https://cloud.google.com/retail/
1592
- # docs/attribute-config#config-modes). If true, custom attribute values are
1593
- # searchable by text queries in SearchService.Search. This field is ignored in a
1594
- # UserEvent. Only set if type text is set. Otherwise, a INVALID_ARGUMENT error
1595
- # is returned.
1599
+ # For information about product-level attribute configuration, see [
1600
+ # Configuration modes](https://cloud.google.com/retail/docs/attribute-config#
1601
+ # config-modes). If true, custom attribute values are searchable by text queries
1602
+ # in SearchService.Search. This field is ignored in a UserEvent. Only set if
1603
+ # type text is set. Otherwise, a INVALID_ARGUMENT error is returned.
1596
1604
  # Corresponds to the JSON property `searchable`
1597
1605
  # @return [Boolean]
1598
1606
  attr_accessor :searchable
@@ -2459,7 +2467,7 @@ module Google
2459
2467
  # The labels applied to a resource must meet the following requirements: * Each
2460
2468
  # resource can have multiple labels, up to a maximum of 64. * Each label must be
2461
2469
  # a key-value pair. * Keys have a minimum length of 1 character and a maximum
2462
- # length of 63 characters, and cannot be empty. Values can be empty, and have a
2470
+ # length of 63 characters and cannot be empty. Values can be empty and have a
2463
2471
  # maximum length of 63 characters. * Keys and values can contain only lowercase
2464
2472
  # letters, numeric characters, underscores, and dashes. All characters must use
2465
2473
  # UTF-8 encoding, and international characters are allowed. * The key portion of
@@ -2587,9 +2595,9 @@ module Google
2587
2595
  attr_accessor :id
2588
2596
 
2589
2597
  # Additional product metadata / annotations. Possible values: * `product`: JSON
2590
- # representation of the product. Will be set if `returnProduct` is set to true
2591
- # in `PredictRequest.params`. * `score`: Prediction score in double value. Will
2592
- # be set if `returnScore` is set to true in `PredictRequest.params`.
2598
+ # representation of the product. Is set if `returnProduct` is set to true in `
2599
+ # PredictRequest.params`. * `score`: Prediction score in double value. Is set if
2600
+ # `returnScore` is set to true in `PredictRequest.params`.
2593
2601
  # Corresponds to the JSON property `metadata`
2594
2602
  # @return [Hash<String,Object>]
2595
2603
  attr_accessor :metadata
@@ -2952,9 +2960,9 @@ module Google
2952
2960
  # attribute, as specified in attributes. For Type.PRIMARY and Type.COLLECTION,
2953
2961
  # the following fields are always returned in SearchResponse by default: * name
2954
2962
  # For Type.VARIANT, the following fields are always returned in by default: *
2955
- # name * color_info Maximum number of paths is 30. Otherwise, an
2963
+ # name * color_info The maximum number of paths is 30. Otherwise, an
2956
2964
  # INVALID_ARGUMENT error is returned. Note: Returning more fields in
2957
- # SearchResponse may increase response payload size and serving latency.
2965
+ # SearchResponse can increase response payload size and serving latency.
2958
2966
  # Corresponds to the JSON property `retrievableFields`
2959
2967
  # @return [String]
2960
2968
  attr_accessor :retrievable_fields
@@ -4138,7 +4146,7 @@ module Google
4138
4146
  # The labels applied to a resource must meet the following requirements: * Each
4139
4147
  # resource can have multiple labels, up to a maximum of 64. * Each label must be
4140
4148
  # a key-value pair. * Keys have a minimum length of 1 character and a maximum
4141
- # length of 63 characters, and cannot be empty. Values can be empty, and have a
4149
+ # length of 63 characters and cannot be empty. Values can be empty and have a
4142
4150
  # maximum length of 63 characters. * Keys and values can contain only lowercase
4143
4151
  # letters, numeric characters, underscores, and dashes. All characters must use
4144
4152
  # UTF-8 encoding, and international characters are allowed. * The key portion of
@@ -4224,6 +4232,11 @@ module Google
4224
4232
  # @return [String]
4225
4233
  attr_accessor :search_mode
4226
4234
 
4235
+ # The specification for query spell correction.
4236
+ # Corresponds to the JSON property `spellCorrectionSpec`
4237
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestSpellCorrectionSpec]
4238
+ attr_accessor :spell_correction_spec
4239
+
4227
4240
  # Information of an end user.
4228
4241
  # Corresponds to the JSON property `userInfo`
4229
4242
  # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserInfo]
@@ -4239,8 +4252,8 @@ module Google
4239
4252
  # the store ID. Supported keys are: * colorFamilies * price * originalPrice *
4240
4253
  # discount * variantId * inventory(place_id,price) * inventory(place_id,
4241
4254
  # original_price) * inventory(place_id,attributes.key), where key is any key in
4242
- # the Product.inventories.attributes map. * attributes.key, where key is any key
4243
- # in the Product.attributes map. * pickupInStore.id, where id is any
4255
+ # the Product.local_inventories.attributes map. * attributes.key, where key is
4256
+ # any key in the Product.attributes map. * pickupInStore.id, where id is any
4244
4257
  # FulfillmentInfo.place_ids for FulfillmentInfo.type "pickup-in-store". *
4245
4258
  # shipToStore.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.
4246
4259
  # type "ship-to-store". * sameDayDelivery.id, where id is any FulfillmentInfo.
@@ -4292,6 +4305,7 @@ module Google
4292
4305
  @query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
4293
4306
  @relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
4294
4307
  @search_mode = args[:search_mode] if args.key?(:search_mode)
4308
+ @spell_correction_spec = args[:spell_correction_spec] if args.key?(:spell_correction_spec)
4295
4309
  @user_info = args[:user_info] if args.key?(:user_info)
4296
4310
  @variant_rollup_keys = args[:variant_rollup_keys] if args.key?(:variant_rollup_keys)
4297
4311
  @visitor_id = args[:visitor_id] if args.key?(:visitor_id)
@@ -4304,7 +4318,7 @@ module Google
4304
4318
 
4305
4319
  # Condition boost specifications. If a product matches multiple conditions in
4306
4320
  # the specifictions, boost scores from these specifications are all applied and
4307
- # combined in a non-linear way. Maximum number of specifications is 10.
4321
+ # combined in a non-linear way. Maximum number of specifications is 20.
4308
4322
  # Corresponds to the JSON property `conditionBoostSpecs`
4309
4323
  # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestBoostSpecConditionBoostSpec>]
4310
4324
  attr_accessor :condition_boost_specs
@@ -4415,13 +4429,20 @@ module Google
4415
4429
  alias_method :enable_dynamic_position?, :enable_dynamic_position
4416
4430
 
4417
4431
  # List of keys to exclude when faceting. By default, FacetKey.key is not
4418
- # excluded from the filter unless it is listed in this field. For example,
4419
- # suppose there are 100 products with color facet "Red" and 200 products with
4420
- # color facet "Blue". A query containing the filter "colorFamilies:ANY("Red")"
4421
- # and have "colorFamilies" as FacetKey.key will by default return the "Red" with
4422
- # count 100. If this field contains "colorFamilies", then the query returns both
4423
- # the "Red" with count 100 and "Blue" with count 200, because the "colorFamilies"
4424
- # key is now excluded from the filter. A maximum of 100 values are allowed.
4432
+ # excluded from the filter unless it is listed in this field. Listing a facet
4433
+ # key in this field allows its values to appear as facet results, even when they
4434
+ # are filtered out of search results. Using this field does not affect what
4435
+ # search results are returned. For example, suppose there are 100 products with
4436
+ # the color facet "Red" and 200 products with the color facet "Blue". A query
4437
+ # containing the filter "colorFamilies:ANY("Red")" and having "colorFamilies" as
4438
+ # FacetKey.key would by default return only "Red" products in the search results,
4439
+ # and also return "Red" with count 100 as the only color facet. Although there
4440
+ # are also blue products available, "Blue" would not be shown as an available
4441
+ # facet value. If "colorFamilies" is listed in "excludedFilterKeys", then the
4442
+ # query returns the facet values "Red" with count 100 and "Blue" with count 200,
4443
+ # because the "colorFamilies" key is now excluded from the filter. Because this
4444
+ # field doesn't affect search results, the search results are still correctly
4445
+ # filtered to return only "Red" products. A maximum of 100 values are allowed.
4425
4446
  # Otherwise, an INVALID_ARGUMENT error is returned.
4426
4447
  # Corresponds to the JSON property `excludedFilterKeys`
4427
4448
  # @return [Array<String>]
@@ -4523,10 +4544,11 @@ module Google
4523
4544
  # Only get facet for the given restricted values. For example, when using "
4524
4545
  # pickupInStore" as key and set restricted values to ["store123", "store456"],
4525
4546
  # only facets for "store123" and "store456" are returned. Only supported on
4526
- # textual fields and fulfillments. Maximum is 20. Must be set for the
4527
- # fulfillment facet keys: * pickupInStore * shipToStore * sameDayDelivery *
4528
- # nextDayDelivery * customFulfillment1 * customFulfillment2 * customFulfillment3
4529
- # * customFulfillment4 * customFulfillment5
4547
+ # predefined textual fields, custom textual attributes and fulfillments. Maximum
4548
+ # is 20. Must be set for the fulfillment facet keys: * pickupInStore *
4549
+ # shipToStore * sameDayDelivery * nextDayDelivery * customFulfillment1 *
4550
+ # customFulfillment2 * customFulfillment3 * customFulfillment4 *
4551
+ # customFulfillment5
4530
4552
  # Corresponds to the JSON property `restrictedValues`
4531
4553
  # @return [Array<String>]
4532
4554
  attr_accessor :restricted_values
@@ -4595,6 +4617,26 @@ module Google
4595
4617
  end
4596
4618
  end
4597
4619
 
4620
+ # The specification for query spell correction.
4621
+ class GoogleCloudRetailV2alphaSearchRequestSpellCorrectionSpec
4622
+ include Google::Apis::Core::Hashable
4623
+
4624
+ # The mode under which spell correction should take effect to replace the
4625
+ # original search query. Default to Mode.AUTO.
4626
+ # Corresponds to the JSON property `mode`
4627
+ # @return [String]
4628
+ attr_accessor :mode
4629
+
4630
+ def initialize(**args)
4631
+ update!(**args)
4632
+ end
4633
+
4634
+ # Update properties of this object
4635
+ def update!(**args)
4636
+ @mode = args[:mode] if args.key?(:mode)
4637
+ end
4638
+ end
4639
+
4598
4640
  # Response message for SearchService.Search method.
4599
4641
  class GoogleCloudRetailV2alphaSearchResponse
4600
4642
  include Google::Apis::Core::Hashable
@@ -4613,8 +4655,8 @@ module Google
4613
4655
  attr_accessor :attribution_token
4614
4656
 
4615
4657
  # Contains the spell corrected query, if found. If the spell correction type is
4616
- # AUTOMATIC, then the search results will be based on corrected_query, otherwise
4617
- # the original query will be used for search.
4658
+ # AUTOMATIC, then the search results are based on corrected_query. Otherwise the
4659
+ # original query will be used for search.
4618
4660
  # Corresponds to the JSON property `correctedQuery`
4619
4661
  # @return [String]
4620
4662
  attr_accessor :corrected_query
@@ -4643,8 +4685,8 @@ module Google
4643
4685
  attr_accessor :query_expansion_info
4644
4686
 
4645
4687
  # The URI of a customer-defined redirect page. If redirect action is triggered,
4646
- # no search will be performed, and only redirect_uri and attribution_token will
4647
- # be set in the response.
4688
+ # no search is performed, and only redirect_uri and attribution_token are set in
4689
+ # the response.
4648
4690
  # Corresponds to the JSON property `redirectUri`
4649
4691
  # @return [String]
4650
4692
  attr_accessor :redirect_uri
@@ -4841,11 +4883,11 @@ module Google
4841
4883
  # Condition boost specifications. If a product matches multiple conditions in
4842
4884
  # the specifications, boost scores from these specifications are all applied and
4843
4885
  # combined in a non-linear way. Maximum number of specifications is 100. Notice
4844
- # that if both ServingConfig.boost_control_ids and [SearchRequest.boost_spec]
4845
- # are set, the boost conditions from both places are evaluated. If a search
4846
- # request matches multiple boost conditions, the final boost score is equal to
4847
- # the sum of the boost scores from all matched boost conditions. Can only be set
4848
- # if solution_types is SOLUTION_TYPE_SEARCH.
4886
+ # that if both ServingConfig.boost_control_ids and SearchRequest.boost_spec are
4887
+ # set, the boost conditions from both places are evaluated. If a search request
4888
+ # matches multiple boost conditions, the final boost score is equal to the sum
4889
+ # of the boost scores from all matched boost conditions. Can only be set if
4890
+ # solution_types is SOLUTION_TYPE_SEARCH.
4849
4891
  # Corresponds to the JSON property `boostControlIds`
4850
4892
  # @return [Array<String>]
4851
4893
  attr_accessor :boost_control_ids
@@ -5314,7 +5356,7 @@ module Google
5314
5356
  # which results in degraded model quality. The field must be a UTF-8 encoded
5315
5357
  # string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT
5316
5358
  # error is returned. The field should not contain PII or user-data. We recommend
5317
- # to use Google Analystics [Client ID](https://developers.google.com/analytics/
5359
+ # to use Google Analytics [Client ID](https://developers.google.com/analytics/
5318
5360
  # devguides/collection/analyticsjs/field-reference#clientId) for this field.
5319
5361
  # Corresponds to the JSON property `visitorId`
5320
5362
  # @return [String]
@@ -5486,7 +5528,7 @@ module Google
5486
5528
 
5487
5529
  # Metadata related to the progress of the AddFulfillmentPlaces operation.
5488
5530
  # Currently empty because there is no meaningful metadata populated from the
5489
- # AddFulfillmentPlaces method.
5531
+ # ProductService.AddFulfillmentPlaces method.
5490
5532
  class GoogleCloudRetailV2betaAddFulfillmentPlacesMetadata
5491
5533
  include Google::Apis::Core::Hashable
5492
5534
 
@@ -5500,7 +5542,8 @@ module Google
5500
5542
  end
5501
5543
 
5502
5544
  # Response of the AddFulfillmentPlacesRequest. Currently empty because there is
5503
- # no meaningful response populated from the AddFulfillmentPlaces method.
5545
+ # no meaningful response populated from the ProductService.AddFulfillmentPlaces
5546
+ # method.
5504
5547
  class GoogleCloudRetailV2betaAddFulfillmentPlacesResponse
5505
5548
  include Google::Apis::Core::Hashable
5506
5549
 
@@ -5515,7 +5558,7 @@ module Google
5515
5558
 
5516
5559
  # Metadata related to the progress of the AddLocalInventories operation.
5517
5560
  # Currently empty because there is no meaningful metadata populated from the
5518
- # AddLocalInventories method.
5561
+ # ProductService.AddLocalInventories method.
5519
5562
  class GoogleCloudRetailV2betaAddLocalInventoriesMetadata
5520
5563
  include Google::Apis::Core::Hashable
5521
5564
 
@@ -5528,8 +5571,9 @@ module Google
5528
5571
  end
5529
5572
  end
5530
5573
 
5531
- # Response of the AddLocalInventories API. Currently empty because there is no
5532
- # meaningful response populated from the AddLocalInventories method.
5574
+ # Response of the ProductService.AddLocalInventories API. Currently empty
5575
+ # because there is no meaningful response populated from the ProductService.
5576
+ # AddLocalInventories method.
5533
5577
  class GoogleCloudRetailV2betaAddLocalInventoriesResponse
5534
5578
  include Google::Apis::Core::Hashable
5535
5579
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2alpha
18
18
  # Version of the google-apis-retail_v2alpha gem
19
- GEM_VERSION = "0.39.0"
19
+ GEM_VERSION = "0.42.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
@@ -766,6 +766,12 @@ module Google
766
766
  include Google::Apis::Core::JsonObjectSupport
767
767
  end
768
768
 
769
+ class GoogleCloudRetailV2alphaSearchRequestSpellCorrectionSpec
770
+ class Representation < Google::Apis::Core::JsonRepresentation; end
771
+
772
+ include Google::Apis::Core::JsonObjectSupport
773
+ end
774
+
769
775
  class GoogleCloudRetailV2alphaSearchResponse
770
776
  class Representation < Google::Apis::Core::JsonRepresentation; end
771
777
 
@@ -2123,6 +2129,8 @@ module Google
2123
2129
 
2124
2130
  property :relevance_threshold, as: 'relevanceThreshold'
2125
2131
  property :search_mode, as: 'searchMode'
2132
+ property :spell_correction_spec, as: 'spellCorrectionSpec', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestSpellCorrectionSpec, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestSpellCorrectionSpec::Representation
2133
+
2126
2134
  property :user_info, as: 'userInfo', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserInfo, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserInfo::Representation
2127
2135
 
2128
2136
  collection :variant_rollup_keys, as: 'variantRollupKeys'
@@ -2194,6 +2202,13 @@ module Google
2194
2202
  end
2195
2203
  end
2196
2204
 
2205
+ class GoogleCloudRetailV2alphaSearchRequestSpellCorrectionSpec
2206
+ # @private
2207
+ class Representation < Google::Apis::Core::JsonRepresentation
2208
+ property :mode, as: 'mode'
2209
+ end
2210
+ end
2211
+
2197
2212
  class GoogleCloudRetailV2alphaSearchResponse
2198
2213
  # @private
2199
2214
  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::RetailV2alpha::GoogleCloudRetailV2alphaAttributesConfig] google_cloud_retail_v2alpha_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::RetailV2alpha::GoogleCloudRetailV2alphaCompletionConfig] google_cloud_retail_v2alpha_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
@@ -1074,9 +1074,9 @@ module Google
1074
1074
  # this product will be used. If no inventory fields are set in
1075
1075
  # SetInventoryRequest.set_mask, then any existing inventory information will be
1076
1076
  # preserved. Pre-existing inventory information can only be updated with
1077
- # SetInventory, AddFulfillmentPlaces, and RemoveFulfillmentPlaces. This feature
1078
- # is only available for users who have Retail Search enabled. Please enable
1079
- # Retail Search on Cloud Console before using this feature.
1077
+ # SetInventory, ProductService.AddFulfillmentPlaces, and RemoveFulfillmentPlaces.
1078
+ # This feature is only available for users who have Retail Search enabled.
1079
+ # Please enable Retail Search on Cloud Console before using this feature.
1080
1080
  # @param [String] name
1081
1081
  # Immutable. Full resource name of the product, such as `projects/*/locations/
1082
1082
  # 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_v2alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.39.0
4
+ version: 0.42.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_v2alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.39.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.42.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha
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 V2alpha