google-apis-retail_v2 0.117.0 → 0.119.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: c8a685e1686231b6d7202a929afa3f7c2d9957a8b03d442c3f1885e2a8b8cefb
4
- data.tar.gz: 3f6480dfe5afbab8cf48bab290d6623b9da6093aa2873ecc4c55f7368d8b8411
3
+ metadata.gz: 117a46246fe56e397b6f83cd905b50fcd82d0e5ee061f71cd9b2723a73e0208f
4
+ data.tar.gz: 29c80f16b28c321cab37b9559cb2870810a9da1d83dce137c532f0fc8290f592
5
5
  SHA512:
6
- metadata.gz: 9be6e79650b54bcd5d420d229557d94ca049bdb7fca0f98694b4b0666058e5695a6903e1c1800914ae5be940a83f5a777229186a424a6e3ab57438e944868b6e
7
- data.tar.gz: 8474d436643b8cf3d432b01eb1108a9c9259ce8d35c80b97a6c424b1a6e13be3719c68b9b8ba4ef2f384000acdc05e6bf09f261e14d3fb7b9a773230aab2ff81
6
+ metadata.gz: 49e5ae0407d85a7b1ef3a052698fad24c983a68f3242e83a4b150c0a9ec31fb1705aa29a3b07422d0e594f4dc488954272acbb560e73ce672a824450a93699b1
7
+ data.tar.gz: 64516fa60035ba13488eb97cdbb901d1bdde9b006d1e2bd6461e4ed20981a4c793e68317865173a502f9fc75c933060752e61d95cb42a76d1119232431776f44
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.119.0 (2025-07-06)
4
+
5
+ * Regenerated from discovery document revision 20250626
6
+
7
+ ### v0.118.0 (2025-06-22)
8
+
9
+ * Regenerated from discovery document revision 20250613
10
+ * Regenerated using generator version 0.18.0
11
+
3
12
  ### v0.117.0 (2025-05-21)
4
13
 
5
14
  * Regenerated from discovery document revision 20250515
@@ -1552,6 +1552,41 @@ module Google
1552
1552
  end
1553
1553
  end
1554
1554
 
1555
+ # The public proto to represent the conversational search customization config.
1556
+ # It will be converted to the internal proto in the backend.
1557
+ class GoogleCloudRetailV2ConversationalSearchCustomizationConfig
1558
+ include Google::Apis::Core::Hashable
1559
+
1560
+ # Required. Resource name of the catalog. Format: projects/`project`/locations/`
1561
+ # location`/catalogs/`catalog`
1562
+ # Corresponds to the JSON property `catalog`
1563
+ # @return [String]
1564
+ attr_accessor :catalog
1565
+
1566
+ # The public proto to represent the intent classification config. It will be
1567
+ # converted to the internal proto in the backend.
1568
+ # Corresponds to the JSON property `intentClassificationConfig`
1569
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfig]
1570
+ attr_accessor :intent_classification_config
1571
+
1572
+ # Optional. The retailer's display name that could be used in our LLM answers.
1573
+ # Example - "Google"
1574
+ # Corresponds to the JSON property `retailerDisplayName`
1575
+ # @return [String]
1576
+ attr_accessor :retailer_display_name
1577
+
1578
+ def initialize(**args)
1579
+ update!(**args)
1580
+ end
1581
+
1582
+ # Update properties of this object
1583
+ def update!(**args)
1584
+ @catalog = args[:catalog] if args.key?(:catalog)
1585
+ @intent_classification_config = args[:intent_classification_config] if args.key?(:intent_classification_config)
1586
+ @retailer_display_name = args[:retailer_display_name] if args.key?(:retailer_display_name)
1587
+ end
1588
+ end
1589
+
1555
1590
  # Metadata associated with a create operation.
1556
1591
  class GoogleCloudRetailV2CreateModelMetadata
1557
1592
  include Google::Apis::Core::Hashable
@@ -2351,6 +2386,149 @@ module Google
2351
2386
  end
2352
2387
  end
2353
2388
 
2389
+ # The public proto to represent the intent classification config. It will be
2390
+ # converted to the internal proto in the backend.
2391
+ class GoogleCloudRetailV2IntentClassificationConfig
2392
+ include Google::Apis::Core::Hashable
2393
+
2394
+ # Optional. A list of keywords that will be used to classify the query to the "
2395
+ # BLOCKLISTED" intent type. The keywords are case insensitive.
2396
+ # Corresponds to the JSON property `blocklistKeywords`
2397
+ # @return [Array<String>]
2398
+ attr_accessor :blocklist_keywords
2399
+
2400
+ # Optional. A list of intent types that will be disabled for this customer. The
2401
+ # intent types must match one of the predefined intent types defined at https://
2402
+ # cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#
2403
+ # querytype
2404
+ # Corresponds to the JSON property `disabledIntentTypes`
2405
+ # @return [Array<String>]
2406
+ attr_accessor :disabled_intent_types
2407
+
2408
+ # Optional. A list of examples for intent classification.
2409
+ # Corresponds to the JSON property `example`
2410
+ # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfigExample>]
2411
+ attr_accessor :example
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
+
2418
+ # Optional. Customers can use the preamble to specify any requirements for
2419
+ # blocklisting intent classification. This preamble will be added to the
2420
+ # blocklisting intent classification model prompt.
2421
+ # Corresponds to the JSON property `modelPreamble`
2422
+ # @return [String]
2423
+ attr_accessor :model_preamble
2424
+
2425
+ def initialize(**args)
2426
+ update!(**args)
2427
+ end
2428
+
2429
+ # Update properties of this object
2430
+ def update!(**args)
2431
+ @blocklist_keywords = args[:blocklist_keywords] if args.key?(:blocklist_keywords)
2432
+ @disabled_intent_types = args[:disabled_intent_types] if args.key?(:disabled_intent_types)
2433
+ @example = args[:example] if args.key?(:example)
2434
+ @inline_source = args[:inline_source] if args.key?(:inline_source)
2435
+ @model_preamble = args[:model_preamble] if args.key?(:model_preamble)
2436
+ end
2437
+ end
2438
+
2439
+ # An example for intent classification.
2440
+ class GoogleCloudRetailV2IntentClassificationConfigExample
2441
+ include Google::Apis::Core::Hashable
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
+
2449
+ # Optional. The intent_type must match one of the predefined intent types
2450
+ # defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.
2451
+ # retail.v2alpha#querytype
2452
+ # Corresponds to the JSON property `intentType`
2453
+ # @return [String]
2454
+ attr_accessor :intent_type
2455
+
2456
+ # Required. Example query.
2457
+ # Corresponds to the JSON property `query`
2458
+ # @return [String]
2459
+ attr_accessor :query
2460
+
2461
+ # Optional. The reason for the intent classification. This is used to explain
2462
+ # the intent classification decision.
2463
+ # Corresponds to the JSON property `reason`
2464
+ # @return [String]
2465
+ attr_accessor :reason
2466
+
2467
+ def initialize(**args)
2468
+ update!(**args)
2469
+ end
2470
+
2471
+ # Update properties of this object
2472
+ def update!(**args)
2473
+ @classified_positive = args[:classified_positive] if args.key?(:classified_positive)
2474
+ @intent_type = args[:intent_type] if args.key?(:intent_type)
2475
+ @query = args[:query] if args.key?(:query)
2476
+ @reason = args[:reason] if args.key?(:reason)
2477
+ end
2478
+ end
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
+
2354
2532
  # A floating point interval.
2355
2533
  class GoogleCloudRetailV2Interval
2356
2534
  include Google::Apis::Core::Hashable
@@ -5063,6 +5241,15 @@ module Google
5063
5241
  # @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestTileNavigationSpec]
5064
5242
  attr_accessor :tile_navigation_spec
5065
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. * Duplcate keys are not allowed within
5247
+ # a single query. Example: user_attributes: [ ` key: "pets" value ` values: "dog"
5248
+ # 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
+
5066
5253
  # Information of an end user.
5067
5254
  # Corresponds to the JSON property `userInfo`
5068
5255
  # @return [Google::Apis::RetailV2::GoogleCloudRetailV2UserInfo]
@@ -5137,6 +5324,7 @@ module Google
5137
5324
  @search_mode = args[:search_mode] if args.key?(:search_mode)
5138
5325
  @spell_correction_spec = args[:spell_correction_spec] if args.key?(:spell_correction_spec)
5139
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)
5140
5328
  @user_info = args[:user_info] if args.key?(:user_info)
5141
5329
  @variant_rollup_keys = args[:variant_rollup_keys] if args.key?(:variant_rollup_keys)
5142
5330
  @visitor_id = args[:visitor_id] if args.key?(:visitor_id)
@@ -5547,9 +5735,9 @@ module Google
5547
5735
  # @return [String]
5548
5736
  attr_accessor :condition
5549
5737
 
5550
- # Whether to pin unexpanded results. If this field is set to true, unexpanded
5551
- # products are always at the top of the search results, followed by the expanded
5552
- # results.
5738
+ # Whether to pin unexpanded results. The default value is false. If this field
5739
+ # is set to true, unexpanded products are always at the top of the search
5740
+ # results, followed by the expanded results.
5553
5741
  # Corresponds to the JSON property `pinUnexpandedResults`
5554
5742
  # @return [Boolean]
5555
5743
  attr_accessor :pin_unexpanded_results
@@ -6344,6 +6532,25 @@ module Google
6344
6532
  end
6345
6533
  end
6346
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
+
6347
6554
  # This field specifies the tile information including an attribute key,
6348
6555
  # attribute value. More fields will be added in the future, eg: product id or
6349
6556
  # product counts, etc.
@@ -6626,9 +6833,9 @@ module Google
6626
6833
 
6627
6834
  # A unique identifier for tracking a visitor session with a length limit of 128
6628
6835
  # bytes. A session is an aggregation of an end user behavior in a time span. A
6629
- # general guideline to populate the sesion_id: 1. If user has no activity for 30
6630
- # min, a new session_id should be assigned. 2. The session_id should be unique
6631
- # across users, suggest use uuid or add visitor_id as prefix.
6836
+ # general guideline to populate the session_id: 1. If user has no activity for
6837
+ # 30 min, a new session_id should be assigned. 2. The session_id should be
6838
+ # unique across users, suggest use uuid or add visitor_id as prefix.
6632
6839
  # Corresponds to the JSON property `sessionId`
6633
6840
  # @return [String]
6634
6841
  attr_accessor :session_id
@@ -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.117.0"
19
+ GEM_VERSION = "0.119.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.17.0"
22
+ GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250515"
25
+ REVISION = "20250626"
26
26
  end
27
27
  end
28
28
  end
@@ -268,6 +268,12 @@ module Google
268
268
  include Google::Apis::Core::JsonObjectSupport
269
269
  end
270
270
 
271
+ class GoogleCloudRetailV2ConversationalSearchCustomizationConfig
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
271
277
  class GoogleCloudRetailV2CreateModelMetadata
272
278
  class Representation < Google::Apis::Core::JsonRepresentation; end
273
279
 
@@ -412,6 +418,30 @@ module Google
412
418
  include Google::Apis::Core::JsonObjectSupport
413
419
  end
414
420
 
421
+ class GoogleCloudRetailV2IntentClassificationConfig
422
+ class Representation < Google::Apis::Core::JsonRepresentation; end
423
+
424
+ include Google::Apis::Core::JsonObjectSupport
425
+ end
426
+
427
+ class GoogleCloudRetailV2IntentClassificationConfigExample
428
+ class Representation < Google::Apis::Core::JsonRepresentation; end
429
+
430
+ include Google::Apis::Core::JsonObjectSupport
431
+ end
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
+
415
445
  class GoogleCloudRetailV2Interval
416
446
  class Representation < Google::Apis::Core::JsonRepresentation; end
417
447
 
@@ -970,6 +1000,12 @@ module Google
970
1000
  include Google::Apis::Core::JsonObjectSupport
971
1001
  end
972
1002
 
1003
+ class GoogleCloudRetailV2StringList
1004
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1005
+
1006
+ include Google::Apis::Core::JsonObjectSupport
1007
+ end
1008
+
973
1009
  class GoogleCloudRetailV2Tile
974
1010
  class Representation < Google::Apis::Core::JsonRepresentation; end
975
1011
 
@@ -1948,6 +1984,16 @@ module Google
1948
1984
  end
1949
1985
  end
1950
1986
 
1987
+ class GoogleCloudRetailV2ConversationalSearchCustomizationConfig
1988
+ # @private
1989
+ class Representation < Google::Apis::Core::JsonRepresentation
1990
+ property :catalog, as: 'catalog'
1991
+ property :intent_classification_config, as: 'intentClassificationConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfig::Representation
1992
+
1993
+ property :retailer_display_name, as: 'retailerDisplayName'
1994
+ end
1995
+ end
1996
+
1951
1997
  class GoogleCloudRetailV2CreateModelMetadata
1952
1998
  # @private
1953
1999
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2170,6 +2216,46 @@ module Google
2170
2216
  end
2171
2217
  end
2172
2218
 
2219
+ class GoogleCloudRetailV2IntentClassificationConfig
2220
+ # @private
2221
+ class Representation < Google::Apis::Core::JsonRepresentation
2222
+ collection :blocklist_keywords, as: 'blocklistKeywords'
2223
+ collection :disabled_intent_types, as: 'disabledIntentTypes'
2224
+ collection :example, as: 'example', class: Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfigExample, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfigExample::Representation
2225
+
2226
+ property :inline_source, as: 'inlineSource', class: Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfigInlineSource, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfigInlineSource::Representation
2227
+
2228
+ property :model_preamble, as: 'modelPreamble'
2229
+ end
2230
+ end
2231
+
2232
+ class GoogleCloudRetailV2IntentClassificationConfigExample
2233
+ # @private
2234
+ class Representation < Google::Apis::Core::JsonRepresentation
2235
+ property :classified_positive, as: 'classifiedPositive'
2236
+ property :intent_type, as: 'intentType'
2237
+ property :query, as: 'query'
2238
+ property :reason, as: 'reason'
2239
+ end
2240
+ end
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
+
2173
2259
  class GoogleCloudRetailV2Interval
2174
2260
  # @private
2175
2261
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2833,6 +2919,8 @@ module Google
2833
2919
 
2834
2920
  property :tile_navigation_spec, as: 'tileNavigationSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestTileNavigationSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestTileNavigationSpec::Representation
2835
2921
 
2922
+ hash :user_attributes, as: 'userAttributes', class: Google::Apis::RetailV2::GoogleCloudRetailV2StringList, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2StringList::Representation
2923
+
2836
2924
  property :user_info, as: 'userInfo', class: Google::Apis::RetailV2::GoogleCloudRetailV2UserInfo, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2UserInfo::Representation
2837
2925
 
2838
2926
  collection :variant_rollup_keys, as: 'variantRollupKeys'
@@ -3123,6 +3211,13 @@ module Google
3123
3211
  end
3124
3212
  end
3125
3213
 
3214
+ class GoogleCloudRetailV2StringList
3215
+ # @private
3216
+ class Representation < Google::Apis::Core::JsonRepresentation
3217
+ collection :values, as: 'values'
3218
+ end
3219
+ end
3220
+
3126
3221
  class GoogleCloudRetailV2Tile
3127
3222
  # @private
3128
3223
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -242,6 +242,37 @@ module Google
242
242
  execute_or_queue_command(command, &block)
243
243
  end
244
244
 
245
+ # Returns the conversational search customization config for a given catalog.
246
+ # @param [String] name
247
+ # Required. Resource name of the parent catalog. Format: projects/`project`/
248
+ # locations/`location`/catalogs/`catalog`
249
+ # @param [String] fields
250
+ # Selector specifying which fields to include in a partial response.
251
+ # @param [String] quota_user
252
+ # Available to use for quota purposes for server-side applications. Can be any
253
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
254
+ # @param [Google::Apis::RequestOptions] options
255
+ # Request-specific options
256
+ #
257
+ # @yield [result, err] Result & error if block supplied
258
+ # @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchCustomizationConfig] parsed result object
259
+ # @yieldparam err [StandardError] error object if request failed
260
+ #
261
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchCustomizationConfig]
262
+ #
263
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
264
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
265
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
266
+ def get_project_location_catalog_conversational_search_customization_config(name, fields: nil, quota_user: nil, options: nil, &block)
267
+ command = make_simple_command(:get, 'v2/{+name}/conversationalSearchCustomizationConfig', options)
268
+ command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchCustomizationConfig::Representation
269
+ command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchCustomizationConfig
270
+ command.params['name'] = name unless name.nil?
271
+ command.query['fields'] = fields unless fields.nil?
272
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
273
+ execute_or_queue_command(command, &block)
274
+ end
275
+
245
276
  # Get which branch is currently default branch set by CatalogService.
246
277
  # SetDefaultBranch method under a specified parent catalog.
247
278
  # @param [String] catalog
@@ -523,6 +554,45 @@ module Google
523
554
  execute_or_queue_command(command, &block)
524
555
  end
525
556
 
557
+ # Updates the conversational search customization config for a given catalog.
558
+ # @param [String] catalog
559
+ # Required. Resource name of the catalog. Format: projects/`project`/locations/`
560
+ # location`/catalogs/`catalog`
561
+ # @param [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchCustomizationConfig] google_cloud_retail_v2_conversational_search_customization_config_object
562
+ # @param [String] update_mask
563
+ # Optional. Indicates which fields in the provided
564
+ # ConversationalSearchCustomizationConfig to update. If not set or empty, all
565
+ # supported fields are updated.
566
+ # @param [String] fields
567
+ # Selector specifying which fields to include in a partial response.
568
+ # @param [String] quota_user
569
+ # Available to use for quota purposes for server-side applications. Can be any
570
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
571
+ # @param [Google::Apis::RequestOptions] options
572
+ # Request-specific options
573
+ #
574
+ # @yield [result, err] Result & error if block supplied
575
+ # @yieldparam result [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchCustomizationConfig] parsed result object
576
+ # @yieldparam err [StandardError] error object if request failed
577
+ #
578
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchCustomizationConfig]
579
+ #
580
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
581
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
582
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
583
+ def update_project_location_catalog_conversational_search_customization_config(catalog, google_cloud_retail_v2_conversational_search_customization_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
584
+ command = make_simple_command(:patch, 'v2/{+catalog}/conversationalSearchCustomizationConfig', options)
585
+ command.request_representation = Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchCustomizationConfig::Representation
586
+ command.request_object = google_cloud_retail_v2_conversational_search_customization_config_object
587
+ command.response_representation = Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchCustomizationConfig::Representation
588
+ command.response_class = Google::Apis::RetailV2::GoogleCloudRetailV2ConversationalSearchCustomizationConfig
589
+ command.params['catalog'] = catalog unless catalog.nil?
590
+ command.query['updateMask'] = update_mask unless update_mask.nil?
591
+ command.query['fields'] = fields unless fields.nil?
592
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
593
+ execute_or_queue_command(command, &block)
594
+ end
595
+
526
596
  # Allows management of individual questions.
527
597
  # @param [String] catalog
528
598
  # Required. Resource name of the catalog. Format: projects/`project`/locations/`
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.117.0
4
+ version: 0.119.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.117.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.119.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: