google-apis-retail_v2alpha 0.139.0 → 0.141.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 +4 -4
- data/CHANGELOG.md +10 -2
- data/OVERVIEW.md +3 -3
- data/lib/google/apis/retail_v2alpha/classes.rb +52 -0
- data/lib/google/apis/retail_v2alpha/gem_version.rb +2 -2
- data/lib/google/apis/retail_v2alpha/representations.rb +20 -0
- data/lib/google/apis/retail_v2alpha/service.rb +2 -2
- data/lib/google/apis/retail_v2alpha.rb +3 -3
- metadata +10 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5408268e9df79ea3dc57a11246329f475adc76fe0a5d0c05f681c184220167e1
|
|
4
|
+
data.tar.gz: bab6e51bc0394adce07b4f7e5d555625ea5b27d0863789a09d509e319e56f620
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27419301f5a31a3de852bae276b2cef0e5bce3b3bd024c9d17432037d3c545bcce3de9728ecb4281fa9f8a03e6c3843c9e3463c19ebbaf64af5824c8a5f61c96
|
|
7
|
+
data.tar.gz: b8f699aa4697115e3038bda9ce15fb8a50f6586754ac55cfce84507d5075e2821ebfc1cf60da271a999d704d7a6eb40694a5e64d5609d459288bb2561e275e17
|
data/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
# Release history for google-apis-retail_v2alpha
|
|
2
2
|
|
|
3
|
-
### v0.
|
|
3
|
+
### v0.141.0 (2026-08-30)
|
|
4
4
|
|
|
5
|
-
* Regenerated from discovery document revision
|
|
5
|
+
* Regenerated from discovery document revision 20260826
|
|
6
|
+
|
|
7
|
+
### v0.140.0 (2026-08-23)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20260813
|
|
10
|
+
|
|
11
|
+
### v0.139.0 (2026-08-09)
|
|
12
|
+
|
|
13
|
+
* Regenerated from discovery document revision 20260803
|
|
6
14
|
|
|
7
15
|
### v0.138.0 (2026-07-19)
|
|
8
16
|
|
data/OVERVIEW.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Simple REST client for version V2alpha of the
|
|
1
|
+
# Simple REST client for version V2alpha of the AI Commerce Search API
|
|
2
2
|
|
|
3
|
-
This is a simple client library for version V2alpha of the
|
|
3
|
+
This is a simple client library for version V2alpha of the AI Commerce Search API. It provides:
|
|
4
4
|
|
|
5
5
|
* A client object that connects to the HTTP/JSON REST endpoint for the service.
|
|
6
6
|
* Ruby objects for data structures related to the service.
|
|
@@ -65,7 +65,7 @@ More detailed descriptions of the Google simple REST clients are available in tw
|
|
|
65
65
|
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Retail service in particular.)
|
|
67
67
|
|
|
68
|
-
For reference information on specific calls in the
|
|
68
|
+
For reference information on specific calls in the AI Commerce Search API, see the {Google::Apis::RetailV2alpha::CloudRetailService class reference docs}.
|
|
69
69
|
|
|
70
70
|
## Which client should I use?
|
|
71
71
|
|
|
@@ -2333,6 +2333,12 @@ module Google
|
|
|
2333
2333
|
class GoogleCloudRetailV2alphaCompleteQueryResponse
|
|
2334
2334
|
include Google::Apis::Core::Hashable
|
|
2335
2335
|
|
|
2336
|
+
# Conversational prompts to trigger agents like Shopping Agent. This is an
|
|
2337
|
+
# experimental feature for select customers.
|
|
2338
|
+
# Corresponds to the JSON property `agentPrompts`
|
|
2339
|
+
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseAgentPrompt>]
|
|
2340
|
+
attr_accessor :agent_prompts
|
|
2341
|
+
|
|
2336
2342
|
# A map of matched attribute suggestions. This field is only available for `
|
|
2337
2343
|
# cloud-retail` dataset. Current supported keys: * `brands` * `categories`
|
|
2338
2344
|
# Corresponds to the JSON property `attributeResults`
|
|
@@ -2371,6 +2377,7 @@ module Google
|
|
|
2371
2377
|
|
|
2372
2378
|
# Update properties of this object
|
|
2373
2379
|
def update!(**args)
|
|
2380
|
+
@agent_prompts = args[:agent_prompts] if args.key?(:agent_prompts)
|
|
2374
2381
|
@attribute_results = args[:attribute_results] if args.key?(:attribute_results)
|
|
2375
2382
|
@attribution_token = args[:attribution_token] if args.key?(:attribution_token)
|
|
2376
2383
|
@completion_results = args[:completion_results] if args.key?(:completion_results)
|
|
@@ -2378,6 +2385,25 @@ module Google
|
|
|
2378
2385
|
end
|
|
2379
2386
|
end
|
|
2380
2387
|
|
|
2388
|
+
# A conversational prompt to trigger agents like Shopping Agent.
|
|
2389
|
+
class GoogleCloudRetailV2alphaCompleteQueryResponseAgentPrompt
|
|
2390
|
+
include Google::Apis::Core::Hashable
|
|
2391
|
+
|
|
2392
|
+
# The conversational prompt string.
|
|
2393
|
+
# Corresponds to the JSON property `prompt`
|
|
2394
|
+
# @return [String]
|
|
2395
|
+
attr_accessor :prompt
|
|
2396
|
+
|
|
2397
|
+
def initialize(**args)
|
|
2398
|
+
update!(**args)
|
|
2399
|
+
end
|
|
2400
|
+
|
|
2401
|
+
# Update properties of this object
|
|
2402
|
+
def update!(**args)
|
|
2403
|
+
@prompt = args[:prompt] if args.key?(:prompt)
|
|
2404
|
+
end
|
|
2405
|
+
end
|
|
2406
|
+
|
|
2381
2407
|
# Resource that represents attribute results.
|
|
2382
2408
|
class GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult
|
|
2383
2409
|
include Google::Apis::Core::Hashable
|
|
@@ -2401,6 +2427,13 @@ module Google
|
|
|
2401
2427
|
class GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult
|
|
2402
2428
|
include Google::Apis::Core::Hashable
|
|
2403
2429
|
|
|
2430
|
+
# Deprecated: Use CompleteQueryResponse.agent_prompts instead. Conversational
|
|
2431
|
+
# prompts to trigger agents like Shopping Agent. There may be multiple prompts
|
|
2432
|
+
# for a single suggestion. This is an experimental feature for select customers.
|
|
2433
|
+
# Corresponds to the JSON property `agentPrompts`
|
|
2434
|
+
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseAgentPrompt>]
|
|
2435
|
+
attr_accessor :agent_prompts
|
|
2436
|
+
|
|
2404
2437
|
# Custom attributes for the suggestion term. * For `user-data`, the attributes
|
|
2405
2438
|
# are additional custom attributes ingested through BigQuery. * For `cloud-
|
|
2406
2439
|
# retail`, the attributes are product attributes generated by Cloud Retail. It
|
|
@@ -2435,6 +2468,7 @@ module Google
|
|
|
2435
2468
|
|
|
2436
2469
|
# Update properties of this object
|
|
2437
2470
|
def update!(**args)
|
|
2471
|
+
@agent_prompts = args[:agent_prompts] if args.key?(:agent_prompts)
|
|
2438
2472
|
@attributes = args[:attributes] if args.key?(:attributes)
|
|
2439
2473
|
@facets = args[:facets] if args.key?(:facets)
|
|
2440
2474
|
@suggestion = args[:suggestion] if args.key?(:suggestion)
|
|
@@ -7577,6 +7611,16 @@ module Google
|
|
|
7577
7611
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpec]
|
|
7578
7612
|
attr_accessor :conversational_search_spec
|
|
7579
7613
|
|
|
7614
|
+
# Optional. A set of controls that are applied dynamically to the search request.
|
|
7615
|
+
# These controls are applied in addition to the controls specified in the
|
|
7616
|
+
# serving config. These controls are expected to not yet be persisted in storage.
|
|
7617
|
+
# A control could be applied twice if it is in both the serving config and
|
|
7618
|
+
# specified here. A maximum of 5 values are allowed. Otherwise, an
|
|
7619
|
+
# INVALID_ARGUMENT error is returned.
|
|
7620
|
+
# Corresponds to the JSON property `dynamicControls`
|
|
7621
|
+
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaControl>]
|
|
7622
|
+
attr_accessor :dynamic_controls
|
|
7623
|
+
|
|
7580
7624
|
# The specifications of dynamically generated facets.
|
|
7581
7625
|
# Corresponds to the JSON property `dynamicFacetSpec`
|
|
7582
7626
|
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestDynamicFacetSpec]
|
|
@@ -7611,6 +7655,12 @@ module Google
|
|
|
7611
7655
|
# @return [String]
|
|
7612
7656
|
attr_accessor :filter
|
|
7613
7657
|
|
|
7658
|
+
# Optional. A list of control IDs to ignore. These controls will not be applied
|
|
7659
|
+
# to the search request, even if they are specified in the serving config.
|
|
7660
|
+
# Corresponds to the JSON property `ignoredControlIds`
|
|
7661
|
+
# @return [Array<String>]
|
|
7662
|
+
attr_accessor :ignored_control_ids
|
|
7663
|
+
|
|
7614
7664
|
# The labels applied to a resource must meet the following requirements: * Each
|
|
7615
7665
|
# resource can have multiple labels, up to a maximum of 64. * Each label must be
|
|
7616
7666
|
# a key-value pair. * Keys have a minimum length of 1 character and a maximum
|
|
@@ -7802,11 +7852,13 @@ module Google
|
|
|
7802
7852
|
@branch = args[:branch] if args.key?(:branch)
|
|
7803
7853
|
@canonical_filter = args[:canonical_filter] if args.key?(:canonical_filter)
|
|
7804
7854
|
@conversational_search_spec = args[:conversational_search_spec] if args.key?(:conversational_search_spec)
|
|
7855
|
+
@dynamic_controls = args[:dynamic_controls] if args.key?(:dynamic_controls)
|
|
7805
7856
|
@dynamic_facet_spec = args[:dynamic_facet_spec] if args.key?(:dynamic_facet_spec)
|
|
7806
7857
|
@entity = args[:entity] if args.key?(:entity)
|
|
7807
7858
|
@experiment_id = args[:experiment_id] if args.key?(:experiment_id)
|
|
7808
7859
|
@facet_specs = args[:facet_specs] if args.key?(:facet_specs)
|
|
7809
7860
|
@filter = args[:filter] if args.key?(:filter)
|
|
7861
|
+
@ignored_control_ids = args[:ignored_control_ids] if args.key?(:ignored_control_ids)
|
|
7810
7862
|
@labels = args[:labels] if args.key?(:labels)
|
|
7811
7863
|
@language_code = args[:language_code] if args.key?(:language_code)
|
|
7812
7864
|
@offset = args[:offset] if args.key?(:offset)
|
|
@@ -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.
|
|
19
|
+
GEM_VERSION = "0.141.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260826"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -472,6 +472,12 @@ module Google
|
|
|
472
472
|
include Google::Apis::Core::JsonObjectSupport
|
|
473
473
|
end
|
|
474
474
|
|
|
475
|
+
class GoogleCloudRetailV2alphaCompleteQueryResponseAgentPrompt
|
|
476
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
477
|
+
|
|
478
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
479
|
+
end
|
|
480
|
+
|
|
475
481
|
class GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult
|
|
476
482
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
477
483
|
|
|
@@ -2446,6 +2452,8 @@ module Google
|
|
|
2446
2452
|
class GoogleCloudRetailV2alphaCompleteQueryResponse
|
|
2447
2453
|
# @private
|
|
2448
2454
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2455
|
+
collection :agent_prompts, as: 'agentPrompts', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseAgentPrompt, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseAgentPrompt::Representation
|
|
2456
|
+
|
|
2449
2457
|
hash :attribute_results, as: 'attributeResults', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult::Representation
|
|
2450
2458
|
|
|
2451
2459
|
property :attribution_token, as: 'attributionToken'
|
|
@@ -2456,6 +2464,13 @@ module Google
|
|
|
2456
2464
|
end
|
|
2457
2465
|
end
|
|
2458
2466
|
|
|
2467
|
+
class GoogleCloudRetailV2alphaCompleteQueryResponseAgentPrompt
|
|
2468
|
+
# @private
|
|
2469
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2470
|
+
property :prompt, as: 'prompt'
|
|
2471
|
+
end
|
|
2472
|
+
end
|
|
2473
|
+
|
|
2459
2474
|
class GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult
|
|
2460
2475
|
# @private
|
|
2461
2476
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2466,6 +2481,8 @@ module Google
|
|
|
2466
2481
|
class GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult
|
|
2467
2482
|
# @private
|
|
2468
2483
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2484
|
+
collection :agent_prompts, as: 'agentPrompts', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseAgentPrompt, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCompleteQueryResponseAgentPrompt::Representation
|
|
2485
|
+
|
|
2469
2486
|
hash :attributes, as: 'attributes', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute::Representation
|
|
2470
2487
|
|
|
2471
2488
|
collection :facets, as: 'facets', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseFacet, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseFacet::Representation
|
|
@@ -3827,6 +3844,8 @@ module Google
|
|
|
3827
3844
|
property :canonical_filter, as: 'canonicalFilter'
|
|
3828
3845
|
property :conversational_search_spec, as: 'conversationalSearchSpec', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpec, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpec::Representation
|
|
3829
3846
|
|
|
3847
|
+
collection :dynamic_controls, as: 'dynamicControls', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaControl, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaControl::Representation
|
|
3848
|
+
|
|
3830
3849
|
property :dynamic_facet_spec, as: 'dynamicFacetSpec', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestDynamicFacetSpec, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestDynamicFacetSpec::Representation
|
|
3831
3850
|
|
|
3832
3851
|
property :entity, as: 'entity'
|
|
@@ -3834,6 +3853,7 @@ module Google
|
|
|
3834
3853
|
collection :facet_specs, as: 'facetSpecs', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestFacetSpec, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestFacetSpec::Representation
|
|
3835
3854
|
|
|
3836
3855
|
property :filter, as: 'filter'
|
|
3856
|
+
collection :ignored_control_ids, as: 'ignoredControlIds'
|
|
3837
3857
|
hash :labels, as: 'labels'
|
|
3838
3858
|
property :language_code, as: 'languageCode'
|
|
3839
3859
|
property :offset, as: 'offset'
|
|
@@ -20,9 +20,9 @@ require 'google/apis/errors'
|
|
|
20
20
|
module Google
|
|
21
21
|
module Apis
|
|
22
22
|
module RetailV2alpha
|
|
23
|
-
#
|
|
23
|
+
# AI Commerce Search API
|
|
24
24
|
#
|
|
25
|
-
#
|
|
25
|
+
# The AI Commerce Search API is made up of Retail Search, Browse and
|
|
26
26
|
# Recommendations. These discovery AI solutions help you implement personalized
|
|
27
27
|
# search, browse and recommendations, based on machine learning models, across
|
|
28
28
|
# your websites and mobile applications.
|
|
@@ -19,16 +19,16 @@ require 'google/apis/retail_v2alpha/gem_version.rb'
|
|
|
19
19
|
|
|
20
20
|
module Google
|
|
21
21
|
module Apis
|
|
22
|
-
#
|
|
22
|
+
# AI Commerce Search API
|
|
23
23
|
#
|
|
24
|
-
#
|
|
24
|
+
# The AI Commerce Search API is made up of Retail Search, Browse and
|
|
25
25
|
# Recommendations. These discovery AI solutions help you implement personalized
|
|
26
26
|
# search, browse and recommendations, based on machine learning models, across
|
|
27
27
|
# your websites and mobile applications.
|
|
28
28
|
#
|
|
29
29
|
# @see https://cloud.google.com/recommendations
|
|
30
30
|
module RetailV2alpha
|
|
31
|
-
# Version of the
|
|
31
|
+
# Version of the AI Commerce Search API this client connects to.
|
|
32
32
|
# This is NOT the gem version.
|
|
33
33
|
VERSION = 'V2alpha'
|
|
34
34
|
|
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.
|
|
4
|
+
version: 0.141.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -29,13 +29,13 @@ dependencies:
|
|
|
29
29
|
- - "<"
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
31
|
version: 2.a
|
|
32
|
-
description: This is the simple REST client for
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
32
|
+
description: This is the simple REST client for AI Commerce Search API V2alpha. Simple
|
|
33
|
+
REST clients are Ruby client libraries that provide access to Google services via
|
|
34
|
+
their HTTP REST API endpoints. These libraries are generated and updated automatically
|
|
35
|
+
based on the discovery documents published by the service, and they handle most
|
|
36
|
+
concerns such as authentication, pagination, retry, timeouts, and logging. You can
|
|
37
|
+
use this client to access the AI Commerce Search API, but note that some services
|
|
38
|
+
may provide a separate modern client that is easier to use.
|
|
39
39
|
email: googleapis-packages@google.com
|
|
40
40
|
executables: []
|
|
41
41
|
extensions: []
|
|
@@ -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.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.141.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:
|
|
@@ -75,5 +75,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
75
75
|
requirements: []
|
|
76
76
|
rubygems_version: 3.6.9
|
|
77
77
|
specification_version: 4
|
|
78
|
-
summary: Simple REST client for
|
|
78
|
+
summary: Simple REST client for AI Commerce Search API V2alpha
|
|
79
79
|
test_files: []
|