google-apis-retail_v2 0.103.0 → 0.105.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/retail_v2/classes.rb +53 -28
- data/lib/google/apis/retail_v2/gem_version.rb +2 -2
- data/lib/google/apis/retail_v2/representations.rb +31 -15
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfcad764df0053152b60928717076cb104a1b8a00a91e9a5a9d04a95882b9d97
|
4
|
+
data.tar.gz: dbd755005c9c634c96345c4ad30f620b98083cd618c85b4eb31035b2bc0639ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2197164ecb8f51972029bab2550503cbcc72d0bb08d44db95407f216f283d829b431a439f38e584328da046c6100e78e709c05700c623d2243fe24ec0a742554
|
7
|
+
data.tar.gz: 07c301879e5369152e6fe21cf29e9f830ec8476255ae646c8655f8be0e8096302bdf6c694b1cdfae33f2b2fdc18d36d73da63986a03e025e4f834032d97b064a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-retail_v2
|
2
2
|
|
3
|
+
### v0.105.0 (2024-11-03)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241024
|
6
|
+
|
7
|
+
### v0.104.0 (2024-10-27)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20241017
|
10
|
+
|
3
11
|
### v0.103.0 (2024-10-13)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20241003
|
@@ -2840,6 +2840,52 @@ module Google
|
|
2840
2840
|
end
|
2841
2841
|
end
|
2842
2842
|
|
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
|
+
|
2843
2889
|
# Request message for Predict method.
|
2844
2890
|
class GoogleCloudRetailV2PredictRequest
|
2845
2891
|
include Google::Apis::Core::Hashable
|
@@ -5468,6 +5514,12 @@ module Google
|
|
5468
5514
|
# @return [String]
|
5469
5515
|
attr_accessor :next_page_token
|
5470
5516
|
|
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
|
+
|
5471
5523
|
# Information describing query expansion including whether expansion has
|
5472
5524
|
# occurred.
|
5473
5525
|
# Corresponds to the JSON property `queryExpansionInfo`
|
@@ -5513,6 +5565,7 @@ module Google
|
|
5513
5565
|
@facets = args[:facets] if args.key?(:facets)
|
5514
5566
|
@invalid_condition_boost_specs = args[:invalid_condition_boost_specs] if args.key?(:invalid_condition_boost_specs)
|
5515
5567
|
@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)
|
5516
5569
|
@query_expansion_info = args[:query_expansion_info] if args.key?(:query_expansion_info)
|
5517
5570
|
@redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri)
|
5518
5571
|
@results = args[:results] if args.key?(:results)
|
@@ -7412,12 +7465,6 @@ module Google
|
|
7412
7465
|
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig]
|
7413
7466
|
attr_accessor :frequently_bought_together_config
|
7414
7467
|
|
7415
|
-
# Config that turns on usage of llm embeddings as features to the model.
|
7416
|
-
# Embeddings leverage unstructured text fields like description and title.
|
7417
|
-
# Corresponds to the JSON property `llmEmbeddingConfig`
|
7418
|
-
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig]
|
7419
|
-
attr_accessor :llm_embedding_config
|
7420
|
-
|
7421
7468
|
def initialize(**args)
|
7422
7469
|
update!(**args)
|
7423
7470
|
end
|
@@ -7425,28 +7472,6 @@ module Google
|
|
7425
7472
|
# Update properties of this object
|
7426
7473
|
def update!(**args)
|
7427
7474
|
@frequently_bought_together_config = args[:frequently_bought_together_config] if args.key?(:frequently_bought_together_config)
|
7428
|
-
@llm_embedding_config = args[:llm_embedding_config] if args.key?(:llm_embedding_config)
|
7429
|
-
end
|
7430
|
-
end
|
7431
|
-
|
7432
|
-
# Config that turns on usage of llm embeddings as features to the model.
|
7433
|
-
# Embeddings leverage unstructured text fields like description and title.
|
7434
|
-
class GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig
|
7435
|
-
include Google::Apis::Core::Hashable
|
7436
|
-
|
7437
|
-
# Optional. The LLM embedding version to use. Currently only `v0` is supported.
|
7438
|
-
# If not specified, feature will not be turned on.
|
7439
|
-
# Corresponds to the JSON property `llmEmbeddingVersion`
|
7440
|
-
# @return [String]
|
7441
|
-
attr_accessor :llm_embedding_version
|
7442
|
-
|
7443
|
-
def initialize(**args)
|
7444
|
-
update!(**args)
|
7445
|
-
end
|
7446
|
-
|
7447
|
-
# Update properties of this object
|
7448
|
-
def update!(**args)
|
7449
|
-
@llm_embedding_version = args[:llm_embedding_version] if args.key?(:llm_embedding_version)
|
7450
7475
|
end
|
7451
7476
|
end
|
7452
7477
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RetailV2
|
18
18
|
# Version of the google-apis-retail_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.105.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241024"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -502,6 +502,18 @@ module Google
|
|
502
502
|
include Google::Apis::Core::JsonObjectSupport
|
503
503
|
end
|
504
504
|
|
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
|
+
|
505
517
|
class GoogleCloudRetailV2PredictRequest
|
506
518
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
507
519
|
|
@@ -1150,12 +1162,6 @@ module Google
|
|
1150
1162
|
include Google::Apis::Core::JsonObjectSupport
|
1151
1163
|
end
|
1152
1164
|
|
1153
|
-
class GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig
|
1154
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1155
|
-
|
1156
|
-
include Google::Apis::Core::JsonObjectSupport
|
1157
|
-
end
|
1158
|
-
|
1159
1165
|
class GoogleCloudRetailV2alphaModelPageOptimizationConfig
|
1160
1166
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1161
1167
|
|
@@ -2290,6 +2296,23 @@ module Google
|
|
2290
2296
|
end
|
2291
2297
|
end
|
2292
2298
|
|
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
|
+
|
2293
2316
|
class GoogleCloudRetailV2PredictRequest
|
2294
2317
|
# @private
|
2295
2318
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2895,6 +2918,8 @@ module Google
|
|
2895
2918
|
collection :invalid_condition_boost_specs, as: 'invalidConditionBoostSpecs', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec::Representation
|
2896
2919
|
|
2897
2920
|
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
|
+
|
2898
2923
|
property :query_expansion_info, as: 'queryExpansionInfo', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseQueryExpansionInfo, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseQueryExpansionInfo::Representation
|
2899
2924
|
|
2900
2925
|
property :redirect_uri, as: 'redirectUri'
|
@@ -3388,15 +3413,6 @@ module Google
|
|
3388
3413
|
class Representation < Google::Apis::Core::JsonRepresentation
|
3389
3414
|
property :frequently_bought_together_config, as: 'frequentlyBoughtTogetherConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelFrequentlyBoughtTogetherFeaturesConfig::Representation
|
3390
3415
|
|
3391
|
-
property :llm_embedding_config, as: 'llmEmbeddingConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig::Representation
|
3392
|
-
|
3393
|
-
end
|
3394
|
-
end
|
3395
|
-
|
3396
|
-
class GoogleCloudRetailV2alphaModelModelFeaturesConfigLlmEmbeddingConfig
|
3397
|
-
# @private
|
3398
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
3399
|
-
property :llm_embedding_version, as: 'llmEmbeddingVersion'
|
3400
3416
|
end
|
3401
3417
|
end
|
3402
3418
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-retail_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.105.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: 2024-
|
11
|
+
date: 2024-11-03 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_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.105.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|