google-apis-retail_v2 0.13.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/google/apis/retail_v2/classes.rb +101 -90
- data/lib/google/apis/retail_v2/gem_version.rb +2 -2
- data/lib/google/apis/retail_v2/representations.rb +14 -0
- data/lib/google/apis/retail_v2/service.rb +30 -26
- data/lib/google/apis/retail_v2.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74572904cb04af93d243eda58d9b77c7ad4559658934c6da5a9c3d3061dbf336
|
4
|
+
data.tar.gz: 3b11130e1a02ca4d58d5dbddd1ca3b84771c82d2de26885cd4cdfcbfb7c33912
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4187419442b09c33b846674d362ad64c738a9b050c283d4a77a0471239db736cebc88884893694e09952556fbdd54afd732a97dd6e7bab9f7604f90492181341
|
7
|
+
data.tar.gz: ff129f5e07a3745b9ac90ea4269e55a4328b5617029b736cb5d7299398498863b202dd341bae40204c5929d99af640995fa2c01c3acb25aa50cac6dec3200b54
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.17.0 (2021-10-05)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210930
|
6
|
+
|
7
|
+
### v0.16.0 (2021-09-25)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210924
|
10
|
+
|
11
|
+
### v0.15.0 (2021-09-08)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210906
|
14
|
+
|
15
|
+
### v0.14.0 (2021-09-01)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210819
|
18
|
+
|
3
19
|
### v0.13.0 (2021-07-24)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210723
|
@@ -307,8 +307,8 @@ module Google
|
|
307
307
|
|
308
308
|
# If set to true, and the Product is not found, the fulfillment information will
|
309
309
|
# still be processed and retained for at most 1 day and processed once the
|
310
|
-
# Product is created. If set to false,
|
311
|
-
#
|
310
|
+
# Product is created. If set to false, a NOT_FOUND error is returned if the
|
311
|
+
# Product is not found.
|
312
312
|
# Corresponds to the JSON property `allowMissing`
|
313
313
|
# @return [Boolean]
|
314
314
|
attr_accessor :allow_missing
|
@@ -524,8 +524,8 @@ module Google
|
|
524
524
|
# The color display names, which may be different from standard color family
|
525
525
|
# names, such as the color aliases used in the website frontend. Normally it is
|
526
526
|
# expected to have only 1 color. May consider using single "Mixed" instead of
|
527
|
-
# multiple values. A maximum of
|
528
|
-
# encoded string with a length limit of 128 characters. Otherwise, an
|
527
|
+
# multiple values. A maximum of 25 colors are allowed. Each value must be a UTF-
|
528
|
+
# 8 encoded string with a length limit of 128 characters. Otherwise, an
|
529
529
|
# INVALID_ARGUMENT error is returned. Google Merchant Center property [color](
|
530
530
|
# https://support.google.com/merchants/answer/6324487). Schema.org property [
|
531
531
|
# Product.color](https://schema.org/color).
|
@@ -561,9 +561,9 @@ module Google
|
|
561
561
|
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2CompleteQueryResponseCompletionResult>]
|
562
562
|
attr_accessor :completion_results
|
563
563
|
|
564
|
-
# Matched recent searches of this user.
|
565
|
-
# Contact Retail
|
566
|
-
# interested in enabling it. This feature is only available when
|
564
|
+
# Matched recent searches of this user. The maximum number of recent searches is
|
565
|
+
# 10. This field is a restricted feature. Contact Retail Search support team if
|
566
|
+
# you are interested in enabling it. This feature is only available when
|
567
567
|
# CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The
|
568
568
|
# recent searches satisfy the follow rules: * They are ordered from latest to
|
569
569
|
# oldest. * They are matched with CompleteQueryRequest.query case insensitively.
|
@@ -741,8 +741,8 @@ module Google
|
|
741
741
|
|
742
742
|
# The IDs for this type, such as the store IDs for FulfillmentInfo.type.pickup-
|
743
743
|
# in-store or the region IDs for FulfillmentInfo.type.same-day-delivery. A
|
744
|
-
# maximum of
|
745
|
-
# limit of
|
744
|
+
# maximum of 3000 values are allowed. Each value must be a string with a length
|
745
|
+
# limit of 30 characters, matching the pattern [a-zA-Z0-9_-]+, such as "store1"
|
746
746
|
# or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned.
|
747
747
|
# Corresponds to the JSON property `placeIds`
|
748
748
|
# @return [Array<String>]
|
@@ -1520,12 +1520,10 @@ module Google
|
|
1520
1520
|
# product, or age of a customer. For example: `` "vendor": `"text": ["vendor123",
|
1521
1521
|
# "vendor456"]`, "lengths_cm": `"numbers":[2.3, 15.4]`, "heights_cm": `"numbers"
|
1522
1522
|
# :[8.1, 6.4]` ``. This field needs to pass all below criteria, otherwise an
|
1523
|
-
# INVALID_ARGUMENT error is returned: * Max entries count: 200
|
1524
|
-
#
|
1525
|
-
#
|
1526
|
-
#
|
1527
|
-
# key must match the pattern: a-zA-Z0-9*. For example, key0LikeThis or
|
1528
|
-
# KEY_1_LIKE_THIS.
|
1523
|
+
# INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must
|
1524
|
+
# be a UTF-8 encoded string with a length limit of 128 characters. * For
|
1525
|
+
# indexable attribute, the key must match the pattern: a-zA-Z0-9*. For example,
|
1526
|
+
# key0LikeThis or KEY_1_LIKE_THIS.
|
1529
1527
|
# Corresponds to the JSON property `attributes`
|
1530
1528
|
# @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute>]
|
1531
1529
|
attr_accessor :attributes
|
@@ -1617,8 +1615,10 @@ module Google
|
|
1617
1615
|
# The timestamp when this product becomes unavailable for SearchService.Search.
|
1618
1616
|
# If it is set, the Product is not available for SearchService.Search after
|
1619
1617
|
# expire_time. However, the product can still be retrieved by ProductService.
|
1620
|
-
# GetProduct and ProductService.ListProducts.
|
1621
|
-
#
|
1618
|
+
# GetProduct and ProductService.ListProducts. expire_time must be later than
|
1619
|
+
# available_time and publish_time, otherwise an INVALID_ARGUMENT error is thrown.
|
1620
|
+
# Google Merchant Center property [expiration_date](https://support.google.com/
|
1621
|
+
# merchants/answer/6324499).
|
1622
1622
|
# Corresponds to the JSON property `expireTime`
|
1623
1623
|
# @return [String]
|
1624
1624
|
attr_accessor :expire_time
|
@@ -1632,7 +1632,8 @@ module Google
|
|
1632
1632
|
|
1633
1633
|
# The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8
|
1634
1634
|
# encoded string with a length limit of 128 characters. Otherwise, an
|
1635
|
-
# INVALID_ARGUMENT error is returned.
|
1635
|
+
# INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise,
|
1636
|
+
# an INVALID_ARGUMENT error is returned. Google Merchant Center property [gtin](
|
1636
1637
|
# https://support.google.com/merchants/answer/6324461). Schema.org property [
|
1637
1638
|
# Product.isbn](https://schema.org/isbn) or [Product.gtin8](https://schema.org/
|
1638
1639
|
# gtin8) or [Product.gtin12](https://schema.org/gtin12) or [Product.gtin13](
|
@@ -1671,7 +1672,7 @@ module Google
|
|
1671
1672
|
# @return [String]
|
1672
1673
|
attr_accessor :language_code
|
1673
1674
|
|
1674
|
-
# The material of the product. For example, "leather", "wooden". A maximum of
|
1675
|
+
# The material of the product. For example, "leather", "wooden". A maximum of 20
|
1675
1676
|
# values are allowed. Each value must be a UTF-8 encoded string with a length
|
1676
1677
|
# limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
1677
1678
|
# Google Merchant Center property [material](https://support.google.com/
|
@@ -1683,13 +1684,12 @@ module Google
|
|
1683
1684
|
|
1684
1685
|
# Immutable. Full resource name of the product, such as `projects/*/locations/
|
1685
1686
|
# global/catalogs/default_catalog/branches/default_branch/products/product_id`.
|
1686
|
-
# The branch ID must be "default_branch".
|
1687
1687
|
# Corresponds to the JSON property `name`
|
1688
1688
|
# @return [String]
|
1689
1689
|
attr_accessor :name
|
1690
1690
|
|
1691
1691
|
# The pattern or graphic print of the product. For example, "striped", "polka
|
1692
|
-
# dot", "paisley". A maximum of
|
1692
|
+
# dot", "paisley". A maximum of 20 values are allowed per Product. Each value
|
1693
1693
|
# must be a UTF-8 encoded string with a length limit of 128 characters.
|
1694
1694
|
# Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center
|
1695
1695
|
# property [pattern](https://support.google.com/merchants/answer/6324483).
|
@@ -1745,8 +1745,9 @@ module Google
|
|
1745
1745
|
# attribute, as specified in attributes. For Type.PRIMARY and Type.COLLECTION,
|
1746
1746
|
# the following fields are always returned in SearchResponse by default: * name
|
1747
1747
|
# For Type.VARIANT, the following fields are always returned in by default: *
|
1748
|
-
# name * color_info Maximum number of paths is
|
1749
|
-
# INVALID_ARGUMENT error is returned.
|
1748
|
+
# name * color_info Maximum number of paths is 30. Otherwise, an
|
1749
|
+
# INVALID_ARGUMENT error is returned. Note: Returning more fields in
|
1750
|
+
# SearchResponse may increase response payload size and serving latency.
|
1750
1751
|
# Corresponds to the JSON property `retrievableFields`
|
1751
1752
|
# @return [String]
|
1752
1753
|
attr_accessor :retrievable_fields
|
@@ -2244,8 +2245,8 @@ module Google
|
|
2244
2245
|
|
2245
2246
|
# If set to true, and the Product is not found, the fulfillment information will
|
2246
2247
|
# still be processed and retained for at most 1 day and processed once the
|
2247
|
-
# Product is created. If set to false,
|
2248
|
-
#
|
2248
|
+
# Product is created. If set to false, a NOT_FOUND error is returned if the
|
2249
|
+
# Product is not found.
|
2249
2250
|
# Corresponds to the JSON property `allowMissing`
|
2250
2251
|
# @return [Boolean]
|
2251
2252
|
attr_accessor :allow_missing
|
@@ -2346,9 +2347,9 @@ module Google
|
|
2346
2347
|
|
2347
2348
|
# The filter syntax consists of an expression language for constructing a
|
2348
2349
|
# predicate from one or more fields of the products being filtered. Filter
|
2349
|
-
# expression is case-sensitive. See more details at this [user guide](
|
2350
|
-
#
|
2351
|
-
# INVALID_ARGUMENT is returned.
|
2350
|
+
# expression is case-sensitive. See more details at this [user guide](https://
|
2351
|
+
# cloud.google.com/retail/docs/filter-and-order#filter). If this field is
|
2352
|
+
# unrecognizable, an INVALID_ARGUMENT is returned.
|
2352
2353
|
# Corresponds to the JSON property `filter`
|
2353
2354
|
# @return [String]
|
2354
2355
|
attr_accessor :filter
|
@@ -2363,9 +2364,9 @@ module Google
|
|
2363
2364
|
|
2364
2365
|
# The order in which products are returned. Products can be ordered by a field
|
2365
2366
|
# in an Product object. Leave it unset if ordered by relevance. OrderBy
|
2366
|
-
# expression is case-sensitive. See more details at this [user guide](
|
2367
|
-
#
|
2368
|
-
# INVALID_ARGUMENT is returned.
|
2367
|
+
# expression is case-sensitive. See more details at this [user guide](https://
|
2368
|
+
# cloud.google.com/retail/docs/filter-and-order#order). If this field is
|
2369
|
+
# unrecognizable, an INVALID_ARGUMENT is returned.
|
2369
2370
|
# Corresponds to the JSON property `orderBy`
|
2370
2371
|
# @return [String]
|
2371
2372
|
attr_accessor :order_by
|
@@ -2415,25 +2416,25 @@ module Google
|
|
2415
2416
|
# The keys to fetch and rollup the matching variant Products attributes. The
|
2416
2417
|
# attributes from all the matching variant Products are merged and de-duplicated.
|
2417
2418
|
# Notice that rollup variant Products attributes will lead to extra query
|
2418
|
-
# latency. Maximum number of keys is 10. For
|
2419
|
-
#
|
2420
|
-
#
|
2421
|
-
#
|
2422
|
-
#
|
2423
|
-
#
|
2424
|
-
#
|
2425
|
-
# shipToStore.id, where id is any FulfillmentInfo.
|
2426
|
-
#
|
2427
|
-
# for type
|
2428
|
-
# id is any FulfillmentInfo.
|
2429
|
-
# * customFulfillment1.id, where id is any FulfillmentInfo.
|
2430
|
-
# FulfillmentInfo.
|
2431
|
-
# FulfillmentInfo.
|
2432
|
-
# customFulfillment3.id, where id is any FulfillmentInfo.
|
2433
|
-
# FulfillmentInfo.
|
2434
|
-
# FulfillmentInfo.
|
2435
|
-
# customFulfillment5.id, where id is any FulfillmentInfo.
|
2436
|
-
# FulfillmentInfo.
|
2419
|
+
# latency. Maximum number of keys is 10. For FulfillmentInfo, a fulfillment type
|
2420
|
+
# and a fulfillment ID must be provided in the format of "fulfillmentType.
|
2421
|
+
# fulfillmentId". E.g., in "pickupInStore.store123", "pickupInStore" is
|
2422
|
+
# fulfillment type and "store123" is the store ID. Supported keys are: *
|
2423
|
+
# colorFamilies * price * originalPrice * discount * attributes.key, where key
|
2424
|
+
# is any key in the Product.attributes map. * pickupInStore.id, where id is any
|
2425
|
+
# FulfillmentInfo.place_ids for FulfillmentInfo.type "pickup-in-store". *
|
2426
|
+
# shipToStore.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.
|
2427
|
+
# type "ship-to-store". * sameDayDelivery.id, where id is any FulfillmentInfo.
|
2428
|
+
# place_ids for FulfillmentInfo.type "same-day-delivery". * nextDayDelivery.id,
|
2429
|
+
# where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type "next-day-
|
2430
|
+
# delivery". * customFulfillment1.id, where id is any FulfillmentInfo.place_ids
|
2431
|
+
# for FulfillmentInfo.type "custom-type-1". * customFulfillment2.id, where id is
|
2432
|
+
# any FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-2". *
|
2433
|
+
# customFulfillment3.id, where id is any FulfillmentInfo.place_ids for
|
2434
|
+
# FulfillmentInfo.type "custom-type-3". * customFulfillment4.id, where id is any
|
2435
|
+
# FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-4". *
|
2436
|
+
# customFulfillment5.id, where id is any FulfillmentInfo.place_ids for
|
2437
|
+
# FulfillmentInfo.type "custom-type-5". If this field is set to an invalid value
|
2437
2438
|
# other than these, an INVALID_ARGUMENT error is returned.
|
2438
2439
|
# Corresponds to the JSON property `variantRollupKeys`
|
2439
2440
|
# @return [Array<String>]
|
@@ -2517,8 +2518,8 @@ module Google
|
|
2517
2518
|
# An expression which specifies a boost condition. The syntax and supported
|
2518
2519
|
# fields are the same as a filter expression. See SearchRequest.filter for
|
2519
2520
|
# detail syntax and limitations. Examples: * To boost products with product ID "
|
2520
|
-
# product_1" or "product_2", and color "Red" or "Blue": *(id: ANY("product_1", "
|
2521
|
-
# product_2"))
|
2521
|
+
# product_1" or "product_2", and color "Red" or "Blue": * (id: ANY("product_1", "
|
2522
|
+
# product_2")) AND (colorFamilies: ANY("Red","Blue"))
|
2522
2523
|
# Corresponds to the JSON property `condition`
|
2523
2524
|
# @return [String]
|
2524
2525
|
attr_accessor :condition
|
@@ -2640,33 +2641,13 @@ module Google
|
|
2640
2641
|
|
2641
2642
|
# Required. Supported textual and numerical facet keys in Product object, over
|
2642
2643
|
# which the facet values are computed. Facet key is case-sensitive. Allowed
|
2643
|
-
# facet keys when FacetKey.query is not specified: * textual_field =
|
2644
|
-
#
|
2645
|
-
#
|
2646
|
-
#
|
2647
|
-
#
|
2648
|
-
#
|
2649
|
-
# *
|
2650
|
-
# patterns. * | "patterns"; *# The Product.conditions. * | "conditions"; *# The
|
2651
|
-
# textual custom attribute in Product object. Key can * *# be any key in the
|
2652
|
-
# Product.attributes map * *# if the attribute values are textual. * *# map. * |
|
2653
|
-
# "attributes.key"; *# The FulfillmentInfo.ids for type *# FulfillmentInfo.Type.
|
2654
|
-
# PICKUP_IN_STORE. * | "pickupInStore"; *# The FulfillmentInfo.ids for type *#
|
2655
|
-
# FulfillmentInfo.Type.SHIP_TO_STORE. * | "shipToStore"; *# The FulfillmentInfo.
|
2656
|
-
# ids for type *# FulfillmentInfo.Type.SAME_DAY_DELIVERY. * | "sameDayDelivery";
|
2657
|
-
# *# The FulfillmentInfo.ids for type *# FulfillmentInfo.Type.NEXT_DAY_DELIVERY.
|
2658
|
-
# * | "nextDayDelivery"; *# The FulfillmentInfo.ids for type *# FulfillmentInfo.
|
2659
|
-
# Type.CUSTOM_TYPE_1. * | "customFulfillment1"; *# The FulfillmentInfo.ids for
|
2660
|
-
# type *# FulfillmentInfo.Type.CUSTOM_TYPE_2. * | "customFulfillment2"; *# The
|
2661
|
-
# FulfillmentInfo.ids for type *# FulfillmentInfo.Type.CUSTOM_TYPE_3. * | "
|
2662
|
-
# customFulfillment3"; *# The FulfillmentInfo.ids for type *# FulfillmentInfo.
|
2663
|
-
# Type.CUSTOM_TYPE_4. * | "customFulfillment4"; *# The FulfillmentInfo.ids for
|
2664
|
-
# type *# FulfillmentInfo.Type.CUSTOM_TYPE_5. * | "customFulfillment5"; *
|
2665
|
-
# numerical_field = *# The PriceInfo.price. * "price"; *# The discount. Computed
|
2666
|
-
# by (original_price-price)/price * "discount"; *# The Rating.average_rating. * "
|
2667
|
-
# rating"; *# The Rating.rating_count. * "ratingCount"; *# The numerical custom
|
2668
|
-
# attribute in Product object. Key can * *# be any key in the Product.attributes
|
2669
|
-
# map * *# if the attribute values are numerical. * | "attributes.key";
|
2644
|
+
# facet keys when FacetKey.query is not specified: * textual_field = * "brands" *
|
2645
|
+
# "categories" * "genders" * "ageGroups" * "availability" * "colorFamilies" * "
|
2646
|
+
# colors" * "sizes" * "materials" * "patterns" * "conditions" * "attributes.key"
|
2647
|
+
# * "pickupInStore" * "shipToStore" * "sameDayDelivery" * "nextDayDelivery" * "
|
2648
|
+
# customFulfillment1" * "customFulfillment2" * "customFulfillment3" * "
|
2649
|
+
# customFulfillment4" * "customFulfillment5" * numerical_field = * "price" * "
|
2650
|
+
# discount" * "rating" * "ratingCount" * "attributes.key"
|
2670
2651
|
# Corresponds to the JSON property `key`
|
2671
2652
|
# @return [String]
|
2672
2653
|
attr_accessor :key
|
@@ -2676,7 +2657,7 @@ module Google
|
|
2676
2657
|
# which means order by Facet.FacetValue.value descending. Only applies to
|
2677
2658
|
# textual facets. If not set, textual values are sorted in [natural order](https:
|
2678
2659
|
# //en.wikipedia.org/wiki/Natural_sort_order); numerical intervals are sorted in
|
2679
|
-
# the order given by FacetSpec.FacetKey.intervals; FulfillmentInfo.
|
2660
|
+
# the order given by FacetSpec.FacetKey.intervals; FulfillmentInfo.place_ids are
|
2680
2661
|
# sorted in the order given by FacetSpec.FacetKey.restricted_values.
|
2681
2662
|
# Corresponds to the JSON property `orderBy`
|
2682
2663
|
# @return [String]
|
@@ -2742,6 +2723,14 @@ module Google
|
|
2742
2723
|
# @return [String]
|
2743
2724
|
attr_accessor :condition
|
2744
2725
|
|
2726
|
+
# Whether to pin unexpanded results. If this field is set to true, unexpanded
|
2727
|
+
# products are always at the top of the search results, followed by the expanded
|
2728
|
+
# results.
|
2729
|
+
# Corresponds to the JSON property `pinUnexpandedResults`
|
2730
|
+
# @return [Boolean]
|
2731
|
+
attr_accessor :pin_unexpanded_results
|
2732
|
+
alias_method :pin_unexpanded_results?, :pin_unexpanded_results
|
2733
|
+
|
2745
2734
|
def initialize(**args)
|
2746
2735
|
update!(**args)
|
2747
2736
|
end
|
@@ -2749,6 +2738,7 @@ module Google
|
|
2749
2738
|
# Update properties of this object
|
2750
2739
|
def update!(**args)
|
2751
2740
|
@condition = args[:condition] if args.key?(:condition)
|
2741
|
+
@pin_unexpanded_results = args[:pin_unexpanded_results] if args.key?(:pin_unexpanded_results)
|
2752
2742
|
end
|
2753
2743
|
end
|
2754
2744
|
|
@@ -2895,6 +2885,12 @@ module Google
|
|
2895
2885
|
attr_accessor :expanded_query
|
2896
2886
|
alias_method :expanded_query?, :expanded_query
|
2897
2887
|
|
2888
|
+
# Number of pinned results. This field will only be set when expansion happens
|
2889
|
+
# and SearchRequest.QueryExpansionSpec.pin_unexpanded_results is set to true.
|
2890
|
+
# Corresponds to the JSON property `pinnedResultCount`
|
2891
|
+
# @return [Fixnum]
|
2892
|
+
attr_accessor :pinned_result_count
|
2893
|
+
|
2898
2894
|
def initialize(**args)
|
2899
2895
|
update!(**args)
|
2900
2896
|
end
|
@@ -2902,6 +2898,7 @@ module Google
|
|
2902
2898
|
# Update properties of this object
|
2903
2899
|
def update!(**args)
|
2904
2900
|
@expanded_query = args[:expanded_query] if args.key?(:expanded_query)
|
2901
|
+
@pinned_result_count = args[:pinned_result_count] if args.key?(:pinned_result_count)
|
2905
2902
|
end
|
2906
2903
|
end
|
2907
2904
|
|
@@ -2943,10 +2940,10 @@ module Google
|
|
2943
2940
|
# protobuf.ListValue. For example, if there are two variants with colors "red"
|
2944
2941
|
# and "blue", the rollup values are ` key: "colorFamilies" value ` list_value `
|
2945
2942
|
# values ` string_value: "red" ` values ` string_value: "blue" ` ` ` ` For
|
2946
|
-
#
|
2947
|
-
#
|
2948
|
-
#
|
2949
|
-
#
|
2943
|
+
# FulfillmentInfo, the rollup values is a double value with type google.protobuf.
|
2944
|
+
# Value. For example, ``key: "pickupInStore.store1" value ` number_value: 10 ```
|
2945
|
+
# means a there are 10 variants in this product are available in the store "
|
2946
|
+
# store1".
|
2950
2947
|
# Corresponds to the JSON property `variantRollupValues`
|
2951
2948
|
# @return [Hash<String,Object>]
|
2952
2949
|
attr_accessor :variant_rollup_values
|
@@ -3015,8 +3012,8 @@ module Google
|
|
3015
3012
|
|
3016
3013
|
# If set to true, and the Product with name Product.name is not found, the
|
3017
3014
|
# inventory update will still be processed and retained for at most 1 day until
|
3018
|
-
# the Product is created. If set to false,
|
3019
|
-
#
|
3015
|
+
# the Product is created. If set to false, a NOT_FOUND error is returned if the
|
3016
|
+
# Product is not found.
|
3020
3017
|
# Corresponds to the JSON property `allowMissing`
|
3021
3018
|
# @return [Boolean]
|
3022
3019
|
attr_accessor :allow_missing
|
@@ -3100,7 +3097,7 @@ module Google
|
|
3100
3097
|
# @return [String]
|
3101
3098
|
attr_accessor :attribution_token
|
3102
3099
|
|
3103
|
-
# The
|
3100
|
+
# The ID or name of the associated shopping cart. This ID is used to associate
|
3104
3101
|
# multiple items added or present in the cart before purchase. This can only be
|
3105
3102
|
# set for `add-to-cart`, `purchase-complete`, or `shopping-cart-page-view`
|
3106
3103
|
# events.
|
@@ -3181,7 +3178,7 @@ module Google
|
|
3181
3178
|
# @return [Array<String>]
|
3182
3179
|
attr_accessor :page_categories
|
3183
3180
|
|
3184
|
-
# A unique
|
3181
|
+
# A unique ID of a web page view. This should be kept the same for all user
|
3185
3182
|
# events triggered from the same pageview. For example, an item detail page view
|
3186
3183
|
# could trigger multiple events as the user is browsing the page. The `
|
3187
3184
|
# pageViewId` property should be kept the same for all these events so that they
|
@@ -3195,11 +3192,11 @@ module Google
|
|
3195
3192
|
# The main product details related to the event. This field is required for the
|
3196
3193
|
# following event types: * `add-to-cart` * `detail-page-view` * `purchase-
|
3197
3194
|
# complete` In a `search` event, this field represents the products returned to
|
3198
|
-
# the end user on the current page (the end user may have not finished
|
3195
|
+
# the end user on the current page (the end user may have not finished browsing
|
3199
3196
|
# the whole page yet). When a new page is returned to the end user, after
|
3200
3197
|
# pagination/filtering/ordering even for the same query, a new `search` event
|
3201
3198
|
# with different product_details is desired. The end user may have not finished
|
3202
|
-
#
|
3199
|
+
# browsing the whole page yet.
|
3203
3200
|
# Corresponds to the JSON property `productDetails`
|
3204
3201
|
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2ProductDetail>]
|
3205
3202
|
attr_accessor :product_details
|
@@ -3449,6 +3446,20 @@ module Google
|
|
3449
3446
|
end
|
3450
3447
|
end
|
3451
3448
|
|
3449
|
+
# Metadata related to the EnrollSolution method. This will be returned by the
|
3450
|
+
# google.longrunning.Operation.metadata field.
|
3451
|
+
class GoogleCloudRetailV2alphaEnrollSolutionMetadata
|
3452
|
+
include Google::Apis::Core::Hashable
|
3453
|
+
|
3454
|
+
def initialize(**args)
|
3455
|
+
update!(**args)
|
3456
|
+
end
|
3457
|
+
|
3458
|
+
# Update properties of this object
|
3459
|
+
def update!(**args)
|
3460
|
+
end
|
3461
|
+
end
|
3462
|
+
|
3452
3463
|
# Configuration of destination for Export related errors.
|
3453
3464
|
class GoogleCloudRetailV2alphaExportErrorsConfig
|
3454
3465
|
include Google::Apis::Core::Hashable
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.17.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210930"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -502,6 +502,12 @@ module Google
|
|
502
502
|
include Google::Apis::Core::JsonObjectSupport
|
503
503
|
end
|
504
504
|
|
505
|
+
class GoogleCloudRetailV2alphaEnrollSolutionMetadata
|
506
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
507
|
+
|
508
|
+
include Google::Apis::Core::JsonObjectSupport
|
509
|
+
end
|
510
|
+
|
505
511
|
class GoogleCloudRetailV2alphaExportErrorsConfig
|
506
512
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
507
513
|
|
@@ -1399,6 +1405,7 @@ module Google
|
|
1399
1405
|
# @private
|
1400
1406
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1401
1407
|
property :condition, as: 'condition'
|
1408
|
+
property :pin_unexpanded_results, as: 'pinUnexpandedResults'
|
1402
1409
|
end
|
1403
1410
|
end
|
1404
1411
|
|
@@ -1443,6 +1450,7 @@ module Google
|
|
1443
1450
|
# @private
|
1444
1451
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1445
1452
|
property :expanded_query, as: 'expandedQuery'
|
1453
|
+
property :pinned_result_count, :numeric_string => true, as: 'pinnedResultCount'
|
1446
1454
|
end
|
1447
1455
|
end
|
1448
1456
|
|
@@ -1570,6 +1578,12 @@ module Google
|
|
1570
1578
|
end
|
1571
1579
|
end
|
1572
1580
|
|
1581
|
+
class GoogleCloudRetailV2alphaEnrollSolutionMetadata
|
1582
|
+
# @private
|
1583
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1584
|
+
end
|
1585
|
+
end
|
1586
|
+
|
1573
1587
|
class GoogleCloudRetailV2alphaExportErrorsConfig
|
1574
1588
|
# @private
|
1575
1589
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -52,18 +52,19 @@ module Google
|
|
52
52
|
end
|
53
53
|
|
54
54
|
# Completes the specified prefix with keyword suggestions. This feature is only
|
55
|
-
# available for users who have Retail Search enabled.
|
56
|
-
#
|
55
|
+
# available for users who have Retail Search enabled. Please submit a form [here]
|
56
|
+
# (https://cloud.google.com/contact) to contact cloud sales if you are
|
57
|
+
# interested in using Retail Search.
|
57
58
|
# @param [String] catalog
|
58
59
|
# Required. Catalog for which the completion is performed. Full resource name of
|
59
60
|
# catalog, such as `projects/*/locations/global/catalogs/default_catalog`.
|
60
61
|
# @param [String] dataset
|
61
62
|
# Determines which dataset to use for fetching completion. "user-data" will use
|
62
|
-
# the imported dataset through ImportCompletionData. "cloud-
|
63
|
-
# dataset generated by cloud retail based on user events.
|
64
|
-
# will use the "user-data". Current supported values: * user-
|
65
|
-
# This option
|
66
|
-
# retail
|
63
|
+
# the imported dataset through CompletionService.ImportCompletionData. "cloud-
|
64
|
+
# retail" will use the dataset generated by cloud retail based on user events.
|
65
|
+
# If leave empty, it will use the "user-data". Current supported values: * user-
|
66
|
+
# data * cloud-retail This option requires additional allowlisting. Before using
|
67
|
+
# cloud-retail, contact Cloud Retail support team first.
|
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 it
|
@@ -76,8 +77,9 @@ module Google
|
|
76
77
|
# (https://tools.ietf.org/html/bcp47). The maximum number of allowed characters
|
77
78
|
# is 255. Only "en-US" is currently supported.
|
78
79
|
# @param [Fixnum] max_suggestions
|
79
|
-
# Completion max suggestions.
|
80
|
-
#
|
80
|
+
# Completion max suggestions. If left unset or set to 0, then will fallback to
|
81
|
+
# the configured value CompletionConfig.max_suggestions. The maximum allowed max
|
82
|
+
# suggestions is 20. If it is set higher, it will be capped by 20.
|
81
83
|
# @param [String] query
|
82
84
|
# Required. The query used to generate suggestions. The maximum number of
|
83
85
|
# allowed characters is 255.
|
@@ -123,8 +125,9 @@ module Google
|
|
123
125
|
|
124
126
|
# Get which branch is currently default branch set by CatalogService.
|
125
127
|
# SetDefaultBranch method under a specified parent catalog. This feature is only
|
126
|
-
# available for users who have Retail Search enabled.
|
127
|
-
#
|
128
|
+
# available for users who have Retail Search enabled. Please submit a form [here]
|
129
|
+
# (https://cloud.google.com/contact) to contact cloud sales if you are
|
130
|
+
# interested in using Retail Search.
|
128
131
|
# @param [String] catalog
|
129
132
|
# The parent catalog resource name, such as `projects/*/locations/global/
|
130
133
|
# catalogs/default_catalog`.
|
@@ -254,8 +257,8 @@ module Google
|
|
254
257
|
# SearchService will only return product IDs from branch `newBranch` (if branch
|
255
258
|
# is not explicitly set). * UserEventService will only join events with products
|
256
259
|
# from branch `newBranch`. This feature is only available for users who have
|
257
|
-
# Retail Search enabled.
|
258
|
-
#
|
260
|
+
# Retail Search enabled. Please submit a form [here](https://cloud.google.com/
|
261
|
+
# contact) to contact cloud sales if you are interested in using Retail Search.
|
259
262
|
# @param [String] catalog
|
260
263
|
# Full resource name of the catalog, such as `projects/*/locations/global/
|
261
264
|
# catalogs/default_catalog`.
|
@@ -326,8 +329,9 @@ module Google
|
|
326
329
|
# enqueued and processed downstream. As a consequence, when a response is
|
327
330
|
# returned, the added place IDs are not immediately manifested in the Product
|
328
331
|
# queried by GetProduct or ListProducts. This feature is only available for
|
329
|
-
# users who have Retail Search enabled.
|
330
|
-
#
|
332
|
+
# users who have Retail Search enabled. Please submit a form [here](https://
|
333
|
+
# cloud.google.com/contact) to contact cloud sales if you are interested in
|
334
|
+
# using Retail Search.
|
331
335
|
# @param [String] product
|
332
336
|
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
333
337
|
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
@@ -585,7 +589,6 @@ module Google
|
|
585
589
|
# @param [String] name
|
586
590
|
# Immutable. Full resource name of the product, such as `projects/*/locations/
|
587
591
|
# global/catalogs/default_catalog/branches/default_branch/products/product_id`.
|
588
|
-
# The branch ID must be "default_branch".
|
589
592
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2Product] google_cloud_retail_v2_product_object
|
590
593
|
# @param [Boolean] allow_missing
|
591
594
|
# If set to true, and the Product is not found, a new Product will be created.
|
@@ -633,8 +636,9 @@ module Google
|
|
633
636
|
# enqueued and processed downstream. As a consequence, when a response is
|
634
637
|
# returned, the removed place IDs are not immediately manifested in the Product
|
635
638
|
# queried by GetProduct or ListProducts. This feature is only available for
|
636
|
-
# users who have Retail Search enabled.
|
637
|
-
#
|
639
|
+
# users who have Retail Search enabled. Please submit a form [here](https://
|
640
|
+
# cloud.google.com/contact) to contact cloud sales if you are interested in
|
641
|
+
# using Retail Search.
|
638
642
|
# @param [String] product
|
639
643
|
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
640
644
|
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
@@ -686,13 +690,12 @@ module Google
|
|
686
690
|
# UpdateProductRequest.set_mask, then any existing inventory information will be
|
687
691
|
# preserved. Pre-existing inventory information can only be updated with
|
688
692
|
# SetInventory, AddFulfillmentPlaces, and RemoveFulfillmentPlaces. This feature
|
689
|
-
# is only available for users who have Retail Search enabled.
|
690
|
-
#
|
691
|
-
# Retail Search.
|
693
|
+
# is only available for users who have Retail Search enabled. Please submit a
|
694
|
+
# form [here](https://cloud.google.com/contact) to contact cloud sales if you
|
695
|
+
# are interested in using Retail Search.
|
692
696
|
# @param [String] name
|
693
697
|
# Immutable. Full resource name of the product, such as `projects/*/locations/
|
694
698
|
# global/catalogs/default_catalog/branches/default_branch/products/product_id`.
|
695
|
-
# The branch ID must be "default_branch".
|
696
699
|
# @param [Google::Apis::RetailV2::GoogleCloudRetailV2SetInventoryRequest] google_cloud_retail_v2_set_inventory_request_object
|
697
700
|
# @param [String] fields
|
698
701
|
# Selector specifying which fields to include in a partial response.
|
@@ -725,8 +728,9 @@ module Google
|
|
725
728
|
|
726
729
|
# Bulk import of processed completion dataset. Request processing may be
|
727
730
|
# synchronous. Partial updating is not supported. This feature is only available
|
728
|
-
# for users who have Retail Search enabled.
|
729
|
-
#
|
731
|
+
# for users who have Retail Search enabled. Please submit a form [here](https://
|
732
|
+
# cloud.google.com/contact) to contact cloud sales if you are interested in
|
733
|
+
# using Retail Search.
|
730
734
|
# @param [String] parent
|
731
735
|
# Required. The catalog which the suggestions dataset belongs to. Format: `
|
732
736
|
# projects/1234/locations/global/catalogs/default_catalog`.
|
@@ -877,8 +881,8 @@ module Google
|
|
877
881
|
end
|
878
882
|
|
879
883
|
# Performs a search. This feature is only available for users who have Retail
|
880
|
-
# Search enabled.
|
881
|
-
# you are interested in using Retail Search.
|
884
|
+
# Search enabled. Please submit a form [here](https://cloud.google.com/contact)
|
885
|
+
# to contact cloud sales if you are interested in using Retail Search.
|
882
886
|
# @param [String] placement
|
883
887
|
# Required. The resource name of the search engine placement, such as `projects/*
|
884
888
|
# /locations/global/catalogs/default_catalog/placements/default_search`. This
|
@@ -31,7 +31,7 @@ module Google
|
|
31
31
|
# This is NOT the gem version.
|
32
32
|
VERSION = 'V2'
|
33
33
|
|
34
|
-
# See, edit, configure, and delete your Google Cloud
|
34
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
35
35
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
36
36
|
end
|
37
37
|
end
|
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.
|
4
|
+
version: 0.17.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: 2021-
|
11
|
+
date: 2021-10-11 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/master/generated/google-apis-retail_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.17.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-retail_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|