Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

feat: update grpc service config settings to reflect correct API deadlines #120

Merged
merged 2 commits into from
Nov 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,9 @@ async def import_user_events(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=300.0,
deadline=600.0,
),
default_timeout=300.0,
default_timeout=600.0,
client_info=DEFAULT_CLIENT_INFO,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ def _prep_wrapped_messages(self, client_info):
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
),
deadline=300.0,
deadline=600.0,
),
default_timeout=300.0,
default_timeout=600.0,
client_info=client_info,
),
self.rejoin_user_events: gapic_v1.method.wrap_method(
Expand Down
11 changes: 6 additions & 5 deletions google/cloud/retail_v2/types/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ class ProductLevelConfig(proto.Message):
allowed to be ingested into the catalog. Acceptable values
are:

- ``primary`` (default): You can only ingest
- ``primary`` (default): You can ingest
[Product][google.cloud.retail.v2.Product]s of all types.
When ingesting a
[Product][google.cloud.retail.v2.Product], its type will
default to
[Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]
[Product][google.cloud.retail.v2.Product]s. This means
[Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id]
can only be empty or set to the same value as
[Product.id][google.cloud.retail.v2.Product.id].
if unset.
- ``variant``: You can only ingest
[Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]
[Product][google.cloud.retail.v2.Product]s. This means
Expand Down
7 changes: 6 additions & 1 deletion google/cloud/retail_v2/types/search_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ class SearchRequest(proto.Message):
- price
- originalPrice
- discount
- variantId
- inventory(place_id,price)
- inventory(place_id,attributes.key), where key is any key
in the [Product.inventories.attributes][] map.
- attributes.key, where key is any key in the
[Product.attributes][google.cloud.retail.v2.Product.attributes]
map.
Expand Down Expand Up @@ -357,6 +360,7 @@ class FacetKey(proto.Message):
- "customFulfillment3"
- "customFulfillment4"
- "customFulfillment5"
- "inventory(place_id,attributes.key)"

- numerical_field =

Expand All @@ -365,7 +369,8 @@ class FacetKey(proto.Message):
- "rating"
- "ratingCount"
- "attributes.key"
- "inventory(place_id,price)".
- "inventory(place_id,price)"
- "inventory(place_id,attributes.key)".
intervals (Sequence[google.cloud.retail_v2.types.Interval]):
Set only if values should be bucketized into
intervals. Must be set for facets with numerical
Expand Down