@@ -4879,6 +4879,11 @@ class GoogleCloudRetailV2betaIntentClassificationConfig
4879
4879
# @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaIntentClassificationConfigExample>]
4880
4880
attr_accessor :example
4881
4881
4882
+ # Inline source for intent classifications.
4883
+ # Corresponds to the JSON property `inlineSource`
4884
+ # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaIntentClassificationConfigInlineSource]
4885
+ attr_accessor :inline_source
4886
+
4882
4887
# Optional. Customers can use the preamble to specify any requirements for
4883
4888
# blocklisting intent classification. This preamble will be added to the
4884
4889
# blocklisting intent classification model prompt.
@@ -4895,6 +4900,7 @@ def update!(**args)
4895
4900
@blocklist_keywords = args [ :blocklist_keywords ] if args . key? ( :blocklist_keywords )
4896
4901
@disabled_intent_types = args [ :disabled_intent_types ] if args . key? ( :disabled_intent_types )
4897
4902
@example = args [ :example ] if args . key? ( :example )
4903
+ @inline_source = args [ :inline_source ] if args . key? ( :inline_source )
4898
4904
@model_preamble = args [ :model_preamble ] if args . key? ( :model_preamble )
4899
4905
end
4900
4906
end
@@ -4903,6 +4909,12 @@ def update!(**args)
4903
4909
class GoogleCloudRetailV2betaIntentClassificationConfigExample
4904
4910
include Google ::Apis ::Core ::Hashable
4905
4911
4912
+ # Required. Whether the example is classified positively.
4913
+ # Corresponds to the JSON property `classifiedPositive`
4914
+ # @return [Boolean]
4915
+ attr_accessor :classified_positive
4916
+ alias_method :classified_positive? , :classified_positive
4917
+
4906
4918
# Optional. The intent_type must match one of the predefined intent types
4907
4919
# defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.
4908
4920
# retail.v2alpha#querytype
@@ -4927,12 +4939,65 @@ def initialize(**args)
4927
4939
4928
4940
# Update properties of this object
4929
4941
def update! ( **args )
4942
+ @classified_positive = args [ :classified_positive ] if args . key? ( :classified_positive )
4930
4943
@intent_type = args [ :intent_type ] if args . key? ( :intent_type )
4931
4944
@query = args [ :query ] if args . key? ( :query )
4932
4945
@reason = args [ :reason ] if args . key? ( :reason )
4933
4946
end
4934
4947
end
4935
4948
4949
+ # An inline force intent classification configuration.
4950
+ class GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent
4951
+ include Google ::Apis ::Core ::Hashable
4952
+
4953
+ # Optional. The intent_type must match one of the predefined intent types
4954
+ # defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.
4955
+ # retail.v2alpha#querytype
4956
+ # Corresponds to the JSON property `intentType`
4957
+ # @return [String]
4958
+ attr_accessor :intent_type
4959
+
4960
+ # Optional. The operation to perform for the query.
4961
+ # Corresponds to the JSON property `operation`
4962
+ # @return [String]
4963
+ attr_accessor :operation
4964
+
4965
+ # Optional. A example query.
4966
+ # Corresponds to the JSON property `query`
4967
+ # @return [String]
4968
+ attr_accessor :query
4969
+
4970
+ def initialize ( **args )
4971
+ update! ( **args )
4972
+ end
4973
+
4974
+ # Update properties of this object
4975
+ def update! ( **args )
4976
+ @intent_type = args [ :intent_type ] if args . key? ( :intent_type )
4977
+ @operation = args [ :operation ] if args . key? ( :operation )
4978
+ @query = args [ :query ] if args . key? ( :query )
4979
+ end
4980
+ end
4981
+
4982
+ # Inline source for intent classifications.
4983
+ class GoogleCloudRetailV2betaIntentClassificationConfigInlineSource
4984
+ include Google ::Apis ::Core ::Hashable
4985
+
4986
+ # Optional. A list of inline force intent classifications.
4987
+ # Corresponds to the JSON property `inlineForceIntents`
4988
+ # @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent>]
4989
+ attr_accessor :inline_force_intents
4990
+
4991
+ def initialize ( **args )
4992
+ update! ( **args )
4993
+ end
4994
+
4995
+ # Update properties of this object
4996
+ def update! ( **args )
4997
+ @inline_force_intents = args [ :inline_force_intents ] if args . key? ( :inline_force_intents )
4998
+ end
4999
+ end
5000
+
4936
5001
# A floating point interval.
4937
5002
class GoogleCloudRetailV2betaInterval
4938
5003
include Google ::Apis ::Core ::Hashable
@@ -7767,6 +7832,15 @@ class GoogleCloudRetailV2betaSearchRequest
7767
7832
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestTileNavigationSpec]
7768
7833
attr_accessor :tile_navigation_spec
7769
7834
7835
+ # Optional. The user attributes that could be used for personalization of search
7836
+ # results. * Populate at most 100 key-value pairs per query. * Only supports
7837
+ # string keys and repeated string values. * Duplcate keys are not allowed within
7838
+ # a single query. Example: user_attributes: [ ` key: "pets" value ` values: "dog"
7839
+ # values: "cat" ` `, ` key: "state" value ` values: "CA" ` ` ]
7840
+ # Corresponds to the JSON property `userAttributes`
7841
+ # @return [Hash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaStringList>]
7842
+ attr_accessor :user_attributes
7843
+
7770
7844
# Information of an end user.
7771
7845
# Corresponds to the JSON property `userInfo`
7772
7846
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaUserInfo]
@@ -7841,6 +7915,7 @@ def update!(**args)
7841
7915
@search_mode = args [ :search_mode ] if args . key? ( :search_mode )
7842
7916
@spell_correction_spec = args [ :spell_correction_spec ] if args . key? ( :spell_correction_spec )
7843
7917
@tile_navigation_spec = args [ :tile_navigation_spec ] if args . key? ( :tile_navigation_spec )
7918
+ @user_attributes = args [ :user_attributes ] if args . key? ( :user_attributes )
7844
7919
@user_info = args [ :user_info ] if args . key? ( :user_info )
7845
7920
@variant_rollup_keys = args [ :variant_rollup_keys ] if args . key? ( :variant_rollup_keys )
7846
7921
@visitor_id = args [ :visitor_id ] if args . key? ( :visitor_id )
@@ -9048,6 +9123,25 @@ def update!(**args)
9048
9123
end
9049
9124
end
9050
9125
9126
+ # A list of string values.
9127
+ class GoogleCloudRetailV2betaStringList
9128
+ include Google ::Apis ::Core ::Hashable
9129
+
9130
+ # String values.
9131
+ # Corresponds to the JSON property `values`
9132
+ # @return [Array<String>]
9133
+ attr_accessor :values
9134
+
9135
+ def initialize ( **args )
9136
+ update! ( **args )
9137
+ end
9138
+
9139
+ # Update properties of this object
9140
+ def update! ( **args )
9141
+ @values = args [ :values ] if args . key? ( :values )
9142
+ end
9143
+ end
9144
+
9051
9145
# This field specifies the tile information including an attribute key,
9052
9146
# attribute value. More fields will be added in the future, eg: product id or
9053
9147
# product counts, etc.
0 commit comments