Docs
message_retention_duration
property of the topic. This allows the topic to retain published messages for up to 31 days, even after acknowledgment. If the topic's message_retention_duration
is longer than that of the subscription, Pub/Sub will only discard the message when its age exceeds the topic's retention duration. For more information, see Google Cloud's Pub/Sub Replay and Purging Overview.API References