google-apis-retail_v2alpha 0.60.0 → 0.62.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33f1aa22e40733f81b77a87bcf9e0d40b867ec850a669aa9ea486a9e5e7afa25
4
- data.tar.gz: ec8ed9ff901c2a649e5da04879ac536166bfcc6598dbb19e6ec672307ce7ba94
3
+ metadata.gz: 91c2450428b993c1727730d9939d35b245490d3f03b21dd51b963deb3122d7b0
4
+ data.tar.gz: 0eb29571ed04ea1745d7add67dbcd05e92aa1adae528add992dd8ae3a379b35f
5
5
  SHA512:
6
- metadata.gz: eb4f15bcd9cb61d1d0038346cb601f4f9a62fdb4f19904916ad74a66c544da08dc944417105662dc59fe4efc036b0188f3f5225c294260aa03a8bcdc16a1b477
7
- data.tar.gz: 45e08411a55ece03451715e0f13297e733335ae90bd35f75c18415da32414fcaf229b29e8d49b32da02683607d19bf210049af3916dd8926d9607497a0c7a9f0
6
+ metadata.gz: fc3b7da6b42f09e8055a75001beffd38b24d3b1d128309142c7698682b52406a276aea34dc874bd09d1dfaa047877afe31956d1c1f1c913dfe42f556844141f3
7
+ data.tar.gz: 44dc5fdc4cdcd3019e04462f7a1913217df91c984bb230e7036e59e90a6af4bec8abae35d323933c95898b7a4f09904674811b07d00e44f02690b9cec5c46f60
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.62.0 (2022-11-09)
4
+
5
+ * Regenerated from discovery document revision 20221107
6
+
7
+ ### v0.61.0 (2022-10-28)
8
+
9
+ * Regenerated from discovery document revision 20221024
10
+
3
11
  ### v0.60.0 (2022-10-20)
4
12
 
5
13
  * Regenerated from discovery document revision 20221014
@@ -1285,6 +1285,12 @@ module Google
1285
1285
  class GoogleCloudRetailV2alphaCompleteQueryResponse
1286
1286
  include Google::Apis::Core::Hashable
1287
1287
 
1288
+ # A map of matched attribute suggestions. This field is only available for "
1289
+ # cloud-retail" dataset. Current supported keys: * `brands` * `categories`
1290
+ # Corresponds to the JSON property `attributeResults`
1291
+ # @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult>]
1292
+ attr_accessor :attribute_results
1293
+
1288
1294
  # A unique complete token. This should be included in the UserEvent.
1289
1295
  # completion_detail for search events resulting from this completion, which
1290
1296
  # enables accurate attribution of complete model performance.
@@ -1317,12 +1323,32 @@ module Google
1317
1323
 
1318
1324
  # Update properties of this object
1319
1325
  def update!(**args)
1326
+ @attribute_results = args[:attribute_results] if args.key?(:attribute_results)
1320
1327
  @attribution_token = args[:attribution_token] if args.key?(:attribution_token)
1321
1328
  @completion_results = args[:completion_results] if args.key?(:completion_results)
1322
1329
  @recent_search_results = args[:recent_search_results] if args.key?(:recent_search_results)
1323
1330
  end
1324
1331
  end
1325
1332
 
1333
+ # Resource that represents attribute results.
1334
+ class GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult
1335
+ include Google::Apis::Core::Hashable
1336
+
1337
+ # The list of suggestions for the attribute.
1338
+ # Corresponds to the JSON property `suggestions`
1339
+ # @return [Array<String>]
1340
+ attr_accessor :suggestions
1341
+
1342
+ def initialize(**args)
1343
+ update!(**args)
1344
+ end
1345
+
1346
+ # Update properties of this object
1347
+ def update!(**args)
1348
+ @suggestions = args[:suggestions] if args.key?(:suggestions)
1349
+ end
1350
+ end
1351
+
1326
1352
  # Resource that represents completion results.
1327
1353
  class GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult
1328
1354
  include Google::Apis::Core::Hashable
@@ -3032,7 +3058,7 @@ module Google
3032
3058
  # returned in the `results.metadata` field in the prediction response. * `
3033
3059
  # returnScore`: Boolean. If set to true, the prediction 'score' corresponding to
3034
3060
  # each returned product will be set in the `results.metadata` field in the
3035
- # prediction response. The given 'score' indicates the probability of an product
3061
+ # prediction response. The given 'score' indicates the probability of a product
3036
3062
  # being clicked/purchased given the user's context and history. * `
3037
3063
  # strictFiltering`: Boolean. True by default. If set to false, the service will
3038
3064
  # return generic (unfiltered) popular products instead of empty if your filter
@@ -4406,7 +4432,7 @@ module Google
4406
4432
  attr_accessor :replacement_action
4407
4433
 
4408
4434
  # Creates a set of terms that will be treated as synonyms of each other. Example:
4409
- # synonyms of "sneakers" and "shoes". * "sneakers" will use a synonym of "shoes"
4435
+ # synonyms of "sneakers" and "shoes": * "sneakers" will use a synonym of "shoes"
4410
4436
  # . * "shoes" will use a synonym of "sneakers".
4411
4437
  # Corresponds to the JSON property `twowaySynonymsAction`
4412
4438
  # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleTwowaySynonymsAction]
@@ -4645,7 +4671,7 @@ module Google
4645
4671
  end
4646
4672
 
4647
4673
  # Creates a set of terms that will be treated as synonyms of each other. Example:
4648
- # synonyms of "sneakers" and "shoes". * "sneakers" will use a synonym of "shoes"
4674
+ # synonyms of "sneakers" and "shoes": * "sneakers" will use a synonym of "shoes"
4649
4675
  # . * "shoes" will use a synonym of "sneakers".
4650
4676
  class GoogleCloudRetailV2alphaRuleTwowaySynonymsAction
4651
4677
  include Google::Apis::Core::Hashable
@@ -5025,7 +5051,7 @@ module Google
5025
5051
  attr_accessor :facet_key
5026
5052
 
5027
5053
  # Maximum of facet values that should be returned for this facet. If unspecified,
5028
- # defaults to 20. The maximum allowed value is 300. Values above 300 will be
5054
+ # defaults to 50. The maximum allowed value is 300. Values above 300 will be
5029
5055
  # coerced to 300. If this field is negative, an INVALID_ARGUMENT is returned.
5030
5056
  # Corresponds to the JSON property `limit`
5031
5057
  # @return [Fixnum]
@@ -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.60.0"
19
+ GEM_VERSION = "0.62.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221014"
25
+ REVISION = "20221107"
26
26
  end
27
27
  end
28
28
  end
@@ -292,6 +292,12 @@ module Google
292
292
  include Google::Apis::Core::JsonObjectSupport
293
293
  end
294
294
 
295
+ class GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
295
301
  class GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult
296
302
  class Representation < Google::Apis::Core::JsonRepresentation; end
297
303
 
@@ -1561,6 +1567,8 @@ module Google
1561
1567
  class GoogleCloudRetailV2alphaCompleteQueryResponse
1562
1568
  # @private
1563
1569
  class Representation < Google::Apis::Core::JsonRepresentation
1570
+ hash :attribute_results, as: 'attributeResults', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult::Representation
1571
+
1564
1572
  property :attribution_token, as: 'attributionToken'
1565
1573
  collection :completion_results, as: 'completionResults', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult::Representation
1566
1574
 
@@ -1569,6 +1577,13 @@ module Google
1569
1577
  end
1570
1578
  end
1571
1579
 
1580
+ class GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult
1581
+ # @private
1582
+ class Representation < Google::Apis::Core::JsonRepresentation
1583
+ collection :suggestions, as: 'suggestions'
1584
+ end
1585
+ end
1586
+
1572
1587
  class GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult
1573
1588
  # @private
1574
1589
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -71,6 +71,9 @@ module Google
71
71
  # types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across
72
72
  # all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `
73
73
  # MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.
74
+ # @param [Boolean] enable_attribute_suggestions
75
+ # If true, attribute suggestions are enabled and provided in response. This
76
+ # field is only available for "cloud-retail" dataset.
74
77
  # @param [Array<String>, String] language_codes
75
78
  # Note that this field applies for `user-data` dataset only. For requests with `
76
79
  # cloud-retail` dataset, setting this field has no effect. The language filters
@@ -110,13 +113,14 @@ module Google
110
113
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
111
114
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
112
115
  # @raise [Google::Apis::AuthorizationError] Authorization is required
113
- def complete_project_location_catalog_query(catalog, dataset: nil, device_type: nil, language_codes: nil, max_suggestions: nil, query: nil, visitor_id: nil, fields: nil, quota_user: nil, options: nil, &block)
116
+ def complete_project_location_catalog_query(catalog, dataset: nil, device_type: nil, enable_attribute_suggestions: nil, language_codes: nil, max_suggestions: nil, query: nil, visitor_id: nil, fields: nil, quota_user: nil, options: nil, &block)
114
117
  command = make_simple_command(:get, 'v2alpha/{+catalog}:completeQuery', options)
115
118
  command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponse::Representation
116
119
  command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponse
117
120
  command.params['catalog'] = catalog unless catalog.nil?
118
121
  command.query['dataset'] = dataset unless dataset.nil?
119
122
  command.query['deviceType'] = device_type unless device_type.nil?
123
+ command.query['enableAttributeSuggestions'] = enable_attribute_suggestions unless enable_attribute_suggestions.nil?
120
124
  command.query['languageCodes'] = language_codes unless language_codes.nil?
121
125
  command.query['maxSuggestions'] = max_suggestions unless max_suggestions.nil?
122
126
  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_v2alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.60.0
4
+ version: 0.62.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: 2022-10-21 00:00:00.000000000 Z
11
+ date: 2022-11-14 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_v2alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.60.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.62.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha
63
63
  post_install_message:
64
64
  rdoc_options: []