This repository was archived by the owner on Sep 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
This repository was archived by the owner on Sep 5, 2023. It is now read-only.
ProductCatalogItem.StockState enum invalid #14
Copy link
Copy link
Closed
Labels
api: recommendationengineIssues related to the googleapis/python-recommendations-ai API.Issues related to the googleapis/python-recommendations-ai API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
IN_STOCK
and STOCK_STATE_UNSPECIFIED
both have a value of 0, without specifying allow_alias=True
. This is causing deployment errors with protobuf.
The workaround is to specify no binary in requirements.txt:
protobuf==3.13.0 --no-binary=protobuf
python-recommendations-ai/google/cloud/recommendationengine_v1beta1/types/catalog.py
Line 167 in 90a06d1
STOCK_STATE_UNSPECIFIED = 0 |
Error
TypeError: Couldn't build proto file into descriptor pool!
Invalid proto descriptor for file "google/cloud/recommendationengine_v1beta1/types/catalog.proto":
google.cloud.recommendationengine.v1beta1.ProductCatalogItem.StockState:
"google.cloud.recommendationengine.v1beta1.ProductCatalogItem.IN_STOCK" uses the same enum value as
"google.cloud.recommendationengine.v1beta1.ProductCatalogItem.STOCK_STATE_UNSPECIFIED". If this is
intended, set 'option allow_alias = true;' to the enum definition.
Docs
https://developers.google.com/protocol-buffers/docs/proto3
matthiasa4
Metadata
Metadata
Assignees
Labels
api: recommendationengineIssues related to the googleapis/python-recommendations-ai API.Issues related to the googleapis/python-recommendations-ai API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.