Skip to content

Commit f5bb127

Browse files
feat: [Retail] add language_code, region_code and place_id to SearchRequest (#8260)
* feat: add language_code, region_code and place_id to SearchRequest feat: add pin_control_metadata to SearchResponse docs: keep the API doc up-to-date with recent changes PiperOrigin-RevId: 752323436 Source-Link: googleapis/googleapis@1ac7dc2 Source-Link: googleapis/googleapis-gen@117bcc0 Copy-Tag: eyJwIjoiUmV0YWlsLy5Pd2xCb3QueWFtbCIsImgiOiIxMTdiY2MwZDJkYTljMTNmZDA3ZTYzMDUxMTVhNjg3OWJmYTk4NmZkIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 3afd550 commit f5bb127

36 files changed

Lines changed: 807 additions & 222 deletions

Retail/metadata/V2/Common.php

662 Bytes
Binary file not shown.
151 Bytes
Binary file not shown.
74 Bytes
Binary file not shown.

Retail/samples/V2/CatalogServiceClient/set_default_branch.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,15 @@
4545
*
4646
* Using multiple branches can be useful when developers would like
4747
* to have a staging branch to test and verify for future usage. When it
48-
* becomes ready, developers switch on the staging branch using this API while
49-
* keeping using `projects/&#42;/locations/&#42;/catalogs/&#42;/branches/default_branch`
50-
* as [SearchRequest.branch][google.cloud.retail.v2.SearchRequest.branch] to
48+
* becomes ready, developers switch on the staging branch using this API
49+
* while keeping using
50+
* `projects/&#42;/locations/&#42;/catalogs/&#42;/branches/default_branch` as
51+
* [SearchRequest.branch][google.cloud.retail.v2.SearchRequest.branch] to
5152
* route the traffic to this staging branch.
5253
*
5354
* CAUTION: If you have live predict/search traffic, switching the default
54-
* branch could potentially cause outages if the ID space of the new branch is
55-
* very different from the old one.
55+
* branch could potentially cause outages if the ID space of the new branch
56+
* is very different from the old one.
5657
*
5758
* More specifically:
5859
*

Retail/samples/V2/ModelServiceClient/create_model.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
* `frequently-bought-together`, `page-optimization`, `similar-items`,
5454
* `buy-it-again`, `on-sale-items`, and `recently-viewed`(readonly value).
5555
*
56-
*
5756
* This field together with
5857
* [optimization_objective][google.cloud.retail.v2.Model.optimization_objective]
5958
* describe model metadata to use to control model training and serving.

Retail/samples/V2/ModelServiceClient/update_model.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
* `frequently-bought-together`, `page-optimization`, `similar-items`,
5252
* `buy-it-again`, `on-sale-items`, and `recently-viewed`(readonly value).
5353
*
54-
*
5554
* This field together with
5655
* [optimization_objective][google.cloud.retail.v2.Model.optimization_objective]
5756
* describe model metadata to use to control model training and serving.

Retail/samples/V2/PredictionServiceClient/predict.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@
5454
* viewed.
5555
* * `detail-page-view`: Products detail page viewed.
5656
* * `home-page-view`: Homepage viewed.
57-
* * `promotion-offered`: Promotion is offered to a user.
58-
* * `promotion-not-offered`: Promotion is not offered to a user.
5957
* * `purchase-complete`: User finishing a purchase.
6058
* * `search`: Product search.
6159
* * `shopping-cart-page-view`: User viewing a shopping cart.

Retail/samples/V2/UserEventServiceClient/collect_user_event.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929
use Google\Cloud\Retail\V2\CollectUserEventRequest;
3030

3131
/**
32-
* Writes a single user event from the browser. This uses a GET request to
33-
* due to browser restriction of POST-ing to a 3rd party domain.
32+
* Writes a single user event from the browser.
33+
*
34+
* For larger user event payload over 16 KB, the POST method should be used
35+
* instead, otherwise a 400 Bad Request error is returned.
3436
*
3537
* This method is used only by the Retail API JavaScript pixel and Google Tag
3638
* Manager. Users should not call this method directly.

Retail/samples/V2/UserEventServiceClient/import_user_events.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252
* viewed.
5353
* * `detail-page-view`: Products detail page viewed.
5454
* * `home-page-view`: Homepage viewed.
55-
* * `promotion-offered`: Promotion is offered to a user.
56-
* * `promotion-not-offered`: Promotion is not offered to a user.
5755
* * `purchase-complete`: User finishing a purchase.
5856
* * `search`: Product search.
5957
* * `shopping-cart-page-view`: User viewing a shopping cart.

Retail/samples/V2/UserEventServiceClient/write_user_event.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@
4141
* viewed.
4242
* * `detail-page-view`: Products detail page viewed.
4343
* * `home-page-view`: Homepage viewed.
44-
* * `promotion-offered`: Promotion is offered to a user.
45-
* * `promotion-not-offered`: Promotion is not offered to a user.
4644
* * `purchase-complete`: User finishing a purchase.
4745
* * `search`: Product search.
4846
* * `shopping-cart-page-view`: User viewing a shopping cart.

0 commit comments

Comments
 (0)