google-apis-retail_v2beta 0.70.0 → 0.72.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d889ae3f00f25e33e44cc7e59169457513c984932350977d1036ea239dc0ac5b
|
4
|
+
data.tar.gz: eb26e00ca9c842b641749f7201721ef9515ed28003ea953aa7836dea01504e14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c7f2bd9028cac013424fd8ed8d28895819a810a16db1860dd09ec1a905286e01905d91d4a5ac96e73213493c6bbdf243c9c179f482959b8adeeb8cffd0909a9
|
7
|
+
data.tar.gz: 5f617bf166e3e40c664f6c4deabb4a15d85c2247a92efa20d65ae394c881148e9d2e9d3abd13ed8b5beed86d972108f959ead1ee96dd686689c918a29f3f3994
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-retail_v2beta
|
2
2
|
|
3
|
+
### v0.72.0 (2023-04-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230413
|
6
|
+
|
7
|
+
### v0.71.0 (2023-04-16)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230406
|
10
|
+
|
3
11
|
### v0.70.0 (2023-03-26)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230321
|
@@ -1326,7 +1326,7 @@ module Google
|
|
1326
1326
|
|
1327
1327
|
# Represents a link between a Merchant Center account and a branch. Once a link
|
1328
1328
|
# is established, products from the linked merchant center account will be
|
1329
|
-
# streamed to the linked branch.
|
1329
|
+
# streamed to the linked branch.
|
1330
1330
|
class GoogleCloudRetailV2alphaMerchantCenterAccountLink
|
1331
1331
|
include Google::Apis::Core::Hashable
|
1332
1332
|
|
@@ -1384,7 +1384,7 @@ module Google
|
|
1384
1384
|
# @return [String]
|
1385
1385
|
attr_accessor :name
|
1386
1386
|
|
1387
|
-
# Output only.
|
1387
|
+
# Output only. Google Cloud project ID.
|
1388
1388
|
# Corresponds to the JSON property `projectId`
|
1389
1389
|
# @return [String]
|
1390
1390
|
attr_accessor :project_id
|
@@ -3162,9 +3162,9 @@ module Google
|
|
3162
3162
|
# The fully qualified resource name of the experiment that provides the serving
|
3163
3163
|
# config under test, should an active experiment exist. For example: `projects/*/
|
3164
3164
|
# locations/global/catalogs/default_catalog/experiments/experiment_id`
|
3165
|
-
# Corresponds to the JSON property `
|
3165
|
+
# Corresponds to the JSON property `experiment`
|
3166
3166
|
# @return [String]
|
3167
|
-
attr_accessor :
|
3167
|
+
attr_accessor :experiment
|
3168
3168
|
|
3169
3169
|
# Metadata for active serving config A/B tests.
|
3170
3170
|
# Corresponds to the JSON property `servingConfigExperiment`
|
@@ -3177,7 +3177,7 @@ module Google
|
|
3177
3177
|
|
3178
3178
|
# Update properties of this object
|
3179
3179
|
def update!(**args)
|
3180
|
-
@
|
3180
|
+
@experiment = args[:experiment] if args.key?(:experiment)
|
3181
3181
|
@serving_config_experiment = args[:serving_config_experiment] if args.key?(:serving_config_experiment)
|
3182
3182
|
end
|
3183
3183
|
end
|
@@ -3980,7 +3980,7 @@ module Google
|
|
3980
3980
|
|
3981
3981
|
# Represents a link between a Merchant Center account and a branch. Once a link
|
3982
3982
|
# is established, products from the linked merchant center account will be
|
3983
|
-
# streamed to the linked branch.
|
3983
|
+
# streamed to the linked branch.
|
3984
3984
|
class GoogleCloudRetailV2betaMerchantCenterAccountLink
|
3985
3985
|
include Google::Apis::Core::Hashable
|
3986
3986
|
|
@@ -4038,7 +4038,7 @@ module Google
|
|
4038
4038
|
# @return [String]
|
4039
4039
|
attr_accessor :name
|
4040
4040
|
|
4041
|
-
# Output only.
|
4041
|
+
# Output only. Google Cloud project ID.
|
4042
4042
|
# Corresponds to the JSON property `projectId`
|
4043
4043
|
# @return [String]
|
4044
4044
|
attr_accessor :project_id
|
@@ -5999,13 +5999,6 @@ module Google
|
|
5999
5999
|
class GoogleCloudRetailV2betaSearchRequest
|
6000
6000
|
include Google::Apis::Core::Hashable
|
6001
6001
|
|
6002
|
-
# Represents the banner in request, for projects that combine banners. For
|
6003
|
-
# example: a retailer can sell products under different banners like retailer-
|
6004
|
-
# main, retailer-baby, retailer-meds, etc. under one project.
|
6005
|
-
# Corresponds to the JSON property `banner`
|
6006
|
-
# @return [String]
|
6007
|
-
attr_accessor :banner
|
6008
|
-
|
6009
6002
|
# Boost specification to boost certain items.
|
6010
6003
|
# Corresponds to the JSON property `boostSpec`
|
6011
6004
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpec]
|
@@ -6034,8 +6027,16 @@ module Google
|
|
6034
6027
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestDynamicFacetSpec]
|
6035
6028
|
attr_accessor :dynamic_facet_spec
|
6036
6029
|
|
6030
|
+
# The entity for customers that may run multiple different entities, domains,
|
6031
|
+
# sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`
|
6032
|
+
# , `youtube.com`, etc. If this is set, it should be exactly matched with
|
6033
|
+
# UserEvent.entity to get search results boosted by entity.
|
6034
|
+
# Corresponds to the JSON property `entity`
|
6035
|
+
# @return [String]
|
6036
|
+
attr_accessor :entity
|
6037
|
+
|
6037
6038
|
# Facet specifications for faceted search. If empty, no facets are returned. A
|
6038
|
-
# maximum of
|
6039
|
+
# maximum of 200 values are allowed. Otherwise, an INVALID_ARGUMENT error is
|
6039
6040
|
# returned.
|
6040
6041
|
# Corresponds to the JSON property `facetSpecs`
|
6041
6042
|
# @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestFacetSpec>]
|
@@ -6082,7 +6083,7 @@ module Google
|
|
6082
6083
|
# @return [String]
|
6083
6084
|
attr_accessor :order_by
|
6084
6085
|
|
6085
|
-
# The categories associated with a category page.
|
6086
|
+
# The categories associated with a category page. Must be set for category
|
6086
6087
|
# navigation queries to achieve good search quality. The format should be the
|
6087
6088
|
# same as UserEvent.page_categories; To represent full path of category, use '>'
|
6088
6089
|
# sign to separate different hierarchies. If '>' is part of the category name,
|
@@ -6187,11 +6188,11 @@ module Google
|
|
6187
6188
|
|
6188
6189
|
# Update properties of this object
|
6189
6190
|
def update!(**args)
|
6190
|
-
@banner = args[:banner] if args.key?(:banner)
|
6191
6191
|
@boost_spec = args[:boost_spec] if args.key?(:boost_spec)
|
6192
6192
|
@branch = args[:branch] if args.key?(:branch)
|
6193
6193
|
@canonical_filter = args[:canonical_filter] if args.key?(:canonical_filter)
|
6194
6194
|
@dynamic_facet_spec = args[:dynamic_facet_spec] if args.key?(:dynamic_facet_spec)
|
6195
|
+
@entity = args[:entity] if args.key?(:entity)
|
6195
6196
|
@facet_specs = args[:facet_specs] if args.key?(:facet_specs)
|
6196
6197
|
@filter = args[:filter] if args.key?(:filter)
|
6197
6198
|
@labels = args[:labels] if args.key?(:labels)
|
@@ -6391,13 +6392,15 @@ module Google
|
|
6391
6392
|
# @return [Array<String>]
|
6392
6393
|
attr_accessor :contains
|
6393
6394
|
|
6394
|
-
#
|
6395
|
-
#
|
6396
|
-
#
|
6397
|
-
#
|
6398
|
-
#
|
6399
|
-
#
|
6400
|
-
#
|
6395
|
+
# Set only if values should be bucketized into intervals. Must be set for facets
|
6396
|
+
# with numerical values. Must not be set for facet with text values. Maximum
|
6397
|
+
# number of intervals is 40. For all numerical facet keys that appear in the
|
6398
|
+
# list of products from the catalog, the percentiles 0, 10, 30, 50, 70, 90 and
|
6399
|
+
# 100 are computed from their distribution weekly. If the model assigns a high
|
6400
|
+
# score to a numerical facet key and its intervals are not specified in the
|
6401
|
+
# search request, these percentiles will become the bounds for its intervals and
|
6402
|
+
# will be returned in the response. If the facet key intervals are specified in
|
6403
|
+
# the request, then the specified intervals will be returned instead.
|
6401
6404
|
# Corresponds to the JSON property `intervals`
|
6402
6405
|
# @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval>]
|
6403
6406
|
attr_accessor :intervals
|
@@ -7214,13 +7217,6 @@ module Google
|
|
7214
7217
|
# @return [String]
|
7215
7218
|
attr_accessor :attribution_token
|
7216
7219
|
|
7217
|
-
# Represents the banner of the user event, for projects that combine banners.
|
7218
|
-
# For example: retailer can have events from multiple banners like retailer-main,
|
7219
|
-
# retailer-baby, retailer-meds, etc. under one project.
|
7220
|
-
# Corresponds to the JSON property `banner`
|
7221
|
-
# @return [String]
|
7222
|
-
attr_accessor :banner
|
7223
|
-
|
7224
7220
|
# The ID or name of the associated shopping cart. This ID is used to associate
|
7225
7221
|
# multiple items added or present in the cart before purchase. This can only be
|
7226
7222
|
# set for `add-to-cart`, `purchase-complete`, or `shopping-cart-page-view`
|
@@ -7235,6 +7231,14 @@ module Google
|
|
7235
7231
|
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionDetail]
|
7236
7232
|
attr_accessor :completion_detail
|
7237
7233
|
|
7234
|
+
# The entity for customers that may run multiple different entities, domains,
|
7235
|
+
# sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`
|
7236
|
+
# , `youtube.com`, etc. It is recommended to set this field to get better per-
|
7237
|
+
# entity search, completion and prediction results.
|
7238
|
+
# Corresponds to the JSON property `entity`
|
7239
|
+
# @return [String]
|
7240
|
+
attr_accessor :entity
|
7241
|
+
|
7238
7242
|
# Only required for UserEventService.ImportUserEvents method. Timestamp of when
|
7239
7243
|
# the user event happened.
|
7240
7244
|
# Corresponds to the JSON property `eventTime`
|
@@ -7388,9 +7392,9 @@ module Google
|
|
7388
7392
|
def update!(**args)
|
7389
7393
|
@attributes = args[:attributes] if args.key?(:attributes)
|
7390
7394
|
@attribution_token = args[:attribution_token] if args.key?(:attribution_token)
|
7391
|
-
@banner = args[:banner] if args.key?(:banner)
|
7392
7395
|
@cart_id = args[:cart_id] if args.key?(:cart_id)
|
7393
7396
|
@completion_detail = args[:completion_detail] if args.key?(:completion_detail)
|
7397
|
+
@entity = args[:entity] if args.key?(:entity)
|
7394
7398
|
@event_time = args[:event_time] if args.key?(:event_time)
|
7395
7399
|
@event_type = args[:event_type] if args.key?(:event_type)
|
7396
7400
|
@experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RetailV2beta
|
18
18
|
# Version of the google-apis-retail_v2beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.72.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230413"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -2157,7 +2157,7 @@ module Google
|
|
2157
2157
|
class GoogleCloudRetailV2betaExperimentInfo
|
2158
2158
|
# @private
|
2159
2159
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2160
|
-
property :
|
2160
|
+
property :experiment, as: 'experiment'
|
2161
2161
|
property :serving_config_experiment, as: 'servingConfigExperiment', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaExperimentInfoServingConfigExperiment, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaExperimentInfoServingConfigExperiment::Representation
|
2162
2162
|
|
2163
2163
|
end
|
@@ -2871,13 +2871,13 @@ module Google
|
|
2871
2871
|
class GoogleCloudRetailV2betaSearchRequest
|
2872
2872
|
# @private
|
2873
2873
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2874
|
-
property :banner, as: 'banner'
|
2875
2874
|
property :boost_spec, as: 'boostSpec', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestBoostSpec::Representation
|
2876
2875
|
|
2877
2876
|
property :branch, as: 'branch'
|
2878
2877
|
property :canonical_filter, as: 'canonicalFilter'
|
2879
2878
|
property :dynamic_facet_spec, as: 'dynamicFacetSpec', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestDynamicFacetSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestDynamicFacetSpec::Representation
|
2880
2879
|
|
2880
|
+
property :entity, as: 'entity'
|
2881
2881
|
collection :facet_specs, as: 'facetSpecs', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestFacetSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestFacetSpec::Representation
|
2882
2882
|
|
2883
2883
|
property :filter, as: 'filter'
|
@@ -3124,10 +3124,10 @@ module Google
|
|
3124
3124
|
hash :attributes, as: 'attributes', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute::Representation
|
3125
3125
|
|
3126
3126
|
property :attribution_token, as: 'attributionToken'
|
3127
|
-
property :banner, as: 'banner'
|
3128
3127
|
property :cart_id, as: 'cartId'
|
3129
3128
|
property :completion_detail, as: 'completionDetail', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionDetail, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompletionDetail::Representation
|
3130
3129
|
|
3130
|
+
property :entity, as: 'entity'
|
3131
3131
|
property :event_time, as: 'eventTime'
|
3132
3132
|
property :event_type, as: 'eventType'
|
3133
3133
|
collection :experiment_ids, as: 'experimentIds'
|
@@ -57,8 +57,6 @@ module Google
|
|
57
57
|
# @param [String] catalog
|
58
58
|
# Required. Catalog for which the completion is performed. Full resource name of
|
59
59
|
# catalog, such as `projects/*/locations/global/catalogs/default_catalog`.
|
60
|
-
# @param [String] banner
|
61
|
-
# The banner context for completion suggestions.
|
62
60
|
# @param [String] dataset
|
63
61
|
# Determines which dataset to use for fetching completion. "user-data" will use
|
64
62
|
# the imported dataset through CompletionService.ImportCompletionData. "cloud-
|
@@ -73,6 +71,11 @@ module Google
|
|
73
71
|
# types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across
|
74
72
|
# all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `
|
75
73
|
# MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.
|
74
|
+
# @param [String] entity
|
75
|
+
# The entity for customers that may run multiple different entities, domains,
|
76
|
+
# sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`
|
77
|
+
# , `youtube.com`, etc. If this is set, it should be exactly matched with
|
78
|
+
# UserEvent.entity to get per-entity autocomplete results.
|
76
79
|
# @param [Array<String>, String] language_codes
|
77
80
|
# Note that this field applies for `user-data` dataset only. For requests with `
|
78
81
|
# cloud-retail` dataset, setting this field has no effect. The language filters
|
@@ -112,14 +115,14 @@ module Google
|
|
112
115
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
113
116
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
114
117
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
115
|
-
def complete_project_location_catalog_query(catalog,
|
118
|
+
def complete_project_location_catalog_query(catalog, dataset: nil, device_type: nil, entity: nil, language_codes: nil, max_suggestions: nil, query: nil, visitor_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
116
119
|
command = make_simple_command(:get, 'v2beta/{+catalog}:completeQuery', options)
|
117
120
|
command.response_representation = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponse::Representation
|
118
121
|
command.response_class = Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCompleteQueryResponse
|
119
122
|
command.params['catalog'] = catalog unless catalog.nil?
|
120
|
-
command.query['banner'] = banner unless banner.nil?
|
121
123
|
command.query['dataset'] = dataset unless dataset.nil?
|
122
124
|
command.query['deviceType'] = device_type unless device_type.nil?
|
125
|
+
command.query['entity'] = entity unless entity.nil?
|
123
126
|
command.query['languageCodes'] = language_codes unless language_codes.nil?
|
124
127
|
command.query['maxSuggestions'] = max_suggestions unless max_suggestions.nil?
|
125
128
|
command.query['query'] = query unless query.nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-retail_v2beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.72.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: 2023-
|
11
|
+
date: 2023-04-23 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_v2beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.72.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|