google-apis-retail_v2 0.37.0 → 0.38.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: dd90dc15eae51189a2fdf09351866ee524f8bd62397647b2353c03ae9ca36bad
4
- data.tar.gz: 42363471e109c8942ce12d29f5e0c4b5cac38f46b7e67301e62b71471f31ab0d
3
+ metadata.gz: 21aa629c3a0c4c57e44fc1b3fe592bc1ecd92908121a31f16315238224603c1f
4
+ data.tar.gz: 126758f4b650cd5b3b7181128c8359976b0a5019c2871fa030916e486a20ad5f
5
5
  SHA512:
6
- metadata.gz: 21ccfd5f4793c22478f7c65f2cc824b8fe80a70aec1170ede60bc7c0fb457627df7c38450b50b7abd388a90c9a9f3788efcad6ca5e43e8a145ff43bb4c592c47
7
- data.tar.gz: 5aeaa410de3a3bb4e502047c077c0e20e93cdb0f3420c3ee6abd65cc899bef6907f8ad960d2c70ce4d879d34c76816ab76f013904dea5441d39d5ec2776cf5fe
6
+ metadata.gz: 5ebf22a1ca11048758bd1b953a965c01218175706147585de4e4b350a439b6a3f453834917130acec9a9b91884398028cb32c9e6f57b9b8ebec72450cea84903
7
+ data.tar.gz: b042af707818c22dc4fee730f5de1bef29bbc92a057441ec9882c096098144b5538798779be1f5ede6a79b578a83a3d3c16092090ca25a269d2cdf5462ebbeb1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.38.0 (2022-05-12)
4
+
5
+ * Regenerated from discovery document revision 20220505
6
+
3
7
  ### v0.37.0 (2022-05-05)
4
8
 
5
9
  * 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
 
@@ -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
 
@@ -776,11 +778,12 @@ module Google
776
778
 
777
779
  # This field is normally ignored unless AttributesConfig.attribute_config_level
778
780
  # 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.
781
+ # For information about product-level attribute configuration, see [
782
+ # Configuration modes](https://cloud.google.com/retail/docs/attribute-config#
783
+ # config-modes). If true, custom attribute values are indexed, so that they can
784
+ # be filtered, faceted or boosted in SearchService.Search. This field is ignored
785
+ # in a UserEvent. See SearchRequest.filter, SearchRequest.facet_specs and
786
+ # SearchRequest.boost_spec for more details.
784
787
  # Corresponds to the JSON property `indexable`
785
788
  # @return [Boolean]
786
789
  attr_accessor :indexable
@@ -795,11 +798,11 @@ module Google
795
798
 
796
799
  # This field is normally ignored unless AttributesConfig.attribute_config_level
797
800
  # 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.
801
+ # For information about product-level attribute configuration, see [
802
+ # Configuration modes](https://cloud.google.com/retail/docs/attribute-config#
803
+ # config-modes). If true, custom attribute values are searchable by text queries
804
+ # in SearchService.Search. This field is ignored in a UserEvent. Only set if
805
+ # type text is set. Otherwise, a INVALID_ARGUMENT error is returned.
803
806
  # Corresponds to the JSON property `searchable`
804
807
  # @return [Boolean]
805
808
  attr_accessor :searchable
@@ -1413,7 +1416,7 @@ module Google
1413
1416
  # The labels applied to a resource must meet the following requirements: * Each
1414
1417
  # resource can have multiple labels, up to a maximum of 64. * Each label must be
1415
1418
  # 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
1419
+ # length of 63 characters and cannot be empty. Values can be empty and have a
1417
1420
  # maximum length of 63 characters. * Keys and values can contain only lowercase
1418
1421
  # letters, numeric characters, underscores, and dashes. All characters must use
1419
1422
  # UTF-8 encoding, and international characters are allowed. * The key portion of
@@ -1541,9 +1544,9 @@ module Google
1541
1544
  attr_accessor :id
1542
1545
 
1543
1546
  # 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`.
1547
+ # representation of the product. Is set if `returnProduct` is set to true in `
1548
+ # PredictRequest.params`. * `score`: Prediction score in double value. Is set if
1549
+ # `returnScore` is set to true in `PredictRequest.params`.
1547
1550
  # Corresponds to the JSON property `metadata`
1548
1551
  # @return [Hash<String,Object>]
1549
1552
  attr_accessor :metadata
@@ -1906,9 +1909,9 @@ module Google
1906
1909
  # attribute, as specified in attributes. For Type.PRIMARY and Type.COLLECTION,
1907
1910
  # the following fields are always returned in SearchResponse by default: * name
1908
1911
  # For Type.VARIANT, the following fields are always returned in by default: *
1909
- # name * color_info Maximum number of paths is 30. Otherwise, an
1912
+ # name * color_info The maximum number of paths is 30. Otherwise, an
1910
1913
  # INVALID_ARGUMENT error is returned. Note: Returning more fields in
1911
- # SearchResponse may increase response payload size and serving latency.
1914
+ # SearchResponse can increase response payload size and serving latency.
1912
1915
  # Corresponds to the JSON property `retrievableFields`
1913
1916
  # @return [String]
1914
1917
  attr_accessor :retrievable_fields
@@ -2589,7 +2592,7 @@ module Google
2589
2592
  # The labels applied to a resource must meet the following requirements: * Each
2590
2593
  # resource can have multiple labels, up to a maximum of 64. * Each label must be
2591
2594
  # 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
2595
+ # length of 63 characters and cannot be empty. Values can be empty and have a
2593
2596
  # maximum length of 63 characters. * Keys and values can contain only lowercase
2594
2597
  # letters, numeric characters, underscores, and dashes. All characters must use
2595
2598
  # UTF-8 encoding, and international characters are allowed. * The key portion of
@@ -2667,6 +2670,11 @@ module Google
2667
2670
  # @return [String]
2668
2671
  attr_accessor :search_mode
2669
2672
 
2673
+ # The specification for query spell correction.
2674
+ # Corresponds to the JSON property `spellCorrectionSpec`
2675
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestSpellCorrectionSpec]
2676
+ attr_accessor :spell_correction_spec
2677
+
2670
2678
  # Information of an end user.
2671
2679
  # Corresponds to the JSON property `userInfo`
2672
2680
  # @return [Google::Apis::RetailV2::GoogleCloudRetailV2UserInfo]
@@ -2682,8 +2690,8 @@ module Google
2682
2690
  # the store ID. Supported keys are: * colorFamilies * price * originalPrice *
2683
2691
  # discount * variantId * inventory(place_id,price) * inventory(place_id,
2684
2692
  # 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
2693
+ # the Product.local_inventories.attributes map. * attributes.key, where key is
2694
+ # any key in the Product.attributes map. * pickupInStore.id, where id is any
2687
2695
  # FulfillmentInfo.place_ids for FulfillmentInfo.type "pickup-in-store". *
2688
2696
  # shipToStore.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.
2689
2697
  # type "ship-to-store". * sameDayDelivery.id, where id is any FulfillmentInfo.
@@ -2734,6 +2742,7 @@ module Google
2734
2742
  @query = args[:query] if args.key?(:query)
2735
2743
  @query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
2736
2744
  @search_mode = args[:search_mode] if args.key?(:search_mode)
2745
+ @spell_correction_spec = args[:spell_correction_spec] if args.key?(:spell_correction_spec)
2737
2746
  @user_info = args[:user_info] if args.key?(:user_info)
2738
2747
  @variant_rollup_keys = args[:variant_rollup_keys] if args.key?(:variant_rollup_keys)
2739
2748
  @visitor_id = args[:visitor_id] if args.key?(:visitor_id)
@@ -3037,6 +3046,26 @@ module Google
3037
3046
  end
3038
3047
  end
3039
3048
 
3049
+ # The specification for query spell correction.
3050
+ class GoogleCloudRetailV2SearchRequestSpellCorrectionSpec
3051
+ include Google::Apis::Core::Hashable
3052
+
3053
+ # The mode under which spell correction should take effect to replace the
3054
+ # original search query. Default to Mode.AUTO.
3055
+ # Corresponds to the JSON property `mode`
3056
+ # @return [String]
3057
+ attr_accessor :mode
3058
+
3059
+ def initialize(**args)
3060
+ update!(**args)
3061
+ end
3062
+
3063
+ # Update properties of this object
3064
+ def update!(**args)
3065
+ @mode = args[:mode] if args.key?(:mode)
3066
+ end
3067
+ end
3068
+
3040
3069
  # Response message for SearchService.Search method.
3041
3070
  class GoogleCloudRetailV2SearchResponse
3042
3071
  include Google::Apis::Core::Hashable
@@ -3055,8 +3084,8 @@ module Google
3055
3084
  attr_accessor :attribution_token
3056
3085
 
3057
3086
  # 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.
3087
+ # AUTOMATIC, then the search results are based on corrected_query. Otherwise the
3088
+ # original query will be used for search.
3060
3089
  # Corresponds to the JSON property `correctedQuery`
3061
3090
  # @return [String]
3062
3091
  attr_accessor :corrected_query
@@ -3085,8 +3114,8 @@ module Google
3085
3114
  attr_accessor :query_expansion_info
3086
3115
 
3087
3116
  # 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.
3117
+ # no search is performed, and only redirect_uri and attribution_token are set in
3118
+ # the response.
3090
3119
  # Corresponds to the JSON property `redirectUri`
3091
3120
  # @return [String]
3092
3121
  attr_accessor :redirect_uri
@@ -3751,7 +3780,7 @@ module Google
3751
3780
 
3752
3781
  # Metadata related to the progress of the AddFulfillmentPlaces operation.
3753
3782
  # Currently empty because there is no meaningful metadata populated from the
3754
- # AddFulfillmentPlaces method.
3783
+ # ProductService.AddFulfillmentPlaces method.
3755
3784
  class GoogleCloudRetailV2alphaAddFulfillmentPlacesMetadata
3756
3785
  include Google::Apis::Core::Hashable
3757
3786
 
@@ -3765,7 +3794,8 @@ module Google
3765
3794
  end
3766
3795
 
3767
3796
  # Response of the AddFulfillmentPlacesRequest. Currently empty because there is
3768
- # no meaningful response populated from the AddFulfillmentPlaces method.
3797
+ # no meaningful response populated from the ProductService.AddFulfillmentPlaces
3798
+ # method.
3769
3799
  class GoogleCloudRetailV2alphaAddFulfillmentPlacesResponse
3770
3800
  include Google::Apis::Core::Hashable
3771
3801
 
@@ -3780,7 +3810,7 @@ module Google
3780
3810
 
3781
3811
  # Metadata related to the progress of the AddLocalInventories operation.
3782
3812
  # Currently empty because there is no meaningful metadata populated from the
3783
- # AddLocalInventories method.
3813
+ # ProductService.AddLocalInventories method.
3784
3814
  class GoogleCloudRetailV2alphaAddLocalInventoriesMetadata
3785
3815
  include Google::Apis::Core::Hashable
3786
3816
 
@@ -3793,8 +3823,9 @@ module Google
3793
3823
  end
3794
3824
  end
3795
3825
 
3796
- # Response of the AddLocalInventories API. Currently empty because there is no
3797
- # meaningful response populated from the AddLocalInventories method.
3826
+ # Response of the ProductService.AddLocalInventories API. Currently empty
3827
+ # because there is no meaningful response populated from the ProductService.
3828
+ # AddLocalInventories method.
3798
3829
  class GoogleCloudRetailV2alphaAddLocalInventoriesResponse
3799
3830
  include Google::Apis::Core::Hashable
3800
3831
 
@@ -4317,7 +4348,7 @@ module Google
4317
4348
 
4318
4349
  # Metadata related to the progress of the AddFulfillmentPlaces operation.
4319
4350
  # Currently empty because there is no meaningful metadata populated from the
4320
- # AddFulfillmentPlaces method.
4351
+ # ProductService.AddFulfillmentPlaces method.
4321
4352
  class GoogleCloudRetailV2betaAddFulfillmentPlacesMetadata
4322
4353
  include Google::Apis::Core::Hashable
4323
4354
 
@@ -4331,7 +4362,8 @@ module Google
4331
4362
  end
4332
4363
 
4333
4364
  # Response of the AddFulfillmentPlacesRequest. Currently empty because there is
4334
- # no meaningful response populated from the AddFulfillmentPlaces method.
4365
+ # no meaningful response populated from the ProductService.AddFulfillmentPlaces
4366
+ # method.
4335
4367
  class GoogleCloudRetailV2betaAddFulfillmentPlacesResponse
4336
4368
  include Google::Apis::Core::Hashable
4337
4369
 
@@ -4346,7 +4378,7 @@ module Google
4346
4378
 
4347
4379
  # Metadata related to the progress of the AddLocalInventories operation.
4348
4380
  # Currently empty because there is no meaningful metadata populated from the
4349
- # AddLocalInventories method.
4381
+ # ProductService.AddLocalInventories method.
4350
4382
  class GoogleCloudRetailV2betaAddLocalInventoriesMetadata
4351
4383
  include Google::Apis::Core::Hashable
4352
4384
 
@@ -4359,8 +4391,9 @@ module Google
4359
4391
  end
4360
4392
  end
4361
4393
 
4362
- # Response of the AddLocalInventories API. Currently empty because there is no
4363
- # meaningful response populated from the AddLocalInventories method.
4394
+ # Response of the ProductService.AddLocalInventories API. Currently empty
4395
+ # because there is no meaningful response populated from the ProductService.
4396
+ # AddLocalInventories method.
4364
4397
  class GoogleCloudRetailV2betaAddLocalInventoriesResponse
4365
4398
  include Google::Apis::Core::Hashable
4366
4399
 
@@ -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.37.0"
19
+ GEM_VERSION = "0.38.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 = "20220505"
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
@@ -775,9 +775,9 @@ module Google
775
775
  # this product will be used. If no inventory fields are set in
776
776
  # SetInventoryRequest.set_mask, then any existing inventory information will be
777
777
  # preserved. Pre-existing inventory information can only be updated with
778
- # SetInventory, AddFulfillmentPlaces, and RemoveFulfillmentPlaces. This feature
779
- # is only available for users who have Retail Search enabled. Please enable
780
- # 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.
781
781
  # @param [String] name
782
782
  # Immutable. Full resource name of the product, such as `projects/*/locations/
783
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.37.0
4
+ version: 0.38.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-16 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.37.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.38.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: []