Skip to content

Commit bdb6fa0

Browse files
feat(retail)!: update the API
BREAKING CHANGE: This release has breaking changes. #### retail:v2alpha The following keys were deleted: - schemas.GoogleCloudRetailV2alphaConversationalSearchResponse.properties.rephrasedQuery.deprecated - schemas.GoogleCloudRetailV2alphaConversationalSearchResponse.properties.rephrasedQuery.description - schemas.GoogleCloudRetailV2alphaConversationalSearchResponse.properties.rephrasedQuery.type The following keys were added: - schemas.GoogleCloudRetailV2alphaDoubleList.description - schemas.GoogleCloudRetailV2alphaDoubleList.id - schemas.GoogleCloudRetailV2alphaDoubleList.properties.values.description - schemas.GoogleCloudRetailV2alphaDoubleList.properties.values.items.format - schemas.GoogleCloudRetailV2alphaDoubleList.properties.values.items.type - schemas.GoogleCloudRetailV2alphaDoubleList.properties.values.type - schemas.GoogleCloudRetailV2alphaDoubleList.type - schemas.GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter.properties.dataSourceId.description - schemas.GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter.properties.dataSourceId.format - schemas.GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter.properties.dataSourceId.type - schemas.GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter.properties.primaryFeedId.deprecated - schemas.GoogleCloudRetailV2alphaMerchantCenterFeedFilter.properties.dataSourceId.description - schemas.GoogleCloudRetailV2alphaMerchantCenterFeedFilter.properties.dataSourceId.format - schemas.GoogleCloudRetailV2alphaMerchantCenterFeedFilter.properties.dataSourceId.type - schemas.GoogleCloudRetailV2alphaMerchantCenterFeedFilter.properties.primaryFeedId.deprecated - schemas.GoogleCloudRetailV2alphaSearchResponseSearchResult.properties.modelScores.additionalProperties.$ref - schemas.GoogleCloudRetailV2alphaSearchResponseSearchResult.properties.modelScores.description - schemas.GoogleCloudRetailV2alphaSearchResponseSearchResult.properties.modelScores.type The following keys were changed: - schemas.GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter.properties.primaryFeedId.description - schemas.GoogleCloudRetailV2alphaMerchantCenterFeedFilter.properties.primaryFeedId.description #### retail:v2beta The following keys were deleted: - schemas.GoogleCloudRetailV2betaLocalInventory.properties.availability.description - schemas.GoogleCloudRetailV2betaLocalInventory.properties.availability.enum - schemas.GoogleCloudRetailV2betaLocalInventory.properties.availability.enumDescriptions - schemas.GoogleCloudRetailV2betaLocalInventory.properties.availability.type The following keys were added: - schemas.GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter.properties.dataSourceId.description - schemas.GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter.properties.dataSourceId.format - schemas.GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter.properties.dataSourceId.type - schemas.GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter.properties.primaryFeedId.deprecated - schemas.GoogleCloudRetailV2betaDoubleList.description - schemas.GoogleCloudRetailV2betaDoubleList.id - schemas.GoogleCloudRetailV2betaDoubleList.properties.values.description - schemas.GoogleCloudRetailV2betaDoubleList.properties.values.items.format - schemas.GoogleCloudRetailV2betaDoubleList.properties.values.items.type - schemas.GoogleCloudRetailV2betaDoubleList.properties.values.type - schemas.GoogleCloudRetailV2betaDoubleList.type - schemas.GoogleCloudRetailV2betaMerchantCenterFeedFilter.properties.dataSourceId.description - schemas.GoogleCloudRetailV2betaMerchantCenterFeedFilter.properties.dataSourceId.format - schemas.GoogleCloudRetailV2betaMerchantCenterFeedFilter.properties.dataSourceId.type - schemas.GoogleCloudRetailV2betaMerchantCenterFeedFilter.properties.primaryFeedId.deprecated - schemas.GoogleCloudRetailV2betaSearchResponseSearchResult.properties.modelScores.additionalProperties.$ref - schemas.GoogleCloudRetailV2betaSearchResponseSearchResult.properties.modelScores.description - schemas.GoogleCloudRetailV2betaSearchResponseSearchResult.properties.modelScores.type The following keys were changed: - schemas.GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter.properties.primaryFeedId.description - schemas.GoogleCloudRetailV2betaMerchantCenterFeedFilter.properties.primaryFeedId.description #### retail:v2 The following keys were deleted: - schemas.GoogleCloudRetailV2LocalInventory.properties.availability.description - schemas.GoogleCloudRetailV2LocalInventory.properties.availability.enum - schemas.GoogleCloudRetailV2LocalInventory.properties.availability.enumDescriptions - schemas.GoogleCloudRetailV2LocalInventory.properties.availability.type The following keys were added: - schemas.GoogleCloudRetailV2DoubleList.description - schemas.GoogleCloudRetailV2DoubleList.id - schemas.GoogleCloudRetailV2DoubleList.properties.values.description - schemas.GoogleCloudRetailV2DoubleList.properties.values.items.format - schemas.GoogleCloudRetailV2DoubleList.properties.values.items.type - schemas.GoogleCloudRetailV2DoubleList.properties.values.type - schemas.GoogleCloudRetailV2DoubleList.type - schemas.GoogleCloudRetailV2SearchResponseSearchResult.properties.modelScores.additionalProperties.$ref - schemas.GoogleCloudRetailV2SearchResponseSearchResult.properties.modelScores.description - schemas.GoogleCloudRetailV2SearchResponseSearchResult.properties.modelScores.type - schemas.GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter.properties.dataSourceId.description - schemas.GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter.properties.dataSourceId.format - schemas.GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter.properties.dataSourceId.type - schemas.GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter.properties.primaryFeedId.deprecated The following keys were changed: - schemas.GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter.properties.primaryFeedId.description
1 parent 3aaf841 commit bdb6fa0

File tree

6 files changed

+172
-66
lines changed

6 files changed

+172
-66
lines changed

discovery/retail-v2.json

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,7 +2223,7 @@
22232223
}
22242224
}
22252225
},
2226-
"revision": "20250417",
2226+
"revision": "20250515",
22272227
"rootUrl": "https://retail.googleapis.com/",
22282228
"schemas": {
22292229
"GoogleApiHttpBody": {
@@ -3216,6 +3216,21 @@
32163216
},
32173217
"type": "object"
32183218
},
3219+
"GoogleCloudRetailV2DoubleList": {
3220+
"description": "A message with a list of double values.",
3221+
"id": "GoogleCloudRetailV2DoubleList",
3222+
"properties": {
3223+
"values": {
3224+
"description": "The list of double values.",
3225+
"items": {
3226+
"format": "double",
3227+
"type": "number"
3228+
},
3229+
"type": "array"
3230+
}
3231+
},
3232+
"type": "object"
3233+
},
32193234
"GoogleCloudRetailV2ExperimentInfo": {
32203235
"description": "Metadata for active A/B testing experiment.",
32213236
"id": "GoogleCloudRetailV2ExperimentInfo",
@@ -3777,24 +3792,6 @@
37773792
"description": "Optional. Additional local inventory attributes, for example, store name, promotion tags, etc. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The key must be a UTF-8 encoded string with a length limit of 32 characters. * The key must match the pattern: `a-zA-Z0-9*`. For example, key0LikeThis or KEY_1_LIKE_THIS. * The attribute values must be of the same type (text or number). * Only 1 value is allowed for each attribute. * For text values, the length limit is 256 UTF-8 characters. * The attribute does not support search. The `searchable` field should be unset or set to false. * The max summed total bytes of custom attribute keys and values per product is 5MiB.",
37783793
"type": "object"
37793794
},
3780-
"availability": {
3781-
"description": "Optional. The availability of the Product at this place_id. Default to Availability.IN_STOCK. For primary products with variants set the availability of the primary as Availability.OUT_OF_STOCK and set the true availability at the variant level. This way the primary product will be considered \"in stock\" as long as it has at least one variant in stock. For primary products with no variants set the true availability at the primary level. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability). This field is currently only used by the Recommendations API. For Search, please make use of fulfillment_types or custom attributes for similar behaviour. See [here]( https://cloud.google.com/retail/docs/local-inventory-updates#local-inventory-update-methods) for more details.",
3782-
"enum": [
3783-
"AVAILABILITY_UNSPECIFIED",
3784-
"IN_STOCK",
3785-
"OUT_OF_STOCK",
3786-
"PREORDER",
3787-
"BACKORDER"
3788-
],
3789-
"enumDescriptions": [
3790-
"Default product availability. Default to Availability.IN_STOCK if unset.",
3791-
"Product in stock.",
3792-
"Product out of stock.",
3793-
"Product that is in pre-order state.",
3794-
"Product that is back-ordered (i.e. temporarily out of stock)."
3795-
],
3796-
"type": "string"
3797-
},
37983795
"fulfillmentTypes": {
37993796
"description": "Optional. Supported fulfillment types. Valid fulfillment type values include commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI. Supported values: * \"pickup-in-store\" * \"ship-to-store\" * \"same-day-delivery\" * \"next-day-delivery\" * \"custom-type-1\" * \"custom-type-2\" * \"custom-type-3\" * \"custom-type-4\" * \"custom-type-5\" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned.",
38003797
"items": {
@@ -5773,6 +5770,13 @@
57735770
"description": "If a variant Product matches the search query, this map indicates which Product fields are matched. The key is the Product.name, the value is a field mask of the matched Product fields. If matched attributes cannot be determined, this map will be empty. For example, a key \"sku1\" with field mask \"products.color_info\" indicates there is a match between \"sku1\" ColorInfo and the query.",
57745771
"type": "object"
57755772
},
5773+
"modelScores": {
5774+
"additionalProperties": {
5775+
"$ref": "GoogleCloudRetailV2DoubleList"
5776+
},
5777+
"description": "Google provided available scores.",
5778+
"type": "object"
5779+
},
57765780
"personalLabels": {
57775781
"description": "Specifies previous events related to this product for this user based on UserEvent with same SearchRequest.visitor_id or UserInfo.user_id. This is set only when SearchRequest.PersonalizationSpec.mode is SearchRequest.PersonalizationSpec.Mode.AUTO. Possible values: * `purchased`: Indicates that this product has been purchased before.",
57785782
"items": {
@@ -6612,8 +6616,14 @@
66126616
"description": "Merchant Center Feed filter criterion.",
66136617
"id": "GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter",
66146618
"properties": {
6619+
"dataSourceId": {
6620+
"description": "AFM data source ID.",
6621+
"format": "int64",
6622+
"type": "string"
6623+
},
66156624
"primaryFeedId": {
6616-
"description": "Merchant Center primary feed ID.",
6625+
"deprecated": true,
6626+
"description": "Merchant Center primary feed ID. Deprecated: use data_source_id instead.",
66176627
"format": "int64",
66186628
"type": "string"
66196629
},

discovery/retail-v2alpha.json

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2800,7 +2800,7 @@
28002800
}
28012801
}
28022802
},
2803-
"revision": "20250417",
2803+
"revision": "20250515",
28042804
"rootUrl": "https://retail.googleapis.com/",
28052805
"schemas": {
28062806
"GoogleApiHttpBody": {
@@ -4694,11 +4694,6 @@
46944694
"$ref": "GoogleCloudRetailV2alphaConversationalSearchResponseRefinedSearch"
46954695
},
46964696
"type": "array"
4697-
},
4698-
"rephrasedQuery": {
4699-
"deprecated": true,
4700-
"description": "This field is deprecated. Please find the refinded_query from search response when using CONVERSATIONAL_FILTER_ONLY mode in ConversationalSearchResponse.refined_search instead. The rephrased query based on the user's query and the conversation history. It can be used to fetch the relevant search results.",
4701-
"type": "string"
47024697
}
47034698
},
47044699
"type": "object"
@@ -4829,6 +4824,21 @@
48294824
},
48304825
"type": "object"
48314826
},
4827+
"GoogleCloudRetailV2alphaDoubleList": {
4828+
"description": "A message with a list of double values.",
4829+
"id": "GoogleCloudRetailV2alphaDoubleList",
4830+
"properties": {
4831+
"values": {
4832+
"description": "The list of double values.",
4833+
"items": {
4834+
"format": "double",
4835+
"type": "number"
4836+
},
4837+
"type": "array"
4838+
}
4839+
},
4840+
"type": "object"
4841+
},
48324842
"GoogleCloudRetailV2alphaEnrollSolutionMetadata": {
48334843
"description": "Metadata related to the EnrollSolution method. This will be returned by the google.longrunning.Operation.metadata field.",
48344844
"id": "GoogleCloudRetailV2alphaEnrollSolutionMetadata",
@@ -5751,8 +5761,14 @@
57515761
"description": "Merchant Center Feed filter criterion.",
57525762
"id": "GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter",
57535763
"properties": {
5764+
"dataSourceId": {
5765+
"description": "AFM data source ID.",
5766+
"format": "int64",
5767+
"type": "string"
5768+
},
57545769
"primaryFeedId": {
5755-
"description": "Merchant Center primary feed ID.",
5770+
"deprecated": true,
5771+
"description": "Merchant Center primary feed ID. Deprecated: use data_source_id instead.",
57565772
"format": "int64",
57575773
"type": "string"
57585774
},
@@ -5767,8 +5783,14 @@
57675783
"description": "Merchant Center Feed filter criterion.",
57685784
"id": "GoogleCloudRetailV2alphaMerchantCenterFeedFilter",
57695785
"properties": {
5786+
"dataSourceId": {
5787+
"description": "AFM data source ID.",
5788+
"format": "int64",
5789+
"type": "string"
5790+
},
57705791
"primaryFeedId": {
5771-
"description": "Merchant Center primary feed ID.",
5792+
"deprecated": true,
5793+
"description": "Merchant Center primary feed ID. Deprecated: use data_source_id instead.",
57725794
"format": "int64",
57735795
"type": "string"
57745796
},
@@ -7912,6 +7934,13 @@
79127934
"description": "If a variant Product matches the search query, this map indicates which Product fields are matched. The key is the Product.name, the value is a field mask of the matched Product fields. If matched attributes cannot be determined, this map will be empty. For example, a key \"sku1\" with field mask \"products.color_info\" indicates there is a match between \"sku1\" ColorInfo and the query.",
79137935
"type": "object"
79147936
},
7937+
"modelScores": {
7938+
"additionalProperties": {
7939+
"$ref": "GoogleCloudRetailV2alphaDoubleList"
7940+
},
7941+
"description": "Google provided available scores.",
7942+
"type": "object"
7943+
},
79157944
"personalLabels": {
79167945
"description": "Specifies previous events related to this product for this user based on UserEvent with same SearchRequest.visitor_id or UserInfo.user_id. This is set only when SearchRequest.PersonalizationSpec.mode is SearchRequest.PersonalizationSpec.Mode.AUTO. Possible values: * `purchased`: Indicates that this product has been purchased before.",
79177946
"items": {

discovery/retail-v2beta.json

Lines changed: 37 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2368,7 +2368,7 @@
23682368
}
23692369
}
23702370
},
2371-
"revision": "20250417",
2371+
"revision": "20250515",
23722372
"rootUrl": "https://retail.googleapis.com/",
23732373
"schemas": {
23742374
"GoogleApiHttpBody": {
@@ -3461,8 +3461,14 @@
34613461
"description": "Merchant Center Feed filter criterion.",
34623462
"id": "GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter",
34633463
"properties": {
3464+
"dataSourceId": {
3465+
"description": "AFM data source ID.",
3466+
"format": "int64",
3467+
"type": "string"
3468+
},
34643469
"primaryFeedId": {
3465-
"description": "Merchant Center primary feed ID.",
3470+
"deprecated": true,
3471+
"description": "Merchant Center primary feed ID. Deprecated: use data_source_id instead.",
34663472
"format": "int64",
34673473
"type": "string"
34683474
},
@@ -4875,6 +4881,21 @@
48754881
},
48764882
"type": "object"
48774883
},
4884+
"GoogleCloudRetailV2betaDoubleList": {
4885+
"description": "A message with a list of double values.",
4886+
"id": "GoogleCloudRetailV2betaDoubleList",
4887+
"properties": {
4888+
"values": {
4889+
"description": "The list of double values.",
4890+
"items": {
4891+
"format": "double",
4892+
"type": "number"
4893+
},
4894+
"type": "array"
4895+
}
4896+
},
4897+
"type": "object"
4898+
},
48784899
"GoogleCloudRetailV2betaExperimentInfo": {
48794900
"description": "Metadata for active A/B testing experiment.",
48804901
"id": "GoogleCloudRetailV2betaExperimentInfo",
@@ -5510,24 +5531,6 @@
55105531
"description": "Optional. Additional local inventory attributes, for example, store name, promotion tags, etc. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The key must be a UTF-8 encoded string with a length limit of 32 characters. * The key must match the pattern: `a-zA-Z0-9*`. For example, key0LikeThis or KEY_1_LIKE_THIS. * The attribute values must be of the same type (text or number). * Only 1 value is allowed for each attribute. * For text values, the length limit is 256 UTF-8 characters. * The attribute does not support search. The `searchable` field should be unset or set to false. * The max summed total bytes of custom attribute keys and values per product is 5MiB.",
55115532
"type": "object"
55125533
},
5513-
"availability": {
5514-
"description": "Optional. The availability of the Product at this place_id. Default to Availability.IN_STOCK. For primary products with variants set the availability of the primary as Availability.OUT_OF_STOCK and set the true availability at the variant level. This way the primary product will be considered \"in stock\" as long as it has at least one variant in stock. For primary products with no variants set the true availability at the primary level. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability). This field is currently only used by the Recommendations API. For Search, please make use of fulfillment_types or custom attributes for similar behaviour. See [here]( https://cloud.google.com/retail/docs/local-inventory-updates#local-inventory-update-methods) for more details.",
5515-
"enum": [
5516-
"AVAILABILITY_UNSPECIFIED",
5517-
"IN_STOCK",
5518-
"OUT_OF_STOCK",
5519-
"PREORDER",
5520-
"BACKORDER"
5521-
],
5522-
"enumDescriptions": [
5523-
"Default product availability. Default to Availability.IN_STOCK if unset.",
5524-
"Product in stock.",
5525-
"Product out of stock.",
5526-
"Product that is in pre-order state.",
5527-
"Product that is back-ordered (i.e. temporarily out of stock)."
5528-
],
5529-
"type": "string"
5530-
},
55315534
"fulfillmentTypes": {
55325535
"description": "Optional. Supported fulfillment types. Valid fulfillment type values include commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI. Supported values: * \"pickup-in-store\" * \"ship-to-store\" * \"same-day-delivery\" * \"next-day-delivery\" * \"custom-type-1\" * \"custom-type-2\" * \"custom-type-3\" * \"custom-type-4\" * \"custom-type-5\" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned.",
55335536
"items": {
@@ -5550,8 +5553,14 @@
55505553
"description": "Merchant Center Feed filter criterion.",
55515554
"id": "GoogleCloudRetailV2betaMerchantCenterFeedFilter",
55525555
"properties": {
5556+
"dataSourceId": {
5557+
"description": "AFM data source ID.",
5558+
"format": "int64",
5559+
"type": "string"
5560+
},
55535561
"primaryFeedId": {
5554-
"description": "Merchant Center primary feed ID.",
5562+
"deprecated": true,
5563+
"description": "Merchant Center primary feed ID. Deprecated: use data_source_id instead.",
55555564
"format": "int64",
55565565
"type": "string"
55575566
},
@@ -7574,6 +7583,13 @@
75747583
"description": "If a variant Product matches the search query, this map indicates which Product fields are matched. The key is the Product.name, the value is a field mask of the matched Product fields. If matched attributes cannot be determined, this map will be empty. For example, a key \"sku1\" with field mask \"products.color_info\" indicates there is a match between \"sku1\" ColorInfo and the query.",
75757584
"type": "object"
75767585
},
7586+
"modelScores": {
7587+
"additionalProperties": {
7588+
"$ref": "GoogleCloudRetailV2betaDoubleList"
7589+
},
7590+
"description": "Google provided available scores.",
7591+
"type": "object"
7592+
},
75777593
"personalLabels": {
75787594
"description": "Specifies previous events related to this product for this user based on UserEvent with same SearchRequest.visitor_id or UserInfo.user_id. This is set only when SearchRequest.PersonalizationSpec.mode is SearchRequest.PersonalizationSpec.Mode.AUTO. Possible values: * `purchased`: Indicates that this product has been purchased before.",
75797595
"items": {

src/apis/retail/v2.ts

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,11 @@ export namespace retail_v2 {
596596
*/
597597
export interface Schema$GoogleCloudRetailV2alphaMerchantCenterAccountLinkMerchantCenterFeedFilter {
598598
/**
599-
* Merchant Center primary feed ID.
599+
* AFM data source ID.
600+
*/
601+
dataSourceId?: string | null;
602+
/**
603+
* Merchant Center primary feed ID. Deprecated: use data_source_id instead.
600604
*/
601605
primaryFeedId?: string | null;
602606
/**
@@ -1791,6 +1795,15 @@ export namespace retail_v2 {
17911795
*/
17921796
text?: string[] | null;
17931797
}
1798+
/**
1799+
* A message with a list of double values.
1800+
*/
1801+
export interface Schema$GoogleCloudRetailV2DoubleList {
1802+
/**
1803+
* The list of double values.
1804+
*/
1805+
values?: number[] | null;
1806+
}
17941807
/**
17951808
* Metadata for active A/B testing experiment.
17961809
*/
@@ -2225,10 +2238,6 @@ export namespace retail_v2 {
22252238
attributes?: {
22262239
[key: string]: Schema$GoogleCloudRetailV2CustomAttribute;
22272240
} | null;
2228-
/**
2229-
* Optional. The availability of the Product at this place_id. Default to Availability.IN_STOCK. For primary products with variants set the availability of the primary as Availability.OUT_OF_STOCK and set the true availability at the variant level. This way the primary product will be considered "in stock" as long as it has at least one variant in stock. For primary products with no variants set the true availability at the primary level. Corresponding properties: Google Merchant Center property [availability](https://support.google.com/merchants/answer/6324448). Schema.org property [Offer.availability](https://schema.org/availability). This field is currently only used by the Recommendations API. For Search, please make use of fulfillment_types or custom attributes for similar behaviour. See [here]( https://cloud.google.com/retail/docs/local-inventory-updates#local-inventory-update-methods) for more details.
2230-
*/
2231-
availability?: string | null;
22322241
/**
22332242
* Optional. Supported fulfillment types. Valid fulfillment type values include commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-day-delivery" * "next-day-delivery" * "custom-type-1" * "custom-type-2" * "custom-type-3" * "custom-type-4" * "custom-type-5" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned.
22342243
*/
@@ -3650,6 +3659,10 @@ export namespace retail_v2 {
36503659
* If a variant Product matches the search query, this map indicates which Product fields are matched. The key is the Product.name, the value is a field mask of the matched Product fields. If matched attributes cannot be determined, this map will be empty. For example, a key "sku1" with field mask "products.color_info" indicates there is a match between "sku1" ColorInfo and the query.
36513660
*/
36523661
matchingVariantFields?: {[key: string]: string} | null;
3662+
/**
3663+
* Google provided available scores.
3664+
*/
3665+
modelScores?: {[key: string]: Schema$GoogleCloudRetailV2DoubleList} | null;
36533666
/**
36543667
* Specifies previous events related to this product for this user based on UserEvent with same SearchRequest.visitor_id or UserInfo.user_id. This is set only when SearchRequest.PersonalizationSpec.mode is SearchRequest.PersonalizationSpec.Mode.AUTO. Possible values: * `purchased`: Indicates that this product has been purchased before.
36553668
*/

0 commit comments

Comments
 (0)