Add "detached" bool to Subscription

PiperOrigin-RevId: 314795690
This commit is contained in:
Google APIs 2020-06-04 13:43:59 -07:00 committed by Copybara-Service
parent 8070bcb140
commit 86285bbd54
1 changed files with 7 additions and 0 deletions

View File

@ -724,6 +724,13 @@ message Subscription {
// RetryPolicy will be triggered on NACKs or acknowledgement deadline
// exceeded events for a given message.
RetryPolicy retry_policy = 14;
// Indicates whether the subscription is detached from its topic. Detached
// subscriptions don't receive messages from their topic and don't retain any
// backlog. `Pull` and `StreamingPull` requests will return
// FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
// the endpoint will not be made.
bool detached = 15;
}
// A policy that specifies how Cloud Pub/Sub retries message delivery.