Skip to content

Commit

Permalink
feat: Run the code generator (ee092bd) (#306)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Ross <[email protected]>
  • Loading branch information
yoshi-code-bot and grayside authored Dec 5, 2024
1 parent 1cc4bff commit 1b96a3a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/google/events/cloud/pubsub_v1/types/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ class MessagePublishedData(proto.Message):
The resource name of the subscription for which this event
was generated. The format of the value is
``projects/{project-id}/subscriptions/{subscription-id}``.
delivery_attempt (int):
The approximate number of times that Pub/Sub has attempted
to deliver the associated message to a subscriber.
More precisely, this is 1 + (number of NACKs) + (number of
ack_deadline exceeds) for this message.
Upon the first delivery of a given message,
``delivery_attempt`` will have a value of 1. The value is
calculated at best effort and is approximate.
If a DeadLetterPolicy is not set on the subscription, this
will be 0.
"""

message: 'PubsubMessage' = proto.Field(
Expand All @@ -52,6 +65,10 @@ class MessagePublishedData(proto.Message):
proto.STRING,
number=2,
)
delivery_attempt: int = proto.Field(
proto.INT32,
number=3,
)


class PubsubMessage(proto.Message):
Expand Down

0 comments on commit 1b96a3a

Please sign in to comment.