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

Commit

Permalink
docs: Add documentation for enums (#208)
Browse files Browse the repository at this point in the history
* docs: Add documentation for enums

fix: Add context manager return types

chore: Update gapic-generator-python to v1.8.1
PiperOrigin-RevId: 503210727

Source-Link: googleapis/googleapis@a391fd1

Source-Link: googleapis/googleapis-gen@0080f83
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDA4MGY4MzBkZWMzN2MzMzg0MTU3MDgyYmNlMjc5ZTM3MDc5ZWE1OCJ9

* 🦉 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jan 20, 2023
1 parent 1647e94 commit 51fbfc0
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ def sample_import_catalog_items():
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "CatalogServiceClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ def sample_delete_prediction_api_key_registration():
metadata=metadata,
)

def __enter__(self):
def __enter__(self) -> "PredictionApiKeyRegistryClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def sample_predict():
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "PredictionServiceClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,7 @@ def sample_import_user_events():
# Done; return the response.
return response

def __enter__(self):
def __enter__(self) -> "UserEventServiceClient":
return self

def __exit__(self, type, value, traceback):
Expand Down
14 changes: 14 additions & 0 deletions google/cloud/recommendationengine_v1beta1/types/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,20 @@ class ProductCatalogItem(proto.Message):
class StockState(proto.Enum):
r"""Item stock state. If this field is unspecified, the item is
assumed to be in stock.
Values:
STOCK_STATE_UNSPECIFIED (0):
Default item stock status. Should never be
used.
IN_STOCK (0):
Item in stock.
OUT_OF_STOCK (1):
Item out of stock.
PREORDER (2):
Item that is in pre-order state.
BACKORDER (3):
Item that is back-ordered (i.e. temporarily
out of stock).
"""
_pb_options = {"allow_alias": True}
STOCK_STATE_UNSPECIFIED = 0
Expand Down
17 changes: 16 additions & 1 deletion google/cloud/recommendationengine_v1beta1/types/user_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,22 @@ class UserEvent(proto.Message):
"""

class EventSource(proto.Enum):
r"""User event source."""
r"""User event source.
Values:
EVENT_SOURCE_UNSPECIFIED (0):
Unspecified event source.
AUTOML (1):
The event is ingested via a javascript pixel
or Recommendations AI Tag through automl
datalayer or JS Macros.
ECOMMERCE (2):
The event is ingested via Recommendations AI
Tag through Enhanced Ecommerce datalayer.
BATCH_UPLOAD (3):
The event is ingested via Import user events
API.
"""
EVENT_SOURCE_UNSPECIFIED = 0
AUTOML = 1
ECOMMERCE = 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-recommendations-ai",
"version": "0.10.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 51fbfc0

Please sign in to comment.