Skip to content

Commit c2bcb70

Browse files
feat(retail): update the api
#### retail:v2 The following keys were added: - schemas.GoogleCloudRetailV2SearchRequestQueryExpansionSpec.properties.pinUnexpandedResults.type (Total Keys: 1) - schemas.GoogleCloudRetailV2SearchResponseQueryExpansionInfo.properties.pinnedResultCount (Total Keys: 2) #### retail:v2alpha The following keys were added: - schemas.GoogleCloudRetailV2alphaSearchRequestQueryExpansionSpec.properties.pinUnexpandedResults.type (Total Keys: 1) - schemas.GoogleCloudRetailV2alphaSearchResponseQueryExpansionInfo.properties.pinnedResultCount (Total Keys: 2) #### retail:v2beta The following keys were added: - schemas.GoogleCloudRetailV2betaSearchRequestQueryExpansionSpec.properties.pinUnexpandedResults.type (Total Keys: 1) - schemas.GoogleCloudRetailV2betaSearchResponseQueryExpansionInfo.properties.pinnedResultCount (Total Keys: 2)
1 parent b2c3a83 commit c2bcb70

15 files changed

+219
-186
lines changed

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

+32-32
Large diffs are not rendered by default.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ <h3>Method Details</h3>
165165
&quot;suggestion&quot;: &quot;A String&quot;, # The suggestion for the query.
166166
},
167167
],
168-
&quot;recentSearchResults&quot;: [ # Matched recent searches of this user. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower cases. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
168+
&quot;recentSearchResults&quot;: [ # Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower cases. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
169169
{ # Recent search of this user.
170170
&quot;recentSearch&quot;: &quot;A String&quot;, # The recent search query.
171171
},

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

+11-9
Large diffs are not rendered by default.

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

+12-12
Large diffs are not rendered by default.

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

+32-32
Large diffs are not rendered by default.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ <h3>Method Details</h3>
165165
&quot;suggestion&quot;: &quot;A String&quot;, # The suggestion for the query.
166166
},
167167
],
168-
&quot;recentSearchResults&quot;: [ # Matched recent searches of this user. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower cases. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
168+
&quot;recentSearchResults&quot;: [ # Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower cases. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
169169
{ # Recent search of this user.
170170
&quot;recentSearch&quot;: &quot;A String&quot;, # The recent search query.
171171
},

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

+11-9
Large diffs are not rendered by default.

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

+12-12
Large diffs are not rendered by default.

docs/dyn/retail_v2beta.projects.locations.catalogs.branches.products.html

+32-32
Large diffs are not rendered by default.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ <h3>Method Details</h3>
165165
&quot;suggestion&quot;: &quot;A String&quot;, # The suggestion for the query.
166166
},
167167
],
168-
&quot;recentSearchResults&quot;: [ # Matched recent searches of this user. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower cases. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
168+
&quot;recentSearchResults&quot;: [ # Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower cases. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
169169
{ # Recent search of this user.
170170
&quot;recentSearch&quot;: &quot;A String&quot;, # The recent search query.
171171
},

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

+11-9
Large diffs are not rendered by default.

docs/dyn/retail_v2beta.projects.locations.catalogs.userEvents.html

+12-12
Large diffs are not rendered by default.

googleapiclient/discovery_cache/documents/retail.v2.json

+17-8
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"oauth2": {
44
"scopes": {
55
"https://www.googleapis.com/auth/cloud-platform": {
6-
"description": "See, edit, configure, and delete your Google Cloud Platform data"
6+
"description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
77
}
88
}
99
}
@@ -1007,7 +1007,7 @@
10071007
}
10081008
}
10091009
},
1010-
"revision": "20210730",
1010+
"revision": "20210812",
10111011
"rootUrl": "https://retail.googleapis.com/",
10121012
"schemas": {
10131013
"GoogleApiHttpBody": {
@@ -1307,7 +1307,7 @@
13071307
"type": "array"
13081308
},
13091309
"recentSearchResults": {
1310-
"description": "Matched recent searches of this user. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower cases. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.",
1310+
"description": "Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. Contact Retail Search support team if you are interested in enabling it. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower cases. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.",
13111311
"items": {
13121312
"$ref": "GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult"
13131313
},
@@ -1871,7 +1871,7 @@
18711871
"additionalProperties": {
18721872
"$ref": "GoogleCloudRetailV2CustomAttribute"
18731873
},
1874-
"description": "Highly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ \"vendor\": {\"text\": [\"vendor123\", \"vendor456\"]}, \"lengths_cm\": {\"numbers\":[2.3, 15.4]}, \"heights_cm\": {\"numbers\":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200 by default; 100 for Type.VARIANT. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * Max indexable entries count: 200 by default; 40 for Type.VARIANT. * Max searchable entries count: 30. * For indexable attribute, the key must match the pattern: a-zA-Z0-9*. For example, key0LikeThis or KEY_1_LIKE_THIS.",
1874+
"description": "Highly encouraged. Extra product attributes to be included. For example, for products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the attributes here. Features that can take on one of a limited number of possible values. Two types of features can be set are: Textual features. some examples would be the brand/maker of a product, or country of a customer. Numerical features. Some examples would be the height/weight of a product, or age of a customer. For example: `{ \"vendor\": {\"text\": [\"vendor123\", \"vendor456\"]}, \"lengths_cm\": {\"numbers\":[2.3, 15.4]}, \"heights_cm\": {\"numbers\":[8.1, 6.4]} }`. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must be a UTF-8 encoded string with a length limit of 128 characters. * For indexable attribute, the key must match the pattern: a-zA-Z0-9*. For example, key0LikeThis or KEY_1_LIKE_THIS.",
18751875
"type": "object"
18761876
},
18771877
"audience": {
@@ -1955,7 +1955,7 @@
19551955
"type": "array"
19561956
},
19571957
"gtin": {
1958-
"description": "The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [gtin](https://support.google.com/merchants/answer/6324461). Schema.org property [Product.isbn](https://schema.org/isbn) or [Product.gtin8](https://schema.org/gtin8) or [Product.gtin12](https://schema.org/gtin12) or [Product.gtin13](https://schema.org/gtin13) or [Product.gtin14](https://schema.org/gtin14). If the value is not a valid GTIN, an INVALID_ARGUMENT error is returned.",
1958+
"description": "The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [gtin](https://support.google.com/merchants/answer/6324461). Schema.org property [Product.isbn](https://schema.org/isbn) or [Product.gtin8](https://schema.org/gtin8) or [Product.gtin12](https://schema.org/gtin12) or [Product.gtin13](https://schema.org/gtin13) or [Product.gtin14](https://schema.org/gtin14). If the value is not a valid GTIN, an INVALID_ARGUMENT error is returned.",
19591959
"type": "string"
19601960
},
19611961
"id": {
@@ -1974,7 +1974,7 @@
19741974
"type": "string"
19751975
},
19761976
"materials": {
1977-
"description": "The material of the product. For example, \"leather\", \"wooden\". A maximum of 5 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).",
1977+
"description": "The material of the product. For example, \"leather\", \"wooden\". A maximum of 20 values are allowed. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [material](https://support.google.com/merchants/answer/6324410). Schema.org property [Product.material](https://schema.org/material).",
19781978
"items": {
19791979
"type": "string"
19801980
},
@@ -1985,7 +1985,7 @@
19851985
"type": "string"
19861986
},
19871987
"patterns": {
1988-
"description": "The pattern or graphic print of the product. For example, \"striped\", \"polka dot\", \"paisley\". A maximum of 5 values are allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).",
1988+
"description": "The pattern or graphic print of the product. For example, \"striped\", \"polka dot\", \"paisley\". A maximum of 20 values are allowed per Product. Each value must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property [pattern](https://support.google.com/merchants/answer/6324483). Schema.org property [Product.pattern](https://schema.org/pattern).",
19891989
"items": {
19901990
"type": "string"
19911991
},
@@ -2539,6 +2539,10 @@
25392539
"Automatic query expansion built by Google Retail Search."
25402540
],
25412541
"type": "string"
2542+
},
2543+
"pinUnexpandedResults": {
2544+
"description": "Whether to pin unexpanded results. If this field is set to true, unexpanded products are always at the top of the search results, followed by the expanded results.",
2545+
"type": "boolean"
25422546
}
25432547
},
25442548
"type": "object"
@@ -2638,6 +2642,11 @@
26382642
"expandedQuery": {
26392643
"description": "Bool describing whether query expansion has occurred.",
26402644
"type": "boolean"
2645+
},
2646+
"pinnedResultCount": {
2647+
"description": "Number of pinned results. This field will only be set when expansion happens and SearchRequest.query_expansion_spec.pin_unexpanded_results is set to true.",
2648+
"format": "int64",
2649+
"type": "string"
26412650
}
26422651
},
26432652
"type": "object"
@@ -2671,7 +2680,7 @@
26712680
"additionalProperties": {
26722681
"type": "any"
26732682
},
2674-
"description": "The rollup matching variant Product attributes. The key is one of the SearchRequest.variant_rollup_keys. The values are the merged and de-duplicated Product attributes. Notice that the rollup values are respect filter. For example, when filtering by \"colorFamilies:ANY(\\\"red\\\")\" and rollup \"colorFamilies\", only \"red\" is returned. For textual and numerical attributes, the rollup values is a list of string or double values with type google.protobuf.ListValue. For example, if there are two variants with colors \"red\" and \"blue\", the rollup values are { key: \"colorFamilies\" value { list_value { values { string_value: \"red\" } values { string_value: \"blue\" } } } } For FulfillmentInfo, the rollup values is a double value with type google.protobuf.Value. For example, {key: \"pickupInStore.store1\" value { number_value: 10 }} means a there are 10 variants in this product are available in the store \"store1\".",
2683+
"description": "The rollup matching variant Product attributes. The key is one of the SearchRequest.variant_rollup_keys. The values are the merged and de-duplicated Product attributes. Notice that the rollup values are respect filter. For example, when filtering by \"colorFamilies:ANY(\\\"red\\\")\" and rollup \"colorFamilies\", only \"red\" is returned. For textual and numerical attributes, the rollup values is a list of string or double values with type google.protobuf.ListValue. For example, if there are two variants with colors \"red\" and \"blue\", the rollup values are { key: \"colorFamilies\" value { list_value { values { string_value: \"red\" } values { string_value: \"blue\" } } } } For FulfillmentInfo, the rollup values is a double value with type google.protobuf.Value. For example, `{key: \"pickupInStore.store1\" value { number_value: 10 }}` means a there are 10 variants in this product are available in the store \"store1\".",
26752684
"type": "object"
26762685
}
26772686
},

0 commit comments

Comments
 (0)