Skip to content

Commit 4e07ac3

Browse files
feat: [google-cloud-retail] add availability field to Localnventory (googleapis#13821)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: add availability field to Localnventory feat: add new fields including language_code, region_code and place_id to SearchRequest. feat: add pin_control_metadata to SearchResponse. fix!: An existing message `LlmEmbeddingConfig` is removed. fix!: An existing field `llm_embedding_config` is removed from message `.google.cloud.retail.v2alpha.Model` docs: keep the API doc up-to-date with recent changes END_COMMIT_OVERRIDE feat: add new fields including language_code, region_code and place_id to SearchRequest. feat: add pin_control_metadata to SearchResponse. fix!: An existing message `LlmEmbeddingConfig` is removed. fix!: An existing field `llm_embedding_config` is removed from message `.google.cloud.retail.v2alpha.Model` docs: keep the API doc up-to-date with recent changes PiperOrigin-RevId: 750240703 Source-Link: googleapis/googleapis@1422653 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b6760bcda5f33e4e27e6e6a68d9e83f708b7516a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJldGFpbC8uT3dsQm90LnlhbWwiLCJoIjoiYjY3NjBiY2RhNWYzM2U0ZTI3ZTZlNmE2OGQ5ZTgzZjcwOGI3NTE2YSJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent a66badc commit 4e07ac3

File tree

22 files changed

+333
-122
lines changed

22 files changed

+333
-122
lines changed

packages/google-cloud-retail/google/cloud/retail_v2alpha/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
Image,
9797
Interval,
9898
LocalInventory,
99+
PinControlMetadata,
99100
PriceInfo,
100101
Rating,
101102
RecommendationsFilteringOption,
@@ -402,6 +403,7 @@
402403
"OutputConfig",
403404
"OutputResult",
404405
"PauseModelRequest",
406+
"PinControlMetadata",
405407
"PredictRequest",
406408
"PredictResponse",
407409
"PredictionServiceClient",

packages/google-cloud-retail/google/cloud/retail_v2alpha/services/user_event_service/async_client.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,11 @@ async def collect_user_event(
409409
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
410410
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
411411
) -> httpbody_pb2.HttpBody:
412-
r"""Writes a single user event from the browser. This
413-
uses a GET request to due to browser restriction of
414-
POST-ing to a 3rd party domain.
412+
r"""Writes a single user event from the browser.
413+
414+
For larger user event payload over 16 KB, the POST
415+
method should be used instead, otherwise a 400 Bad
416+
Request error is returned.
415417
416418
This method is used only by the Retail API JavaScript
417419
pixel and Google Tag Manager. Users should not call this

packages/google-cloud-retail/google/cloud/retail_v2alpha/services/user_event_service/client.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -855,9 +855,11 @@ def collect_user_event(
855855
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
856856
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
857857
) -> httpbody_pb2.HttpBody:
858-
r"""Writes a single user event from the browser. This
859-
uses a GET request to due to browser restriction of
860-
POST-ing to a 3rd party domain.
858+
r"""Writes a single user event from the browser.
859+
860+
For larger user event payload over 16 KB, the POST
861+
method should be used instead, otherwise a 400 Bad
862+
Request error is returned.
861863
862864
This method is used only by the Retail API JavaScript
863865
pixel and Google Tag Manager. Users should not call this

packages/google-cloud-retail/google/cloud/retail_v2alpha/services/user_event_service/transports/grpc.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,11 @@ def collect_user_event(
378378
) -> Callable[[user_event_service.CollectUserEventRequest], httpbody_pb2.HttpBody]:
379379
r"""Return a callable for the collect user event method over gRPC.
380380
381-
Writes a single user event from the browser. This
382-
uses a GET request to due to browser restriction of
383-
POST-ing to a 3rd party domain.
381+
Writes a single user event from the browser.
382+
383+
For larger user event payload over 16 KB, the POST
384+
method should be used instead, otherwise a 400 Bad
385+
Request error is returned.
384386
385387
This method is used only by the Retail API JavaScript
386388
pixel and Google Tag Manager. Users should not call this

packages/google-cloud-retail/google/cloud/retail_v2alpha/services/user_event_service/transports/grpc_asyncio.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,11 @@ def collect_user_event(
390390
]:
391391
r"""Return a callable for the collect user event method over gRPC.
392392
393-
Writes a single user event from the browser. This
394-
uses a GET request to due to browser restriction of
395-
POST-ing to a 3rd party domain.
393+
Writes a single user event from the browser.
394+
395+
For larger user event payload over 16 KB, the POST
396+
method should be used instead, otherwise a 400 Bad
397+
Request error is returned.
396398
397399
This method is used only by the Retail API JavaScript
398400
pixel and Google Tag Manager. Users should not call this

packages/google-cloud-retail/google/cloud/retail_v2alpha/services/user_event_service/transports/rest_base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ def _get_http_options():
119119
"method": "get",
120120
"uri": "/v2alpha/{parent=projects/*/locations/*/catalogs/*}/userEvents:collect",
121121
},
122+
{
123+
"method": "post",
124+
"uri": "/v2alpha/{parent=projects/*/locations/*/catalogs/*}/userEvents:collect",
125+
"body": "*",
126+
},
122127
]
123128
return http_options
124129

packages/google-cloud-retail/google/cloud/retail_v2alpha/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
Image,
5353
Interval,
5454
LocalInventory,
55+
PinControlMetadata,
5556
PriceInfo,
5657
Rating,
5758
RecommendationsFilteringOption,
@@ -254,6 +255,7 @@
254255
"Image",
255256
"Interval",
256257
"LocalInventory",
258+
"PinControlMetadata",
257259
"PriceInfo",
258260
"Rating",
259261
"Rule",

packages/google-cloud-retail/google/cloud/retail_v2alpha/types/catalog.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ class CatalogAttribute(proto.Message):
138138
139139
[CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute]
140140
can be pre-loaded by using
141-
[CatalogService.AddCatalogAttribute][google.cloud.retail.v2alpha.CatalogService.AddCatalogAttribute],
142-
[CatalogService.ImportCatalogAttributes][google.cloud.retail.v2alpha.CatalogService.ImportCatalogAttributes],
141+
[CatalogService.AddCatalogAttribute][google.cloud.retail.v2alpha.CatalogService.AddCatalogAttribute]
143142
or
144143
[CatalogService.UpdateAttributesConfig][google.cloud.retail.v2alpha.CatalogService.UpdateAttributesConfig]
145144
APIs. This field is ``False`` for pre-loaded

0 commit comments

Comments
 (0)