google-apis-retail_v2 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/retail_v2/classes.rb +142 -100
- data/lib/google/apis/retail_v2/gem_version.rb +2 -2
- data/lib/google/apis/retail_v2/representations.rb +25 -0
- 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: 1599b481f2aaed78125c27588176be269312c6abb0582d3aa4fd4ca4294755a3
|
4
|
+
data.tar.gz: f7d1bc53553c40ddceaf6b461fb49696be85d0c7338e71a6dd6b95c7c212fb61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9052890d848455cb40fccb29b8ed92bed90e332a41047da18e66bb849b24ab2debf64afd698bef7198e484a88ba3c4117748a3d4e8d98a683f46d9556da51c1
|
7
|
+
data.tar.gz: 24bb1e70f8045210d58d401881544f782c2f9ea327d0ee0ef9bfd4b98879be588af567ec29ccb40a28b653cb36312f8d1a6214af8114b7b833b04fc9dcebf824
|
data/CHANGELOG.md
CHANGED
@@ -696,9 +696,8 @@ module Google
|
|
696
696
|
alias_method :indexable?, :indexable
|
697
697
|
|
698
698
|
# The numerical values of this custom attribute. For example, `[2.3, 15.4]` when
|
699
|
-
# the key is "lengths_cm".
|
700
|
-
# INVALID_ARGUMENT error is returned.
|
701
|
-
# set. Otherwise, an INVALID_ARGUMENT error is returned.
|
699
|
+
# the key is "lengths_cm". Exactly one of text or numbers should be set.
|
700
|
+
# Otherwise, an INVALID_ARGUMENT error is returned.
|
702
701
|
# Corresponds to the JSON property `numbers`
|
703
702
|
# @return [Array<Float>]
|
704
703
|
attr_accessor :numbers
|
@@ -712,11 +711,8 @@ module Google
|
|
712
711
|
alias_method :searchable?, :searchable
|
713
712
|
|
714
713
|
# The textual values of this custom attribute. For example, `["yellow", "green"]`
|
715
|
-
# when the key is "color".
|
716
|
-
#
|
717
|
-
# characters. Otherwise, an INVALID_ARGUMENT error is returned. Exactly one of
|
718
|
-
# text or numbers should be set. Otherwise, an INVALID_ARGUMENT error is
|
719
|
-
# returned.
|
714
|
+
# when the key is "color". Exactly one of text or numbers should be set.
|
715
|
+
# Otherwise, an INVALID_ARGUMENT error is returned.
|
720
716
|
# Corresponds to the JSON property `text`
|
721
717
|
# @return [Array<String>]
|
722
718
|
attr_accessor :text
|
@@ -1523,7 +1519,10 @@ module Google
|
|
1523
1519
|
# INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must
|
1524
1520
|
# be a UTF-8 encoded string with a length limit of 128 characters. * For
|
1525
1521
|
# indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example,
|
1526
|
-
# key0LikeThis or KEY_1_LIKE_THIS
|
1522
|
+
# `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400
|
1523
|
+
# values are allowed. Empty values are not allowed. Each value must be a UTF-8
|
1524
|
+
# encoded string with a length limit of 256 characters. * For number attributes,
|
1525
|
+
# at most 400 values are allowed.
|
1527
1526
|
# Corresponds to the JSON property `attributes`
|
1528
1527
|
# @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute>]
|
1529
1528
|
attr_accessor :attributes
|
@@ -1534,9 +1533,9 @@ module Google
|
|
1534
1533
|
attr_accessor :audience
|
1535
1534
|
|
1536
1535
|
# The online availability of the Product. Default to Availability.IN_STOCK.
|
1537
|
-
# Google Merchant Center
|
1538
|
-
# merchants/answer/6324448). Schema.org
|
1539
|
-
# schema.org/availability).
|
1536
|
+
# Corresponding properties: Google Merchant Center property [availability](https:
|
1537
|
+
# //support.google.com/merchants/answer/6324448). Schema.org property [Offer.
|
1538
|
+
# availability](https://schema.org/availability).
|
1540
1539
|
# Corresponds to the JSON property `availability`
|
1541
1540
|
# @return [String]
|
1542
1541
|
attr_accessor :availability
|
@@ -1553,9 +1552,9 @@ module Google
|
|
1553
1552
|
|
1554
1553
|
# The brands of the product. A maximum of 30 brands are allowed. Each brand must
|
1555
1554
|
# be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise,
|
1556
|
-
# an INVALID_ARGUMENT error is returned.
|
1557
|
-
# https://support.google.com/merchants/answer/
|
1558
|
-
# Product.brand](https://schema.org/brand).
|
1555
|
+
# an INVALID_ARGUMENT error is returned. Corresponding properties: Google
|
1556
|
+
# Merchant Center property [brand](https://support.google.com/merchants/answer/
|
1557
|
+
# 6324351). Schema.org property [Product.brand](https://schema.org/brand).
|
1559
1558
|
# Corresponds to the JSON property `brands`
|
1560
1559
|
# @return [Array<String>]
|
1561
1560
|
attr_accessor :brands
|
@@ -1572,10 +1571,10 @@ module Google
|
|
1572
1571
|
# INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product.
|
1573
1572
|
# Empty values are not allowed. Each value must be a UTF-8 encoded string with
|
1574
1573
|
# a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is
|
1575
|
-
# returned. Google Merchant Center property
|
1576
|
-
# property [Product.category] (https://
|
1577
|
-
# mc_google_product_category]: https://support.google.com/
|
1578
|
-
# 6324436
|
1574
|
+
# returned. Corresponding properties: Google Merchant Center property
|
1575
|
+
# google_product_category. Schema.org property [Product.category] (https://
|
1576
|
+
# schema.org/category). [mc_google_product_category]: https://support.google.com/
|
1577
|
+
# merchants/answer/6324436
|
1579
1578
|
# Corresponds to the JSON property `categories`
|
1580
1579
|
# @return [Array<String>]
|
1581
1580
|
attr_accessor :categories
|
@@ -1595,19 +1594,19 @@ module Google
|
|
1595
1594
|
# The condition of the product. Strongly encouraged to use the standard values: "
|
1596
1595
|
# new", "refurbished", "used". A maximum of 5 values are allowed per Product.
|
1597
1596
|
# Each value must be a UTF-8 encoded string with a length limit of 128
|
1598
|
-
# characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
1599
|
-
# Center property [condition](https://support.google.
|
1600
|
-
# 6324469). Schema.org property [Offer.itemCondition](https
|
1601
|
-
# itemCondition).
|
1597
|
+
# characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding
|
1598
|
+
# properties: Google Merchant Center property [condition](https://support.google.
|
1599
|
+
# com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https:
|
1600
|
+
# //schema.org/itemCondition).
|
1602
1601
|
# Corresponds to the JSON property `conditions`
|
1603
1602
|
# @return [Array<String>]
|
1604
1603
|
attr_accessor :conditions
|
1605
1604
|
|
1606
1605
|
# Product description. This field must be a UTF-8 encoded string with a length
|
1607
1606
|
# limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
1608
|
-
# Google Merchant Center property [description](https
|
1609
|
-
# merchants/answer/6324468).
|
1610
|
-
# schema.org/description).
|
1607
|
+
# Corresponding properties: Google Merchant Center property [description](https:/
|
1608
|
+
# /support.google.com/merchants/answer/6324468). Schema.org property [Product.
|
1609
|
+
# description](https://schema.org/description).
|
1611
1610
|
# Corresponds to the JSON property `description`
|
1612
1611
|
# @return [String]
|
1613
1612
|
attr_accessor :description
|
@@ -1617,8 +1616,8 @@ module Google
|
|
1617
1616
|
# expire_time. However, the product can still be retrieved by ProductService.
|
1618
1617
|
# GetProduct and ProductService.ListProducts. expire_time must be later than
|
1619
1618
|
# available_time and publish_time, otherwise an INVALID_ARGUMENT error is thrown.
|
1620
|
-
# Google Merchant Center property [expiration_date](
|
1621
|
-
# merchants/answer/6324499).
|
1619
|
+
# Corresponding properties: Google Merchant Center property [expiration_date](
|
1620
|
+
# https://support.google.com/merchants/answer/6324499).
|
1622
1621
|
# Corresponds to the JSON property `expireTime`
|
1623
1622
|
# @return [String]
|
1624
1623
|
attr_accessor :expire_time
|
@@ -1633,12 +1632,13 @@ module Google
|
|
1633
1632
|
# The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8
|
1634
1633
|
# encoded string with a length limit of 128 characters. Otherwise, an
|
1635
1634
|
# INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise,
|
1636
|
-
# an INVALID_ARGUMENT error is returned.
|
1637
|
-
# https://support.google.com/merchants/answer/
|
1638
|
-
#
|
1639
|
-
#
|
1640
|
-
# https://schema.org/gtin13) or [Product.gtin14](
|
1641
|
-
# the value is not a valid GTIN, an
|
1635
|
+
# an INVALID_ARGUMENT error is returned. Corresponding properties: Google
|
1636
|
+
# Merchant Center property [gtin](https://support.google.com/merchants/answer/
|
1637
|
+
# 6324461). Schema.org property [Product.isbn](https://schema.org/isbn), [
|
1638
|
+
# Product.gtin8](https://schema.org/gtin8), [Product.gtin12](https://schema.org/
|
1639
|
+
# gtin12), [Product.gtin13](https://schema.org/gtin13), or [Product.gtin14](
|
1640
|
+
# https://schema.org/gtin14). If the value is not a valid GTIN, an
|
1641
|
+
# INVALID_ARGUMENT error is returned.
|
1642
1642
|
# Corresponds to the JSON property `gtin`
|
1643
1643
|
# @return [String]
|
1644
1644
|
attr_accessor :gtin
|
@@ -1647,27 +1647,28 @@ module Google
|
|
1647
1647
|
# example, this field is "id_1", if name is `projects/*/locations/global/
|
1648
1648
|
# catalogs/default_catalog/branches/default_branch/products/id_1`. This field
|
1649
1649
|
# must be a UTF-8 encoded string with a length limit of 128 characters.
|
1650
|
-
# Otherwise, an INVALID_ARGUMENT error is returned.
|
1651
|
-
# property [id](https://support.google.com/merchants/
|
1652
|
-
#
|
1650
|
+
# Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
|
1651
|
+
# Google Merchant Center property [id](https://support.google.com/merchants/
|
1652
|
+
# answer/6324405). Schema.org property [Product.sku](https://schema.org/sku).
|
1653
1653
|
# Corresponds to the JSON property `id`
|
1654
1654
|
# @return [String]
|
1655
1655
|
attr_accessor :id
|
1656
1656
|
|
1657
1657
|
# Product images for the product.Highly recommended to put the main image to the
|
1658
|
-
# first. A maximum of 300 images are allowed.
|
1659
|
-
# image_link](https://support.google.com/merchants/
|
1660
|
-
# property [Product.image](https://schema.org/image).
|
1658
|
+
# first. A maximum of 300 images are allowed. Corresponding properties: Google
|
1659
|
+
# Merchant Center property [image_link](https://support.google.com/merchants/
|
1660
|
+
# answer/6324350). Schema.org property [Product.image](https://schema.org/image).
|
1661
1661
|
# Corresponds to the JSON property `images`
|
1662
1662
|
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2Image>]
|
1663
1663
|
attr_accessor :images
|
1664
1664
|
|
1665
1665
|
# Language of the title/description and other string attributes. Use language
|
1666
|
-
# tags defined by BCP 47. For
|
1667
|
-
#
|
1668
|
-
#
|
1669
|
-
#
|
1670
|
-
# field is in use. It
|
1666
|
+
# tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). For
|
1667
|
+
# product prediction, this field is ignored and the model automatically detects
|
1668
|
+
# the text language. The Product can include text in different languages, but
|
1669
|
+
# duplicating Products to provide text in multiple languages can result in
|
1670
|
+
# degraded model performance. For product search this field is in use. It
|
1671
|
+
# defaults to "en-US" if unset.
|
1671
1672
|
# Corresponds to the JSON property `languageCode`
|
1672
1673
|
# @return [String]
|
1673
1674
|
attr_accessor :language_code
|
@@ -1675,9 +1676,9 @@ module Google
|
|
1675
1676
|
# The material of the product. For example, "leather", "wooden". A maximum of 20
|
1676
1677
|
# values are allowed. Each value must be a UTF-8 encoded string with a length
|
1677
1678
|
# limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
1678
|
-
# Google Merchant Center property [material](https://
|
1679
|
-
# merchants/answer/6324410). Schema.org property [Product.
|
1680
|
-
# schema.org/material).
|
1679
|
+
# Corresponding properties: Google Merchant Center property [material](https://
|
1680
|
+
# support.google.com/merchants/answer/6324410). Schema.org property [Product.
|
1681
|
+
# material](https://schema.org/material).
|
1681
1682
|
# Corresponds to the JSON property `materials`
|
1682
1683
|
# @return [Array<String>]
|
1683
1684
|
attr_accessor :materials
|
@@ -1691,9 +1692,10 @@ module Google
|
|
1691
1692
|
# The pattern or graphic print of the product. For example, "striped", "polka
|
1692
1693
|
# dot", "paisley". A maximum of 20 values are allowed per Product. Each value
|
1693
1694
|
# must be a UTF-8 encoded string with a length limit of 128 characters.
|
1694
|
-
# Otherwise, an INVALID_ARGUMENT error is returned.
|
1695
|
-
# property [pattern](https://support.google.com/merchants/
|
1696
|
-
# Schema.org property [Product.pattern](https://schema.org/
|
1695
|
+
# Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
|
1696
|
+
# Google Merchant Center property [pattern](https://support.google.com/merchants/
|
1697
|
+
# answer/6324483). Schema.org property [Product.pattern](https://schema.org/
|
1698
|
+
# pattern).
|
1697
1699
|
# Corresponds to the JSON property `patterns`
|
1698
1700
|
# @return [Array<String>]
|
1699
1701
|
attr_accessor :patterns
|
@@ -1708,10 +1710,9 @@ module Google
|
|
1708
1710
|
# can only be empty or set to the same value as id. For VARIANT Products, this
|
1709
1711
|
# field cannot be empty. A maximum of 2,000 products are allowed to share the
|
1710
1712
|
# same Type.PRIMARY Product. Otherwise, an INVALID_ARGUMENT error is returned.
|
1711
|
-
# Google Merchant Center
|
1712
|
-
# merchants/answer/6324507). Schema.org
|
1713
|
-
# https://schema.org/inProductGroupWithID).
|
1714
|
-
# can be used. [Learn more](/recommendations-ai/docs/catalog#item-group-id).
|
1713
|
+
# Corresponding properties: Google Merchant Center property [item_group_id](
|
1714
|
+
# https://support.google.com/merchants/answer/6324507). Schema.org property [
|
1715
|
+
# Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).
|
1715
1716
|
# Corresponds to the JSON property `primaryProductId`
|
1716
1717
|
# @return [String]
|
1717
1718
|
attr_accessor :primary_product_id
|
@@ -1760,10 +1761,11 @@ module Google
|
|
1760
1761
|
# system and size type are empty, while size value is "32 inches". A maximum of
|
1761
1762
|
# 20 values are allowed per Product. Each value must be a UTF-8 encoded string
|
1762
1763
|
# with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is
|
1763
|
-
# returned. Google Merchant Center property [size](
|
1764
|
-
# merchants/answer/6324492), [size_type](https://
|
1765
|
-
# answer/6324497) and [size_system](https://
|
1766
|
-
# 6324502). Schema.org property [Product.
|
1764
|
+
# returned. Corresponding properties: Google Merchant Center property [size](
|
1765
|
+
# https://support.google.com/merchants/answer/6324492), [size_type](https://
|
1766
|
+
# support.google.com/merchants/answer/6324497), and [size_system](https://
|
1767
|
+
# support.google.com/merchants/answer/6324502). Schema.org property [Product.
|
1768
|
+
# size](https://schema.org/size).
|
1767
1769
|
# Corresponds to the JSON property `sizes`
|
1768
1770
|
# @return [Array<String>]
|
1769
1771
|
attr_accessor :sizes
|
@@ -1772,17 +1774,18 @@ module Google
|
|
1772
1774
|
# Product. This value must be a UTF-8 encoded string with a length limit of 1,
|
1773
1775
|
# 000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can
|
1774
1776
|
# be used for filtering recommendation results by passing the tag as part of the
|
1775
|
-
# PredictRequest.filter. Google Merchant Center
|
1776
|
-
# https://support.google.com/merchants/answer/
|
1777
|
+
# PredictRequest.filter. Corresponding properties: Google Merchant Center
|
1778
|
+
# property [custom_label_0–4](https://support.google.com/merchants/answer/
|
1779
|
+
# 6324473).
|
1777
1780
|
# Corresponds to the JSON property `tags`
|
1778
1781
|
# @return [Array<String>]
|
1779
1782
|
attr_accessor :tags
|
1780
1783
|
|
1781
1784
|
# Required. Product title. This field must be a UTF-8 encoded string with a
|
1782
1785
|
# length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is
|
1783
|
-
# returned. Google Merchant Center property [title](
|
1784
|
-
# merchants/answer/6324415). Schema.org property [
|
1785
|
-
# org/name).
|
1786
|
+
# returned. Corresponding properties: Google Merchant Center property [title](
|
1787
|
+
# https://support.google.com/merchants/answer/6324415). Schema.org property [
|
1788
|
+
# Product.name](https://schema.org/name).
|
1786
1789
|
# Corresponds to the JSON property `title`
|
1787
1790
|
# @return [String]
|
1788
1791
|
attr_accessor :title
|
@@ -1808,9 +1811,9 @@ module Google
|
|
1808
1811
|
# recommended to provide a valid uri for the product, otherwise the service
|
1809
1812
|
# performance could be significantly degraded. This field must be a UTF-8
|
1810
1813
|
# encoded string with a length limit of 5,000 characters. Otherwise, an
|
1811
|
-
# INVALID_ARGUMENT error is returned. Google Merchant
|
1812
|
-
# https://support.google.com/merchants/answer/6324416).
|
1813
|
-
# Offer.url](https://schema.org/url).
|
1814
|
+
# INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant
|
1815
|
+
# Center property [link](https://support.google.com/merchants/answer/6324416).
|
1816
|
+
# Schema.org property [Offer.url](https://schema.org/url).
|
1814
1817
|
# Corresponds to the JSON property `uri`
|
1815
1818
|
# @return [String]
|
1816
1819
|
attr_accessor :uri
|
@@ -2420,25 +2423,26 @@ module Google
|
|
2420
2423
|
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2UserInfo]
|
2421
2424
|
attr_accessor :user_info
|
2422
2425
|
|
2423
|
-
# The keys to fetch and rollup the matching variant Products attributes
|
2424
|
-
#
|
2425
|
-
#
|
2426
|
-
#
|
2427
|
-
#
|
2428
|
-
# fulfillmentId". E.g., in "
|
2429
|
-
# fulfillment type and "store123" is
|
2430
|
-
#
|
2431
|
-
# inventory(place_id,
|
2432
|
-
#
|
2433
|
-
# Product.attributes map. *
|
2434
|
-
#
|
2435
|
-
#
|
2436
|
-
#
|
2437
|
-
#
|
2438
|
-
#
|
2439
|
-
#
|
2440
|
-
#
|
2441
|
-
#
|
2426
|
+
# The keys to fetch and rollup the matching variant Products attributes,
|
2427
|
+
# FulfillmentInfo or LocalInventorys attributes. The attributes from all the
|
2428
|
+
# matching variant Products or LocalInventorys are merged and de-duplicated.
|
2429
|
+
# Notice that rollup attributes will lead to extra query latency. Maximum number
|
2430
|
+
# of keys is 30. For FulfillmentInfo, a fulfillment type and a fulfillment ID
|
2431
|
+
# must be provided in the format of "fulfillmentType.fulfillmentId". E.g., in "
|
2432
|
+
# pickupInStore.store123", "pickupInStore" is fulfillment type and "store123" is
|
2433
|
+
# the store ID. Supported keys are: * colorFamilies * price * originalPrice *
|
2434
|
+
# discount * variantId * inventory(place_id,price) * inventory(place_id,
|
2435
|
+
# original_price) * inventory(place_id,attributes.key), where key is any key in
|
2436
|
+
# the Product.inventories.attributes map. * attributes.key, where key is any key
|
2437
|
+
# in the Product.attributes map. * pickupInStore.id, where id is any
|
2438
|
+
# FulfillmentInfo.place_ids for FulfillmentInfo.type "pickup-in-store". *
|
2439
|
+
# shipToStore.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.
|
2440
|
+
# type "ship-to-store". * sameDayDelivery.id, where id is any FulfillmentInfo.
|
2441
|
+
# place_ids for FulfillmentInfo.type "same-day-delivery". * nextDayDelivery.id,
|
2442
|
+
# where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type "next-day-
|
2443
|
+
# delivery". * customFulfillment1.id, where id is any FulfillmentInfo.place_ids
|
2444
|
+
# for FulfillmentInfo.type "custom-type-1". * customFulfillment2.id, where id is
|
2445
|
+
# any FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-2". *
|
2442
2446
|
# customFulfillment3.id, where id is any FulfillmentInfo.place_ids for
|
2443
2447
|
# FulfillmentInfo.type "custom-type-3". * customFulfillment4.id, where id is any
|
2444
2448
|
# FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-4". *
|
@@ -2658,8 +2662,8 @@ module Google
|
|
2658
2662
|
# customFulfillment1" * "customFulfillment2" * "customFulfillment3" * "
|
2659
2663
|
# customFulfillment4" * "customFulfillment5" * "inventory(place_id,attributes.
|
2660
2664
|
# key)" * numerical_field = * "price" * "discount" * "rating" * "ratingCount" * "
|
2661
|
-
# attributes.key" * "inventory(place_id,price)" * "inventory(place_id,
|
2662
|
-
# key)"
|
2665
|
+
# attributes.key" * "inventory(place_id,price)" * "inventory(place_id,
|
2666
|
+
# original_price)" * "inventory(place_id,attributes.key)"
|
2663
2667
|
# Corresponds to the JSON property `key`
|
2664
2668
|
# @return [String]
|
2665
2669
|
attr_accessor :key
|
@@ -2758,6 +2762,12 @@ module Google
|
|
2758
2762
|
class GoogleCloudRetailV2SearchResponse
|
2759
2763
|
include Google::Apis::Core::Hashable
|
2760
2764
|
|
2765
|
+
# The fully qualified resource name of applied [controls](https://cloud.google.
|
2766
|
+
# com/retail/docs/serving-control-rules).
|
2767
|
+
# Corresponds to the JSON property `appliedControls`
|
2768
|
+
# @return [Array<String>]
|
2769
|
+
attr_accessor :applied_controls
|
2770
|
+
|
2761
2771
|
# A unique search token. This should be included in the UserEvent logs resulting
|
2762
2772
|
# from this search, which enables accurate attribution of search model
|
2763
2773
|
# performance.
|
@@ -2812,6 +2822,7 @@ module Google
|
|
2812
2822
|
|
2813
2823
|
# Update properties of this object
|
2814
2824
|
def update!(**args)
|
2825
|
+
@applied_controls = args[:applied_controls] if args.key?(:applied_controls)
|
2815
2826
|
@attribution_token = args[:attribution_token] if args.key?(:attribution_token)
|
2816
2827
|
@corrected_query = args[:corrected_query] if args.key?(:corrected_query)
|
2817
2828
|
@facets = args[:facets] if args.key?(:facets)
|
@@ -3084,12 +3095,15 @@ module Google
|
|
3084
3095
|
class GoogleCloudRetailV2UserEvent
|
3085
3096
|
include Google::Apis::Core::Hashable
|
3086
3097
|
|
3087
|
-
# Extra user event features to include in the recommendation model.
|
3088
|
-
#
|
3089
|
-
#
|
3090
|
-
#
|
3091
|
-
#
|
3092
|
-
#
|
3098
|
+
# Extra user event features to include in the recommendation model. This field
|
3099
|
+
# needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is
|
3100
|
+
# returned: * The key must be a UTF-8 encoded string with a length limit of 5,
|
3101
|
+
# 000 characters. * For text attributes, at most 400 values are allowed. Empty
|
3102
|
+
# values are not allowed. Each value must be a UTF-8 encoded string with a
|
3103
|
+
# length limit of 256 characters. * For number attributes, at most 400 values
|
3104
|
+
# are allowed. For product recommendation, an example of extra user information
|
3105
|
+
# is traffic_channel, i.e. how user arrives at the site. Users can arrive at the
|
3106
|
+
# site by coming to the site directly, or coming through Google search, and etc.
|
3093
3107
|
# Corresponds to the JSON property `attributes`
|
3094
3108
|
# @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute>]
|
3095
3109
|
attr_accessor :attributes
|
@@ -3131,12 +3145,11 @@ module Google
|
|
3131
3145
|
|
3132
3146
|
# Required. User event type. Allowed values are: * `add-to-cart`: Products being
|
3133
3147
|
# added to cart. * `category-page-view`: Special pages such as sale or promotion
|
3134
|
-
# pages viewed. * `
|
3135
|
-
#
|
3136
|
-
#
|
3137
|
-
#
|
3138
|
-
#
|
3139
|
-
# User viewing a shopping cart.
|
3148
|
+
# pages viewed. * `detail-page-view`: Products detail page viewed. * `home-page-
|
3149
|
+
# view`: Homepage viewed. * `promotion-offered`: Promotion is offered to a user.
|
3150
|
+
# * `promotion-not-offered`: Promotion is not offered to a user. * `purchase-
|
3151
|
+
# complete`: User finishing a purchase. * `search`: Product search. * `shopping-
|
3152
|
+
# cart-page-view`: User viewing a shopping cart.
|
3140
3153
|
# Corresponds to the JSON property `eventType`
|
3141
3154
|
# @return [String]
|
3142
3155
|
attr_accessor :event_type
|
@@ -3901,6 +3914,35 @@ module Google
|
|
3901
3914
|
end
|
3902
3915
|
end
|
3903
3916
|
|
3917
|
+
# Metadata related to the progress of the SetLocalInventories operation.
|
3918
|
+
# Currently empty because there is no meaningful metadata populated from the
|
3919
|
+
# SetLocalInventories method.
|
3920
|
+
class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
|
3921
|
+
include Google::Apis::Core::Hashable
|
3922
|
+
|
3923
|
+
def initialize(**args)
|
3924
|
+
update!(**args)
|
3925
|
+
end
|
3926
|
+
|
3927
|
+
# Update properties of this object
|
3928
|
+
def update!(**args)
|
3929
|
+
end
|
3930
|
+
end
|
3931
|
+
|
3932
|
+
# Response of the SetLocalInventories API. Currently empty because there is no
|
3933
|
+
# meaningful response populated from the SetLocalInventories method.
|
3934
|
+
class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
|
3935
|
+
include Google::Apis::Core::Hashable
|
3936
|
+
|
3937
|
+
def initialize(**args)
|
3938
|
+
update!(**args)
|
3939
|
+
end
|
3940
|
+
|
3941
|
+
# Update properties of this object
|
3942
|
+
def update!(**args)
|
3943
|
+
end
|
3944
|
+
end
|
3945
|
+
|
3904
3946
|
# A summary of import result. The UserEventImportSummary summarizes the import
|
3905
3947
|
# status for user events.
|
3906
3948
|
class GoogleCloudRetailV2alphaUserEventImportSummary
|
@@ -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.23.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 = "20211203"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -628,6 +628,18 @@ module Google
|
|
628
628
|
include Google::Apis::Core::JsonObjectSupport
|
629
629
|
end
|
630
630
|
|
631
|
+
class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
|
632
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
633
|
+
|
634
|
+
include Google::Apis::Core::JsonObjectSupport
|
635
|
+
end
|
636
|
+
|
637
|
+
class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
|
638
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
639
|
+
|
640
|
+
include Google::Apis::Core::JsonObjectSupport
|
641
|
+
end
|
642
|
+
|
631
643
|
class GoogleCloudRetailV2alphaUserEventImportSummary
|
632
644
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
633
645
|
|
@@ -1431,6 +1443,7 @@ module Google
|
|
1431
1443
|
class GoogleCloudRetailV2SearchResponse
|
1432
1444
|
# @private
|
1433
1445
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1446
|
+
collection :applied_controls, as: 'appliedControls'
|
1434
1447
|
property :attribution_token, as: 'attributionToken'
|
1435
1448
|
property :corrected_query, as: 'correctedQuery'
|
1436
1449
|
collection :facets, as: 'facets', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseFacet, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseFacet::Representation
|
@@ -1755,6 +1768,18 @@ module Google
|
|
1755
1768
|
end
|
1756
1769
|
end
|
1757
1770
|
|
1771
|
+
class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
|
1772
|
+
# @private
|
1773
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1774
|
+
end
|
1775
|
+
end
|
1776
|
+
|
1777
|
+
class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
|
1778
|
+
# @private
|
1779
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1780
|
+
end
|
1781
|
+
end
|
1782
|
+
|
1758
1783
|
class GoogleCloudRetailV2alphaUserEventImportSummary
|
1759
1784
|
# @private
|
1760
1785
|
class Representation < Google::Apis::Core::JsonRepresentation
|
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.23.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-12-
|
11
|
+
date: 2021-12-13 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.23.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: []
|