(::Google::Protobuf::Duration) — 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.
value (::Google::Protobuf::Duration) — 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.
(::Google::Protobuf::Duration) — 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Live Stream V1 API - Class Google::Cloud::Video::LiveStream::V1::RetentionConfig (v2.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.0 (latest)](/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-RetentionConfig)\n- [2.1.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/2.1.0/Google-Cloud-Video-LiveStream-V1-RetentionConfig)\n- [2.0.1](/ruby/docs/reference/google-cloud-video-live_stream-v1/2.0.1/Google-Cloud-Video-LiveStream-V1-RetentionConfig)\n- [1.3.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/1.3.0/Google-Cloud-Video-LiveStream-V1-RetentionConfig)\n- [1.2.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/1.2.0/Google-Cloud-Video-LiveStream-V1-RetentionConfig)\n- [1.1.1](/ruby/docs/reference/google-cloud-video-live_stream-v1/1.1.1/Google-Cloud-Video-LiveStream-V1-RetentionConfig)\n- [1.0.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/1.0.0/Google-Cloud-Video-LiveStream-V1-RetentionConfig)\n- [0.9.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.9.0/Google-Cloud-Video-LiveStream-V1-RetentionConfig)\n- [0.8.2](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.8.2/Google-Cloud-Video-LiveStream-V1-RetentionConfig)\n- [0.7.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.7.0/Google-Cloud-Video-LiveStream-V1-RetentionConfig)\n- [0.6.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.6.0/Google-Cloud-Video-LiveStream-V1-RetentionConfig)\n- [0.5.1](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.5.1/Google-Cloud-Video-LiveStream-V1-RetentionConfig)\n- [0.4.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.4.0/Google-Cloud-Video-LiveStream-V1-RetentionConfig)\n- [0.3.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.3.0/Google-Cloud-Video-LiveStream-V1-RetentionConfig)\n- [0.2.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.2.0/Google-Cloud-Video-LiveStream-V1-RetentionConfig)\n- [0.1.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.1.0/Google-Cloud-Video-LiveStream-V1-RetentionConfig) \nReference documentation and code samples for the Live Stream V1 API class Google::Cloud::Video::LiveStream::V1::RetentionConfig.\n\nConfiguration for retention of output files. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #retention_window_duration\n\n def retention_window_duration() -\u003e ::Google::Protobuf::Duration\n\n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- 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.\n\n\n When the channel is deleted, all output files are deleted from the output\n bucket asynchronously.\n\n If omitted or set to zero, output files will remain in the output bucket\n based on\n [Manifest.segment_keep_duration](/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Manifest#Google__Cloud__Video__LiveStream__V1__Manifest_segment_keep_duration_instance_ \"Google::Cloud::Video::LiveStream::V1::Manifest#segment_keep_duration (method)\"),\n which defaults to 60s.\n\n If both retention_window_duration and\n [Manifest.segment_keep_duration](/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Manifest#Google__Cloud__Video__LiveStream__V1__Manifest_segment_keep_duration_instance_ \"Google::Cloud::Video::LiveStream::V1::Manifest#segment_keep_duration (method)\")\n are set, retention_window_duration is used and\n [Manifest.segment_keep_duration](/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Manifest#Google__Cloud__Video__LiveStream__V1__Manifest_segment_keep_duration_instance_ \"Google::Cloud::Video::LiveStream::V1::Manifest#segment_keep_duration (method)\")\n is ignored.\n\n### #retention_window_duration=\n\n def retention_window_duration=(value) -\u003e ::Google::Protobuf::Duration\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- 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.\n\n\n When the channel is deleted, all output files are deleted from the output\n bucket asynchronously.\n\n If omitted or set to zero, output files will remain in the output bucket\n based on\n [Manifest.segment_keep_duration](/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Manifest#Google__Cloud__Video__LiveStream__V1__Manifest_segment_keep_duration_instance_ \"Google::Cloud::Video::LiveStream::V1::Manifest#segment_keep_duration (method)\"),\n which defaults to 60s.\n\n If both retention_window_duration and\n [Manifest.segment_keep_duration](/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Manifest#Google__Cloud__Video__LiveStream__V1__Manifest_segment_keep_duration_instance_ \"Google::Cloud::Video::LiveStream::V1::Manifest#segment_keep_duration (method)\")\n are set, retention_window_duration is used and\n [Manifest.segment_keep_duration](/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Manifest#Google__Cloud__Video__LiveStream__V1__Manifest_segment_keep_duration_instance_ \"Google::Cloud::Video::LiveStream::V1::Manifest#segment_keep_duration (method)\")\nis ignored. \n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- 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.\n\n\n When the channel is deleted, all output files are deleted from the output\n bucket asynchronously.\n\n If omitted or set to zero, output files will remain in the output bucket\n based on\n [Manifest.segment_keep_duration](/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Manifest#Google__Cloud__Video__LiveStream__V1__Manifest_segment_keep_duration_instance_ \"Google::Cloud::Video::LiveStream::V1::Manifest#segment_keep_duration (method)\"),\n which defaults to 60s.\n\n If both retention_window_duration and\n [Manifest.segment_keep_duration](/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Manifest#Google__Cloud__Video__LiveStream__V1__Manifest_segment_keep_duration_instance_ \"Google::Cloud::Video::LiveStream::V1::Manifest#segment_keep_duration (method)\")\n are set, retention_window_duration is used and\n [Manifest.segment_keep_duration](/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Manifest#Google__Cloud__Video__LiveStream__V1__Manifest_segment_keep_duration_instance_ \"Google::Cloud::Video::LiveStream::V1::Manifest#segment_keep_duration (method)\")\n is ignored."]]