google-apis-retail_v2alpha 0.60.0 → 0.61.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: fcfbc08687d85839acdc8aa1d0dbea42aec89ab9394551532fac9fc48cb6e992
4
+ data.tar.gz: 37d4aa1f069c972076b406517b0c75d251886107fbb6257c39078c8634dae2c3
5
5
  SHA512:
6
- metadata.gz: eb4f15bcd9cb61d1d0038346cb601f4f9a62fdb4f19904916ad74a66c544da08dc944417105662dc59fe4efc036b0188f3f5225c294260aa03a8bcdc16a1b477
7
- data.tar.gz: 45e08411a55ece03451715e0f13297e733335ae90bd35f75c18415da32414fcaf229b29e8d49b32da02683607d19bf210049af3916dd8926d9607497a0c7a9f0
6
+ metadata.gz: f37ad7977e304578d76ee7a83c0f1af474560977fd07290210dde162924488fd2d04dc25c0aef4beba30bc6638b3a2df52ac8f9a6d3b4c7f56bfbac167d0a8cd
7
+ data.tar.gz: aee17ca46b11c2bbe4793b16373a9148ea4aa0d05c7f897a7f621a300a2ee170af4c3a825381f7d9842ee75de872cfc48f11b3c54641b649cb065101102837d4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.61.0 (2022-10-28)
4
+
5
+ * Regenerated from discovery document revision 20221024
6
+
3
7
  ### v0.60.0 (2022-10-20)
4
8
 
5
9
  * 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. Current supported keys: * `brands` * `
1289
+ # 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
@@ -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.61.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 = "20221024"
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,8 @@ 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.
74
76
  # @param [Array<String>, String] language_codes
75
77
  # Note that this field applies for `user-data` dataset only. For requests with `
76
78
  # cloud-retail` dataset, setting this field has no effect. The language filters
@@ -110,13 +112,14 @@ module Google
110
112
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
111
113
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
112
114
  # @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)
115
+ 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
116
  command = make_simple_command(:get, 'v2alpha/{+catalog}:completeQuery', options)
115
117
  command.response_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponse::Representation
116
118
  command.response_class = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponse
117
119
  command.params['catalog'] = catalog unless catalog.nil?
118
120
  command.query['dataset'] = dataset unless dataset.nil?
119
121
  command.query['deviceType'] = device_type unless device_type.nil?
122
+ command.query['enableAttributeSuggestions'] = enable_attribute_suggestions unless enable_attribute_suggestions.nil?
120
123
  command.query['languageCodes'] = language_codes unless language_codes.nil?
121
124
  command.query['maxSuggestions'] = max_suggestions unless max_suggestions.nil?
122
125
  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.61.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-10-31 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.61.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: []