Skip to content

Commit 86285bb

Browse files
Google APIscopybara-github
authored andcommitted
Add "detached" bool to Subscription
PiperOrigin-RevId: 314795690
1 parent 8070bcb commit 86285bb

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

google/pubsub/v1/pubsub.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,13 @@ message Subscription {
724724
// RetryPolicy will be triggered on NACKs or acknowledgement deadline
725725
// exceeded events for a given message.
726726
RetryPolicy retry_policy = 14;
727+
728+
// Indicates whether the subscription is detached from its topic. Detached
729+
// subscriptions don't receive messages from their topic and don't retain any
730+
// backlog. `Pull` and `StreamingPull` requests will return
731+
// FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
732+
// the endpoint will not be made.
733+
bool detached = 15;
727734
}
728735

729736
// A policy that specifies how Cloud Pub/Sub retries message delivery.

0 commit comments

Comments
 (0)