google-apis-retail_v2alpha 0.123.0 → 0.124.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 104632ff87aab7427ec92d5db7c3ce3ac8837c5c4164c074267c5721ef22c959
4
- data.tar.gz: 81c53fd43638fda6ce24d8b15f36b2b78c9a051bb4c2d3b2315b2bd505292ce6
3
+ metadata.gz: 329d4ccf75ab265dbe6b3caa376345e5f116b76da2da1e4c36f49f2b8fb3f123
4
+ data.tar.gz: f0a87260642918099757e28421e668e2b2e480a9e4d20c0781238d09d36ea837
5
5
  SHA512:
6
- metadata.gz: 5862b10aa76293d7ed869fd456deeeb1e328131507cfa10b3ec490bdd6816690eaf0f7b95eb57df2439845124cb97e467f68b9c3e3b6e1ad4b9a0ff095cc29b8
7
- data.tar.gz: a55a04753b689c451443b424a0feb5554dcfcdbd55c038d0c9c449f9211938bc5a9c2c7e39c27d71c579c699f5dd34d232d9d6f1e780b0c622bcbffd1491f4e8
6
+ metadata.gz: 19d207072454f5c4dabf4fa6c6460337b007d69b12a2ec8de1d1ff73a36fe47e67b1cd72cbaf42003e6704d571f2fad2822243ce115571ad59f345e2b7f8214c
7
+ data.tar.gz: 424a8ba82ddcd4282b5fa4d1848ee71eb10d37af0076ac7ddf4ce251cf89c7108e0d6812e6ca0550af80215cf66896ef8db33f896a634e1eb077ea2c0d6aead0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.124.0 (2025-07-27)
4
+
5
+ * Regenerated from discovery document revision 20250717
6
+
3
7
  ### v0.123.0 (2025-07-20)
4
8
 
5
9
  * Regenerated from discovery document revision 20250710
@@ -2851,6 +2851,11 @@ module Google
2851
2851
  # @return [String]
2852
2852
  attr_accessor :query
2853
2853
 
2854
+ # Optional. The safety settings to be applied to the generated content.
2855
+ # Corresponds to the JSON property `safetySettings`
2856
+ # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSafetySetting>]
2857
+ attr_accessor :safety_settings
2858
+
2854
2859
  # Search parameters.
2855
2860
  # Corresponds to the JSON property `searchParams`
2856
2861
  # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaConversationalSearchRequestSearchParams]
@@ -2897,6 +2902,7 @@ module Google
2897
2902
  @conversational_filtering_spec = args[:conversational_filtering_spec] if args.key?(:conversational_filtering_spec)
2898
2903
  @page_categories = args[:page_categories] if args.key?(:page_categories)
2899
2904
  @query = args[:query] if args.key?(:query)
2905
+ @safety_settings = args[:safety_settings] if args.key?(:safety_settings)
2900
2906
  @search_params = args[:search_params] if args.key?(:search_params)
2901
2907
  @user_info = args[:user_info] if args.key?(:user_info)
2902
2908
  @user_labels = args[:user_labels] if args.key?(:user_labels)
@@ -4933,6 +4939,11 @@ module Google
4933
4939
  # @return [Fixnum]
4934
4940
  attr_accessor :data_source_id
4935
4941
 
4942
+ # Merchant Center primary feed ID. Deprecated: use data_source_id instead.
4943
+ # Corresponds to the JSON property `primaryFeedId`
4944
+ # @return [Fixnum]
4945
+ attr_accessor :primary_feed_id
4946
+
4936
4947
  # Merchant Center primary feed name. The name is used for the display purposes
4937
4948
  # only.
4938
4949
  # Corresponds to the JSON property `primaryFeedName`
@@ -4946,6 +4957,7 @@ module Google
4946
4957
  # Update properties of this object
4947
4958
  def update!(**args)
4948
4959
  @data_source_id = args[:data_source_id] if args.key?(:data_source_id)
4960
+ @primary_feed_id = args[:primary_feed_id] if args.key?(:primary_feed_id)
4949
4961
  @primary_feed_name = args[:primary_feed_name] if args.key?(:primary_feed_name)
4950
4962
  end
4951
4963
  end
@@ -5460,6 +5472,57 @@ module Google
5460
5472
  end
5461
5473
  end
5462
5474
 
5475
+ # Detailed panel information associated with a user event.
5476
+ class GoogleCloudRetailV2alphaPanelInfo
5477
+ include Google::Apis::Core::Hashable
5478
+
5479
+ # Optional. The attribution token of the panel.
5480
+ # Corresponds to the JSON property `attributionToken`
5481
+ # @return [String]
5482
+ attr_accessor :attribution_token
5483
+
5484
+ # Optional. The display name of the panel.
5485
+ # Corresponds to the JSON property `displayName`
5486
+ # @return [String]
5487
+ attr_accessor :display_name
5488
+
5489
+ # Required. The panel ID.
5490
+ # Corresponds to the JSON property `panelId`
5491
+ # @return [String]
5492
+ attr_accessor :panel_id
5493
+
5494
+ # Optional. The ordered position of the panel, if shown to the user with other
5495
+ # panels. If set, then total_panels must also be set.
5496
+ # Corresponds to the JSON property `panelPosition`
5497
+ # @return [Fixnum]
5498
+ attr_accessor :panel_position
5499
+
5500
+ # Optional. The product details associated with the panel.
5501
+ # Corresponds to the JSON property `productDetails`
5502
+ # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductDetail>]
5503
+ attr_accessor :product_details
5504
+
5505
+ # Optional. The total number of panels, including this one, shown to the user.
5506
+ # Must be set if panel_position is set.
5507
+ # Corresponds to the JSON property `totalPanels`
5508
+ # @return [Fixnum]
5509
+ attr_accessor :total_panels
5510
+
5511
+ def initialize(**args)
5512
+ update!(**args)
5513
+ end
5514
+
5515
+ # Update properties of this object
5516
+ def update!(**args)
5517
+ @attribution_token = args[:attribution_token] if args.key?(:attribution_token)
5518
+ @display_name = args[:display_name] if args.key?(:display_name)
5519
+ @panel_id = args[:panel_id] if args.key?(:panel_id)
5520
+ @panel_position = args[:panel_position] if args.key?(:panel_position)
5521
+ @product_details = args[:product_details] if args.key?(:product_details)
5522
+ @total_panels = args[:total_panels] if args.key?(:total_panels)
5523
+ end
5524
+ end
5525
+
5463
5526
  # Request for pausing training of a model.
5464
5527
  class GoogleCloudRetailV2alphaPauseModelRequest
5465
5528
  include Google::Apis::Core::Hashable
@@ -7469,6 +7532,38 @@ module Google
7469
7532
  end
7470
7533
  end
7471
7534
 
7535
+ # Safety settings.
7536
+ class GoogleCloudRetailV2alphaSafetySetting
7537
+ include Google::Apis::Core::Hashable
7538
+
7539
+ # Harm category.
7540
+ # Corresponds to the JSON property `category`
7541
+ # @return [String]
7542
+ attr_accessor :category
7543
+
7544
+ # Optional. Specify if the threshold is used for probability or severity score.
7545
+ # If not specified, the threshold is used for probability score.
7546
+ # Corresponds to the JSON property `method`
7547
+ # @return [String]
7548
+ attr_accessor :method_prop
7549
+
7550
+ # The harm block threshold.
7551
+ # Corresponds to the JSON property `threshold`
7552
+ # @return [String]
7553
+ attr_accessor :threshold
7554
+
7555
+ def initialize(**args)
7556
+ update!(**args)
7557
+ end
7558
+
7559
+ # Update properties of this object
7560
+ def update!(**args)
7561
+ @category = args[:category] if args.key?(:category)
7562
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
7563
+ @threshold = args[:threshold] if args.key?(:threshold)
7564
+ end
7565
+ end
7566
+
7472
7567
  # Request message for SearchService.Search method.
7473
7568
  class GoogleCloudRetailV2alphaSearchRequest
7474
7569
  include Google::Apis::Core::Hashable
@@ -9247,6 +9342,12 @@ module Google
9247
9342
  # @return [String]
9248
9343
  attr_accessor :page_view_id
9249
9344
 
9345
+ # Optional. List of panels associated with this event. Used for panel-level
9346
+ # impression data.
9347
+ # Corresponds to the JSON property `panels`
9348
+ # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPanelInfo>]
9349
+ attr_accessor :panels
9350
+
9250
9351
  # The main product details related to the event. This field is optional except
9251
9352
  # for the following event types: * `add-to-cart` * `detail-page-view` * `
9252
9353
  # purchase-complete` In a `search` event, this field represents the products
@@ -9334,6 +9435,7 @@ module Google
9334
9435
  @order_by = args[:order_by] if args.key?(:order_by)
9335
9436
  @page_categories = args[:page_categories] if args.key?(:page_categories)
9336
9437
  @page_view_id = args[:page_view_id] if args.key?(:page_view_id)
9438
+ @panels = args[:panels] if args.key?(:panels)
9337
9439
  @product_details = args[:product_details] if args.key?(:product_details)
9338
9440
  @purchase_transaction = args[:purchase_transaction] if args.key?(:purchase_transaction)
9339
9441
  @referrer_uri = args[:referrer_uri] if args.key?(:referrer_uri)
@@ -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.123.0"
19
+ GEM_VERSION = "0.124.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250710"
25
+ REVISION = "20250717"
26
26
  end
27
27
  end
28
28
  end
@@ -1000,6 +1000,12 @@ module Google
1000
1000
  include Google::Apis::Core::JsonObjectSupport
1001
1001
  end
1002
1002
 
1003
+ class GoogleCloudRetailV2alphaPanelInfo
1004
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1005
+
1006
+ include Google::Apis::Core::JsonObjectSupport
1007
+ end
1008
+
1003
1009
  class GoogleCloudRetailV2alphaPauseModelRequest
1004
1010
  class Representation < Google::Apis::Core::JsonRepresentation; end
1005
1011
 
@@ -1306,6 +1312,12 @@ module Google
1306
1312
  include Google::Apis::Core::JsonObjectSupport
1307
1313
  end
1308
1314
 
1315
+ class GoogleCloudRetailV2alphaSafetySetting
1316
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1317
+
1318
+ include Google::Apis::Core::JsonObjectSupport
1319
+ end
1320
+
1309
1321
  class GoogleCloudRetailV2alphaSearchRequest
1310
1322
  class Representation < Google::Apis::Core::JsonRepresentation; end
1311
1323
 
@@ -2568,6 +2580,8 @@ module Google
2568
2580
 
2569
2581
  collection :page_categories, as: 'pageCategories'
2570
2582
  property :query, as: 'query'
2583
+ collection :safety_settings, as: 'safetySettings', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSafetySetting, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSafetySetting::Representation
2584
+
2571
2585
  property :search_params, as: 'searchParams', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaConversationalSearchRequestSearchParams, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaConversationalSearchRequestSearchParams::Representation
2572
2586
 
2573
2587
  property :user_info, as: 'userInfo', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserInfo, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserInfo::Representation
@@ -3161,6 +3175,7 @@ module Google
3161
3175
  # @private
3162
3176
  class Representation < Google::Apis::Core::JsonRepresentation
3163
3177
  property :data_source_id, :numeric_string => true, as: 'dataSourceId'
3178
+ property :primary_feed_id, :numeric_string => true, as: 'primaryFeedId'
3164
3179
  property :primary_feed_name, as: 'primaryFeedName'
3165
3180
  end
3166
3181
  end
@@ -3297,6 +3312,19 @@ module Google
3297
3312
  end
3298
3313
  end
3299
3314
 
3315
+ class GoogleCloudRetailV2alphaPanelInfo
3316
+ # @private
3317
+ class Representation < Google::Apis::Core::JsonRepresentation
3318
+ property :attribution_token, as: 'attributionToken'
3319
+ property :display_name, as: 'displayName'
3320
+ property :panel_id, as: 'panelId'
3321
+ property :panel_position, as: 'panelPosition'
3322
+ collection :product_details, as: 'productDetails', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductDetail, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductDetail::Representation
3323
+
3324
+ property :total_panels, as: 'totalPanels'
3325
+ end
3326
+ end
3327
+
3300
3328
  class GoogleCloudRetailV2alphaPauseModelRequest
3301
3329
  # @private
3302
3330
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3778,6 +3806,15 @@ module Google
3778
3806
  end
3779
3807
  end
3780
3808
 
3809
+ class GoogleCloudRetailV2alphaSafetySetting
3810
+ # @private
3811
+ class Representation < Google::Apis::Core::JsonRepresentation
3812
+ property :category, as: 'category'
3813
+ property :method_prop, as: 'method'
3814
+ property :threshold, as: 'threshold'
3815
+ end
3816
+ end
3817
+
3781
3818
  class GoogleCloudRetailV2alphaSearchRequest
3782
3819
  # @private
3783
3820
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4178,6 +4215,8 @@ module Google
4178
4215
  property :order_by, as: 'orderBy'
4179
4216
  collection :page_categories, as: 'pageCategories'
4180
4217
  property :page_view_id, as: 'pageViewId'
4218
+ collection :panels, as: 'panels', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPanelInfo, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPanelInfo::Representation
4219
+
4181
4220
  collection :product_details, as: 'productDetails', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductDetail, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductDetail::Representation
4182
4221
 
4183
4222
  property :purchase_transaction, as: 'purchaseTransaction', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPurchaseTransaction, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaPurchaseTransaction::Representation
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.123.0
4
+ version: 0.124.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.123.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.124.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha
62
62
  rdoc_options: []
63
63
  require_paths: