Skip to content

Commit 9a99850

Browse files
feat: Automated regeneration of retail v2 client (googleapis#23178)
Auto-created at 2025-05-21 20:06:58 +0000 using the toys pull request generator.
1 parent 0845bdf commit 9a99850

File tree

5 files changed

+51
-2
lines changed

5 files changed

+51
-2
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312401,6 +312401,9 @@
312401312401
"/retail:v2/GoogleCloudRetailV2CustomAttribute/searchable": searchable
312402312402
"/retail:v2/GoogleCloudRetailV2CustomAttribute/text": text
312403312403
"/retail:v2/GoogleCloudRetailV2CustomAttribute/text/text": text
312404+
"/retail:v2/GoogleCloudRetailV2DoubleList": google_cloud_retail_v2_double_list
312405+
"/retail:v2/GoogleCloudRetailV2DoubleList/values": values
312406+
"/retail:v2/GoogleCloudRetailV2DoubleList/values/value": value
312404312407
"/retail:v2/GoogleCloudRetailV2ExperimentInfo": google_cloud_retail_v2_experiment_info
312405312408
"/retail:v2/GoogleCloudRetailV2ExperimentInfo/experiment": experiment
312406312409
"/retail:v2/GoogleCloudRetailV2ExperimentInfo/experimentName": experiment_name
@@ -312921,6 +312924,8 @@
312921312924
"/retail:v2/GoogleCloudRetailV2SearchResponseSearchResult/matchingVariantCount": matching_variant_count
312922312925
"/retail:v2/GoogleCloudRetailV2SearchResponseSearchResult/matchingVariantFields": matching_variant_fields
312923312926
"/retail:v2/GoogleCloudRetailV2SearchResponseSearchResult/matchingVariantFields/matching_variant_field": matching_variant_field
312927+
"/retail:v2/GoogleCloudRetailV2SearchResponseSearchResult/modelScores": model_scores
312928+
"/retail:v2/GoogleCloudRetailV2SearchResponseSearchResult/modelScores/model_score": model_score
312924312929
"/retail:v2/GoogleCloudRetailV2SearchResponseSearchResult/personalLabels": personal_labels
312925312930
"/retail:v2/GoogleCloudRetailV2SearchResponseSearchResult/personalLabels/personal_label": personal_label
312926312931
"/retail:v2/GoogleCloudRetailV2SearchResponseSearchResult/product": product

generated/google-apis-retail_v2/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-retail_v2
22

3+
### v0.117.0 (2025-05-21)
4+
5+
* Regenerated from discovery document revision 20250515
6+
37
### v0.116.0 (2025-05-18)
48

59
* Regenerated from discovery document revision 20250508

generated/google-apis-retail_v2/lib/google/apis/retail_v2/classes.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,6 +1630,25 @@ def update!(**args)
16301630
end
16311631
end
16321632

1633+
# A message with a list of double values.
1634+
class GoogleCloudRetailV2DoubleList
1635+
include Google::Apis::Core::Hashable
1636+
1637+
# The list of double values.
1638+
# Corresponds to the JSON property `values`
1639+
# @return [Array<Float>]
1640+
attr_accessor :values
1641+
1642+
def initialize(**args)
1643+
update!(**args)
1644+
end
1645+
1646+
# Update properties of this object
1647+
def update!(**args)
1648+
@values = args[:values] if args.key?(:values)
1649+
end
1650+
end
1651+
16331652
# Metadata for active A/B testing experiment.
16341653
class GoogleCloudRetailV2ExperimentInfo
16351654
include Google::Apis::Core::Hashable
@@ -5942,6 +5961,11 @@ class GoogleCloudRetailV2SearchResponseSearchResult
59425961
# @return [Hash<String,String>]
59435962
attr_accessor :matching_variant_fields
59445963

5964+
# Google provided available scores.
5965+
# Corresponds to the JSON property `modelScores`
5966+
# @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2DoubleList>]
5967+
attr_accessor :model_scores
5968+
59455969
# Specifies previous events related to this product for this user based on
59465970
# UserEvent with same SearchRequest.visitor_id or UserInfo.user_id. This is set
59475971
# only when SearchRequest.PersonalizationSpec.mode is SearchRequest.
@@ -5983,6 +6007,7 @@ def update!(**args)
59836007
@id = args[:id] if args.key?(:id)
59846008
@matching_variant_count = args[:matching_variant_count] if args.key?(:matching_variant_count)
59856009
@matching_variant_fields = args[:matching_variant_fields] if args.key?(:matching_variant_fields)
6010+
@model_scores = args[:model_scores] if args.key?(:model_scores)
59866011
@personal_labels = args[:personal_labels] if args.key?(:personal_labels)
59876012
@product = args[:product] if args.key?(:product)
59886013
@variant_rollup_values = args[:variant_rollup_values] if args.key?(:variant_rollup_values)

generated/google-apis-retail_v2/lib/google/apis/retail_v2/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module RetailV2
1818
# Version of the google-apis-retail_v2 gem
19-
GEM_VERSION = "0.116.0"
19+
GEM_VERSION = "0.117.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.17.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250508"
25+
REVISION = "20250515"
2626
end
2727
end
2828
end

generated/google-apis-retail_v2/lib/google/apis/retail_v2/representations.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
280280
include Google::Apis::Core::JsonObjectSupport
281281
end
282282

283+
class GoogleCloudRetailV2DoubleList
284+
class Representation < Google::Apis::Core::JsonRepresentation; end
285+
286+
include Google::Apis::Core::JsonObjectSupport
287+
end
288+
283289
class GoogleCloudRetailV2ExperimentInfo
284290
class Representation < Google::Apis::Core::JsonRepresentation; end
285291

@@ -1959,6 +1965,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
19591965
end
19601966
end
19611967

1968+
class GoogleCloudRetailV2DoubleList
1969+
# @private
1970+
class Representation < Google::Apis::Core::JsonRepresentation
1971+
collection :values, as: 'values'
1972+
end
1973+
end
1974+
19621975
class GoogleCloudRetailV2ExperimentInfo
19631976
# @private
19641977
class Representation < Google::Apis::Core::JsonRepresentation
@@ -3033,6 +3046,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
30333046
property :id, as: 'id'
30343047
property :matching_variant_count, as: 'matchingVariantCount'
30353048
hash :matching_variant_fields, as: 'matchingVariantFields'
3049+
hash :model_scores, as: 'modelScores', class: Google::Apis::RetailV2::GoogleCloudRetailV2DoubleList, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2DoubleList::Representation
3050+
30363051
collection :personal_labels, as: 'personalLabels'
30373052
property :product, as: 'product', class: Google::Apis::RetailV2::GoogleCloudRetailV2Product, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2Product::Representation
30383053

0 commit comments

Comments
 (0)