The minimum duration for which the output files from the channel will remain in the output bucket. After this duration, output files are deleted asynchronously. When the channel is deleted, all output files are deleted from the output bucket asynchronously. If omitted or set to zero, output files will remain in the output bucket based on Manifest.segment_keep_duration, which defaults to 60s. If both retention_window_duration and Manifest.segment_keep_duration are set, retention_window_duration is used and Manifest.segment_keep_duration is ignored.
getRetentionWindowDuration
The minimum duration for which the output files from the channel will
remain in the output bucket. After this duration, output files are
deleted asynchronously.
When the channel is deleted, all output files are deleted from the output
bucket asynchronously.
If omitted or set to zero, output files will remain in the output bucket
based on
Manifest.segment_keep_duration,
which defaults to 60s.
If both retention_window_duration and
Manifest.segment_keep_duration
are set, retention_window_duration is used and
Manifest.segment_keep_duration
is ignored.
The minimum duration for which the output files from the channel will
remain in the output bucket. After this duration, output files are
deleted asynchronously.
When the channel is deleted, all output files are deleted from the output
bucket asynchronously.
If omitted or set to zero, output files will remain in the output bucket
based on
Manifest.segment_keep_duration,
which defaults to 60s.
If both retention_window_duration and
Manifest.segment_keep_duration
are set, retention_window_duration is used and
Manifest.segment_keep_duration
is ignored.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Google Cloud Video Live Stream V1 Client - Class RetentionConfig (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-video-live-stream/latest/V1.RetentionConfig)\n- [1.2.0](/php/docs/reference/cloud-video-live-stream/1.2.0/V1.RetentionConfig)\n- [1.1.3](/php/docs/reference/cloud-video-live-stream/1.1.3/V1.RetentionConfig)\n- [1.0.0](/php/docs/reference/cloud-video-live-stream/1.0.0/V1.RetentionConfig)\n- [0.7.5](/php/docs/reference/cloud-video-live-stream/0.7.5/V1.RetentionConfig)\n- [0.6.2](/php/docs/reference/cloud-video-live-stream/0.6.2/V1.RetentionConfig)\n- [0.5.0](/php/docs/reference/cloud-video-live-stream/0.5.0/V1.RetentionConfig)\n- [0.4.2](/php/docs/reference/cloud-video-live-stream/0.4.2/V1.RetentionConfig)\n- [0.3.2](/php/docs/reference/cloud-video-live-stream/0.3.2/V1.RetentionConfig)\n- [0.2.6](/php/docs/reference/cloud-video-live-stream/0.2.6/V1.RetentionConfig) \nReference documentation and code samples for the Google Cloud Video Live Stream V1 Client class RetentionConfig.\n\nConfiguration for retention of output files.\n\nGenerated from protobuf message `google.cloud.video.livestream.v1.RetentionConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Video \\\\ LiveStream \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getRetentionWindowDuration\n\nThe minimum duration for which the output files from the channel will\nremain in the output bucket. After this duration, output files are\ndeleted asynchronously.\n\nWhen the channel is deleted, all output files are deleted from the output\nbucket asynchronously.\nIf omitted or set to zero, output files will remain in the output bucket\nbased on\n[Manifest.segment_keep_duration](/php/docs/reference/cloud-video-live-stream/latest/V1.Manifest#_Google_Cloud_Video_LiveStream_V1_Manifest__getSegmentKeepDuration__),\nwhich defaults to 60s.\nIf both retention_window_duration and\n[Manifest.segment_keep_duration](/php/docs/reference/cloud-video-live-stream/latest/V1.Manifest#_Google_Cloud_Video_LiveStream_V1_Manifest__getSegmentKeepDuration__)\nare set, retention_window_duration is used and\n[Manifest.segment_keep_duration](/php/docs/reference/cloud-video-live-stream/latest/V1.Manifest#_Google_Cloud_Video_LiveStream_V1_Manifest__getSegmentKeepDuration__)\nis ignored.\n\n### hasRetentionWindowDuration\n\n### clearRetentionWindowDuration\n\n### setRetentionWindowDuration\n\nThe minimum duration for which the output files from the channel will\nremain in the output bucket. After this duration, output files are\ndeleted asynchronously.\n\nWhen the channel is deleted, all output files are deleted from the output\nbucket asynchronously.\nIf omitted or set to zero, output files will remain in the output bucket\nbased on\n[Manifest.segment_keep_duration](/php/docs/reference/cloud-video-live-stream/latest/V1.Manifest#_Google_Cloud_Video_LiveStream_V1_Manifest__getSegmentKeepDuration__),\nwhich defaults to 60s.\nIf both retention_window_duration and\n[Manifest.segment_keep_duration](/php/docs/reference/cloud-video-live-stream/latest/V1.Manifest#_Google_Cloud_Video_LiveStream_V1_Manifest__getSegmentKeepDuration__)\nare set, retention_window_duration is used and\n[Manifest.segment_keep_duration](/php/docs/reference/cloud-video-live-stream/latest/V1.Manifest#_Google_Cloud_Video_LiveStream_V1_Manifest__getSegmentKeepDuration__)\nis ignored."]]