google-apis-retail_v2alpha 0.120.0 → 0.122.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: 4a93bfcdc7774b692289d17ccb274cc767b3ed4fef041419436f0e1c148f24ac
4
- data.tar.gz: 8467a1d7d95b7d8eff878c228f0461f2aec38245a0a63f9aba5eec547513debc
3
+ metadata.gz: 168cf6ad11463067216ccbe47ab80941c2f8fc6a956db72afacb2d47ac8d2ac9
4
+ data.tar.gz: e68bd927714c60e413f6defb0a3fe47817b98b126ad1bdd26934343ccf0655e3
5
5
  SHA512:
6
- metadata.gz: 1cf556182a7727e0312cd1b3aec54d6a1a7112b2e9ab3dfa41ce7ffb9c1bac70c4266a7ebcfb5b7adc1dd60448c739abfdeb2c75e3207c4c225a085f1f8c2bcd
7
- data.tar.gz: 4ef68a0745cc199935d31245df6515ba159883054d3375539bdb548843c0269ac36dafa29fc29390c18f39d9c07195d975793533c412c96b133fc033f0596bab
6
+ metadata.gz: 756b9d5393e2b436bb731409154d5f6727c1e9279a782d8b0fde7a569e2f6f83f988cf67542c1cff35ca8af18c8b2305ad17d8cc50eaf606566ba57b8a5a469f
7
+ data.tar.gz: 653d65d3f7ebe7078338734cb3eef341e49217ee77ca2173657aa5fb7d527fa0659b0b130d9851e3a995f4450d5a5a1f562f248e78752540345e433506105012
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.122.0 (2025-07-13)
4
+
5
+ * Regenerated from discovery document revision 20250703
6
+
7
+ ### v0.121.0 (2025-07-06)
8
+
9
+ * Regenerated from discovery document revision 20250626
10
+
3
11
  ### v0.120.0 (2025-06-22)
4
12
 
5
13
  * Regenerated from discovery document revision 20250613
@@ -4265,6 +4265,11 @@ module Google
4265
4265
  # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigExample>]
4266
4266
  attr_accessor :example
4267
4267
 
4268
+ # Inline source for intent classifications.
4269
+ # Corresponds to the JSON property `inlineSource`
4270
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource]
4271
+ attr_accessor :inline_source
4272
+
4268
4273
  # Optional. Customers can use the preamble to specify any requirements for
4269
4274
  # blocklisting intent classification. This preamble will be added to the
4270
4275
  # blocklisting intent classification model prompt.
@@ -4281,6 +4286,7 @@ module Google
4281
4286
  @blocklist_keywords = args[:blocklist_keywords] if args.key?(:blocklist_keywords)
4282
4287
  @disabled_intent_types = args[:disabled_intent_types] if args.key?(:disabled_intent_types)
4283
4288
  @example = args[:example] if args.key?(:example)
4289
+ @inline_source = args[:inline_source] if args.key?(:inline_source)
4284
4290
  @model_preamble = args[:model_preamble] if args.key?(:model_preamble)
4285
4291
  end
4286
4292
  end
@@ -4289,6 +4295,12 @@ module Google
4289
4295
  class GoogleCloudRetailV2alphaIntentClassificationConfigExample
4290
4296
  include Google::Apis::Core::Hashable
4291
4297
 
4298
+ # Required. Whether the example is classified positively.
4299
+ # Corresponds to the JSON property `classifiedPositive`
4300
+ # @return [Boolean]
4301
+ attr_accessor :classified_positive
4302
+ alias_method :classified_positive?, :classified_positive
4303
+
4292
4304
  # Optional. The intent_type must match one of the predefined intent types
4293
4305
  # defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.
4294
4306
  # retail.v2alpha#querytype
@@ -4313,12 +4325,65 @@ module Google
4313
4325
 
4314
4326
  # Update properties of this object
4315
4327
  def update!(**args)
4328
+ @classified_positive = args[:classified_positive] if args.key?(:classified_positive)
4316
4329
  @intent_type = args[:intent_type] if args.key?(:intent_type)
4317
4330
  @query = args[:query] if args.key?(:query)
4318
4331
  @reason = args[:reason] if args.key?(:reason)
4319
4332
  end
4320
4333
  end
4321
4334
 
4335
+ # An inline force intent classification configuration.
4336
+ class GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent
4337
+ include Google::Apis::Core::Hashable
4338
+
4339
+ # Optional. The intent_type must match one of the predefined intent types
4340
+ # defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.
4341
+ # retail.v2alpha#querytype
4342
+ # Corresponds to the JSON property `intentType`
4343
+ # @return [String]
4344
+ attr_accessor :intent_type
4345
+
4346
+ # Optional. The operation to perform for the query.
4347
+ # Corresponds to the JSON property `operation`
4348
+ # @return [String]
4349
+ attr_accessor :operation
4350
+
4351
+ # Optional. A example query.
4352
+ # Corresponds to the JSON property `query`
4353
+ # @return [String]
4354
+ attr_accessor :query
4355
+
4356
+ def initialize(**args)
4357
+ update!(**args)
4358
+ end
4359
+
4360
+ # Update properties of this object
4361
+ def update!(**args)
4362
+ @intent_type = args[:intent_type] if args.key?(:intent_type)
4363
+ @operation = args[:operation] if args.key?(:operation)
4364
+ @query = args[:query] if args.key?(:query)
4365
+ end
4366
+ end
4367
+
4368
+ # Inline source for intent classifications.
4369
+ class GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource
4370
+ include Google::Apis::Core::Hashable
4371
+
4372
+ # Optional. A list of inline force intent classifications.
4373
+ # Corresponds to the JSON property `inlineForceIntents`
4374
+ # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent>]
4375
+ attr_accessor :inline_force_intents
4376
+
4377
+ def initialize(**args)
4378
+ update!(**args)
4379
+ end
4380
+
4381
+ # Update properties of this object
4382
+ def update!(**args)
4383
+ @inline_force_intents = args[:inline_force_intents] if args.key?(:inline_force_intents)
4384
+ end
4385
+ end
4386
+
4322
4387
  # A floating point interval.
4323
4388
  class GoogleCloudRetailV2alphaInterval
4324
4389
  include Google::Apis::Core::Hashable
@@ -7605,9 +7670,9 @@ module Google
7605
7670
 
7606
7671
  # Optional. The user attributes that could be used for personalization of search
7607
7672
  # results. * Populate at most 100 key-value pairs per query. * Only supports
7608
- # string keys and repeated string values. * Duplcate keys are not allowed within
7609
- # a single query. Example: user_attributes: [ ` key: "pets" value ` values: "dog"
7610
- # values: "cat" ` `, ` key: "state" value ` values: "CA" ` ` ]
7673
+ # string keys and repeated string values. * Duplicate keys are not allowed
7674
+ # within a single query. Example: user_attributes: [ ` key: "pets" value `
7675
+ # values: "dog" values: "cat" ` `, ` key: "state" value ` values: "CA" ` ` ]
7611
7676
  # Corresponds to the JSON property `userAttributes`
7612
7677
  # @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaStringList>]
7613
7678
  attr_accessor :user_attributes
@@ -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.120.0"
19
+ GEM_VERSION = "0.122.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
@@ -808,6 +808,18 @@ module Google
808
808
  include Google::Apis::Core::JsonObjectSupport
809
809
  end
810
810
 
811
+ class GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent
812
+ class Representation < Google::Apis::Core::JsonRepresentation; end
813
+
814
+ include Google::Apis::Core::JsonObjectSupport
815
+ end
816
+
817
+ class GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource
818
+ class Representation < Google::Apis::Core::JsonRepresentation; end
819
+
820
+ include Google::Apis::Core::JsonObjectSupport
821
+ end
822
+
811
823
  class GoogleCloudRetailV2alphaInterval
812
824
  class Representation < Google::Apis::Core::JsonRepresentation; end
813
825
 
@@ -2958,6 +2970,8 @@ module Google
2958
2970
  collection :disabled_intent_types, as: 'disabledIntentTypes'
2959
2971
  collection :example, as: 'example', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigExample, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigExample::Representation
2960
2972
 
2973
+ property :inline_source, as: 'inlineSource', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource::Representation
2974
+
2961
2975
  property :model_preamble, as: 'modelPreamble'
2962
2976
  end
2963
2977
  end
@@ -2965,12 +2979,30 @@ module Google
2965
2979
  class GoogleCloudRetailV2alphaIntentClassificationConfigExample
2966
2980
  # @private
2967
2981
  class Representation < Google::Apis::Core::JsonRepresentation
2982
+ property :classified_positive, as: 'classifiedPositive'
2968
2983
  property :intent_type, as: 'intentType'
2969
2984
  property :query, as: 'query'
2970
2985
  property :reason, as: 'reason'
2971
2986
  end
2972
2987
  end
2973
2988
 
2989
+ class GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent
2990
+ # @private
2991
+ class Representation < Google::Apis::Core::JsonRepresentation
2992
+ property :intent_type, as: 'intentType'
2993
+ property :operation, as: 'operation'
2994
+ property :query, as: 'query'
2995
+ end
2996
+ end
2997
+
2998
+ class GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource
2999
+ # @private
3000
+ class Representation < Google::Apis::Core::JsonRepresentation
3001
+ collection :inline_force_intents, as: 'inlineForceIntents', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent::Representation
3002
+
3003
+ end
3004
+ end
3005
+
2974
3006
  class GoogleCloudRetailV2alphaInterval
2975
3007
  # @private
2976
3008
  class Representation < Google::Apis::Core::JsonRepresentation
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.120.0
4
+ version: 0.122.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_v2alpha/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.120.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.122.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: