google-cloud-retail-v2 0.6.3 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +6 -1
- data/lib/google/cloud/retail/v2/catalog_pb.rb +2 -4
- data/lib/google/cloud/retail/v2/catalog_service/client.rb +9 -9
- data/lib/google/cloud/retail/v2/catalog_service_pb.rb +3 -1
- data/lib/google/cloud/retail/v2/catalog_service_services_pb.rb +0 -8
- data/lib/google/cloud/retail/v2/common_pb.rb +8 -5
- data/lib/google/cloud/retail/v2/completion_service/client.rb +21 -21
- data/lib/google/cloud/retail/v2/completion_service.rb +1 -2
- data/lib/google/cloud/retail/v2/completion_service_pb.rb +2 -1
- data/lib/google/cloud/retail/v2/completion_service_services_pb.rb +7 -7
- data/lib/google/cloud/retail/v2/import_config_pb.rb +2 -2
- data/lib/google/cloud/retail/v2/prediction_service/client.rb +17 -4
- data/lib/google/cloud/retail/v2/prediction_service_pb.rb +2 -1
- data/lib/google/cloud/retail/v2/product_pb.rb +3 -2
- data/lib/google/cloud/retail/v2/product_service/client.rb +338 -23
- data/lib/google/cloud/retail/v2/product_service_pb.rb +29 -2
- data/lib/google/cloud/retail/v2/product_service_services_pb.rb +47 -9
- data/lib/google/cloud/retail/v2/promotion_pb.rb +22 -0
- data/lib/google/cloud/retail/v2/purge_config_pb.rb +3 -2
- data/lib/google/cloud/retail/v2/search_service/client.rb +56 -19
- data/lib/google/cloud/retail/v2/search_service.rb +1 -2
- data/lib/google/cloud/retail/v2/search_service_pb.rb +28 -3
- data/lib/google/cloud/retail/v2/search_service_services_pb.rb +2 -4
- data/lib/google/cloud/retail/v2/user_event_pb.rb +2 -2
- data/lib/google/cloud/retail/v2/user_event_service/client.rb +5 -3
- data/lib/google/cloud/retail/v2/user_event_service_pb.rb +3 -1
- data/lib/google/cloud/retail/v2/user_event_service_services_pb.rb +4 -3
- data/lib/google/cloud/retail/v2/version.rb +1 -1
- data/lib/google/cloud/retail/v2.rb +2 -0
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/retail/v2/catalog.rb +8 -8
- data/proto_docs/google/cloud/retail/v2/catalog_service.rb +9 -0
- data/proto_docs/google/cloud/retail/v2/common.rb +100 -25
- data/proto_docs/google/cloud/retail/v2/completion_service.rb +28 -18
- data/proto_docs/google/cloud/retail/v2/import_config.rb +38 -23
- data/proto_docs/google/cloud/retail/v2/prediction_service.rb +19 -6
- data/proto_docs/google/cloud/retail/v2/product.rb +50 -41
- data/proto_docs/google/cloud/retail/v2/product_service.rb +154 -6
- data/proto_docs/google/cloud/retail/v2/promotion.rb +43 -0
- data/proto_docs/google/cloud/retail/v2/search_service.rb +162 -28
- data/proto_docs/google/cloud/retail/v2/user_event.rb +30 -14
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/struct.rb +2 -2
- metadata +5 -3
@@ -99,9 +99,8 @@ module Google
|
|
99
99
|
# The textual values of this custom attribute. For example, `["yellow",
|
100
100
|
# "green"]` when the key is "color".
|
101
101
|
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
# Otherwise, an INVALID_ARGUMENT error is returned.
|
102
|
+
# Empty string is not allowed. Otherwise, an INVALID_ARGUMENT error is
|
103
|
+
# returned.
|
105
104
|
#
|
106
105
|
# Exactly one of {::Google::Cloud::Retail::V2::CustomAttribute#text text} or
|
107
106
|
# {::Google::Cloud::Retail::V2::CustomAttribute#numbers numbers} should be set.
|
@@ -111,14 +110,17 @@ module Google
|
|
111
110
|
# The numerical values of this custom attribute. For example, `[2.3, 15.4]`
|
112
111
|
# when the key is "lengths_cm".
|
113
112
|
#
|
114
|
-
# At most 400 values are allowed.Otherwise, an INVALID_ARGUMENT error is
|
115
|
-
# returned.
|
116
|
-
#
|
117
113
|
# Exactly one of {::Google::Cloud::Retail::V2::CustomAttribute#text text} or
|
118
114
|
# {::Google::Cloud::Retail::V2::CustomAttribute#numbers numbers} should be set.
|
119
115
|
# Otherwise, an INVALID_ARGUMENT error is returned.
|
120
116
|
# @!attribute [rw] searchable
|
121
117
|
# @return [::Boolean]
|
118
|
+
# This field is normally ignored unless
|
119
|
+
# [AttributesConfig.attribute_config_level][] of the
|
120
|
+
# {::Google::Cloud::Retail::V2::Catalog Catalog} is set to the deprecated
|
121
|
+
# 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode. For information about product-level
|
122
|
+
# attribute configuration, see [Configuration
|
123
|
+
# modes](https://cloud.google.com/retail/docs/attribute-config#config-modes).
|
122
124
|
# If true, custom attribute values are searchable by text queries in
|
123
125
|
# {::Google::Cloud::Retail::V2::SearchService::Client#search SearchService.Search}.
|
124
126
|
#
|
@@ -128,7 +130,13 @@ module Google
|
|
128
130
|
# set. Otherwise, a INVALID_ARGUMENT error is returned.
|
129
131
|
# @!attribute [rw] indexable
|
130
132
|
# @return [::Boolean]
|
131
|
-
#
|
133
|
+
# This field is normally ignored unless
|
134
|
+
# [AttributesConfig.attribute_config_level][] of the
|
135
|
+
# {::Google::Cloud::Retail::V2::Catalog Catalog} is set to the deprecated
|
136
|
+
# 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode. For information about product-level
|
137
|
+
# attribute configuration, see [Configuration
|
138
|
+
# modes](https://cloud.google.com/retail/docs/attribute-config#config-modes).
|
139
|
+
# If true, custom attribute values are indexed, so that they can be filtered,
|
132
140
|
# faceted or boosted in
|
133
141
|
# {::Google::Cloud::Retail::V2::SearchService::Client#search SearchService.Search}.
|
134
142
|
#
|
@@ -183,7 +191,10 @@ module Google
|
|
183
191
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
184
192
|
end
|
185
193
|
|
186
|
-
# {::Google::Cloud::Retail::V2::Product Product}
|
194
|
+
# {::Google::Cloud::Retail::V2::Product Product} image. Recommendations AI and
|
195
|
+
# Retail Search do not use product images to improve prediction and search
|
196
|
+
# results. However, product images can be returned in results, and are shown in
|
197
|
+
# prediction or search previews in the console.
|
187
198
|
# @!attribute [rw] uri
|
188
199
|
# @return [::String]
|
189
200
|
# Required. URI of the image.
|
@@ -250,11 +261,14 @@ module Google
|
|
250
261
|
#
|
251
262
|
# Google Merchant Center property
|
252
263
|
# [price](https://support.google.com/merchants/answer/6324371). Schema.org
|
253
|
-
# property [Offer.
|
264
|
+
# property [Offer.price](https://schema.org/price).
|
254
265
|
# @!attribute [rw] original_price
|
255
266
|
# @return [::Float]
|
256
267
|
# Price of the product without any discount. If zero, by default set to be
|
257
|
-
# the {::Google::Cloud::Retail::V2::PriceInfo#price price}.
|
268
|
+
# the {::Google::Cloud::Retail::V2::PriceInfo#price price}. If set,
|
269
|
+
# {::Google::Cloud::Retail::V2::PriceInfo#original_price original_price} should be
|
270
|
+
# greater than or equal to {::Google::Cloud::Retail::V2::PriceInfo#price price},
|
271
|
+
# otherwise an INVALID_ARGUMENT error is thrown.
|
258
272
|
# @!attribute [rw] cost
|
259
273
|
# @return [::Float]
|
260
274
|
# The costs associated with the sale of a particular product. Used for gross
|
@@ -367,21 +381,30 @@ module Google
|
|
367
381
|
# @!attribute [rw] user_id
|
368
382
|
# @return [::String]
|
369
383
|
# Highly recommended for logged-in users. Unique identifier for logged-in
|
370
|
-
# user, such as a user name.
|
384
|
+
# user, such as a user name. Don't set for anonymous users.
|
385
|
+
#
|
386
|
+
# Always use a hashed value for this ID.
|
387
|
+
#
|
388
|
+
# Don't set the field to the same fixed ID for different users. This mixes
|
389
|
+
# the event history of those users together, which results in degraded
|
390
|
+
# model quality.
|
371
391
|
#
|
372
392
|
# The field must be a UTF-8 encoded string with a length limit of 128
|
373
393
|
# characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
374
394
|
# @!attribute [rw] ip_address
|
375
395
|
# @return [::String]
|
376
|
-
# The end user's IP address.
|
377
|
-
#
|
378
|
-
# This field is used to extract location information for personalization.
|
396
|
+
# The end user's IP address. This field is used to extract location
|
397
|
+
# information for personalization.
|
379
398
|
#
|
380
399
|
# This field must be either an IPv4 address (e.g. "104.133.9.80") or an IPv6
|
381
400
|
# address (e.g. "2001:0db8:85a3:0000:0000:8a2e:0370:7334"). Otherwise, an
|
382
401
|
# INVALID_ARGUMENT error is returned.
|
383
402
|
#
|
384
|
-
# This should not be set when
|
403
|
+
# This should not be set when:
|
404
|
+
#
|
405
|
+
# * setting
|
406
|
+
# {::Google::Cloud::Retail::V2::SearchRequest#user_info SearchRequest.user_info}.
|
407
|
+
# * using the JavaScript tag in
|
385
408
|
# {::Google::Cloud::Retail::V2::UserEventService::Client#collect_user_event UserEventService.CollectUserEvent}
|
386
409
|
# or if
|
387
410
|
# {::Google::Cloud::Retail::V2::UserInfo#direct_user_request direct_user_request}
|
@@ -416,21 +439,73 @@ module Google
|
|
416
439
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
417
440
|
end
|
418
441
|
|
419
|
-
#
|
420
|
-
#
|
442
|
+
# The inventory information at a place (e.g. a store) identified
|
443
|
+
# by a place ID.
|
444
|
+
# @!attribute [rw] place_id
|
421
445
|
# @return [::String]
|
422
|
-
# ID
|
423
|
-
#
|
424
|
-
#
|
425
|
-
#
|
426
|
-
# id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is
|
427
|
-
# returned.
|
446
|
+
# The place ID for the current set of inventory information.
|
447
|
+
# @!attribute [rw] price_info
|
448
|
+
# @return [::Google::Cloud::Retail::V2::PriceInfo]
|
449
|
+
# Product price and cost information.
|
428
450
|
#
|
429
451
|
# Google Merchant Center property
|
430
|
-
# [
|
431
|
-
|
452
|
+
# [price](https://support.google.com/merchants/answer/6324371).
|
453
|
+
# @!attribute [rw] attributes
|
454
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Retail::V2::CustomAttribute}]
|
455
|
+
# Additional local inventory attributes, for example, store name, promotion
|
456
|
+
# tags, etc.
|
457
|
+
#
|
458
|
+
# This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT
|
459
|
+
# error is returned:
|
460
|
+
#
|
461
|
+
# * At most 30 attributes are allowed.
|
462
|
+
# * The key must be a UTF-8 encoded string with a length limit of 32
|
463
|
+
# characters.
|
464
|
+
# * The key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example,
|
465
|
+
# key0LikeThis or KEY_1_LIKE_THIS.
|
466
|
+
# * The attribute values must be of the same type (text or number).
|
467
|
+
# * Only 1 value is allowed for each attribute.
|
468
|
+
# * For text values, the length limit is 256 UTF-8 characters.
|
469
|
+
# * The attribute does not support search. The `searchable` field should be
|
470
|
+
# unset or set to false.
|
471
|
+
# * The max summed total bytes of custom attribute keys and values per
|
472
|
+
# product is 5MiB.
|
473
|
+
# @!attribute [rw] fulfillment_types
|
474
|
+
# @return [::Array<::String>]
|
475
|
+
# Input only. Supported fulfillment types. Valid fulfillment type values
|
476
|
+
# include commonly used types (such as pickup in store and same day
|
477
|
+
# delivery), and custom types. Customers have to map custom types to their
|
478
|
+
# display names before rendering UI.
|
479
|
+
#
|
480
|
+
# Supported values:
|
481
|
+
#
|
482
|
+
# * "pickup-in-store"
|
483
|
+
# * "ship-to-store"
|
484
|
+
# * "same-day-delivery"
|
485
|
+
# * "next-day-delivery"
|
486
|
+
# * "custom-type-1"
|
487
|
+
# * "custom-type-2"
|
488
|
+
# * "custom-type-3"
|
489
|
+
# * "custom-type-4"
|
490
|
+
# * "custom-type-5"
|
491
|
+
#
|
492
|
+
# If this field is set to an invalid value other than these, an
|
493
|
+
# INVALID_ARGUMENT error is returned.
|
494
|
+
#
|
495
|
+
# All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is
|
496
|
+
# returned.
|
497
|
+
class LocalInventory
|
432
498
|
include ::Google::Protobuf::MessageExts
|
433
499
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
500
|
+
|
501
|
+
# @!attribute [rw] key
|
502
|
+
# @return [::String]
|
503
|
+
# @!attribute [rw] value
|
504
|
+
# @return [::Google::Cloud::Retail::V2::CustomAttribute]
|
505
|
+
class AttributesEntry
|
506
|
+
include ::Google::Protobuf::MessageExts
|
507
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
508
|
+
end
|
434
509
|
end
|
435
510
|
end
|
436
511
|
end
|
@@ -35,22 +35,21 @@ module Google
|
|
35
35
|
# The maximum number of allowed characters is 255.
|
36
36
|
# @!attribute [rw] visitor_id
|
37
37
|
# @return [::String]
|
38
|
-
# A unique identifier for tracking visitors. For example,
|
39
|
-
# implemented with an HTTP cookie, which should be able to
|
40
|
-
# a visitor on a single device. This unique identifier
|
41
|
-
# the visitor logs in or out of the website.
|
38
|
+
# Required field. A unique identifier for tracking visitors. For example,
|
39
|
+
# this could be implemented with an HTTP cookie, which should be able to
|
40
|
+
# uniquely identify a visitor on a single device. This unique identifier
|
41
|
+
# should not change if the visitor logs in or out of the website.
|
42
42
|
#
|
43
43
|
# The field must be a UTF-8 encoded string with a length limit of 128
|
44
44
|
# characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
45
45
|
# @!attribute [rw] language_codes
|
46
46
|
# @return [::Array<::String>]
|
47
|
-
# The
|
48
|
-
# the
|
49
|
-
#
|
50
|
-
# [Tags for
|
51
|
-
#
|
52
|
-
#
|
53
|
-
# Only "en-US" is currently supported.
|
47
|
+
# The language filters applied to the output suggestions. If set, it should
|
48
|
+
# contain the language of the query. If not set, suggestions are returned
|
49
|
+
# without considering language restrictions. This is the BCP-47 language
|
50
|
+
# code, such as "en-US" or "sr-Latn". For more information, see [Tags for
|
51
|
+
# Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum
|
52
|
+
# number of language codes is 3.
|
54
53
|
# @!attribute [rw] device_type
|
55
54
|
# @return [::String]
|
56
55
|
# The device type context for completion suggestions.
|
@@ -79,9 +78,9 @@ module Google
|
|
79
78
|
#
|
80
79
|
# * user-data
|
81
80
|
#
|
82
|
-
# * cloud-retail
|
83
|
-
# This option requires
|
84
|
-
#
|
81
|
+
# * cloud-retail:
|
82
|
+
# This option requires enabling auto-learning function first. See
|
83
|
+
# [guidelines](https://cloud.google.com/retail/docs/completion-overview#generated-completion-dataset).
|
85
84
|
# @!attribute [rw] max_suggestions
|
86
85
|
# @return [::Integer]
|
87
86
|
# Completion max suggestions. If left unset or set to 0, then will fallback
|
@@ -102,9 +101,9 @@ module Google
|
|
102
101
|
# @!attribute [rw] attribution_token
|
103
102
|
# @return [::String]
|
104
103
|
# A unique complete token. This should be included in the
|
105
|
-
# {::Google::Cloud::Retail::V2::
|
106
|
-
# completion, which enables accurate
|
107
|
-
# performance.
|
104
|
+
# {::Google::Cloud::Retail::V2::UserEvent#completion_detail UserEvent.completion_detail}
|
105
|
+
# for search events resulting from this completion, which enables accurate
|
106
|
+
# attribution of complete model performance.
|
108
107
|
# @!attribute [rw] recent_search_results
|
109
108
|
# @return [::Array<::Google::Cloud::Retail::V2::CompleteQueryResponse::RecentSearchResult>]
|
110
109
|
# Matched recent searches of this user. The maximum number of recent searches
|
@@ -115,11 +114,15 @@ module Google
|
|
115
114
|
# {::Google::Cloud::Retail::V2::CompleteQueryRequest#visitor_id CompleteQueryRequest.visitor_id}
|
116
115
|
# field is set and {::Google::Cloud::Retail::V2::UserEvent UserEvent} is imported.
|
117
116
|
# The recent searches satisfy the follow rules:
|
117
|
+
#
|
118
118
|
# * They are ordered from latest to oldest.
|
119
|
+
#
|
119
120
|
# * They are matched with
|
120
121
|
# {::Google::Cloud::Retail::V2::CompleteQueryRequest#query CompleteQueryRequest.query}
|
121
122
|
# case insensitively.
|
123
|
+
#
|
122
124
|
# * They are transformed to lower cases.
|
125
|
+
#
|
123
126
|
# * They are UTF-8 safe.
|
124
127
|
#
|
125
128
|
# Recent searches are deduplicated. More recent searches will be reserved
|
@@ -134,7 +137,14 @@ module Google
|
|
134
137
|
# The suggestion for the query.
|
135
138
|
# @!attribute [rw] attributes
|
136
139
|
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Retail::V2::CustomAttribute}]
|
137
|
-
#
|
140
|
+
# Custom attributes for the suggestion term.
|
141
|
+
#
|
142
|
+
# * For "user-data", the attributes are additional custom attributes
|
143
|
+
# ingested through BigQuery.
|
144
|
+
#
|
145
|
+
# * For "cloud-retail", the attributes are product attributes generated
|
146
|
+
# by Cloud Retail. This is an experimental feature. Contact Retail Search
|
147
|
+
# support team if you are interested in enabling it.
|
138
148
|
class CompletionResult
|
139
149
|
include ::Google::Protobuf::MessageExts
|
140
150
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -51,6 +51,14 @@ module Google
|
|
51
51
|
# {::Google::Cloud::Retail::V2::UserEvent UserEvent} per line.
|
52
52
|
# * `user_event_ga360`: Using
|
53
53
|
# https://support.google.com/analytics/answer/3437719.
|
54
|
+
#
|
55
|
+
# Supported values for control imports:
|
56
|
+
#
|
57
|
+
# * 'control' (default): One JSON [Control][] per line.
|
58
|
+
#
|
59
|
+
# Supported values for catalog attribute imports:
|
60
|
+
#
|
61
|
+
# * 'catalog_attribute' (default): One CSV [CatalogAttribute][] per line.
|
54
62
|
class GcsSource
|
55
63
|
include ::Google::Protobuf::MessageExts
|
56
64
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -98,8 +106,19 @@ module Google
|
|
98
106
|
#
|
99
107
|
# * `user_event` (default): One JSON
|
100
108
|
# {::Google::Cloud::Retail::V2::UserEvent UserEvent} per line.
|
101
|
-
# * `user_event_ga360`:
|
109
|
+
# * `user_event_ga360`:
|
110
|
+
# The schema is available here:
|
102
111
|
# https://support.google.com/analytics/answer/3437719.
|
112
|
+
# * `user_event_ga4`: This feature is in private preview. Please contact the
|
113
|
+
# support team for importing Google Analytics 4 events.
|
114
|
+
# The schema is available here:
|
115
|
+
# https://support.google.com/analytics/answer/7029846.
|
116
|
+
#
|
117
|
+
# Supported values for auto-completion imports:
|
118
|
+
#
|
119
|
+
# * `suggestions` (default): One JSON completion suggestion per line.
|
120
|
+
# * `denylist`: One JSON deny suggestion per line.
|
121
|
+
# * `allowlist`: One JSON allow suggestion per line.
|
103
122
|
class BigQuerySource
|
104
123
|
include ::Google::Protobuf::MessageExts
|
105
124
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -128,9 +147,9 @@ module Google
|
|
128
147
|
# Configuration of destination for Import related errors.
|
129
148
|
# @!attribute [rw] gcs_prefix
|
130
149
|
# @return [::String]
|
131
|
-
# Google Cloud Storage
|
132
|
-
# existing Cloud Storage
|
133
|
-
# this
|
150
|
+
# Google Cloud Storage prefix for import errors. This must be an empty,
|
151
|
+
# existing Cloud Storage directory. Import errors will be written to
|
152
|
+
# sharded files in this directory, one per line, as a JSON-encoded
|
134
153
|
# `google.rpc.Status` message.
|
135
154
|
class ImportErrorsConfig
|
136
155
|
include ::Google::Protobuf::MessageExts
|
@@ -147,15 +166,7 @@ module Google
|
|
147
166
|
# If updateMask is specified, requires products.update permission.
|
148
167
|
# @!attribute [rw] request_id
|
149
168
|
# @return [::String]
|
150
|
-
#
|
151
|
-
# dataset scope. Ensures idempotency and used for request deduplication.
|
152
|
-
# Server-generated if unspecified. Up to 128 characters long and must match
|
153
|
-
# the pattern: `[a-zA-Z0-9_]+`. This is returned as [Operation.name][] in
|
154
|
-
# {::Google::Cloud::Retail::V2::ImportMetadata ImportMetadata}.
|
155
|
-
#
|
156
|
-
# Only supported when
|
157
|
-
# {::Google::Cloud::Retail::V2::ImportProductsRequest#reconciliation_mode ImportProductsRequest.reconciliation_mode}
|
158
|
-
# is set to `FULL`.
|
169
|
+
# Deprecated. This field has no effect.
|
159
170
|
# @!attribute [rw] input_config
|
160
171
|
# @return [::Google::Cloud::Retail::V2::ProductInputConfig]
|
161
172
|
# Required. The desired input location of the data.
|
@@ -173,11 +184,18 @@ module Google
|
|
173
184
|
# {::Google::Cloud::Retail::V2::ImportProductsRequest::ReconciliationMode::INCREMENTAL ReconciliationMode.INCREMENTAL}.
|
174
185
|
# @!attribute [rw] notification_pubsub_topic
|
175
186
|
# @return [::String]
|
176
|
-
# Pub/Sub topic for receiving notification. If this field is set,
|
187
|
+
# Full Pub/Sub topic name for receiving notification. If this field is set,
|
177
188
|
# when the import is finished, a notification will be sent to
|
178
189
|
# specified Pub/Sub topic. The message data will be JSON string of a
|
179
190
|
# {::Google::Longrunning::Operation Operation}.
|
180
|
-
#
|
191
|
+
#
|
192
|
+
# Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has
|
193
|
+
# to be within the same project as
|
194
|
+
# {::Google::Cloud::Retail::V2::ImportProductsRequest#parent ImportProductsRequest.parent}.
|
195
|
+
# Make sure that both
|
196
|
+
# `cloud-retail-customer-data-access@system.gserviceaccount.com` and
|
197
|
+
# `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com`
|
198
|
+
# have the `pubsub.topics.publish` IAM permission on the topic.
|
181
199
|
#
|
182
200
|
# Only supported when
|
183
201
|
# {::Google::Cloud::Retail::V2::ImportProductsRequest#reconciliation_mode ImportProductsRequest.reconciliation_mode}
|
@@ -198,16 +216,14 @@ module Google
|
|
198
216
|
# Calculates diff and replaces the entire product dataset. Existing
|
199
217
|
# products may be deleted if they are not present in the source location.
|
200
218
|
#
|
201
|
-
# Can only be while using
|
202
|
-
# {::Google::Cloud::Retail::V2::BigQuerySource BigQuerySource}.
|
219
|
+
# Can only be set while using
|
220
|
+
# {::Google::Cloud::Retail::V2::BigQuerySource BigQuerySource}. And the BigQuery
|
221
|
+
# dataset must be created in the data location "us (multiple regions in
|
222
|
+
# United States)", otherwise a PERMISSION_DENIED error is thrown.
|
203
223
|
#
|
204
224
|
# Add the IAM permission "BigQuery Data Viewer" for
|
205
225
|
# cloud-retail-customer-data-access@system.gserviceaccount.com before
|
206
226
|
# using this feature otherwise an error is thrown.
|
207
|
-
#
|
208
|
-
# This feature is only available for users who have Retail Search enabled.
|
209
|
-
# Please submit a form [here](https://cloud.google.com/contact) to contact
|
210
|
-
# cloud sales if you are interested in using Retail Search.
|
211
227
|
FULL = 2
|
212
228
|
end
|
213
229
|
end
|
@@ -309,8 +325,7 @@ module Google
|
|
309
325
|
# Count of entries that encountered errors while processing.
|
310
326
|
# @!attribute [rw] request_id
|
311
327
|
# @return [::String]
|
312
|
-
#
|
313
|
-
# that was passed in the request.
|
328
|
+
# Deprecated. This field is never set.
|
314
329
|
# @!attribute [rw] notification_pubsub_topic
|
315
330
|
# @return [::String]
|
316
331
|
# Pub/Sub topic for receiving notification. If this field is set,
|
@@ -39,6 +39,16 @@ module Google
|
|
39
39
|
# they took to trigger the predict request. Note that this user event detail
|
40
40
|
# won't be ingested to userEvent logs. Thus, a separate userEvent write
|
41
41
|
# request is required for event logging.
|
42
|
+
#
|
43
|
+
# Don't set
|
44
|
+
# {::Google::Cloud::Retail::V2::UserEvent#visitor_id UserEvent.visitor_id} or
|
45
|
+
# {::Google::Cloud::Retail::V2::UserInfo#user_id UserInfo.user_id} to the same
|
46
|
+
# fixed ID for different users. If you are trying to receive non-personalized
|
47
|
+
# recommendations (not recommended; this can negatively impact model
|
48
|
+
# performance), instead set
|
49
|
+
# {::Google::Cloud::Retail::V2::UserEvent#visitor_id UserEvent.visitor_id} to a
|
50
|
+
# random unique ID and leave
|
51
|
+
# {::Google::Cloud::Retail::V2::UserInfo#user_id UserInfo.user_id} unset.
|
42
52
|
# @!attribute [rw] page_size
|
43
53
|
# @return [::Integer]
|
44
54
|
# Maximum number of results to return per page. Set this property
|
@@ -73,9 +83,12 @@ module Google
|
|
73
83
|
# * filterOutOfStockItems tag=(-"promotional")
|
74
84
|
# * filterOutOfStockItems
|
75
85
|
#
|
76
|
-
# If your filter blocks all prediction results,
|
77
|
-
#
|
78
|
-
# `strictFiltering` to
|
86
|
+
# If your filter blocks all prediction results, the API will return generic
|
87
|
+
# (unfiltered) popular products. If you only want results strictly matching
|
88
|
+
# the filters, set `strictFiltering` to True in `PredictRequest.params` to
|
89
|
+
# receive empty results instead.
|
90
|
+
# Note that the API will never return items with storageStatus of "EXPIRED"
|
91
|
+
# or "DELETED" regardless of filter choices.
|
79
92
|
# @!attribute [rw] validate_only
|
80
93
|
# @return [::Boolean]
|
81
94
|
# Use validate only mode for this prediction query. If set to true, a
|
@@ -116,7 +129,7 @@ module Google
|
|
116
129
|
# * Each resource can have multiple labels, up to a maximum of 64.
|
117
130
|
# * Each label must be a key-value pair.
|
118
131
|
# * Keys have a minimum length of 1 character and a maximum length of 63
|
119
|
-
# characters
|
132
|
+
# characters and cannot be empty. Values can be empty and have a maximum
|
120
133
|
# length of 63 characters.
|
121
134
|
# * Keys and values can contain only lowercase letters, numeric characters,
|
122
135
|
# underscores, and dashes. All characters must use UTF-8 encoding, and
|
@@ -182,9 +195,9 @@ module Google
|
|
182
195
|
#
|
183
196
|
# Possible values:
|
184
197
|
#
|
185
|
-
# * `product`: JSON representation of the product.
|
198
|
+
# * `product`: JSON representation of the product. Is set if
|
186
199
|
# `returnProduct` is set to true in `PredictRequest.params`.
|
187
|
-
# * `score`: Prediction score in double value.
|
200
|
+
# * `score`: Prediction score in double value. Is set if
|
188
201
|
# `returnScore` is set to true in `PredictRequest.params`.
|
189
202
|
class PredictionResult
|
190
203
|
include ::Google::Protobuf::MessageExts
|