Skip to content

Commit a8bce8e

Browse files
feat: Automated regeneration of retail v2 client (googleapis#20510)
Auto-created at 2024-11-03 09:53:18 +0000 using the toys pull request generator.
1 parent 809103d commit a8bce8e

File tree

5 files changed

+99
-2
lines changed

5 files changed

+99
-2
lines changed

api_names_out.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286373,6 +286373,14 @@
286373286373
"/retail:v2/GoogleCloudRetailV2OutputResult/gcsResult": gcs_result
286374286374
"/retail:v2/GoogleCloudRetailV2OutputResult/gcsResult/gcs_result": gcs_result
286375286375
"/retail:v2/GoogleCloudRetailV2PauseModelRequest": google_cloud_retail_v2_pause_model_request
286376+
"/retail:v2/GoogleCloudRetailV2PinControlMetadata": google_cloud_retail_v2_pin_control_metadata
286377+
"/retail:v2/GoogleCloudRetailV2PinControlMetadata/allMatchedPins": all_matched_pins
286378+
"/retail:v2/GoogleCloudRetailV2PinControlMetadata/allMatchedPins/all_matched_pin": all_matched_pin
286379+
"/retail:v2/GoogleCloudRetailV2PinControlMetadata/droppedPins": dropped_pins
286380+
"/retail:v2/GoogleCloudRetailV2PinControlMetadata/droppedPins/dropped_pin": dropped_pin
286381+
"/retail:v2/GoogleCloudRetailV2PinControlMetadataProductPins": google_cloud_retail_v2_pin_control_metadata_product_pins
286382+
"/retail:v2/GoogleCloudRetailV2PinControlMetadataProductPins/productId": product_id
286383+
"/retail:v2/GoogleCloudRetailV2PinControlMetadataProductPins/productId/product_id": product_id
286376286384
"/retail:v2/GoogleCloudRetailV2PredictRequest": google_cloud_retail_v2_predict_request
286377286385
"/retail:v2/GoogleCloudRetailV2PredictRequest/filter": filter
286378286386
"/retail:v2/GoogleCloudRetailV2PredictRequest/labels": labels
@@ -286679,6 +286687,7 @@
286679286687
"/retail:v2/GoogleCloudRetailV2SearchResponse/invalidConditionBoostSpecs": invalid_condition_boost_specs
286680286688
"/retail:v2/GoogleCloudRetailV2SearchResponse/invalidConditionBoostSpecs/invalid_condition_boost_spec": invalid_condition_boost_spec
286681286689
"/retail:v2/GoogleCloudRetailV2SearchResponse/nextPageToken": next_page_token
286690+
"/retail:v2/GoogleCloudRetailV2SearchResponse/pinControlMetadata": pin_control_metadata
286682286691
"/retail:v2/GoogleCloudRetailV2SearchResponse/queryExpansionInfo": query_expansion_info
286683286692
"/retail:v2/GoogleCloudRetailV2SearchResponse/redirectUri": redirect_uri
286684286693
"/retail:v2/GoogleCloudRetailV2SearchResponse/results": results

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.105.0 (2024-11-03)
4+
5+
* Regenerated from discovery document revision 20241024
6+
37
### v0.104.0 (2024-10-27)
48

59
* Regenerated from discovery document revision 20241017

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

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2840,6 +2840,52 @@ def update!(**args)
28402840
end
28412841
end
28422842

2843+
# Metadata for pinning to be returned in the response. This is used for
2844+
# distinguishing between applied vs dropped pins.
2845+
class GoogleCloudRetailV2PinControlMetadata
2846+
include Google::Apis::Core::Hashable
2847+
2848+
# Map of all matched pins, keyed by pin position.
2849+
# Corresponds to the JSON property `allMatchedPins`
2850+
# @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadataProductPins>]
2851+
attr_accessor :all_matched_pins
2852+
2853+
# Map of pins that were dropped due to overlap with other matching pins, keyed
2854+
# by pin position.
2855+
# Corresponds to the JSON property `droppedPins`
2856+
# @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadataProductPins>]
2857+
attr_accessor :dropped_pins
2858+
2859+
def initialize(**args)
2860+
update!(**args)
2861+
end
2862+
2863+
# Update properties of this object
2864+
def update!(**args)
2865+
@all_matched_pins = args[:all_matched_pins] if args.key?(:all_matched_pins)
2866+
@dropped_pins = args[:dropped_pins] if args.key?(:dropped_pins)
2867+
end
2868+
end
2869+
2870+
# List of product ids which have associated pins.
2871+
class GoogleCloudRetailV2PinControlMetadataProductPins
2872+
include Google::Apis::Core::Hashable
2873+
2874+
# List of product ids which have associated pins.
2875+
# Corresponds to the JSON property `productId`
2876+
# @return [Array<String>]
2877+
attr_accessor :product_id
2878+
2879+
def initialize(**args)
2880+
update!(**args)
2881+
end
2882+
2883+
# Update properties of this object
2884+
def update!(**args)
2885+
@product_id = args[:product_id] if args.key?(:product_id)
2886+
end
2887+
end
2888+
28432889
# Request message for Predict method.
28442890
class GoogleCloudRetailV2PredictRequest
28452891
include Google::Apis::Core::Hashable
@@ -5468,6 +5514,12 @@ class GoogleCloudRetailV2SearchResponse
54685514
# @return [String]
54695515
attr_accessor :next_page_token
54705516

5517+
# Metadata for pinning to be returned in the response. This is used for
5518+
# distinguishing between applied vs dropped pins.
5519+
# Corresponds to the JSON property `pinControlMetadata`
5520+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadata]
5521+
attr_accessor :pin_control_metadata
5522+
54715523
# Information describing query expansion including whether expansion has
54725524
# occurred.
54735525
# Corresponds to the JSON property `queryExpansionInfo`
@@ -5513,6 +5565,7 @@ def update!(**args)
55135565
@facets = args[:facets] if args.key?(:facets)
55145566
@invalid_condition_boost_specs = args[:invalid_condition_boost_specs] if args.key?(:invalid_condition_boost_specs)
55155567
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
5568+
@pin_control_metadata = args[:pin_control_metadata] if args.key?(:pin_control_metadata)
55165569
@query_expansion_info = args[:query_expansion_info] if args.key?(:query_expansion_info)
55175570
@redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri)
55185571
@results = args[:results] if args.key?(:results)

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.104.0"
19+
GEM_VERSION = "0.105.0"
2020

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

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

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
502502
include Google::Apis::Core::JsonObjectSupport
503503
end
504504

505+
class GoogleCloudRetailV2PinControlMetadata
506+
class Representation < Google::Apis::Core::JsonRepresentation; end
507+
508+
include Google::Apis::Core::JsonObjectSupport
509+
end
510+
511+
class GoogleCloudRetailV2PinControlMetadataProductPins
512+
class Representation < Google::Apis::Core::JsonRepresentation; end
513+
514+
include Google::Apis::Core::JsonObjectSupport
515+
end
516+
505517
class GoogleCloudRetailV2PredictRequest
506518
class Representation < Google::Apis::Core::JsonRepresentation; end
507519

@@ -2284,6 +2296,23 @@ class Representation < Google::Apis::Core::JsonRepresentation
22842296
end
22852297
end
22862298

2299+
class GoogleCloudRetailV2PinControlMetadata
2300+
# @private
2301+
class Representation < Google::Apis::Core::JsonRepresentation
2302+
hash :all_matched_pins, as: 'allMatchedPins', class: Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadataProductPins, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadataProductPins::Representation
2303+
2304+
hash :dropped_pins, as: 'droppedPins', class: Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadataProductPins, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadataProductPins::Representation
2305+
2306+
end
2307+
end
2308+
2309+
class GoogleCloudRetailV2PinControlMetadataProductPins
2310+
# @private
2311+
class Representation < Google::Apis::Core::JsonRepresentation
2312+
collection :product_id, as: 'productId'
2313+
end
2314+
end
2315+
22872316
class GoogleCloudRetailV2PredictRequest
22882317
# @private
22892318
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2889,6 +2918,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
28892918
collection :invalid_condition_boost_specs, as: 'invalidConditionBoostSpecs', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec::Representation
28902919

28912920
property :next_page_token, as: 'nextPageToken'
2921+
property :pin_control_metadata, as: 'pinControlMetadata', class: Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadata, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadata::Representation
2922+
28922923
property :query_expansion_info, as: 'queryExpansionInfo', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseQueryExpansionInfo, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseQueryExpansionInfo::Representation
28932924

28942925
property :redirect_uri, as: 'redirectUri'

0 commit comments

Comments
 (0)