Note: The following fields are mutually exclusive: aes128, sample_aes, mpeg_cenc. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: aes128, sample_aes, mpeg_cenc. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: aes128, sample_aes, mpeg_cenc. If a field in that set is populated, all other fields in the set will automatically be cleared.
(::String) — Required. Identifier for this set of encryption options. The ID must be
1-63 characters in length. The ID must begin and end with a letter
(regardless of case) or a number, but can contain dashes or underscores in
between.
#id=
defid=(value)->::String
Parameter
value (::String) — Required. Identifier for this set of encryption options. The ID must be
1-63 characters in length. The ID must begin and end with a letter
(regardless of case) or a number, but can contain dashes or underscores in
between.
Returns
(::String) — Required. Identifier for this set of encryption options. The ID must be
1-63 characters in length. The ID must begin and end with a letter
(regardless of case) or a number, but can contain dashes or underscores in
between.
Note: The following fields are mutually exclusive: mpeg_cenc, aes128, sample_aes. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: mpeg_cenc, aes128, sample_aes. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: mpeg_cenc, aes128, sample_aes. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: sample_aes, aes128, mpeg_cenc. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: sample_aes, aes128, mpeg_cenc. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: sample_aes, aes128, mpeg_cenc. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["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::Encryption (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-Encryption)\n- [2.1.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/2.1.0/Google-Cloud-Video-LiveStream-V1-Encryption)\n- [2.0.1](/ruby/docs/reference/google-cloud-video-live_stream-v1/2.0.1/Google-Cloud-Video-LiveStream-V1-Encryption)\n- [1.3.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/1.3.0/Google-Cloud-Video-LiveStream-V1-Encryption)\n- [1.2.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/1.2.0/Google-Cloud-Video-LiveStream-V1-Encryption)\n- [1.1.1](/ruby/docs/reference/google-cloud-video-live_stream-v1/1.1.1/Google-Cloud-Video-LiveStream-V1-Encryption)\n- [1.0.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/1.0.0/Google-Cloud-Video-LiveStream-V1-Encryption)\n- [0.9.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.9.0/Google-Cloud-Video-LiveStream-V1-Encryption)\n- [0.8.2](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.8.2/Google-Cloud-Video-LiveStream-V1-Encryption)\n- [0.7.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.7.0/Google-Cloud-Video-LiveStream-V1-Encryption)\n- [0.6.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.6.0/Google-Cloud-Video-LiveStream-V1-Encryption)\n- [0.5.1](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.5.1/Google-Cloud-Video-LiveStream-V1-Encryption)\n- [0.4.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.4.0/Google-Cloud-Video-LiveStream-V1-Encryption)\n- [0.3.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.3.0/Google-Cloud-Video-LiveStream-V1-Encryption)\n- [0.2.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.2.0/Google-Cloud-Video-LiveStream-V1-Encryption)\n- [0.1.0](/ruby/docs/reference/google-cloud-video-live_stream-v1/0.1.0/Google-Cloud-Video-LiveStream-V1-Encryption) \nReference documentation and code samples for the Live Stream V1 API class Google::Cloud::Video::LiveStream::V1::Encryption.\n\nEncryption settings. \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### #aes128\n\n def aes128() -\u003e ::Google::Cloud::Video::LiveStream::V1::Encryption::Aes128Encryption\n\n**Returns**\n\n- ([::Google::Cloud::Video::LiveStream::V1::Encryption::Aes128Encryption](./Google-Cloud-Video-LiveStream-V1-Encryption-Aes128Encryption)) --- Configuration for HLS AES-128 encryption.\n\n\n Note: The following fields are mutually exclusive: `aes128`, `sample_aes`, `mpeg_cenc`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #aes128=\n\n def aes128=(value) -\u003e ::Google::Cloud::Video::LiveStream::V1::Encryption::Aes128Encryption\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Video::LiveStream::V1::Encryption::Aes128Encryption](./Google-Cloud-Video-LiveStream-V1-Encryption-Aes128Encryption)) --- Configuration for HLS AES-128 encryption.\n\n\nNote: The following fields are mutually exclusive: `aes128`, `sample_aes`, `mpeg_cenc`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Video::LiveStream::V1::Encryption::Aes128Encryption](./Google-Cloud-Video-LiveStream-V1-Encryption-Aes128Encryption)) --- Configuration for HLS AES-128 encryption.\n\n\n Note: The following fields are mutually exclusive: `aes128`, `sample_aes`, `mpeg_cenc`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #drm_systems\n\n def drm_systems() -\u003e ::Google::Cloud::Video::LiveStream::V1::Encryption::DrmSystems\n\n**Returns**\n\n- ([::Google::Cloud::Video::LiveStream::V1::Encryption::DrmSystems](./Google-Cloud-Video-LiveStream-V1-Encryption-DrmSystems)) --- Required. Configuration for DRM systems.\n\n### #drm_systems=\n\n def drm_systems=(value) -\u003e ::Google::Cloud::Video::LiveStream::V1::Encryption::DrmSystems\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Video::LiveStream::V1::Encryption::DrmSystems](./Google-Cloud-Video-LiveStream-V1-Encryption-DrmSystems)) --- Required. Configuration for DRM systems. \n**Returns**\n\n- ([::Google::Cloud::Video::LiveStream::V1::Encryption::DrmSystems](./Google-Cloud-Video-LiveStream-V1-Encryption-DrmSystems)) --- Required. Configuration for DRM systems.\n\n### #id\n\n def id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Identifier for this set of encryption options. The ID must be 1-63 characters in length. The ID must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.\n\n### #id=\n\n def id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. Identifier for this set of encryption options. The ID must be 1-63 characters in length. The ID must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between. \n**Returns**\n\n- (::String) --- Required. Identifier for this set of encryption options. The ID must be 1-63 characters in length. The ID must begin and end with a letter (regardless of case) or a number, but can contain dashes or underscores in between.\n\n### #mpeg_cenc\n\n def mpeg_cenc() -\u003e ::Google::Cloud::Video::LiveStream::V1::Encryption::MpegCommonEncryption\n\n**Returns**\n\n- ([::Google::Cloud::Video::LiveStream::V1::Encryption::MpegCommonEncryption](./Google-Cloud-Video-LiveStream-V1-Encryption-MpegCommonEncryption)) --- Configuration for MPEG-Dash Common Encryption (MPEG-CENC).\n\n\n Note: The following fields are mutually exclusive: `mpeg_cenc`, `aes128`, `sample_aes`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #mpeg_cenc=\n\n def mpeg_cenc=(value) -\u003e ::Google::Cloud::Video::LiveStream::V1::Encryption::MpegCommonEncryption\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Video::LiveStream::V1::Encryption::MpegCommonEncryption](./Google-Cloud-Video-LiveStream-V1-Encryption-MpegCommonEncryption)) --- Configuration for MPEG-Dash Common Encryption (MPEG-CENC).\n\n\nNote: The following fields are mutually exclusive: `mpeg_cenc`, `aes128`, `sample_aes`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Video::LiveStream::V1::Encryption::MpegCommonEncryption](./Google-Cloud-Video-LiveStream-V1-Encryption-MpegCommonEncryption)) --- Configuration for MPEG-Dash Common Encryption (MPEG-CENC).\n\n\n Note: The following fields are mutually exclusive: `mpeg_cenc`, `aes128`, `sample_aes`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #sample_aes\n\n def sample_aes() -\u003e ::Google::Cloud::Video::LiveStream::V1::Encryption::SampleAesEncryption\n\n**Returns**\n\n- ([::Google::Cloud::Video::LiveStream::V1::Encryption::SampleAesEncryption](./Google-Cloud-Video-LiveStream-V1-Encryption-SampleAesEncryption)) --- Configuration for HLS SAMPLE-AES encryption.\n\n\n Note: The following fields are mutually exclusive: `sample_aes`, `aes128`, `mpeg_cenc`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #sample_aes=\n\n def sample_aes=(value) -\u003e ::Google::Cloud::Video::LiveStream::V1::Encryption::SampleAesEncryption\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Video::LiveStream::V1::Encryption::SampleAesEncryption](./Google-Cloud-Video-LiveStream-V1-Encryption-SampleAesEncryption)) --- Configuration for HLS SAMPLE-AES encryption.\n\n\nNote: The following fields are mutually exclusive: `sample_aes`, `aes128`, `mpeg_cenc`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Video::LiveStream::V1::Encryption::SampleAesEncryption](./Google-Cloud-Video-LiveStream-V1-Encryption-SampleAesEncryption)) --- Configuration for HLS SAMPLE-AES encryption.\n\n\n Note: The following fields are mutually exclusive: `sample_aes`, `aes128`, `mpeg_cenc`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #secret_manager_key_source\n\n def secret_manager_key_source() -\u003e ::Google::Cloud::Video::LiveStream::V1::Encryption::SecretManagerSource\n\n**Returns**\n\n- ([::Google::Cloud::Video::LiveStream::V1::Encryption::SecretManagerSource](./Google-Cloud-Video-LiveStream-V1-Encryption-SecretManagerSource)) --- For keys stored in Google Secret Manager.\n\n### #secret_manager_key_source=\n\n def secret_manager_key_source=(value) -\u003e ::Google::Cloud::Video::LiveStream::V1::Encryption::SecretManagerSource\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Video::LiveStream::V1::Encryption::SecretManagerSource](./Google-Cloud-Video-LiveStream-V1-Encryption-SecretManagerSource)) --- For keys stored in Google Secret Manager. \n**Returns**\n\n- ([::Google::Cloud::Video::LiveStream::V1::Encryption::SecretManagerSource](./Google-Cloud-Video-LiveStream-V1-Encryption-SecretManagerSource)) --- For keys stored in Google Secret Manager."]]