Skip to content

Commit a3dbe0a

Browse files
yoshi-automationleahecole
authored andcommitted
feat(retail)!: update the API
BREAKING CHANGE: This release has breaking changes. #### retail:v2alpha The following keys were deleted: - schemas.GoogleCloudRetailV2alphaControl.properties.facetSpec.$ref - schemas.GoogleCloudRetailV2alphaControl.properties.facetSpec.deprecated - schemas.GoogleCloudRetailV2alphaControl.properties.facetSpec.description The following keys were changed: - schemas.GoogleCloudRetailV2alphaConversationalSearchResponse.properties.userQueryTypes.description #### retail:v2beta The following keys were deleted: - schemas.GoogleCloudRetailV2betaControl.properties.facetSpec.$ref - schemas.GoogleCloudRetailV2betaControl.properties.facetSpec.deprecated - schemas.GoogleCloudRetailV2betaControl.properties.facetSpec.description
1 parent 4e23b3a commit a3dbe0a

File tree

4 files changed

+4
-32
lines changed

4 files changed

+4
-32
lines changed

discovery/retail-v2alpha.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2859,7 +2859,7 @@
28592859
}
28602860
}
28612861
},
2862-
"revision": "20250724",
2862+
"revision": "20250807",
28632863
"rootUrl": "https://retail.googleapis.com/",
28642864
"schemas": {
28652865
"GoogleApiHttpBody": {
@@ -4566,11 +4566,6 @@
45664566
"description": "Required. The human readable control display name. Used in Retail UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is thrown.",
45674567
"type": "string"
45684568
},
4569-
"facetSpec": {
4570-
"$ref": "GoogleCloudRetailV2alphaSearchRequestFacetSpec",
4571-
"deprecated": true,
4572-
"description": "A facet specification to perform faceted search. Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control."
4573-
},
45744569
"name": {
45754570
"description": "Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/controls/*`",
45764571
"type": "string"
@@ -4815,7 +4810,7 @@
48154810
"type": "string"
48164811
},
48174812
"userQueryTypes": {
4818-
"description": "The types Retail classifies the search query as. Supported values are: - \"ADVERSARIAL\" - \"CHITCHAT\" - \"JAILBREAK\" - \"ORDER_SUPPORT\" - \"SIMPLE_PRODUCT_SEARCH\" - \"INTENT_REFINEMENT\" - \"PRODUCT_DETAILS\" - \"PRODUCT_COMPARISON\" - \"DEALS_AND_COUPONS\" - \"STORE_RELEVANT\" - \"BLOCKLISTED\" - \"BEST_PRODUCT\" - \"RETAIL_SUPPORT\" - \"DISABLED\" clang-format off clang-format on",
4813+
"description": "LINT.IfChange(query_types_proto) The types Retail classifies the search query as. Supported values are: - \"ADVERSARIAL\" - \"CHITCHAT\" - \"JAILBREAK\" - \"ORDER_SUPPORT\" - \"SIMPLE_PRODUCT_SEARCH\" - \"INTENT_REFINEMENT\" - \"PRODUCT_DETAILS\" - \"PRODUCT_COMPARISON\" - \"DEALS_AND_COUPONS\" - \"STORE_RELEVANT\" - \"BLOCKLISTED\" - \"BEST_PRODUCT\" - \"RETAIL_SUPPORT\" - \"DISABLED\" LINT.ThenChange(//depot/google3/cloud/console/web/ai/retail/service/conversational_search_customization_config.ts:intent_types_ts)",
48194814
"items": {
48204815
"type": "string"
48214816
},

discovery/retail-v2beta.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2427,7 +2427,7 @@
24272427
}
24282428
}
24292429
},
2430-
"revision": "20250717",
2430+
"revision": "20250807",
24312431
"rootUrl": "https://retail.googleapis.com/",
24322432
"schemas": {
24332433
"GoogleApiHttpBody": {
@@ -4847,11 +4847,6 @@
48474847
"description": "Required. The human readable control display name. Used in Retail UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is thrown.",
48484848
"type": "string"
48494849
},
4850-
"facetSpec": {
4851-
"$ref": "GoogleCloudRetailV2betaSearchRequestFacetSpec",
4852-
"deprecated": true,
4853-
"description": "A facet specification to perform faceted search. Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control."
4854-
},
48554850
"name": {
48564851
"description": "Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/controls/*`",
48574852
"type": "string"

src/apis/retail/v2alpha.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -936,10 +936,6 @@ export namespace retail_v2alpha {
936936
* Required. The human readable control display name. Used in Retail UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is thrown.
937937
*/
938938
displayName?: string | null;
939-
/**
940-
* A facet specification to perform faceted search. Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control.
941-
*/
942-
facetSpec?: Schema$GoogleCloudRetailV2alphaSearchRequestFacetSpec;
943939
/**
944940
* Immutable. Fully qualified name `projects/x/locations/global/catalogs/x/controls/x`
945941
*/
@@ -1108,7 +1104,7 @@ export namespace retail_v2alpha {
11081104
*/
11091105
state?: string | null;
11101106
/**
1111-
* The types Retail classifies the search query as. Supported values are: - "ADVERSARIAL" - "CHITCHAT" - "JAILBREAK" - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
1107+
* LINT.IfChange(query_types_proto) The types Retail classifies the search query as. Supported values are: - "ADVERSARIAL" - "CHITCHAT" - "JAILBREAK" - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" LINT.ThenChange(//depot/google3/cloud/console/web/ai/retail/service/conversational_search_customization_config.ts:intent_types_ts)
11121108
*/
11131109
userQueryTypes?: string[] | null;
11141110
}
@@ -12532,7 +12528,6 @@ export namespace retail_v2alpha {
1253212528
* // {
1253312529
* // "associatedServingConfigIds": [],
1253412530
* // "displayName": "my_displayName",
12535-
* // "facetSpec": {},
1253612531
* // "name": "my_name",
1253712532
* // "rule": {},
1253812533
* // "searchSolutionUseCase": [],
@@ -12546,7 +12541,6 @@ export namespace retail_v2alpha {
1254612541
* // {
1254712542
* // "associatedServingConfigIds": [],
1254812543
* // "displayName": "my_displayName",
12549-
* // "facetSpec": {},
1255012544
* // "name": "my_name",
1255112545
* // "rule": {},
1255212546
* // "searchSolutionUseCase": [],
@@ -12829,7 +12823,6 @@ export namespace retail_v2alpha {
1282912823
* // {
1283012824
* // "associatedServingConfigIds": [],
1283112825
* // "displayName": "my_displayName",
12832-
* // "facetSpec": {},
1283312826
* // "name": "my_name",
1283412827
* // "rule": {},
1283512828
* // "searchSolutionUseCase": [],
@@ -13132,7 +13125,6 @@ export namespace retail_v2alpha {
1313213125
* // {
1313313126
* // "associatedServingConfigIds": [],
1313413127
* // "displayName": "my_displayName",
13135-
* // "facetSpec": {},
1313613128
* // "name": "my_name",
1313713129
* // "rule": {},
1313813130
* // "searchSolutionUseCase": [],
@@ -13146,7 +13138,6 @@ export namespace retail_v2alpha {
1314613138
* // {
1314713139
* // "associatedServingConfigIds": [],
1314813140
* // "displayName": "my_displayName",
13149-
* // "facetSpec": {},
1315013141
* // "name": "my_name",
1315113142
* // "rule": {},
1315213143
* // "searchSolutionUseCase": [],

src/apis/retail/v2beta.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,10 +1421,6 @@ export namespace retail_v2beta {
14211421
* Required. The human readable control display name. Used in Retail UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is thrown.
14221422
*/
14231423
displayName?: string | null;
1424-
/**
1425-
* A facet specification to perform faceted search. Note that this field is deprecated and will throw NOT_IMPLEMENTED if used for creating a control.
1426-
*/
1427-
facetSpec?: Schema$GoogleCloudRetailV2betaSearchRequestFacetSpec;
14281424
/**
14291425
* Immutable. Fully qualified name `projects/x/locations/global/catalogs/x/controls/x`
14301426
*/
@@ -10823,7 +10819,6 @@ export namespace retail_v2beta {
1082310819
* // {
1082410820
* // "associatedServingConfigIds": [],
1082510821
* // "displayName": "my_displayName",
10826-
* // "facetSpec": {},
1082710822
* // "name": "my_name",
1082810823
* // "rule": {},
1082910824
* // "searchSolutionUseCase": [],
@@ -10837,7 +10832,6 @@ export namespace retail_v2beta {
1083710832
* // {
1083810833
* // "associatedServingConfigIds": [],
1083910834
* // "displayName": "my_displayName",
10840-
* // "facetSpec": {},
1084110835
* // "name": "my_name",
1084210836
* // "rule": {},
1084310837
* // "searchSolutionUseCase": [],
@@ -11120,7 +11114,6 @@ export namespace retail_v2beta {
1112011114
* // {
1112111115
* // "associatedServingConfigIds": [],
1112211116
* // "displayName": "my_displayName",
11123-
* // "facetSpec": {},
1112411117
* // "name": "my_name",
1112511118
* // "rule": {},
1112611119
* // "searchSolutionUseCase": [],
@@ -11423,7 +11416,6 @@ export namespace retail_v2beta {
1142311416
* // {
1142411417
* // "associatedServingConfigIds": [],
1142511418
* // "displayName": "my_displayName",
11426-
* // "facetSpec": {},
1142711419
* // "name": "my_name",
1142811420
* // "rule": {},
1142911421
* // "searchSolutionUseCase": [],
@@ -11437,7 +11429,6 @@ export namespace retail_v2beta {
1143711429
* // {
1143811430
* // "associatedServingConfigIds": [],
1143911431
* // "displayName": "my_displayName",
11440-
* // "facetSpec": {},
1144111432
* // "name": "my_name",
1144211433
* // "rule": {},
1144311434
* // "searchSolutionUseCase": [],

0 commit comments

Comments
 (0)