Skip to content

Commit eb919ff

Browse files
feat(retail): update the api
#### retail:v2 The following keys were added: - schemas.GoogleCloudRetailV2PinControlMetadata (Total Keys: 10) - schemas.GoogleCloudRetailV2SearchResponse.properties.pinControlMetadata.$ref (Total Keys: 1) #### retail:v2alpha The following keys were added: - schemas.GoogleCloudRetailV2alphaPinControlMetadata (Total Keys: 10) - schemas.GoogleCloudRetailV2alphaSearchResponse.properties.pinControlMetadata.$ref (Total Keys: 1) #### retail:v2beta The following keys were added: - schemas.GoogleCloudRetailV2betaPinControlMetadata (Total Keys: 10) - schemas.GoogleCloudRetailV2betaSearchResponse.properties.pinControlMetadata.$ref (Total Keys: 1)
1 parent ecbf583 commit eb919ff

9 files changed

+216
-3
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,22 @@ <h3>Method Details</h3>
570570
},
571571
],
572572
&quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as SearchRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
573+
&quot;pinControlMetadata&quot;: { # Metadata for pinning to be returned in the response. This is used for distinguishing between applied vs dropped pins. # Metadata for pin controls which were applicable to the request. This contains two map fields, one for all matched pins and one for pins which were matched but not applied. The two maps are keyed by pin position, and the values are the product ids which were matched to that pin.
574+
&quot;allMatchedPins&quot;: { # Map of all matched pins, keyed by pin position.
575+
&quot;a_key&quot;: { # List of product ids which have associated pins.
576+
&quot;productId&quot;: [ # List of product ids which have associated pins.
577+
&quot;A String&quot;,
578+
],
579+
},
580+
},
581+
&quot;droppedPins&quot;: { # Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
582+
&quot;a_key&quot;: { # List of product ids which have associated pins.
583+
&quot;productId&quot;: [ # List of product ids which have associated pins.
584+
&quot;A String&quot;,
585+
],
586+
},
587+
},
588+
},
573589
&quot;queryExpansionInfo&quot;: { # Information describing query expansion including whether expansion has occurred. # Query expansion information for the returned results.
574590
&quot;expandedQuery&quot;: True or False, # Bool describing whether query expansion has occurred.
575591
&quot;pinnedResultCount&quot;: &quot;A String&quot;, # Number of pinned results. This field will only be set when expansion happens and SearchRequest.QueryExpansionSpec.pin_unexpanded_results is set to true.

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,22 @@ <h3>Method Details</h3>
11211121
},
11221122
],
11231123
&quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as SearchRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
1124+
&quot;pinControlMetadata&quot;: { # Metadata for pinning to be returned in the response. This is used for distinguishing between applied vs dropped pins. # Metadata for pin controls which were applicable to the request. This contains two map fields, one for all matched pins and one for pins which were matched but not applied. The two maps are keyed by pin position, and the values are the product ids which were matched to that pin.
1125+
&quot;allMatchedPins&quot;: { # Map of all matched pins, keyed by pin position.
1126+
&quot;a_key&quot;: { # List of product ids which have associated pins.
1127+
&quot;productId&quot;: [ # List of product ids which have associated pins.
1128+
&quot;A String&quot;,
1129+
],
1130+
},
1131+
},
1132+
&quot;droppedPins&quot;: { # Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
1133+
&quot;a_key&quot;: { # List of product ids which have associated pins.
1134+
&quot;productId&quot;: [ # List of product ids which have associated pins.
1135+
&quot;A String&quot;,
1136+
],
1137+
},
1138+
},
1139+
},
11241140
&quot;queryExpansionInfo&quot;: { # Information describing query expansion including whether expansion has occurred. # Query expansion information for the returned results.
11251141
&quot;expandedQuery&quot;: True or False, # Bool describing whether query expansion has occurred.
11261142
&quot;pinnedResultCount&quot;: &quot;A String&quot;, # Number of pinned results. This field will only be set when expansion happens and SearchRequest.QueryExpansionSpec.pin_unexpanded_results is set to true.

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,22 @@ <h3>Method Details</h3>
571571
},
572572
],
573573
&quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as SearchRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
574+
&quot;pinControlMetadata&quot;: { # Metadata for pinning to be returned in the response. This is used for distinguishing between applied vs dropped pins. # Metadata for pin controls which were applicable to the request. This contains two map fields, one for all matched pins and one for pins which were matched but not applied. The two maps are keyed by pin position, and the values are the product ids which were matched to that pin.
575+
&quot;allMatchedPins&quot;: { # Map of all matched pins, keyed by pin position.
576+
&quot;a_key&quot;: { # List of product ids which have associated pins.
577+
&quot;productId&quot;: [ # List of product ids which have associated pins.
578+
&quot;A String&quot;,
579+
],
580+
},
581+
},
582+
&quot;droppedPins&quot;: { # Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
583+
&quot;a_key&quot;: { # List of product ids which have associated pins.
584+
&quot;productId&quot;: [ # List of product ids which have associated pins.
585+
&quot;A String&quot;,
586+
],
587+
},
588+
},
589+
},
574590
&quot;queryExpansionInfo&quot;: { # Information describing query expansion including whether expansion has occurred. # Query expansion information for the returned results.
575591
&quot;expandedQuery&quot;: True or False, # Bool describing whether query expansion has occurred.
576592
&quot;pinnedResultCount&quot;: &quot;A String&quot;, # Number of pinned results. This field will only be set when expansion happens and SearchRequest.QueryExpansionSpec.pin_unexpanded_results is set to true.

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,22 @@ <h3>Method Details</h3>
11221122
},
11231123
],
11241124
&quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as SearchRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
1125+
&quot;pinControlMetadata&quot;: { # Metadata for pinning to be returned in the response. This is used for distinguishing between applied vs dropped pins. # Metadata for pin controls which were applicable to the request. This contains two map fields, one for all matched pins and one for pins which were matched but not applied. The two maps are keyed by pin position, and the values are the product ids which were matched to that pin.
1126+
&quot;allMatchedPins&quot;: { # Map of all matched pins, keyed by pin position.
1127+
&quot;a_key&quot;: { # List of product ids which have associated pins.
1128+
&quot;productId&quot;: [ # List of product ids which have associated pins.
1129+
&quot;A String&quot;,
1130+
],
1131+
},
1132+
},
1133+
&quot;droppedPins&quot;: { # Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
1134+
&quot;a_key&quot;: { # List of product ids which have associated pins.
1135+
&quot;productId&quot;: [ # List of product ids which have associated pins.
1136+
&quot;A String&quot;,
1137+
],
1138+
},
1139+
},
1140+
},
11251141
&quot;queryExpansionInfo&quot;: { # Information describing query expansion including whether expansion has occurred. # Query expansion information for the returned results.
11261142
&quot;expandedQuery&quot;: True or False, # Bool describing whether query expansion has occurred.
11271143
&quot;pinnedResultCount&quot;: &quot;A String&quot;, # Number of pinned results. This field will only be set when expansion happens and SearchRequest.QueryExpansionSpec.pin_unexpanded_results is set to true.

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,22 @@ <h3>Method Details</h3>
570570
},
571571
],
572572
&quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as SearchRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
573+
&quot;pinControlMetadata&quot;: { # Metadata for pinning to be returned in the response. This is used for distinguishing between applied vs dropped pins. # Metadata for pin controls which were applicable to the request. This contains two map fields, one for all matched pins and one for pins which were matched but not applied. The two maps are keyed by pin position, and the values are the product ids which were matched to that pin.
574+
&quot;allMatchedPins&quot;: { # Map of all matched pins, keyed by pin position.
575+
&quot;a_key&quot;: { # List of product ids which have associated pins.
576+
&quot;productId&quot;: [ # List of product ids which have associated pins.
577+
&quot;A String&quot;,
578+
],
579+
},
580+
},
581+
&quot;droppedPins&quot;: { # Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
582+
&quot;a_key&quot;: { # List of product ids which have associated pins.
583+
&quot;productId&quot;: [ # List of product ids which have associated pins.
584+
&quot;A String&quot;,
585+
],
586+
},
587+
},
588+
},
573589
&quot;queryExpansionInfo&quot;: { # Information describing query expansion including whether expansion has occurred. # Query expansion information for the returned results.
574590
&quot;expandedQuery&quot;: True or False, # Bool describing whether query expansion has occurred.
575591
&quot;pinnedResultCount&quot;: &quot;A String&quot;, # Number of pinned results. This field will only be set when expansion happens and SearchRequest.QueryExpansionSpec.pin_unexpanded_results is set to true.

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,22 @@ <h3>Method Details</h3>
11211121
},
11221122
],
11231123
&quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as SearchRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
1124+
&quot;pinControlMetadata&quot;: { # Metadata for pinning to be returned in the response. This is used for distinguishing between applied vs dropped pins. # Metadata for pin controls which were applicable to the request. This contains two map fields, one for all matched pins and one for pins which were matched but not applied. The two maps are keyed by pin position, and the values are the product ids which were matched to that pin.
1125+
&quot;allMatchedPins&quot;: { # Map of all matched pins, keyed by pin position.
1126+
&quot;a_key&quot;: { # List of product ids which have associated pins.
1127+
&quot;productId&quot;: [ # List of product ids which have associated pins.
1128+
&quot;A String&quot;,
1129+
],
1130+
},
1131+
},
1132+
&quot;droppedPins&quot;: { # Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.
1133+
&quot;a_key&quot;: { # List of product ids which have associated pins.
1134+
&quot;productId&quot;: [ # List of product ids which have associated pins.
1135+
&quot;A String&quot;,
1136+
],
1137+
},
1138+
},
1139+
},
11241140
&quot;queryExpansionInfo&quot;: { # Information describing query expansion including whether expansion has occurred. # Query expansion information for the returned results.
11251141
&quot;expandedQuery&quot;: True or False, # Bool describing whether query expansion has occurred.
11261142
&quot;pinnedResultCount&quot;: &quot;A String&quot;, # Number of pinned results. This field will only be set when expansion happens and SearchRequest.QueryExpansionSpec.pin_unexpanded_results is set to true.

googleapiclient/discovery_cache/documents/retail.v2.json

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2246,7 +2246,7 @@
22462246
}
22472247
}
22482248
},
2249-
"revision": "20241017",
2249+
"revision": "20241024",
22502250
"rootUrl": "https://retail.googleapis.com/",
22512251
"schemas": {
22522252
"GoogleApiHttpBody": {
@@ -4041,6 +4041,41 @@
40414041
"properties": {},
40424042
"type": "object"
40434043
},
4044+
"GoogleCloudRetailV2PinControlMetadata": {
4045+
"description": "Metadata for pinning to be returned in the response. This is used for distinguishing between applied vs dropped pins.",
4046+
"id": "GoogleCloudRetailV2PinControlMetadata",
4047+
"properties": {
4048+
"allMatchedPins": {
4049+
"additionalProperties": {
4050+
"$ref": "GoogleCloudRetailV2PinControlMetadataProductPins"
4051+
},
4052+
"description": "Map of all matched pins, keyed by pin position.",
4053+
"type": "object"
4054+
},
4055+
"droppedPins": {
4056+
"additionalProperties": {
4057+
"$ref": "GoogleCloudRetailV2PinControlMetadataProductPins"
4058+
},
4059+
"description": "Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.",
4060+
"type": "object"
4061+
}
4062+
},
4063+
"type": "object"
4064+
},
4065+
"GoogleCloudRetailV2PinControlMetadataProductPins": {
4066+
"description": "List of product ids which have associated pins.",
4067+
"id": "GoogleCloudRetailV2PinControlMetadataProductPins",
4068+
"properties": {
4069+
"productId": {
4070+
"description": "List of product ids which have associated pins.",
4071+
"items": {
4072+
"type": "string"
4073+
},
4074+
"type": "array"
4075+
}
4076+
},
4077+
"type": "object"
4078+
},
40444079
"GoogleCloudRetailV2PredictRequest": {
40454080
"description": "Request message for Predict method.",
40464081
"id": "GoogleCloudRetailV2PredictRequest",
@@ -5504,6 +5539,10 @@
55045539
"description": "A token that can be sent as SearchRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.",
55055540
"type": "string"
55065541
},
5542+
"pinControlMetadata": {
5543+
"$ref": "GoogleCloudRetailV2PinControlMetadata",
5544+
"description": "Metadata for pin controls which were applicable to the request. This contains two map fields, one for all matched pins and one for pins which were matched but not applied. The two maps are keyed by pin position, and the values are the product ids which were matched to that pin."
5545+
},
55075546
"queryExpansionInfo": {
55085547
"$ref": "GoogleCloudRetailV2SearchResponseQueryExpansionInfo",
55095548
"description": "Query expansion information for the returned results."

googleapiclient/discovery_cache/documents/retail.v2alpha.json

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2767,7 +2767,7 @@
27672767
}
27682768
}
27692769
},
2770-
"revision": "20241017",
2770+
"revision": "20241024",
27712771
"rootUrl": "https://retail.googleapis.com/",
27722772
"schemas": {
27732773
"GoogleApiHttpBody": {
@@ -5864,6 +5864,41 @@
58645864
"properties": {},
58655865
"type": "object"
58665866
},
5867+
"GoogleCloudRetailV2alphaPinControlMetadata": {
5868+
"description": "Metadata for pinning to be returned in the response. This is used for distinguishing between applied vs dropped pins.",
5869+
"id": "GoogleCloudRetailV2alphaPinControlMetadata",
5870+
"properties": {
5871+
"allMatchedPins": {
5872+
"additionalProperties": {
5873+
"$ref": "GoogleCloudRetailV2alphaPinControlMetadataProductPins"
5874+
},
5875+
"description": "Map of all matched pins, keyed by pin position.",
5876+
"type": "object"
5877+
},
5878+
"droppedPins": {
5879+
"additionalProperties": {
5880+
"$ref": "GoogleCloudRetailV2alphaPinControlMetadataProductPins"
5881+
},
5882+
"description": "Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.",
5883+
"type": "object"
5884+
}
5885+
},
5886+
"type": "object"
5887+
},
5888+
"GoogleCloudRetailV2alphaPinControlMetadataProductPins": {
5889+
"description": "List of product ids which have associated pins.",
5890+
"id": "GoogleCloudRetailV2alphaPinControlMetadataProductPins",
5891+
"properties": {
5892+
"productId": {
5893+
"description": "List of product ids which have associated pins.",
5894+
"items": {
5895+
"type": "string"
5896+
},
5897+
"type": "array"
5898+
}
5899+
},
5900+
"type": "object"
5901+
},
58675902
"GoogleCloudRetailV2alphaPredictRequest": {
58685903
"description": "Request message for Predict method.",
58695904
"id": "GoogleCloudRetailV2alphaPredictRequest",
@@ -7375,6 +7410,10 @@
73757410
"description": "A token that can be sent as SearchRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.",
73767411
"type": "string"
73777412
},
7413+
"pinControlMetadata": {
7414+
"$ref": "GoogleCloudRetailV2alphaPinControlMetadata",
7415+
"description": "Metadata for pin controls which were applicable to the request. This contains two map fields, one for all matched pins and one for pins which were matched but not applied. The two maps are keyed by pin position, and the values are the product ids which were matched to that pin."
7416+
},
73787417
"queryExpansionInfo": {
73797418
"$ref": "GoogleCloudRetailV2alphaSearchResponseQueryExpansionInfo",
73807419
"description": "Query expansion information for the returned results."

googleapiclient/discovery_cache/documents/retail.v2beta.json

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2391,7 +2391,7 @@
23912391
}
23922392
}
23932393
},
2394-
"revision": "20241017",
2394+
"revision": "20241024",
23952395
"rootUrl": "https://retail.googleapis.com/",
23962396
"schemas": {
23972397
"GoogleApiHttpBody": {
@@ -5842,6 +5842,41 @@
58425842
"properties": {},
58435843
"type": "object"
58445844
},
5845+
"GoogleCloudRetailV2betaPinControlMetadata": {
5846+
"description": "Metadata for pinning to be returned in the response. This is used for distinguishing between applied vs dropped pins.",
5847+
"id": "GoogleCloudRetailV2betaPinControlMetadata",
5848+
"properties": {
5849+
"allMatchedPins": {
5850+
"additionalProperties": {
5851+
"$ref": "GoogleCloudRetailV2betaPinControlMetadataProductPins"
5852+
},
5853+
"description": "Map of all matched pins, keyed by pin position.",
5854+
"type": "object"
5855+
},
5856+
"droppedPins": {
5857+
"additionalProperties": {
5858+
"$ref": "GoogleCloudRetailV2betaPinControlMetadataProductPins"
5859+
},
5860+
"description": "Map of pins that were dropped due to overlap with other matching pins, keyed by pin position.",
5861+
"type": "object"
5862+
}
5863+
},
5864+
"type": "object"
5865+
},
5866+
"GoogleCloudRetailV2betaPinControlMetadataProductPins": {
5867+
"description": "List of product ids which have associated pins.",
5868+
"id": "GoogleCloudRetailV2betaPinControlMetadataProductPins",
5869+
"properties": {
5870+
"productId": {
5871+
"description": "List of product ids which have associated pins.",
5872+
"items": {
5873+
"type": "string"
5874+
},
5875+
"type": "array"
5876+
}
5877+
},
5878+
"type": "object"
5879+
},
58455880
"GoogleCloudRetailV2betaPredictRequest": {
58465881
"description": "Request message for Predict method.",
58475882
"id": "GoogleCloudRetailV2betaPredictRequest",
@@ -7305,6 +7340,10 @@
73057340
"description": "A token that can be sent as SearchRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.",
73067341
"type": "string"
73077342
},
7343+
"pinControlMetadata": {
7344+
"$ref": "GoogleCloudRetailV2betaPinControlMetadata",
7345+
"description": "Metadata for pin controls which were applicable to the request. This contains two map fields, one for all matched pins and one for pins which were matched but not applied. The two maps are keyed by pin position, and the values are the product ids which were matched to that pin."
7346+
},
73087347
"queryExpansionInfo": {
73097348
"$ref": "GoogleCloudRetailV2betaSearchResponseQueryExpansionInfo",
73107349
"description": "Query expansion information for the returned results."

0 commit comments

Comments
 (0)