Skip to content

Commit 221bb68

Browse files
feat(retail): update the api
#### retail:v2 The following keys were added: - schemas.GoogleCloudRetailV2SearchRequest.properties.placeId.type (Total Keys: 1) #### retail:v2alpha The following keys were added: - resources.projects.resources.locations.resources.catalogs.resources.placements.methods.conversationalSearch (Total Keys: 12) - resources.projects.resources.locations.resources.catalogs.resources.servingConfigs.methods.conversationalSearch (Total Keys: 12) - schemas.GoogleCloudRetailV2alphaConversationalSearchRequest (Total Keys: 30) - schemas.GoogleCloudRetailV2alphaConversationalSearchResponse (Total Keys: 26) - schemas.GoogleCloudRetailV2alphaSearchRequest.properties.placeId.type (Total Keys: 1) #### retail:v2beta The following keys were added: - schemas.GoogleCloudRetailV2betaSearchRequest.properties.placeId.type (Total Keys: 1)
1 parent 0eee0c7 commit 221bb68

12 files changed

+481
-9
lines changed

docs/dyn/retail_v2.projects.locations.catalogs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ <h3>Method Details</h3>
193193
languageCodes: string, Note that this field applies for `user-data` dataset only. For requests with `cloud-retail` dataset, setting this field has no effect. The language filters applied to the output suggestions. If set, it should contain the language of the query. If not set, suggestions are returned without considering language restrictions. This is the BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of language codes is 3. (repeated)
194194
maxSuggestions: integer, Completion max suggestions. If left unset or set to 0, then will fallback to the configured value CompletionConfig.max_suggestions. The maximum allowed max suggestions is 20. If it is set higher, it will be capped by 20.
195195
query: string, Required. The query used to generate suggestions. The maximum number of allowed characters is 255.
196-
visitorId: string, Required field. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
196+
visitorId: string, Recommended field. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
197197
x__xgafv: string, V1 error format.
198198
Allowed values
199199
1 - v1 error format

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ <h3>Method Details</h3>
453453
&quot;personalizationSpec&quot;: { # The specification for personalization. # The specification for personalization. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set. SearchRequest.personalization_spec will override ServingConfig.personalization_spec.
454454
&quot;mode&quot;: &quot;A String&quot;, # Defaults to Mode.AUTO.
455455
},
456+
&quot;placeId&quot;: &quot;A String&quot;, # Optional. An id corresponding to a place, such as a store id or region id. When specified, we use the price from the local inventory with the matching product&#x27;s LocalInventory.place_id for revenue optimization.
456457
&quot;query&quot;: &quot;A String&quot;, # Raw search query. If this field is empty, the request is considered a category browsing request and returned results are based on filter and page_categories.
457458
&quot;queryExpansionSpec&quot;: { # Specification to determine under which conditions query expansion should occur. # The query expansion specification that specifies the conditions under which query expansion occurs. For more information, see [Query expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
458459
&quot;condition&quot;: &quot;A String&quot;, # The condition under which query expansion should occur. Default to Condition.DISABLED.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,7 @@ <h3>Method Details</h3>
10041004
&quot;personalizationSpec&quot;: { # The specification for personalization. # The specification for personalization. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set. SearchRequest.personalization_spec will override ServingConfig.personalization_spec.
10051005
&quot;mode&quot;: &quot;A String&quot;, # Defaults to Mode.AUTO.
10061006
},
1007+
&quot;placeId&quot;: &quot;A String&quot;, # Optional. An id corresponding to a place, such as a store id or region id. When specified, we use the price from the local inventory with the matching product&#x27;s LocalInventory.place_id for revenue optimization.
10071008
&quot;query&quot;: &quot;A String&quot;, # Raw search query. If this field is empty, the request is considered a category browsing request and returned results are based on filter and page_categories.
10081009
&quot;queryExpansionSpec&quot;: { # Specification to determine under which conditions query expansion should occur. # The query expansion specification that specifies the conditions under which query expansion occurs. For more information, see [Query expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
10091010
&quot;condition&quot;: &quot;A String&quot;, # The condition under which query expansion should occur. Default to Condition.DISABLED.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ <h3>Method Details</h3>
198198
languageCodes: string, Note that this field applies for `user-data` dataset only. For requests with `cloud-retail` dataset, setting this field has no effect. The language filters applied to the output suggestions. If set, it should contain the language of the query. If not set, suggestions are returned without considering language restrictions. This is the BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of language codes is 3. (repeated)
199199
maxSuggestions: integer, Completion max suggestions. If left unset or set to 0, then will fallback to the configured value CompletionConfig.max_suggestions. The maximum allowed max suggestions is 20. If it is set higher, it will be capped by 20.
200200
query: string, Required. The query used to generate suggestions. The maximum number of allowed characters is 255.
201-
visitorId: string, Required field. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
201+
visitorId: string, Recommended field. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
202202
x__xgafv: string, V1 error format.
203203
Allowed values
204204
1 - v1 error format

0 commit comments

Comments
 (0)