Skip to content

Commit dab474d

Browse files
yoshi-automationsofisl
authored andcommitted
feat(retail)!: update the API
BREAKING CHANGE: This release has breaking changes. #### retail:v2alpha The following keys were deleted: - schemas.GoogleCloudRetailV2alphaBranch.properties.productCounts.additionalProperties.format - schemas.GoogleCloudRetailV2alphaBranch.properties.productCounts.additionalProperties.type - schemas.GoogleCloudRetailV2alphaBranch.properties.productCounts.deprecated - schemas.GoogleCloudRetailV2alphaBranch.properties.productCounts.description - schemas.GoogleCloudRetailV2alphaBranch.properties.productCounts.readOnly - schemas.GoogleCloudRetailV2alphaBranch.properties.productCounts.type - schemas.GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacet.properties.mergedFacetValues.deprecated - schemas.GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacet.properties.mergedFacetValues.description - schemas.GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacet.properties.mergedFacetValues.items.$ref - schemas.GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacet.properties.mergedFacetValues.type - schemas.GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult.properties.suggestions.description The following keys were added: - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.description - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.flatPath - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.httpMethod - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.id - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.parameterOrder - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.parameters.parent.description - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.parameters.parent.location - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.parameters.parent.pattern - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.parameters.parent.required - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.parameters.parent.type - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.path - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.request.$ref - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.response.$ref - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.scopes - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.description - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.flatPath - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.httpMethod - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.id - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.parameterOrder - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.parameters.parent.description - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.parameters.parent.location - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.parameters.parent.pattern - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.parameters.parent.required - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.parameters.parent.type - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.path - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.request.$ref - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.response.$ref - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.scopes - schemas.GoogleCloudRetailV2alphaExportProductsRequest.description - schemas.GoogleCloudRetailV2alphaExportProductsRequest.id - schemas.GoogleCloudRetailV2alphaExportProductsRequest.properties.filter.description - schemas.GoogleCloudRetailV2alphaExportProductsRequest.properties.filter.type - schemas.GoogleCloudRetailV2alphaExportProductsRequest.properties.outputConfig.$ref - schemas.GoogleCloudRetailV2alphaExportProductsRequest.properties.outputConfig.description - schemas.GoogleCloudRetailV2alphaExportProductsRequest.type - schemas.GoogleCloudRetailV2alphaExportUserEventsRequest.description - schemas.GoogleCloudRetailV2alphaExportUserEventsRequest.id - schemas.GoogleCloudRetailV2alphaExportUserEventsRequest.properties.filter.description - schemas.GoogleCloudRetailV2alphaExportUserEventsRequest.properties.filter.type - schemas.GoogleCloudRetailV2alphaExportUserEventsRequest.properties.outputConfig.$ref - schemas.GoogleCloudRetailV2alphaExportUserEventsRequest.properties.outputConfig.description - schemas.GoogleCloudRetailV2alphaExportUserEventsRequest.type The following keys were changed: - schemas.GoogleCloudRetailV2alphaAlertConfigAlertPolicy.properties.alertGroup.description - schemas.GoogleCloudRetailV2alphaCompleteQueryResponseRecentSearchResult.description #### retail:v2beta The following keys were deleted: - schemas.GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacet.properties.mergedFacetValues.deprecated - schemas.GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacet.properties.mergedFacetValues.description - schemas.GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacet.properties.mergedFacetValues.items.$ref - schemas.GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacet.properties.mergedFacetValues.type The following keys were added: - resources.projects.methods.getAlertConfig.description - resources.projects.methods.getAlertConfig.flatPath - resources.projects.methods.getAlertConfig.httpMethod - resources.projects.methods.getAlertConfig.id - resources.projects.methods.getAlertConfig.parameterOrder - resources.projects.methods.getAlertConfig.parameters.name.description - resources.projects.methods.getAlertConfig.parameters.name.location - resources.projects.methods.getAlertConfig.parameters.name.pattern - resources.projects.methods.getAlertConfig.parameters.name.required - resources.projects.methods.getAlertConfig.parameters.name.type - resources.projects.methods.getAlertConfig.path - resources.projects.methods.getAlertConfig.response.$ref - resources.projects.methods.getAlertConfig.scopes - resources.projects.methods.updateAlertConfig.description - resources.projects.methods.updateAlertConfig.flatPath - resources.projects.methods.updateAlertConfig.httpMethod - resources.projects.methods.updateAlertConfig.id - resources.projects.methods.updateAlertConfig.parameterOrder - resources.projects.methods.updateAlertConfig.parameters.name.description - resources.projects.methods.updateAlertConfig.parameters.name.location - resources.projects.methods.updateAlertConfig.parameters.name.pattern - resources.projects.methods.updateAlertConfig.parameters.name.required - resources.projects.methods.updateAlertConfig.parameters.name.type - resources.projects.methods.updateAlertConfig.parameters.updateMask.description - resources.projects.methods.updateAlertConfig.parameters.updateMask.format - resources.projects.methods.updateAlertConfig.parameters.updateMask.location - resources.projects.methods.updateAlertConfig.parameters.updateMask.type - resources.projects.methods.updateAlertConfig.path - resources.projects.methods.updateAlertConfig.request.$ref - resources.projects.methods.updateAlertConfig.response.$ref - resources.projects.methods.updateAlertConfig.scopes - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.description - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.flatPath - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.httpMethod - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.id - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.parameterOrder - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.parameters.parent.description - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.parameters.parent.location - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.parameters.parent.pattern - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.parameters.parent.required - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.parameters.parent.type - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.path - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.request.$ref - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.response.$ref - resources.projects.resources.locations.resources.catalogs.resources.branches.resources.products.methods.export.scopes - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.description - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.flatPath - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.httpMethod - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.id - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.parameterOrder - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.parameters.parent.description - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.parameters.parent.location - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.parameters.parent.pattern - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.parameters.parent.required - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.parameters.parent.type - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.path - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.request.$ref - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.response.$ref - resources.projects.resources.locations.resources.catalogs.resources.userEvents.methods.export.scopes - schemas.GoogleCloudRetailV2betaAlertConfig.description - schemas.GoogleCloudRetailV2betaAlertConfig.id - schemas.GoogleCloudRetailV2betaAlertConfig.properties.alertPolicies.description - schemas.GoogleCloudRetailV2betaAlertConfig.properties.alertPolicies.items.$ref - schemas.GoogleCloudRetailV2betaAlertConfig.properties.alertPolicies.type - schemas.GoogleCloudRetailV2betaAlertConfig.properties.name.description - schemas.GoogleCloudRetailV2betaAlertConfig.properties.name.type - schemas.GoogleCloudRetailV2betaAlertConfig.type - schemas.GoogleCloudRetailV2betaAlertConfigAlertPolicy.description - schemas.GoogleCloudRetailV2betaAlertConfigAlertPolicy.id - schemas.GoogleCloudRetailV2betaAlertConfigAlertPolicy.properties.alertGroup.description - schemas.GoogleCloudRetailV2betaAlertConfigAlertPolicy.properties.alertGroup.type - schemas.GoogleCloudRetailV2betaAlertConfigAlertPolicy.properties.enrollStatus.description - schemas.GoogleCloudRetailV2betaAlertConfigAlertPolicy.properties.enrollStatus.enum - schemas.GoogleCloudRetailV2betaAlertConfigAlertPolicy.properties.enrollStatus.enumDescriptions - schemas.GoogleCloudRetailV2betaAlertConfigAlertPolicy.properties.enrollStatus.type - schemas.GoogleCloudRetailV2betaAlertConfigAlertPolicy.properties.recipients.description - schemas.GoogleCloudRetailV2betaAlertConfigAlertPolicy.properties.recipients.items.$ref - schemas.GoogleCloudRetailV2betaAlertConfigAlertPolicy.properties.recipients.type - schemas.GoogleCloudRetailV2betaAlertConfigAlertPolicy.type - schemas.GoogleCloudRetailV2betaAlertConfigAlertPolicyRecipient.description - schemas.GoogleCloudRetailV2betaAlertConfigAlertPolicyRecipient.id - schemas.GoogleCloudRetailV2betaAlertConfigAlertPolicyRecipient.properties.emailAddress.description - schemas.GoogleCloudRetailV2betaAlertConfigAlertPolicyRecipient.properties.emailAddress.type - schemas.GoogleCloudRetailV2betaAlertConfigAlertPolicyRecipient.type - schemas.GoogleCloudRetailV2betaCompleteQueryResponse.properties.attributeResults.additionalProperties.$ref - schemas.GoogleCloudRetailV2betaCompleteQueryResponse.properties.attributeResults.description - schemas.GoogleCloudRetailV2betaCompleteQueryResponse.properties.attributeResults.type - schemas.GoogleCloudRetailV2betaCompleteQueryResponseAttributeResult.description - schemas.GoogleCloudRetailV2betaCompleteQueryResponseAttributeResult.id - schemas.GoogleCloudRetailV2betaCompleteQueryResponseAttributeResult.properties.suggestions.items.type - schemas.GoogleCloudRetailV2betaCompleteQueryResponseAttributeResult.properties.suggestions.type - schemas.GoogleCloudRetailV2betaCompleteQueryResponseAttributeResult.type - schemas.GoogleCloudRetailV2betaExportProductsRequest.description - schemas.GoogleCloudRetailV2betaExportProductsRequest.id - schemas.GoogleCloudRetailV2betaExportProductsRequest.properties.filter.description - schemas.GoogleCloudRetailV2betaExportProductsRequest.properties.filter.type - schemas.GoogleCloudRetailV2betaExportProductsRequest.properties.outputConfig.$ref - schemas.GoogleCloudRetailV2betaExportProductsRequest.properties.outputConfig.description - schemas.GoogleCloudRetailV2betaExportProductsRequest.type - schemas.GoogleCloudRetailV2betaExportUserEventsRequest.description - schemas.GoogleCloudRetailV2betaExportUserEventsRequest.id - schemas.GoogleCloudRetailV2betaExportUserEventsRequest.properties.filter.description - schemas.GoogleCloudRetailV2betaExportUserEventsRequest.properties.filter.type - schemas.GoogleCloudRetailV2betaExportUserEventsRequest.properties.outputConfig.$ref - schemas.GoogleCloudRetailV2betaExportUserEventsRequest.properties.outputConfig.description - schemas.GoogleCloudRetailV2betaExportUserEventsRequest.type The following keys were changed: - schemas.GoogleCloudRetailV2betaCompleteQueryResponseRecentSearchResult.description #### retail:v2 The following keys were deleted: - schemas.GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet.properties.mergedFacetValues.deprecated - schemas.GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet.properties.mergedFacetValues.description - schemas.GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet.properties.mergedFacetValues.items.$ref - schemas.GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet.properties.mergedFacetValues.type The following keys were added: - schemas.GoogleCloudRetailV2CompleteQueryResponse.properties.attributeResults.additionalProperties.$ref - schemas.GoogleCloudRetailV2CompleteQueryResponse.properties.attributeResults.description - schemas.GoogleCloudRetailV2CompleteQueryResponse.properties.attributeResults.type - schemas.GoogleCloudRetailV2CompleteQueryResponseAttributeResult.description - schemas.GoogleCloudRetailV2CompleteQueryResponseAttributeResult.id - schemas.GoogleCloudRetailV2CompleteQueryResponseAttributeResult.properties.suggestions.items.type - schemas.GoogleCloudRetailV2CompleteQueryResponseAttributeResult.properties.suggestions.type - schemas.GoogleCloudRetailV2CompleteQueryResponseAttributeResult.type The following keys were changed: - schemas.GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult.description
1 parent 0897dfe commit dab474d

File tree

6 files changed

+1108
-65
lines changed

6 files changed

+1108
-65
lines changed

discovery/retail-v2.json

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,7 +2092,7 @@
20922092
}
20932093
}
20942094
},
2095-
"revision": "20240614",
2095+
"revision": "20240801",
20962096
"rootUrl": "https://retail.googleapis.com/",
20972097
"schemas": {
20982098
"GoogleApiHttpBody": {
@@ -2637,14 +2637,6 @@
26372637
"mergedFacetKey": {
26382638
"description": "The merged facet key should be a valid facet key that is different than the facet key of the current catalog attribute. We refer this is merged facet key as the child of the current catalog attribute. This merged facet key can't be a parent of another facet key (i.e. no directed path of length 2). This merged facet key needs to be either a textual custom attribute or a numerical custom attribute.",
26392639
"type": "string"
2640-
},
2641-
"mergedFacetValues": {
2642-
"deprecated": true,
2643-
"description": "Each instance is a list of facet values that map into the same (possibly different) merged facet value. For the current attribute config, each facet value should map to at most one merged facet value.",
2644-
"items": {
2645-
"$ref": "GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue"
2646-
},
2647-
"type": "array"
26482640
}
26492641
},
26502642
"type": "object"
@@ -2710,6 +2702,13 @@
27102702
"description": "Response of the autocomplete query.",
27112703
"id": "GoogleCloudRetailV2CompleteQueryResponse",
27122704
"properties": {
2705+
"attributeResults": {
2706+
"additionalProperties": {
2707+
"$ref": "GoogleCloudRetailV2CompleteQueryResponseAttributeResult"
2708+
},
2709+
"description": "A map of matched attribute suggestions. This field is only available for \"cloud-retail\" dataset. Current supported keys: * `brands` * `categories`",
2710+
"type": "object"
2711+
},
27132712
"attributionToken": {
27142713
"description": "A unique complete token. This should be included in the UserEvent.completion_detail for search events resulting from this completion, which enables accurate attribution of complete model performance.",
27152714
"type": "string"
@@ -2732,6 +2731,19 @@
27322731
},
27332732
"type": "object"
27342733
},
2734+
"GoogleCloudRetailV2CompleteQueryResponseAttributeResult": {
2735+
"description": "Resource that represents attribute results.",
2736+
"id": "GoogleCloudRetailV2CompleteQueryResponseAttributeResult",
2737+
"properties": {
2738+
"suggestions": {
2739+
"items": {
2740+
"type": "string"
2741+
},
2742+
"type": "array"
2743+
}
2744+
},
2745+
"type": "object"
2746+
},
27352747
"GoogleCloudRetailV2CompleteQueryResponseCompletionResult": {
27362748
"description": "Resource that represents completion results.",
27372749
"id": "GoogleCloudRetailV2CompleteQueryResponseCompletionResult",
@@ -2752,7 +2764,7 @@
27522764
},
27532765
"GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult": {
27542766
"deprecated": true,
2755-
"description": "Recent search of this user.",
2767+
"description": "Deprecated: Recent search of this user.",
27562768
"id": "GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult",
27572769
"properties": {
27582770
"recentSearch": {

discovery/retail-v2alpha.json

Lines changed: 89 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,34 @@
10301030
"https://www.googleapis.com/auth/cloud-platform"
10311031
]
10321032
},
1033+
"export": {
1034+
"description": "Exports multiple Products.",
1035+
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products:export",
1036+
"httpMethod": "POST",
1037+
"id": "retail.projects.locations.catalogs.branches.products.export",
1038+
"parameterOrder": [
1039+
"parent"
1040+
],
1041+
"parameters": {
1042+
"parent": {
1043+
"description": "Required. Resource name of a Branch, and `default_branch` for branch_id component is supported. For example `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch`",
1044+
"location": "path",
1045+
"pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+/branches/[^/]+$",
1046+
"required": true,
1047+
"type": "string"
1048+
}
1049+
},
1050+
"path": "v2alpha/{+parent}/products:export",
1051+
"request": {
1052+
"$ref": "GoogleCloudRetailV2alphaExportProductsRequest"
1053+
},
1054+
"response": {
1055+
"$ref": "GoogleLongrunningOperation"
1056+
},
1057+
"scopes": [
1058+
"https://www.googleapis.com/auth/cloud-platform"
1059+
]
1060+
},
10331061
"get": {
10341062
"description": "Gets a Product.",
10351063
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/branches/{branchesId}/products/{productsId}",
@@ -2259,6 +2287,34 @@
22592287
"https://www.googleapis.com/auth/cloud-platform"
22602288
]
22612289
},
2290+
"export": {
2291+
"description": "Exports user events. `Operation.response` is of type `ExportResponse`. `Operation.metadata` is of type `ExportMetadata`.",
2292+
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/userEvents:export",
2293+
"httpMethod": "POST",
2294+
"id": "retail.projects.locations.catalogs.userEvents.export",
2295+
"parameterOrder": [
2296+
"parent"
2297+
],
2298+
"parameters": {
2299+
"parent": {
2300+
"description": "Required. Resource name of a Catalog. For example `projects/1234/locations/global/catalogs/default_catalog`",
2301+
"location": "path",
2302+
"pattern": "^projects/[^/]+/locations/[^/]+/catalogs/[^/]+$",
2303+
"required": true,
2304+
"type": "string"
2305+
}
2306+
},
2307+
"path": "v2alpha/{+parent}/userEvents:export",
2308+
"request": {
2309+
"$ref": "GoogleCloudRetailV2alphaExportUserEventsRequest"
2310+
},
2311+
"response": {
2312+
"$ref": "GoogleLongrunningOperation"
2313+
},
2314+
"scopes": [
2315+
"https://www.googleapis.com/auth/cloud-platform"
2316+
]
2317+
},
22622318
"import": {
22632319
"description": "Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. `Operation.response` is of type `ImportResponse`. Note that it is possible for a subset of the items to be successfully inserted. `Operation.metadata` is of type `ImportMetadata`.",
22642320
"flatPath": "v2alpha/projects/{projectsId}/locations/{locationsId}/catalogs/{catalogsId}/userEvents:import",
@@ -2557,7 +2613,7 @@
25572613
}
25582614
}
25592615
},
2560-
"revision": "20240614",
2616+
"revision": "20240801",
25612617
"rootUrl": "https://retail.googleapis.com/",
25622618
"schemas": {
25632619
"GoogleApiHttpBody": {
@@ -3405,7 +3461,7 @@
34053461
"id": "GoogleCloudRetailV2alphaAlertConfigAlertPolicy",
34063462
"properties": {
34073463
"alertGroup": {
3408-
"description": "The feature that provides alerting capability. Supported value is only `search-data-quality` for now.",
3464+
"description": "The feature that provides alerting capability. Supported value: - `search-data-quality` for retail search customers. - `conv-data-quality` for retail conversation customers.",
34093465
"type": "string"
34103466
},
34113467
"enrollStatus": {
@@ -3610,16 +3666,6 @@
36103666
"readOnly": true,
36113667
"type": "array"
36123668
},
3613-
"productCounts": {
3614-
"additionalProperties": {
3615-
"format": "int64",
3616-
"type": "string"
3617-
},
3618-
"deprecated": true,
3619-
"description": "Output only. The number of products in different groups that this branch has. The key is a group representing a set of products, and the value is the number of products in that group. Note: keys in this map may change over time. Possible keys: * \"primary-in-stock\", products have Product.Type.PRIMARY type and Product.Availability.IN_STOCK availability. * \"primary-out-of-stock\", products have Product.Type.PRIMARY type and Product.Availability.OUT_OF_STOCK availability. * \"primary-preorder\", products have Product.Type.PRIMARY type and Product.Availability.PREORDER availability. * \"primary-backorder\", products have Product.Type.PRIMARY type and Product.Availability.BACKORDER availability. * \"variant-in-stock\", products have Product.Type.VARIANT type and Product.Availability.IN_STOCK availability. * \"variant-out-of-stock\", products have Product.Type.VARIANT type and Product.Availability.OUT_OF_STOCK availability. * \"variant-preorder\", products have Product.Type.VARIANT type and Product.Availability.PREORDER availability. * \"variant-backorder\", products have Product.Type.VARIANT type and Product.Availability.BACKORDER availability. * \"price-discounted\", products have [Product.price_info.price] < [Product.price_info.original_price]. This field is not populated in BranchView.BASIC view.",
3620-
"readOnly": true,
3621-
"type": "object"
3622-
},
36233669
"qualityMetrics": {
36243670
"description": "Output only. The quality metrics measured among products of this branch. See QualityMetric.requirement_key for supported metrics. Metrics could be missing if failed to retrieve. This field is not populated in BranchView.BASIC view.",
36253671
"items": {
@@ -3902,14 +3948,6 @@
39023948
"mergedFacetKey": {
39033949
"description": "The merged facet key should be a valid facet key that is different than the facet key of the current catalog attribute. We refer this is merged facet key as the child of the current catalog attribute. This merged facet key can't be a parent of another facet key (i.e. no directed path of length 2). This merged facet key needs to be either a textual custom attribute or a numerical custom attribute.",
39043950
"type": "string"
3905-
},
3906-
"mergedFacetValues": {
3907-
"deprecated": true,
3908-
"description": "Each instance is a list of facet values that map into the same (possibly different) merged facet value. For the current attribute config, each facet value should map to at most one merged facet value.",
3909-
"items": {
3910-
"$ref": "GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue"
3911-
},
3912-
"type": "array"
39133951
}
39143952
},
39153953
"type": "object"
@@ -4009,7 +4047,6 @@
40094047
"id": "GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult",
40104048
"properties": {
40114049
"suggestions": {
4012-
"description": "The list of suggestions for the attribute.",
40134050
"items": {
40144051
"type": "string"
40154052
},
@@ -4050,7 +4087,7 @@
40504087
},
40514088
"GoogleCloudRetailV2alphaCompleteQueryResponseRecentSearchResult": {
40524089
"deprecated": true,
4053-
"description": "Recent search of this user.",
4090+
"description": "Deprecated: Recent search of this user.",
40544091
"id": "GoogleCloudRetailV2alphaCompleteQueryResponseRecentSearchResult",
40554092
"properties": {
40564093
"recentSearch": {
@@ -4479,6 +4516,21 @@
44794516
},
44804517
"type": "object"
44814518
},
4519+
"GoogleCloudRetailV2alphaExportProductsRequest": {
4520+
"description": "Request message for ExportProducts method.",
4521+
"id": "GoogleCloudRetailV2alphaExportProductsRequest",
4522+
"properties": {
4523+
"filter": {
4524+
"description": "A filtering expression to specify restrictions on returned events. The expression is a sequence of terms. Each term applies a restriction to the returned products. Use this expression to restrict results to a specific time range, tag, or stock state or to filter products by product type. For example, `lastModifiedTime > \"2012-04-23T18:25:43.511Z\" lastModifiedTime<\"2012-04-23T18:25:43.511Z\" productType=primary` We expect only four types of fields: * `lastModifiedTime`: This can be specified twice, once with a less than operator and once with a greater than operator. The `lastModifiedTime` restriction should result in one, contiguous, valid, last-modified, time range. * `productType`: Supported values are `primary` and `variant`. The Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses and must be separated from the `productType` values by a space. * `availability`: Supported values are `IN_STOCK`, `OUT_OF_STOCK`, `PREORDER`, and `BACKORDER`. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses and must be separated from the `availability` values by a space. * `Tag expressions`: Restricts output to products that match all of the specified tags. Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses and the operators are separated from the tag values by a space. Also supported is '`-\"tagA\"`', which is equivalent to '`NOT \"tagA\"`'. Tag values must be double-quoted, UTF-8 encoded strings and have a size limit of 1,000 characters. Some examples of valid filters expressions: * Example 1: `lastModifiedTime > \"2012-04-23T18:25:43.511Z\" lastModifiedTime < \"2012-04-23T18:30:43.511Z\"` * Example 2: `lastModifiedTime > \"2012-04-23T18:25:43.511Z\" productType = \"variant\"` * Example 3: `tag=(\"Red\" OR \"Blue\") tag=\"New-Arrival\" tag=(NOT \"promotional\") productType = \"primary\" lastModifiedTime < \"2018-04-23T18:30:43.511Z\"` * Example 4: `lastModifiedTime > \"2012-04-23T18:25:43.511Z\"` * Example 5: `availability = (IN_STOCK OR BACKORDER)`",
4525+
"type": "string"
4526+
},
4527+
"outputConfig": {
4528+
"$ref": "GoogleCloudRetailV2alphaOutputConfig",
4529+
"description": "Required. The output location of the data."
4530+
}
4531+
},
4532+
"type": "object"
4533+
},
44824534
"GoogleCloudRetailV2alphaExportProductsResponse": {
44834535
"description": "Response of the ExportProductsRequest. If the long running operation is done, then this message is returned by the google.longrunning.Operations.response field if the operation was successful.",
44844536
"id": "GoogleCloudRetailV2alphaExportProductsResponse",
@@ -4501,6 +4553,21 @@
45014553
},
45024554
"type": "object"
45034555
},
4556+
"GoogleCloudRetailV2alphaExportUserEventsRequest": {
4557+
"description": "Request message for the `ExportUserEvents` method.",
4558+
"id": "GoogleCloudRetailV2alphaExportUserEventsRequest",
4559+
"properties": {
4560+
"filter": {
4561+
"description": "A filtering expression to specify restrictions on returned events. The expression is a sequence of terms. Each term applies a restriction to the returned user events. Use this expression to restrict results to a specific time range or to filter events by eventType. For example, `eventTime > \"2012-04-23T18:25:43.511Z\" eventsMissingCatalogItems eventTime<\"2012-04-23T18:25:43.511Z\" eventType=search` We expect only three types of fields: * `eventTime`: This can be specified twice, once with a less than operator and once with a greater than operator. The `eventTime` restriction should result in one, contiguous, valid, `eventTime` range. * `eventType`: Boolean operators `OR` and `NOT` are supported if the expression is enclosed in parentheses and the operators are separated from the tag values by a space. * `eventsMissingCatalogItems`: This restricts results to events for which catalog items were not found in the catalog. The default behavior is to return only those events for which catalog items were found. Some examples of valid filters expressions: * Example 1: `eventTime > \"2012-04-23T18:25:43.511Z\" eventTime < \"2012-04-23T18:30:43.511Z\"` * Example 2: `eventTime > \"2012-04-23T18:25:43.511Z\" eventType = detail-page-view` * Example 3: `eventsMissingCatalogItems eventType = (NOT search) eventTime < \"2018-04-23T18:30:43.511Z\"` * Example 4: `eventTime > \"2012-04-23T18:25:43.511Z\"` * Example 5: `eventType = (detail-page-view OR search)` * Example 6: `eventsMissingCatalogItems`",
4562+
"type": "string"
4563+
},
4564+
"outputConfig": {
4565+
"$ref": "GoogleCloudRetailV2alphaOutputConfig",
4566+
"description": "Required. The output location of the data."
4567+
}
4568+
},
4569+
"type": "object"
4570+
},
45044571
"GoogleCloudRetailV2alphaExportUserEventsResponse": {
45054572
"description": "Response of the ExportUserEventsRequest. If the long running operation was successful, then this message is returned by the google.longrunning.Operations.response field if the operation was successful.",
45064573
"id": "GoogleCloudRetailV2alphaExportUserEventsResponse",

0 commit comments

Comments
 (0)