google-apis-retail_v2alpha 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_v2alpha/classes.rb +106 -95
- data/lib/google/apis/retail_v2alpha/gem_version.rb +2 -2
- data/lib/google/apis/retail_v2alpha/representations.rb +14 -0
- data/lib/google/apis/retail_v2alpha/service.rb +30 -26
- data/lib/google/apis/retail_v2alpha.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: ebc5348a1550e8bab9415592500f3d695802bdf85145487e866beea54fbe1f88
|
4
|
+
data.tar.gz: 772a44e0ef905d9179381a8c58f2d3bae90bd0e50662935b3b28fb48d25fe8f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b94beb2a88ad73b349a5b5e0ed3ac139100382e1809feb2c7dd71028676eb51104fe9b16ebb7605354f2cc343bebcbdf0aba6a677203bf647c840bfd49efaa2c
|
7
|
+
data.tar.gz: a3b7500ca53023d1125612220b2f3b1b27fc7917e77918a7bd98da3a24e2d455f8f2ea3a8433ef7e9f91582c9987825967c3921678c5a120647a176809565753
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-retail_v2alpha
|
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
|
@@ -646,8 +646,8 @@ module Google
|
|
646
646
|
|
647
647
|
# If set to true, and the Product is not found, the fulfillment information will
|
648
648
|
# still be processed and retained for at most 1 day and processed once the
|
649
|
-
# Product is created. If set to false,
|
650
|
-
#
|
649
|
+
# Product is created. If set to false, a NOT_FOUND error is returned if the
|
650
|
+
# Product is not found.
|
651
651
|
# Corresponds to the JSON property `allowMissing`
|
652
652
|
# @return [Boolean]
|
653
653
|
attr_accessor :allow_missing
|
@@ -870,8 +870,8 @@ module Google
|
|
870
870
|
# The color display names, which may be different from standard color family
|
871
871
|
# names, such as the color aliases used in the website frontend. Normally it is
|
872
872
|
# expected to have only 1 color. May consider using single "Mixed" instead of
|
873
|
-
# multiple values. A maximum of
|
874
|
-
# encoded string with a length limit of 128 characters. Otherwise, an
|
873
|
+
# multiple values. A maximum of 25 colors are allowed. Each value must be a UTF-
|
874
|
+
# 8 encoded string with a length limit of 128 characters. Otherwise, an
|
875
875
|
# INVALID_ARGUMENT error is returned. Google Merchant Center property [color](
|
876
876
|
# https://support.google.com/merchants/answer/6324487). Schema.org property [
|
877
877
|
# Product.color](https://schema.org/color).
|
@@ -907,9 +907,9 @@ module Google
|
|
907
907
|
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult>]
|
908
908
|
attr_accessor :completion_results
|
909
909
|
|
910
|
-
# Matched recent searches of this user.
|
911
|
-
# Contact Retail
|
912
|
-
# interested in enabling it. This feature is only available when
|
910
|
+
# Matched recent searches of this user. The maximum number of recent searches is
|
911
|
+
# 10. This field is a restricted feature. Contact Retail Search support team if
|
912
|
+
# you are interested in enabling it. This feature is only available when
|
913
913
|
# CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The
|
914
914
|
# recent searches satisfy the follow rules: * They are ordered from latest to
|
915
915
|
# oldest. * They are matched with CompleteQueryRequest.query case insensitively.
|
@@ -1080,6 +1080,20 @@ module Google
|
|
1080
1080
|
end
|
1081
1081
|
end
|
1082
1082
|
|
1083
|
+
# Metadata related to the EnrollSolution method. This will be returned by the
|
1084
|
+
# google.longrunning.Operation.metadata field.
|
1085
|
+
class GoogleCloudRetailV2alphaEnrollSolutionMetadata
|
1086
|
+
include Google::Apis::Core::Hashable
|
1087
|
+
|
1088
|
+
def initialize(**args)
|
1089
|
+
update!(**args)
|
1090
|
+
end
|
1091
|
+
|
1092
|
+
# Update properties of this object
|
1093
|
+
def update!(**args)
|
1094
|
+
end
|
1095
|
+
end
|
1096
|
+
|
1083
1097
|
# Configuration of destination for Export related errors.
|
1084
1098
|
class GoogleCloudRetailV2alphaExportErrorsConfig
|
1085
1099
|
include Google::Apis::Core::Hashable
|
@@ -1189,8 +1203,8 @@ module Google
|
|
1189
1203
|
|
1190
1204
|
# The IDs for this type, such as the store IDs for FulfillmentInfo.type.pickup-
|
1191
1205
|
# in-store or the region IDs for FulfillmentInfo.type.same-day-delivery. A
|
1192
|
-
# maximum of
|
1193
|
-
# limit of
|
1206
|
+
# maximum of 3000 values are allowed. Each value must be a string with a length
|
1207
|
+
# limit of 30 characters, matching the pattern [a-zA-Z0-9_-]+, such as "store1"
|
1194
1208
|
# or "REGION-2". Otherwise, an INVALID_ARGUMENT error is returned.
|
1195
1209
|
# Corresponds to the JSON property `placeIds`
|
1196
1210
|
# @return [Array<String>]
|
@@ -1709,9 +1723,9 @@ module Google
|
|
1709
1723
|
|
1710
1724
|
# String representing the destination to import for, all if left empty. List of
|
1711
1725
|
# possible values can be found here. [https://support.google.com/merchants/
|
1712
|
-
# answer/7501026
|
1713
|
-
#
|
1714
|
-
#
|
1726
|
+
# answer/7501026] List of allowed string values: "shopping-ads", "buy-on-google-
|
1727
|
+
# listings", "display-ads", "local-inventory -ads", "free-listings", "free-local-
|
1728
|
+
# listings" NOTE: The string values are case sensitive.
|
1715
1729
|
# Corresponds to the JSON property `destinations`
|
1716
1730
|
# @return [Array<String>]
|
1717
1731
|
attr_accessor :destinations
|
@@ -2040,12 +2054,10 @@ module Google
|
|
2040
2054
|
# product, or age of a customer. For example: `` "vendor": `"text": ["vendor123",
|
2041
2055
|
# "vendor456"]`, "lengths_cm": `"numbers":[2.3, 15.4]`, "heights_cm": `"numbers"
|
2042
2056
|
# :[8.1, 6.4]` ``. This field needs to pass all below criteria, otherwise an
|
2043
|
-
# INVALID_ARGUMENT error is returned: * Max entries count: 200
|
2044
|
-
#
|
2045
|
-
#
|
2046
|
-
#
|
2047
|
-
# key must match the pattern: a-zA-Z0-9*. For example, key0LikeThis or
|
2048
|
-
# KEY_1_LIKE_THIS.
|
2057
|
+
# INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must
|
2058
|
+
# be a UTF-8 encoded string with a length limit of 128 characters. * For
|
2059
|
+
# indexable attribute, the key must match the pattern: a-zA-Z0-9*. For example,
|
2060
|
+
# key0LikeThis or KEY_1_LIKE_THIS.
|
2049
2061
|
# Corresponds to the JSON property `attributes`
|
2050
2062
|
# @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>]
|
2051
2063
|
attr_accessor :attributes
|
@@ -2137,8 +2149,10 @@ module Google
|
|
2137
2149
|
# The timestamp when this product becomes unavailable for SearchService.Search.
|
2138
2150
|
# If it is set, the Product is not available for SearchService.Search after
|
2139
2151
|
# expire_time. However, the product can still be retrieved by ProductService.
|
2140
|
-
# GetProduct and ProductService.ListProducts.
|
2141
|
-
#
|
2152
|
+
# GetProduct and ProductService.ListProducts. expire_time must be later than
|
2153
|
+
# available_time and publish_time, otherwise an INVALID_ARGUMENT error is thrown.
|
2154
|
+
# Google Merchant Center property [expiration_date](https://support.google.com/
|
2155
|
+
# merchants/answer/6324499).
|
2142
2156
|
# Corresponds to the JSON property `expireTime`
|
2143
2157
|
# @return [String]
|
2144
2158
|
attr_accessor :expire_time
|
@@ -2152,7 +2166,8 @@ module Google
|
|
2152
2166
|
|
2153
2167
|
# The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8
|
2154
2168
|
# encoded string with a length limit of 128 characters. Otherwise, an
|
2155
|
-
# INVALID_ARGUMENT error is returned.
|
2169
|
+
# INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise,
|
2170
|
+
# an INVALID_ARGUMENT error is returned. Google Merchant Center property [gtin](
|
2156
2171
|
# https://support.google.com/merchants/answer/6324461). Schema.org property [
|
2157
2172
|
# Product.isbn](https://schema.org/isbn) or [Product.gtin8](https://schema.org/
|
2158
2173
|
# gtin8) or [Product.gtin12](https://schema.org/gtin12) or [Product.gtin13](
|
@@ -2191,7 +2206,7 @@ module Google
|
|
2191
2206
|
# @return [String]
|
2192
2207
|
attr_accessor :language_code
|
2193
2208
|
|
2194
|
-
# The material of the product. For example, "leather", "wooden". A maximum of
|
2209
|
+
# The material of the product. For example, "leather", "wooden". A maximum of 20
|
2195
2210
|
# values are allowed. Each value must be a UTF-8 encoded string with a length
|
2196
2211
|
# limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
2197
2212
|
# Google Merchant Center property [material](https://support.google.com/
|
@@ -2203,13 +2218,12 @@ module Google
|
|
2203
2218
|
|
2204
2219
|
# Immutable. Full resource name of the product, such as `projects/*/locations/
|
2205
2220
|
# global/catalogs/default_catalog/branches/default_branch/products/product_id`.
|
2206
|
-
# The branch ID must be "default_branch".
|
2207
2221
|
# Corresponds to the JSON property `name`
|
2208
2222
|
# @return [String]
|
2209
2223
|
attr_accessor :name
|
2210
2224
|
|
2211
2225
|
# The pattern or graphic print of the product. For example, "striped", "polka
|
2212
|
-
# dot", "paisley". A maximum of
|
2226
|
+
# dot", "paisley". A maximum of 20 values are allowed per Product. Each value
|
2213
2227
|
# must be a UTF-8 encoded string with a length limit of 128 characters.
|
2214
2228
|
# Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center
|
2215
2229
|
# property [pattern](https://support.google.com/merchants/answer/6324483).
|
@@ -2265,8 +2279,9 @@ module Google
|
|
2265
2279
|
# attribute, as specified in attributes. For Type.PRIMARY and Type.COLLECTION,
|
2266
2280
|
# the following fields are always returned in SearchResponse by default: * name
|
2267
2281
|
# For Type.VARIANT, the following fields are always returned in by default: *
|
2268
|
-
# name * color_info Maximum number of paths is
|
2269
|
-
# INVALID_ARGUMENT error is returned.
|
2282
|
+
# name * color_info Maximum number of paths is 30. Otherwise, an
|
2283
|
+
# INVALID_ARGUMENT error is returned. Note: Returning more fields in
|
2284
|
+
# SearchResponse may increase response payload size and serving latency.
|
2270
2285
|
# Corresponds to the JSON property `retrievableFields`
|
2271
2286
|
# @return [String]
|
2272
2287
|
attr_accessor :retrievable_fields
|
@@ -2764,8 +2779,8 @@ module Google
|
|
2764
2779
|
|
2765
2780
|
# If set to true, and the Product is not found, the fulfillment information will
|
2766
2781
|
# still be processed and retained for at most 1 day and processed once the
|
2767
|
-
# Product is created. If set to false,
|
2768
|
-
#
|
2782
|
+
# Product is created. If set to false, a NOT_FOUND error is returned if the
|
2783
|
+
# Product is not found.
|
2769
2784
|
# Corresponds to the JSON property `allowMissing`
|
2770
2785
|
# @return [Boolean]
|
2771
2786
|
attr_accessor :allow_missing
|
@@ -2866,9 +2881,9 @@ module Google
|
|
2866
2881
|
|
2867
2882
|
# The filter syntax consists of an expression language for constructing a
|
2868
2883
|
# predicate from one or more fields of the products being filtered. Filter
|
2869
|
-
# expression is case-sensitive. See more details at this [user guide](
|
2870
|
-
#
|
2871
|
-
# INVALID_ARGUMENT is returned.
|
2884
|
+
# expression is case-sensitive. See more details at this [user guide](https://
|
2885
|
+
# cloud.google.com/retail/docs/filter-and-order#filter). If this field is
|
2886
|
+
# unrecognizable, an INVALID_ARGUMENT is returned.
|
2872
2887
|
# Corresponds to the JSON property `filter`
|
2873
2888
|
# @return [String]
|
2874
2889
|
attr_accessor :filter
|
@@ -2883,9 +2898,9 @@ module Google
|
|
2883
2898
|
|
2884
2899
|
# The order in which products are returned. Products can be ordered by a field
|
2885
2900
|
# in an Product object. Leave it unset if ordered by relevance. OrderBy
|
2886
|
-
# expression is case-sensitive. See more details at this [user guide](
|
2887
|
-
#
|
2888
|
-
# INVALID_ARGUMENT is returned.
|
2901
|
+
# expression is case-sensitive. See more details at this [user guide](https://
|
2902
|
+
# cloud.google.com/retail/docs/filter-and-order#order). If this field is
|
2903
|
+
# unrecognizable, an INVALID_ARGUMENT is returned.
|
2889
2904
|
# Corresponds to the JSON property `orderBy`
|
2890
2905
|
# @return [String]
|
2891
2906
|
attr_accessor :order_by
|
@@ -2929,8 +2944,8 @@ module Google
|
|
2929
2944
|
|
2930
2945
|
# The relevance threshold of the search results. Defaults to RelevanceThreshold.
|
2931
2946
|
# HIGH, which means only the most relevant results are shown, and the least
|
2932
|
-
# number of results are returned. See more details at this [user guide](
|
2933
|
-
#
|
2947
|
+
# number of results are returned. See more details at this [user guide](https://
|
2948
|
+
# cloud.google.com/retail/docs/result-size#relevance_thresholding).
|
2934
2949
|
# Corresponds to the JSON property `relevanceThreshold`
|
2935
2950
|
# @return [String]
|
2936
2951
|
attr_accessor :relevance_threshold
|
@@ -2943,25 +2958,25 @@ module Google
|
|
2943
2958
|
# The keys to fetch and rollup the matching variant Products attributes. The
|
2944
2959
|
# attributes from all the matching variant Products are merged and de-duplicated.
|
2945
2960
|
# Notice that rollup variant Products attributes will lead to extra query
|
2946
|
-
# latency. Maximum number of keys is 10. For
|
2947
|
-
#
|
2948
|
-
#
|
2949
|
-
#
|
2950
|
-
#
|
2951
|
-
#
|
2952
|
-
#
|
2953
|
-
# shipToStore.id, where id is any FulfillmentInfo.
|
2954
|
-
#
|
2955
|
-
# for type
|
2956
|
-
# id is any FulfillmentInfo.
|
2957
|
-
# * customFulfillment1.id, where id is any FulfillmentInfo.
|
2958
|
-
# FulfillmentInfo.
|
2959
|
-
# FulfillmentInfo.
|
2960
|
-
# customFulfillment3.id, where id is any FulfillmentInfo.
|
2961
|
-
# FulfillmentInfo.
|
2962
|
-
# FulfillmentInfo.
|
2963
|
-
# customFulfillment5.id, where id is any FulfillmentInfo.
|
2964
|
-
# FulfillmentInfo.
|
2961
|
+
# latency. Maximum number of keys is 10. For FulfillmentInfo, a fulfillment type
|
2962
|
+
# and a fulfillment ID must be provided in the format of "fulfillmentType.
|
2963
|
+
# fulfillmentId". E.g., in "pickupInStore.store123", "pickupInStore" is
|
2964
|
+
# fulfillment type and "store123" is the store ID. Supported keys are: *
|
2965
|
+
# colorFamilies * price * originalPrice * discount * attributes.key, where key
|
2966
|
+
# is any key in the Product.attributes map. * pickupInStore.id, where id is any
|
2967
|
+
# FulfillmentInfo.place_ids for FulfillmentInfo.type "pickup-in-store". *
|
2968
|
+
# shipToStore.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.
|
2969
|
+
# type "ship-to-store". * sameDayDelivery.id, where id is any FulfillmentInfo.
|
2970
|
+
# place_ids for FulfillmentInfo.type "same-day-delivery". * nextDayDelivery.id,
|
2971
|
+
# where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type "next-day-
|
2972
|
+
# delivery". * customFulfillment1.id, where id is any FulfillmentInfo.place_ids
|
2973
|
+
# for FulfillmentInfo.type "custom-type-1". * customFulfillment2.id, where id is
|
2974
|
+
# any FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-2". *
|
2975
|
+
# customFulfillment3.id, where id is any FulfillmentInfo.place_ids for
|
2976
|
+
# FulfillmentInfo.type "custom-type-3". * customFulfillment4.id, where id is any
|
2977
|
+
# FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-4". *
|
2978
|
+
# customFulfillment5.id, where id is any FulfillmentInfo.place_ids for
|
2979
|
+
# FulfillmentInfo.type "custom-type-5". If this field is set to an invalid value
|
2965
2980
|
# other than these, an INVALID_ARGUMENT error is returned.
|
2966
2981
|
# Corresponds to the JSON property `variantRollupKeys`
|
2967
2982
|
# @return [Array<String>]
|
@@ -3046,8 +3061,8 @@ module Google
|
|
3046
3061
|
# An expression which specifies a boost condition. The syntax and supported
|
3047
3062
|
# fields are the same as a filter expression. See SearchRequest.filter for
|
3048
3063
|
# detail syntax and limitations. Examples: * To boost products with product ID "
|
3049
|
-
# product_1" or "product_2", and color "Red" or "Blue": *(id: ANY("product_1", "
|
3050
|
-
# product_2"))
|
3064
|
+
# product_1" or "product_2", and color "Red" or "Blue": * (id: ANY("product_1", "
|
3065
|
+
# product_2")) AND (colorFamilies: ANY("Red","Blue"))
|
3051
3066
|
# Corresponds to the JSON property `condition`
|
3052
3067
|
# @return [String]
|
3053
3068
|
attr_accessor :condition
|
@@ -3169,33 +3184,13 @@ module Google
|
|
3169
3184
|
|
3170
3185
|
# Required. Supported textual and numerical facet keys in Product object, over
|
3171
3186
|
# which the facet values are computed. Facet key is case-sensitive. Allowed
|
3172
|
-
# facet keys when FacetKey.query is not specified: * textual_field =
|
3173
|
-
#
|
3174
|
-
#
|
3175
|
-
#
|
3176
|
-
#
|
3177
|
-
#
|
3178
|
-
# *
|
3179
|
-
# patterns. * | "patterns"; *# The Product.conditions. * | "conditions"; *# The
|
3180
|
-
# textual custom attribute in Product object. Key can * *# be any key in the
|
3181
|
-
# Product.attributes map * *# if the attribute values are textual. * *# map. * |
|
3182
|
-
# "attributes.key"; *# The FulfillmentInfo.ids for type *# FulfillmentInfo.Type.
|
3183
|
-
# PICKUP_IN_STORE. * | "pickupInStore"; *# The FulfillmentInfo.ids for type *#
|
3184
|
-
# FulfillmentInfo.Type.SHIP_TO_STORE. * | "shipToStore"; *# The FulfillmentInfo.
|
3185
|
-
# ids for type *# FulfillmentInfo.Type.SAME_DAY_DELIVERY. * | "sameDayDelivery";
|
3186
|
-
# *# The FulfillmentInfo.ids for type *# FulfillmentInfo.Type.NEXT_DAY_DELIVERY.
|
3187
|
-
# * | "nextDayDelivery"; *# The FulfillmentInfo.ids for type *# FulfillmentInfo.
|
3188
|
-
# Type.CUSTOM_TYPE_1. * | "customFulfillment1"; *# The FulfillmentInfo.ids for
|
3189
|
-
# type *# FulfillmentInfo.Type.CUSTOM_TYPE_2. * | "customFulfillment2"; *# The
|
3190
|
-
# FulfillmentInfo.ids for type *# FulfillmentInfo.Type.CUSTOM_TYPE_3. * | "
|
3191
|
-
# customFulfillment3"; *# The FulfillmentInfo.ids for type *# FulfillmentInfo.
|
3192
|
-
# Type.CUSTOM_TYPE_4. * | "customFulfillment4"; *# The FulfillmentInfo.ids for
|
3193
|
-
# type *# FulfillmentInfo.Type.CUSTOM_TYPE_5. * | "customFulfillment5"; *
|
3194
|
-
# numerical_field = *# The PriceInfo.price. * "price"; *# The discount. Computed
|
3195
|
-
# by (original_price-price)/price * "discount"; *# The Rating.average_rating. * "
|
3196
|
-
# rating"; *# The Rating.rating_count. * "ratingCount"; *# The numerical custom
|
3197
|
-
# attribute in Product object. Key can * *# be any key in the Product.attributes
|
3198
|
-
# map * *# if the attribute values are numerical. * | "attributes.key";
|
3187
|
+
# facet keys when FacetKey.query is not specified: * textual_field = * "brands" *
|
3188
|
+
# "categories" * "genders" * "ageGroups" * "availability" * "colorFamilies" * "
|
3189
|
+
# colors" * "sizes" * "materials" * "patterns" * "conditions" * "attributes.key"
|
3190
|
+
# * "pickupInStore" * "shipToStore" * "sameDayDelivery" * "nextDayDelivery" * "
|
3191
|
+
# customFulfillment1" * "customFulfillment2" * "customFulfillment3" * "
|
3192
|
+
# customFulfillment4" * "customFulfillment5" * numerical_field = * "price" * "
|
3193
|
+
# discount" * "rating" * "ratingCount" * "attributes.key"
|
3199
3194
|
# Corresponds to the JSON property `key`
|
3200
3195
|
# @return [String]
|
3201
3196
|
attr_accessor :key
|
@@ -3205,7 +3200,7 @@ module Google
|
|
3205
3200
|
# which means order by Facet.FacetValue.value descending. Only applies to
|
3206
3201
|
# textual facets. If not set, textual values are sorted in [natural order](https:
|
3207
3202
|
# //en.wikipedia.org/wiki/Natural_sort_order); numerical intervals are sorted in
|
3208
|
-
# the order given by FacetSpec.FacetKey.intervals; FulfillmentInfo.
|
3203
|
+
# the order given by FacetSpec.FacetKey.intervals; FulfillmentInfo.place_ids are
|
3209
3204
|
# sorted in the order given by FacetSpec.FacetKey.restricted_values.
|
3210
3205
|
# Corresponds to the JSON property `orderBy`
|
3211
3206
|
# @return [String]
|
@@ -3271,6 +3266,14 @@ module Google
|
|
3271
3266
|
# @return [String]
|
3272
3267
|
attr_accessor :condition
|
3273
3268
|
|
3269
|
+
# Whether to pin unexpanded results. If this field is set to true, unexpanded
|
3270
|
+
# products are always at the top of the search results, followed by the expanded
|
3271
|
+
# results.
|
3272
|
+
# Corresponds to the JSON property `pinUnexpandedResults`
|
3273
|
+
# @return [Boolean]
|
3274
|
+
attr_accessor :pin_unexpanded_results
|
3275
|
+
alias_method :pin_unexpanded_results?, :pin_unexpanded_results
|
3276
|
+
|
3274
3277
|
def initialize(**args)
|
3275
3278
|
update!(**args)
|
3276
3279
|
end
|
@@ -3278,6 +3281,7 @@ module Google
|
|
3278
3281
|
# Update properties of this object
|
3279
3282
|
def update!(**args)
|
3280
3283
|
@condition = args[:condition] if args.key?(:condition)
|
3284
|
+
@pin_unexpanded_results = args[:pin_unexpanded_results] if args.key?(:pin_unexpanded_results)
|
3281
3285
|
end
|
3282
3286
|
end
|
3283
3287
|
|
@@ -3424,6 +3428,12 @@ module Google
|
|
3424
3428
|
attr_accessor :expanded_query
|
3425
3429
|
alias_method :expanded_query?, :expanded_query
|
3426
3430
|
|
3431
|
+
# Number of pinned results. This field will only be set when expansion happens
|
3432
|
+
# and SearchRequest.QueryExpansionSpec.pin_unexpanded_results is set to true.
|
3433
|
+
# Corresponds to the JSON property `pinnedResultCount`
|
3434
|
+
# @return [Fixnum]
|
3435
|
+
attr_accessor :pinned_result_count
|
3436
|
+
|
3427
3437
|
def initialize(**args)
|
3428
3438
|
update!(**args)
|
3429
3439
|
end
|
@@ -3431,6 +3441,7 @@ module Google
|
|
3431
3441
|
# Update properties of this object
|
3432
3442
|
def update!(**args)
|
3433
3443
|
@expanded_query = args[:expanded_query] if args.key?(:expanded_query)
|
3444
|
+
@pinned_result_count = args[:pinned_result_count] if args.key?(:pinned_result_count)
|
3434
3445
|
end
|
3435
3446
|
end
|
3436
3447
|
|
@@ -3472,10 +3483,10 @@ module Google
|
|
3472
3483
|
# protobuf.ListValue. For example, if there are two variants with colors "red"
|
3473
3484
|
# and "blue", the rollup values are ` key: "colorFamilies" value ` list_value `
|
3474
3485
|
# values ` string_value: "red" ` values ` string_value: "blue" ` ` ` ` For
|
3475
|
-
#
|
3476
|
-
#
|
3477
|
-
#
|
3478
|
-
#
|
3486
|
+
# FulfillmentInfo, the rollup values is a double value with type google.protobuf.
|
3487
|
+
# Value. For example, ``key: "pickupInStore.store1" value ` number_value: 10 ```
|
3488
|
+
# means a there are 10 variants in this product are available in the store "
|
3489
|
+
# store1".
|
3479
3490
|
# Corresponds to the JSON property `variantRollupValues`
|
3480
3491
|
# @return [Hash<String,Object>]
|
3481
3492
|
attr_accessor :variant_rollup_values
|
@@ -3544,8 +3555,8 @@ module Google
|
|
3544
3555
|
|
3545
3556
|
# If set to true, and the Product with name Product.name is not found, the
|
3546
3557
|
# inventory update will still be processed and retained for at most 1 day until
|
3547
|
-
# the Product is created. If set to false,
|
3548
|
-
#
|
3558
|
+
# the Product is created. If set to false, a NOT_FOUND error is returned if the
|
3559
|
+
# Product is not found.
|
3549
3560
|
# Corresponds to the JSON property `allowMissing`
|
3550
3561
|
# @return [Boolean]
|
3551
3562
|
attr_accessor :allow_missing
|
@@ -3629,7 +3640,7 @@ module Google
|
|
3629
3640
|
# @return [String]
|
3630
3641
|
attr_accessor :attribution_token
|
3631
3642
|
|
3632
|
-
# The
|
3643
|
+
# The ID or name of the associated shopping cart. This ID is used to associate
|
3633
3644
|
# multiple items added or present in the cart before purchase. This can only be
|
3634
3645
|
# set for `add-to-cart`, `purchase-complete`, or `shopping-cart-page-view`
|
3635
3646
|
# events.
|
@@ -3710,7 +3721,7 @@ module Google
|
|
3710
3721
|
# @return [Array<String>]
|
3711
3722
|
attr_accessor :page_categories
|
3712
3723
|
|
3713
|
-
# A unique
|
3724
|
+
# A unique ID of a web page view. This should be kept the same for all user
|
3714
3725
|
# events triggered from the same pageview. For example, an item detail page view
|
3715
3726
|
# could trigger multiple events as the user is browsing the page. The `
|
3716
3727
|
# pageViewId` property should be kept the same for all these events so that they
|
@@ -3724,11 +3735,11 @@ module Google
|
|
3724
3735
|
# The main product details related to the event. This field is required for the
|
3725
3736
|
# following event types: * `add-to-cart` * `detail-page-view` * `purchase-
|
3726
3737
|
# complete` In a `search` event, this field represents the products returned to
|
3727
|
-
# the end user on the current page (the end user may have not finished
|
3738
|
+
# the end user on the current page (the end user may have not finished browsing
|
3728
3739
|
# the whole page yet). When a new page is returned to the end user, after
|
3729
3740
|
# pagination/filtering/ordering even for the same query, a new `search` event
|
3730
3741
|
# with different product_details is desired. The end user may have not finished
|
3731
|
-
#
|
3742
|
+
# browsing the whole page yet.
|
3732
3743
|
# Corresponds to the JSON property `productDetails`
|
3733
3744
|
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductDetail>]
|
3734
3745
|
attr_accessor :product_details
|
@@ -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.
|
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
|
@@ -238,6 +238,12 @@ module Google
|
|
238
238
|
include Google::Apis::Core::JsonObjectSupport
|
239
239
|
end
|
240
240
|
|
241
|
+
class GoogleCloudRetailV2alphaEnrollSolutionMetadata
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
|
+
|
244
|
+
include Google::Apis::Core::JsonObjectSupport
|
245
|
+
end
|
246
|
+
|
241
247
|
class GoogleCloudRetailV2alphaExportErrorsConfig
|
242
248
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
249
|
|
@@ -1077,6 +1083,12 @@ module Google
|
|
1077
1083
|
end
|
1078
1084
|
end
|
1079
1085
|
|
1086
|
+
class GoogleCloudRetailV2alphaEnrollSolutionMetadata
|
1087
|
+
# @private
|
1088
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1089
|
+
end
|
1090
|
+
end
|
1091
|
+
|
1080
1092
|
class GoogleCloudRetailV2alphaExportErrorsConfig
|
1081
1093
|
# @private
|
1082
1094
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1586,6 +1598,7 @@ module Google
|
|
1586
1598
|
# @private
|
1587
1599
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1588
1600
|
property :condition, as: 'condition'
|
1601
|
+
property :pin_unexpanded_results, as: 'pinUnexpandedResults'
|
1589
1602
|
end
|
1590
1603
|
end
|
1591
1604
|
|
@@ -1630,6 +1643,7 @@ module Google
|
|
1630
1643
|
# @private
|
1631
1644
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1632
1645
|
property :expanded_query, as: 'expandedQuery'
|
1646
|
+
property :pinned_result_count, :numeric_string => true, as: 'pinnedResultCount'
|
1633
1647
|
end
|
1634
1648
|
end
|
1635
1649
|
|
@@ -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
|
@@ -590,7 +594,6 @@ module Google
|
|
590
594
|
# @param [String] name
|
591
595
|
# Immutable. Full resource name of the product, such as `projects/*/locations/
|
592
596
|
# global/catalogs/default_catalog/branches/default_branch/products/product_id`.
|
593
|
-
# The branch ID must be "default_branch".
|
594
597
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProduct] google_cloud_retail_v2alpha_product_object
|
595
598
|
# @param [Boolean] allow_missing
|
596
599
|
# If set to true, and the Product is not found, a new Product will be created.
|
@@ -638,8 +641,9 @@ module Google
|
|
638
641
|
# enqueued and processed downstream. As a consequence, when a response is
|
639
642
|
# returned, the removed place IDs are not immediately manifested in the Product
|
640
643
|
# queried by GetProduct or ListProducts. This feature is only available for
|
641
|
-
# users who have Retail Search enabled.
|
642
|
-
#
|
644
|
+
# users who have Retail Search enabled. Please submit a form [here](https://
|
645
|
+
# cloud.google.com/contact) to contact cloud sales if you are interested in
|
646
|
+
# using Retail Search.
|
643
647
|
# @param [String] product
|
644
648
|
# Required. Full resource name of Product, such as `projects/*/locations/global/
|
645
649
|
# catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
|
@@ -691,13 +695,12 @@ module Google
|
|
691
695
|
# UpdateProductRequest.set_mask, then any existing inventory information will be
|
692
696
|
# preserved. Pre-existing inventory information can only be updated with
|
693
697
|
# SetInventory, AddFulfillmentPlaces, and RemoveFulfillmentPlaces. This feature
|
694
|
-
# is only available for users who have Retail Search enabled.
|
695
|
-
#
|
696
|
-
# Retail Search.
|
698
|
+
# is only available for users who have Retail Search enabled. Please submit a
|
699
|
+
# form [here](https://cloud.google.com/contact) to contact cloud sales if you
|
700
|
+
# are interested in using Retail Search.
|
697
701
|
# @param [String] name
|
698
702
|
# Immutable. Full resource name of the product, such as `projects/*/locations/
|
699
703
|
# global/catalogs/default_catalog/branches/default_branch/products/product_id`.
|
700
|
-
# The branch ID must be "default_branch".
|
701
704
|
# @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSetInventoryRequest] google_cloud_retail_v2alpha_set_inventory_request_object
|
702
705
|
# @param [String] fields
|
703
706
|
# Selector specifying which fields to include in a partial response.
|
@@ -730,8 +733,9 @@ module Google
|
|
730
733
|
|
731
734
|
# Bulk import of processed completion dataset. Request processing may be
|
732
735
|
# synchronous. Partial updating is not supported. This feature is only available
|
733
|
-
# for users who have Retail Search enabled.
|
734
|
-
#
|
736
|
+
# for users who have Retail Search enabled. Please submit a form [here](https://
|
737
|
+
# cloud.google.com/contact) to contact cloud sales if you are interested in
|
738
|
+
# using Retail Search.
|
735
739
|
# @param [String] parent
|
736
740
|
# Required. The catalog which the suggestions dataset belongs to. Format: `
|
737
741
|
# projects/1234/locations/global/catalogs/default_catalog`.
|
@@ -882,8 +886,8 @@ module Google
|
|
882
886
|
end
|
883
887
|
|
884
888
|
# Performs a search. This feature is only available for users who have Retail
|
885
|
-
# Search enabled.
|
886
|
-
# you are interested in using Retail Search.
|
889
|
+
# Search enabled. Please submit a form [here](https://cloud.google.com/contact)
|
890
|
+
# to contact cloud sales if you are interested in using Retail Search.
|
887
891
|
# @param [String] placement
|
888
892
|
# Required. The resource name of the search engine placement, such as `projects/*
|
889
893
|
# /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 = 'V2alpha'
|
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_v2alpha
|
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_v2alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.17.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-retail_v2alpha
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|