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

ProductCatalogItem.StockState enum invalid #14

@mdg41

Description

@mdg41

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

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

Metadata

Metadata

Assignees

Labels

api: recommendationengineIssues related to the googleapis/python-recommendations-ai API.priority: p2Moderately-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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions