google-apis-retail_v2 0.118.0 → 0.120.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: a36e4210d95b72910e626858d39941ba285f66ae86e1c5c9b3dfcbbc46d07ee5
4
- data.tar.gz: dc45e2e42df222e86abc4bf01c0c5c16f56ec2b8bfc304039c759df8fb059823
3
+ metadata.gz: 52ebf3fe594ee5827588e46a1b0441b3d1fe68951560178c757664d938ba7e77
4
+ data.tar.gz: a99f076be147b7222c86ebc9752ad63f8ce236b0373aa1544275ff1522890293
5
5
  SHA512:
6
- metadata.gz: 19b644583972b6087ac40f84309562deaf9abd26f41f63cedd7a28f0cd4077e41019b9ba64f43d5a55ffbd76674f60f0587f92e086a3b3ff4a05daa4f74df1eb
7
- data.tar.gz: ac39f51fa59a4ae291bcbdab4ff71b13317425572422e0cccbe6175a92769b851baff897805d2250011133142b38f278a68c680d78b248536701733af7e99e89
6
+ metadata.gz: 1dcccaa8a44fb0d2853824c8b1108325e2ac627518d273f88601bae489263f2947f68cc423d53dd724cb8b77ef6c5d9969309a254043cfcb082ca2a2db515bd9
7
+ data.tar.gz: de0aa4ef7ba6c25fb8e0a13c372c74b1414a895462ac5fa91ca9b5ca0fd5515902a96409185e45b180b3c4afdae60fb0226f5337f80c29bdf18ee7a0fb89cbd7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.120.0 (2025-07-13)
4
+
5
+ * Regenerated from discovery document revision 20250703
6
+
7
+ ### v0.119.0 (2025-07-06)
8
+
9
+ * Regenerated from discovery document revision 20250626
10
+
3
11
  ### v0.118.0 (2025-06-22)
4
12
 
5
13
  * Regenerated from discovery document revision 20250613
@@ -2410,6 +2410,11 @@ module Google
2410
2410
  # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfigExample>]
2411
2411
  attr_accessor :example
2412
2412
 
2413
+ # Inline source for intent classifications.
2414
+ # Corresponds to the JSON property `inlineSource`
2415
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfigInlineSource]
2416
+ attr_accessor :inline_source
2417
+
2413
2418
  # Optional. Customers can use the preamble to specify any requirements for
2414
2419
  # blocklisting intent classification. This preamble will be added to the
2415
2420
  # blocklisting intent classification model prompt.
@@ -2426,6 +2431,7 @@ module Google
2426
2431
  @blocklist_keywords = args[:blocklist_keywords] if args.key?(:blocklist_keywords)
2427
2432
  @disabled_intent_types = args[:disabled_intent_types] if args.key?(:disabled_intent_types)
2428
2433
  @example = args[:example] if args.key?(:example)
2434
+ @inline_source = args[:inline_source] if args.key?(:inline_source)
2429
2435
  @model_preamble = args[:model_preamble] if args.key?(:model_preamble)
2430
2436
  end
2431
2437
  end
@@ -2434,6 +2440,12 @@ module Google
2434
2440
  class GoogleCloudRetailV2IntentClassificationConfigExample
2435
2441
  include Google::Apis::Core::Hashable
2436
2442
 
2443
+ # Required. Whether the example is classified positively.
2444
+ # Corresponds to the JSON property `classifiedPositive`
2445
+ # @return [Boolean]
2446
+ attr_accessor :classified_positive
2447
+ alias_method :classified_positive?, :classified_positive
2448
+
2437
2449
  # Optional. The intent_type must match one of the predefined intent types
2438
2450
  # defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.
2439
2451
  # retail.v2alpha#querytype
@@ -2458,12 +2470,65 @@ module Google
2458
2470
 
2459
2471
  # Update properties of this object
2460
2472
  def update!(**args)
2473
+ @classified_positive = args[:classified_positive] if args.key?(:classified_positive)
2461
2474
  @intent_type = args[:intent_type] if args.key?(:intent_type)
2462
2475
  @query = args[:query] if args.key?(:query)
2463
2476
  @reason = args[:reason] if args.key?(:reason)
2464
2477
  end
2465
2478
  end
2466
2479
 
2480
+ # An inline force intent classification configuration.
2481
+ class GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent
2482
+ include Google::Apis::Core::Hashable
2483
+
2484
+ # Optional. The intent_type must match one of the predefined intent types
2485
+ # defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.
2486
+ # retail.v2alpha#querytype
2487
+ # Corresponds to the JSON property `intentType`
2488
+ # @return [String]
2489
+ attr_accessor :intent_type
2490
+
2491
+ # Optional. The operation to perform for the query.
2492
+ # Corresponds to the JSON property `operation`
2493
+ # @return [String]
2494
+ attr_accessor :operation
2495
+
2496
+ # Optional. A example query.
2497
+ # Corresponds to the JSON property `query`
2498
+ # @return [String]
2499
+ attr_accessor :query
2500
+
2501
+ def initialize(**args)
2502
+ update!(**args)
2503
+ end
2504
+
2505
+ # Update properties of this object
2506
+ def update!(**args)
2507
+ @intent_type = args[:intent_type] if args.key?(:intent_type)
2508
+ @operation = args[:operation] if args.key?(:operation)
2509
+ @query = args[:query] if args.key?(:query)
2510
+ end
2511
+ end
2512
+
2513
+ # Inline source for intent classifications.
2514
+ class GoogleCloudRetailV2IntentClassificationConfigInlineSource
2515
+ include Google::Apis::Core::Hashable
2516
+
2517
+ # Optional. A list of inline force intent classifications.
2518
+ # Corresponds to the JSON property `inlineForceIntents`
2519
+ # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent>]
2520
+ attr_accessor :inline_force_intents
2521
+
2522
+ def initialize(**args)
2523
+ update!(**args)
2524
+ end
2525
+
2526
+ # Update properties of this object
2527
+ def update!(**args)
2528
+ @inline_force_intents = args[:inline_force_intents] if args.key?(:inline_force_intents)
2529
+ end
2530
+ end
2531
+
2467
2532
  # A floating point interval.
2468
2533
  class GoogleCloudRetailV2Interval
2469
2534
  include Google::Apis::Core::Hashable
@@ -5176,6 +5241,15 @@ module Google
5176
5241
  # @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestTileNavigationSpec]
5177
5242
  attr_accessor :tile_navigation_spec
5178
5243
 
5244
+ # Optional. The user attributes that could be used for personalization of search
5245
+ # results. * Populate at most 100 key-value pairs per query. * Only supports
5246
+ # string keys and repeated string values. * Duplicate keys are not allowed
5247
+ # within a single query. Example: user_attributes: [ ` key: "pets" value `
5248
+ # values: "dog" values: "cat" ` `, ` key: "state" value ` values: "CA" ` ` ]
5249
+ # Corresponds to the JSON property `userAttributes`
5250
+ # @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2StringList>]
5251
+ attr_accessor :user_attributes
5252
+
5179
5253
  # Information of an end user.
5180
5254
  # Corresponds to the JSON property `userInfo`
5181
5255
  # @return [Google::Apis::RetailV2::GoogleCloudRetailV2UserInfo]
@@ -5250,6 +5324,7 @@ module Google
5250
5324
  @search_mode = args[:search_mode] if args.key?(:search_mode)
5251
5325
  @spell_correction_spec = args[:spell_correction_spec] if args.key?(:spell_correction_spec)
5252
5326
  @tile_navigation_spec = args[:tile_navigation_spec] if args.key?(:tile_navigation_spec)
5327
+ @user_attributes = args[:user_attributes] if args.key?(:user_attributes)
5253
5328
  @user_info = args[:user_info] if args.key?(:user_info)
5254
5329
  @variant_rollup_keys = args[:variant_rollup_keys] if args.key?(:variant_rollup_keys)
5255
5330
  @visitor_id = args[:visitor_id] if args.key?(:visitor_id)
@@ -6457,6 +6532,25 @@ module Google
6457
6532
  end
6458
6533
  end
6459
6534
 
6535
+ # A list of string values.
6536
+ class GoogleCloudRetailV2StringList
6537
+ include Google::Apis::Core::Hashable
6538
+
6539
+ # String values.
6540
+ # Corresponds to the JSON property `values`
6541
+ # @return [Array<String>]
6542
+ attr_accessor :values
6543
+
6544
+ def initialize(**args)
6545
+ update!(**args)
6546
+ end
6547
+
6548
+ # Update properties of this object
6549
+ def update!(**args)
6550
+ @values = args[:values] if args.key?(:values)
6551
+ end
6552
+ end
6553
+
6460
6554
  # This field specifies the tile information including an attribute key,
6461
6555
  # attribute value. More fields will be added in the future, eg: product id or
6462
6556
  # product counts, etc.
@@ -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.118.0"
19
+ GEM_VERSION = "0.120.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 = "20250613"
25
+ REVISION = "20250703"
26
26
  end
27
27
  end
28
28
  end
@@ -430,6 +430,18 @@ module Google
430
430
  include Google::Apis::Core::JsonObjectSupport
431
431
  end
432
432
 
433
+ class GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent
434
+ class Representation < Google::Apis::Core::JsonRepresentation; end
435
+
436
+ include Google::Apis::Core::JsonObjectSupport
437
+ end
438
+
439
+ class GoogleCloudRetailV2IntentClassificationConfigInlineSource
440
+ class Representation < Google::Apis::Core::JsonRepresentation; end
441
+
442
+ include Google::Apis::Core::JsonObjectSupport
443
+ end
444
+
433
445
  class GoogleCloudRetailV2Interval
434
446
  class Representation < Google::Apis::Core::JsonRepresentation; end
435
447
 
@@ -988,6 +1000,12 @@ module Google
988
1000
  include Google::Apis::Core::JsonObjectSupport
989
1001
  end
990
1002
 
1003
+ class GoogleCloudRetailV2StringList
1004
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1005
+
1006
+ include Google::Apis::Core::JsonObjectSupport
1007
+ end
1008
+
991
1009
  class GoogleCloudRetailV2Tile
992
1010
  class Representation < Google::Apis::Core::JsonRepresentation; end
993
1011
 
@@ -2205,6 +2223,8 @@ module Google
2205
2223
  collection :disabled_intent_types, as: 'disabledIntentTypes'
2206
2224
  collection :example, as: 'example', class: Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfigExample, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfigExample::Representation
2207
2225
 
2226
+ property :inline_source, as: 'inlineSource', class: Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfigInlineSource, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfigInlineSource::Representation
2227
+
2208
2228
  property :model_preamble, as: 'modelPreamble'
2209
2229
  end
2210
2230
  end
@@ -2212,12 +2232,30 @@ module Google
2212
2232
  class GoogleCloudRetailV2IntentClassificationConfigExample
2213
2233
  # @private
2214
2234
  class Representation < Google::Apis::Core::JsonRepresentation
2235
+ property :classified_positive, as: 'classifiedPositive'
2215
2236
  property :intent_type, as: 'intentType'
2216
2237
  property :query, as: 'query'
2217
2238
  property :reason, as: 'reason'
2218
2239
  end
2219
2240
  end
2220
2241
 
2242
+ class GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent
2243
+ # @private
2244
+ class Representation < Google::Apis::Core::JsonRepresentation
2245
+ property :intent_type, as: 'intentType'
2246
+ property :operation, as: 'operation'
2247
+ property :query, as: 'query'
2248
+ end
2249
+ end
2250
+
2251
+ class GoogleCloudRetailV2IntentClassificationConfigInlineSource
2252
+ # @private
2253
+ class Representation < Google::Apis::Core::JsonRepresentation
2254
+ collection :inline_force_intents, as: 'inlineForceIntents', class: Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent::Representation
2255
+
2256
+ end
2257
+ end
2258
+
2221
2259
  class GoogleCloudRetailV2Interval
2222
2260
  # @private
2223
2261
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2881,6 +2919,8 @@ module Google
2881
2919
 
2882
2920
  property :tile_navigation_spec, as: 'tileNavigationSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestTileNavigationSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestTileNavigationSpec::Representation
2883
2921
 
2922
+ hash :user_attributes, as: 'userAttributes', class: Google::Apis::RetailV2::GoogleCloudRetailV2StringList, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2StringList::Representation
2923
+
2884
2924
  property :user_info, as: 'userInfo', class: Google::Apis::RetailV2::GoogleCloudRetailV2UserInfo, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2UserInfo::Representation
2885
2925
 
2886
2926
  collection :variant_rollup_keys, as: 'variantRollupKeys'
@@ -3171,6 +3211,13 @@ module Google
3171
3211
  end
3172
3212
  end
3173
3213
 
3214
+ class GoogleCloudRetailV2StringList
3215
+ # @private
3216
+ class Representation < Google::Apis::Core::JsonRepresentation
3217
+ collection :values, as: 'values'
3218
+ end
3219
+ end
3220
+
3174
3221
  class GoogleCloudRetailV2Tile
3175
3222
  # @private
3176
3223
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.118.0
4
+ version: 0.120.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_v2/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.118.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.120.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
62
62
  rdoc_options: []
63
63
  require_paths: