Skip to content

Commit

Permalink
Add 'ReceivedMessage.delivery_attempt' field (via synth). (#9098)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and tseaver committed Aug 27, 2019
1 parent 1fe824b commit 98f4269
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 51 deletions.
18 changes: 18 additions & 0 deletions pubsub/google/cloud/pubsub_v1/proto/pubsub.proto
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,24 @@ message ReceivedMessage {

// The message.
PubsubMessage message = 2;

// Delivery attempt counter is 1 + (the sum of number of NACKs and number of
// ack_deadline exceeds) for this message.
//
// A NACK is any call to ModifyAckDeadline with a 0 deadline. An ack_deadline
// exceeds event is whenever a message is not acknowledged within
// ack_deadline. Note that ack_deadline is initially
// Subscription.ackDeadlineSeconds, but may get extended automatically by
// the client library.
//
// The first delivery of a given message will have this value as 1. The value
// is calculated at best effort and is approximate.
//
// If a DeadLetterPolicy is not set on the subscription, this will be 0.
// <b>EXPERIMENTAL:</b> This feature is part of a closed alpha release. This
// API might be changed in backward-incompatible ways and is not recommended
// for production use. It is not subject to any SLA or deprecation policy.
int32 delivery_attempt = 3;
}

// Request for the GetSubscription method.
Expand Down
Loading

0 comments on commit 98f4269

Please sign in to comment.