Skip to content

Commit 2c2babf

Browse files
feat: Automated regeneration of retail v2 client (googleapis#23797)
Auto-created at 2025-07-27 10:26:07 +0000 using the toys pull request generator.
1 parent 172aef4 commit 2c2babf

File tree

5 files changed

+95
-2
lines changed

5 files changed

+95
-2
lines changed

api_names_out.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317177,6 +317177,14 @@
317177317177
"/retail:v2/GoogleCloudRetailV2OutputResult/bigqueryResult/bigquery_result": bigquery_result
317178317178
"/retail:v2/GoogleCloudRetailV2OutputResult/gcsResult": gcs_result
317179317179
"/retail:v2/GoogleCloudRetailV2OutputResult/gcsResult/gcs_result": gcs_result
317180+
"/retail:v2/GoogleCloudRetailV2PanelInfo": google_cloud_retail_v2_panel_info
317181+
"/retail:v2/GoogleCloudRetailV2PanelInfo/attributionToken": attribution_token
317182+
"/retail:v2/GoogleCloudRetailV2PanelInfo/displayName": display_name
317183+
"/retail:v2/GoogleCloudRetailV2PanelInfo/panelId": panel_id
317184+
"/retail:v2/GoogleCloudRetailV2PanelInfo/panelPosition": panel_position
317185+
"/retail:v2/GoogleCloudRetailV2PanelInfo/productDetails": product_details
317186+
"/retail:v2/GoogleCloudRetailV2PanelInfo/productDetails/product_detail": product_detail
317187+
"/retail:v2/GoogleCloudRetailV2PanelInfo/totalPanels": total_panels
317180317188
"/retail:v2/GoogleCloudRetailV2PauseModelRequest": google_cloud_retail_v2_pause_model_request
317181317189
"/retail:v2/GoogleCloudRetailV2PinControlMetadata": google_cloud_retail_v2_pin_control_metadata
317182317190
"/retail:v2/GoogleCloudRetailV2PinControlMetadata/allMatchedPins": all_matched_pins
@@ -317625,6 +317633,8 @@
317625317633
"/retail:v2/GoogleCloudRetailV2UserEvent/pageCategories": page_categories
317626317634
"/retail:v2/GoogleCloudRetailV2UserEvent/pageCategories/page_category": page_category
317627317635
"/retail:v2/GoogleCloudRetailV2UserEvent/pageViewId": page_view_id
317636+
"/retail:v2/GoogleCloudRetailV2UserEvent/panels": panels
317637+
"/retail:v2/GoogleCloudRetailV2UserEvent/panels/panel": panel
317628317638
"/retail:v2/GoogleCloudRetailV2UserEvent/productDetails": product_details
317629317639
"/retail:v2/GoogleCloudRetailV2UserEvent/productDetails/product_detail": product_detail
317630317640
"/retail:v2/GoogleCloudRetailV2UserEvent/purchaseTransaction": purchase_transaction

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.121.0 (2025-07-27)
4+
5+
* Regenerated from discovery document revision 20250717
6+
37
### v0.120.0 (2025-07-13)
48

59
* Regenerated from discovery document revision 20250703

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

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3078,6 +3078,57 @@ def update!(**args)
30783078
end
30793079
end
30803080

3081+
# Detailed panel information associated with a user event.
3082+
class GoogleCloudRetailV2PanelInfo
3083+
include Google::Apis::Core::Hashable
3084+
3085+
# Optional. The attribution token of the panel.
3086+
# Corresponds to the JSON property `attributionToken`
3087+
# @return [String]
3088+
attr_accessor :attribution_token
3089+
3090+
# Optional. The display name of the panel.
3091+
# Corresponds to the JSON property `displayName`
3092+
# @return [String]
3093+
attr_accessor :display_name
3094+
3095+
# Required. The panel ID.
3096+
# Corresponds to the JSON property `panelId`
3097+
# @return [String]
3098+
attr_accessor :panel_id
3099+
3100+
# Optional. The ordered position of the panel, if shown to the user with other
3101+
# panels. If set, then total_panels must also be set.
3102+
# Corresponds to the JSON property `panelPosition`
3103+
# @return [Fixnum]
3104+
attr_accessor :panel_position
3105+
3106+
# Optional. The product details associated with the panel.
3107+
# Corresponds to the JSON property `productDetails`
3108+
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2ProductDetail>]
3109+
attr_accessor :product_details
3110+
3111+
# Optional. The total number of panels, including this one, shown to the user.
3112+
# Must be set if panel_position is set.
3113+
# Corresponds to the JSON property `totalPanels`
3114+
# @return [Fixnum]
3115+
attr_accessor :total_panels
3116+
3117+
def initialize(**args)
3118+
update!(**args)
3119+
end
3120+
3121+
# Update properties of this object
3122+
def update!(**args)
3123+
@attribution_token = args[:attribution_token] if args.key?(:attribution_token)
3124+
@display_name = args[:display_name] if args.key?(:display_name)
3125+
@panel_id = args[:panel_id] if args.key?(:panel_id)
3126+
@panel_position = args[:panel_position] if args.key?(:panel_position)
3127+
@product_details = args[:product_details] if args.key?(:product_details)
3128+
@total_panels = args[:total_panels] if args.key?(:total_panels)
3129+
end
3130+
end
3131+
30813132
# Request for pausing training of a model.
30823133
class GoogleCloudRetailV2PauseModelRequest
30833134
include Google::Apis::Core::Hashable
@@ -6798,6 +6849,12 @@ class GoogleCloudRetailV2UserEvent
67986849
# @return [String]
67996850
attr_accessor :page_view_id
68006851

6852+
# Optional. List of panels associated with this event. Used for panel-level
6853+
# impression data.
6854+
# Corresponds to the JSON property `panels`
6855+
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2PanelInfo>]
6856+
attr_accessor :panels
6857+
68016858
# The main product details related to the event. This field is optional except
68026859
# for the following event types: * `add-to-cart` * `detail-page-view` * `
68036860
# purchase-complete` In a `search` event, this field represents the products
@@ -6885,6 +6942,7 @@ def update!(**args)
68856942
@order_by = args[:order_by] if args.key?(:order_by)
68866943
@page_categories = args[:page_categories] if args.key?(:page_categories)
68876944
@page_view_id = args[:page_view_id] if args.key?(:page_view_id)
6945+
@panels = args[:panels] if args.key?(:panels)
68886946
@product_details = args[:product_details] if args.key?(:product_details)
68896947
@purchase_transaction = args[:purchase_transaction] if args.key?(:purchase_transaction)
68906948
@referrer_uri = args[:referrer_uri] if args.key?(:referrer_uri)

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.120.0"
19+
GEM_VERSION = "0.121.0"
2020

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

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

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
538538
include Google::Apis::Core::JsonObjectSupport
539539
end
540540

541+
class GoogleCloudRetailV2PanelInfo
542+
class Representation < Google::Apis::Core::JsonRepresentation; end
543+
544+
include Google::Apis::Core::JsonObjectSupport
545+
end
546+
541547
class GoogleCloudRetailV2PauseModelRequest
542548
class Representation < Google::Apis::Core::JsonRepresentation; end
543549

@@ -2412,6 +2418,19 @@ class Representation < Google::Apis::Core::JsonRepresentation
24122418
end
24132419
end
24142420

2421+
class GoogleCloudRetailV2PanelInfo
2422+
# @private
2423+
class Representation < Google::Apis::Core::JsonRepresentation
2424+
property :attribution_token, as: 'attributionToken'
2425+
property :display_name, as: 'displayName'
2426+
property :panel_id, as: 'panelId'
2427+
property :panel_position, as: 'panelPosition'
2428+
collection :product_details, as: 'productDetails', class: Google::Apis::RetailV2::GoogleCloudRetailV2ProductDetail, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ProductDetail::Representation
2429+
2430+
property :total_panels, as: 'totalPanels'
2431+
end
2432+
end
2433+
24152434
class GoogleCloudRetailV2PauseModelRequest
24162435
# @private
24172436
class Representation < Google::Apis::Core::JsonRepresentation
@@ -3275,6 +3294,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
32753294
property :order_by, as: 'orderBy'
32763295
collection :page_categories, as: 'pageCategories'
32773296
property :page_view_id, as: 'pageViewId'
3297+
collection :panels, as: 'panels', class: Google::Apis::RetailV2::GoogleCloudRetailV2PanelInfo, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2PanelInfo::Representation
3298+
32783299
collection :product_details, as: 'productDetails', class: Google::Apis::RetailV2::GoogleCloudRetailV2ProductDetail, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2ProductDetail::Representation
32793300

32803301
property :purchase_transaction, as: 'purchaseTransaction', class: Google::Apis::RetailV2::GoogleCloudRetailV2PurchaseTransaction, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2PurchaseTransaction::Representation

0 commit comments

Comments
 (0)