Skip to content

Commit 733cf41

Browse files
feat(retail): update the api
#### retail:v2alpha The following keys were added: - schemas.GoogleCloudRetailV2alphaSearchRequest.properties.userAttributes (Total Keys: 2) - schemas.GoogleCloudRetailV2alphaStringList (Total Keys: 4)
1 parent 27662ca commit 733cf41

File tree

3 files changed

+39
-4
lines changed

3 files changed

+39
-4
lines changed

docs/dyn/retail_v2alpha.projects.locations.catalogs.placements.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ <h3>Method Details</h3>
167167
&quot;followupQuestion&quot;: { # The conversational followup question generated for Intent refinement. # The conversational filtering question.
168168
&quot;followupQuestion&quot;: &quot;A String&quot;, # The conversational followup question generated for Intent refinement.
169169
&quot;suggestedAnswers&quot;: [ # The answer options provided to client for the follow-up question.
170-
{ # Suggested answers to the follow-up question.
170+
{ # Suggested answers to the follow-up question. If it&#x27;s numerical attribute, only ProductAttributeInterval will be set. If it&#x27;s textual attribute, only productAttributeValue will be set.
171171
&quot;productAttributeValue&quot;: { # Product attribute which structured by an attribute name and value. This structure is used in conversational search filters and answers. For example, if we have `name=color` and `value=red`, this means that the color is `red`. # Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future.
172172
&quot;name&quot;: &quot;A String&quot;, # The attribute name.
173173
&quot;value&quot;: &quot;A String&quot;, # The attribute value.
@@ -578,6 +578,13 @@ <h3>Method Details</h3>
578578
],
579579
&quot;tileNavigationRequested&quot;: True or False, # This field specifies whether the customer would like to request tile navigation.
580580
},
581+
&quot;userAttributes&quot;: { # Optional. The user attributes that could be used for personalization of search results. * Populate at most 100 key-value pairs per query. * Only supports string keys and repeated string values. * Duplcate keys are not allowed within a single query. Example: user_attributes: [ { key: &quot;pets&quot; value { values: &quot;dog&quot; values: &quot;cat&quot; } }, { key: &quot;state&quot; value { values: &quot;CA&quot; } } ]
582+
&quot;a_key&quot;: { # A list of string values.
583+
&quot;values&quot;: [ # String values.
584+
&quot;A String&quot;,
585+
],
586+
},
587+
},
581588
&quot;userInfo&quot;: { # Information of an end user. # User information.
582589
&quot;directUserRequest&quot;: True or False, # True if the request is made directly from the end user, in which case the ip_address and user_agent can be populated from the HTTP request. This flag should be set only if the API request is made directly from the end user such as a mobile app (and not if a gateway or a server is processing and pushing the user events). This should not be set when using the JavaScript tag in UserEventService.CollectUserEvent.
583590
&quot;ipAddress&quot;: &quot;A String&quot;, # The end user&#x27;s IP address. This field is used to extract location information for personalization. This field must be either an IPv4 address (e.g. &quot;104.133.9.80&quot;) or an IPv6 address (e.g. &quot;2001:0db8:85a3:0000:0000:8a2e:0370:7334&quot;). Otherwise, an INVALID_ARGUMENT error is returned. This should not be set when: * setting SearchRequest.user_info. * using the JavaScript tag in UserEventService.CollectUserEvent or if direct_user_request is set.

docs/dyn/retail_v2alpha.projects.locations.catalogs.servingConfigs.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ <h3>Method Details</h3>
260260
&quot;followupQuestion&quot;: { # The conversational followup question generated for Intent refinement. # The conversational filtering question.
261261
&quot;followupQuestion&quot;: &quot;A String&quot;, # The conversational followup question generated for Intent refinement.
262262
&quot;suggestedAnswers&quot;: [ # The answer options provided to client for the follow-up question.
263-
{ # Suggested answers to the follow-up question.
263+
{ # Suggested answers to the follow-up question. If it&#x27;s numerical attribute, only ProductAttributeInterval will be set. If it&#x27;s textual attribute, only productAttributeValue will be set.
264264
&quot;productAttributeValue&quot;: { # Product attribute which structured by an attribute name and value. This structure is used in conversational search filters and answers. For example, if we have `name=color` and `value=red`, this means that the color is `red`. # Product attribute value, including an attribute key and an attribute value. Other types can be added here in the future.
265265
&quot;name&quot;: &quot;A String&quot;, # The attribute name.
266266
&quot;value&quot;: &quot;A String&quot;, # The attribute value.
@@ -1129,6 +1129,13 @@ <h3>Method Details</h3>
11291129
],
11301130
&quot;tileNavigationRequested&quot;: True or False, # This field specifies whether the customer would like to request tile navigation.
11311131
},
1132+
&quot;userAttributes&quot;: { # Optional. The user attributes that could be used for personalization of search results. * Populate at most 100 key-value pairs per query. * Only supports string keys and repeated string values. * Duplcate keys are not allowed within a single query. Example: user_attributes: [ { key: &quot;pets&quot; value { values: &quot;dog&quot; values: &quot;cat&quot; } }, { key: &quot;state&quot; value { values: &quot;CA&quot; } } ]
1133+
&quot;a_key&quot;: { # A list of string values.
1134+
&quot;values&quot;: [ # String values.
1135+
&quot;A String&quot;,
1136+
],
1137+
},
1138+
},
11321139
&quot;userInfo&quot;: { # Information of an end user. # User information.
11331140
&quot;directUserRequest&quot;: True or False, # True if the request is made directly from the end user, in which case the ip_address and user_agent can be populated from the HTTP request. This flag should be set only if the API request is made directly from the end user such as a mobile app (and not if a gateway or a server is processing and pushing the user events). This should not be set when using the JavaScript tag in UserEventService.CollectUserEvent.
11341141
&quot;ipAddress&quot;: &quot;A String&quot;, # The end user&#x27;s IP address. This field is used to extract location information for personalization. This field must be either an IPv4 address (e.g. &quot;104.133.9.80&quot;) or an IPv6 address (e.g. &quot;2001:0db8:85a3:0000:0000:8a2e:0370:7334&quot;). Otherwise, an INVALID_ARGUMENT error is returned. This should not be set when: * setting SearchRequest.user_info. * using the JavaScript tag in UserEventService.CollectUserEvent or if direct_user_request is set.

googleapiclient/discovery_cache/documents/retail.v2alpha.json

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2800,7 +2800,7 @@
28002800
}
28012801
}
28022802
},
2803-
"revision": "20250515",
2803+
"revision": "20250522",
28042804
"rootUrl": "https://retail.googleapis.com/",
28052805
"schemas": {
28062806
"GoogleApiHttpBody": {
@@ -4743,7 +4743,7 @@
47434743
"type": "object"
47444744
},
47454745
"GoogleCloudRetailV2alphaConversationalSearchResponseFollowupQuestionSuggestedAnswer": {
4746-
"description": "Suggested answers to the follow-up question.",
4746+
"description": "Suggested answers to the follow-up question. If it's numerical attribute, only ProductAttributeInterval will be set. If it's textual attribute, only productAttributeValue will be set.",
47474747
"id": "GoogleCloudRetailV2alphaConversationalSearchResponseFollowupQuestionSuggestedAnswer",
47484748
"properties": {
47494749
"productAttributeValue": {
@@ -7413,6 +7413,13 @@
74137413
"$ref": "GoogleCloudRetailV2alphaSearchRequestTileNavigationSpec",
74147414
"description": "Optional. This field specifies tile navigation related parameters."
74157415
},
7416+
"userAttributes": {
7417+
"additionalProperties": {
7418+
"$ref": "GoogleCloudRetailV2alphaStringList"
7419+
},
7420+
"description": "Optional. The user attributes that could be used for personalization of search results. * Populate at most 100 key-value pairs per query. * Only supports string keys and repeated string values. * Duplcate keys are not allowed within a single query. Example: user_attributes: [ { key: \"pets\" value { values: \"dog\" values: \"cat\" } }, { key: \"state\" value { values: \"CA\" } } ]",
7421+
"type": "object"
7422+
},
74167423
"userInfo": {
74177424
"$ref": "GoogleCloudRetailV2alphaUserInfo",
74187425
"description": "User information."
@@ -8169,6 +8176,20 @@
81698176
"properties": {},
81708177
"type": "object"
81718178
},
8179+
"GoogleCloudRetailV2alphaStringList": {
8180+
"description": "A list of string values.",
8181+
"id": "GoogleCloudRetailV2alphaStringList",
8182+
"properties": {
8183+
"values": {
8184+
"description": "String values.",
8185+
"items": {
8186+
"type": "string"
8187+
},
8188+
"type": "array"
8189+
}
8190+
},
8191+
"type": "object"
8192+
},
81728193
"GoogleCloudRetailV2alphaTile": {
81738194
"description": "This field specifies the tile information including an attribute key, attribute value. More fields will be added in the future, eg: product id or product counts, etc.",
81748195
"id": "GoogleCloudRetailV2alphaTile",

0 commit comments

Comments
 (0)