Skip to content

Commit ee092bd

Browse files
yoshi-code-botcopybara-github
authored andcommitted
Add 'delivery_attempt' field in the Cloud Pub/Sub data schema.
PiperOrigin-RevId: 702756217
1 parent a5f31a9 commit ee092bd

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

proto/google/events/cloud/pubsub/v1/data.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ message MessagePublishedData {
3131
// generated. The format of the value is
3232
// `projects/{project-id}/subscriptions/{subscription-id}`.
3333
string subscription = 2;
34+
35+
// The approximate number of times that Pub/Sub has attempted to deliver
36+
// the associated message to a subscriber.
37+
//
38+
// More precisely, this is 1 + (number of NACKs) +
39+
// (number of ack_deadline exceeds) for this message.
40+
//
41+
// Upon the first delivery of a given message, `delivery_attempt` will have a
42+
// value of 1. The value is calculated at best effort and is approximate.
43+
//
44+
// If a DeadLetterPolicy is not set on the subscription, this will be 0.
45+
int32 delivery_attempt = 3;
3446
}
3547

3648
// A message published to a topic.

0 commit comments

Comments
 (0)