Skip to content

Commit f02f439

Browse files
Google APIscopybara-github
authored andcommitted
feat: add exactly once delivery flag
PiperOrigin-RevId: 426401315
1 parent 5d7f6a2 commit f02f439

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

google/pubsub/v1/pubsub.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,19 @@ message Subscription {
752752
// the endpoint will not be made.
753753
bool detached = 15;
754754

755+
// If true, Pub/Sub provides the following guarantees for the delivery of
756+
// a message with a given value of `message_id` on this subscription:
757+
//
758+
// * The message sent to a subscriber is guaranteed not to be resent
759+
// before the message's acknowledgement deadline expires.
760+
// * An acknowledged message will not be resent to a subscriber.
761+
//
762+
// Note that subscribers may still receive multiple copies of a message
763+
// when `enable_exactly_once_delivery` is true if the message was published
764+
// multiple times by a publisher client. These copies are considered distinct
765+
// by Pub/Sub and have distinct `message_id` values.
766+
bool enable_exactly_once_delivery = 16;
767+
755768
// Output only. Indicates the minimum duration for which a message is retained
756769
// after it is published to the subscription's topic. If this field is set,
757770
// messages published to the subscription's topic in the last

0 commit comments

Comments
 (0)