Note: The following fields are mutually exclusive: aes_128, 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: aes_128, 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: aes_128, 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: mpeg_cenc, aes_128, 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, aes_128, 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, aes_128, 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, aes_128, 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, aes_128, 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, aes_128, 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"]],[["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-28 UTC."],[],[],null,["# Transcoder V1 API - Class Google::Cloud::Video::Transcoder::V1::Encryption (v2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [2.2.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/2.2.0/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [2.1.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/2.1.0/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [2.0.1](/ruby/docs/reference/google-cloud-video-transcoder-v1/2.0.1/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [1.2.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/1.2.0/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [1.1.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/1.1.0/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [1.0.1](/ruby/docs/reference/google-cloud-video-transcoder-v1/1.0.1/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [0.13.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.13.0/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [0.12.2](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.12.2/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [0.11.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.11.0/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [0.10.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.10.0/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [0.9.1](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.9.1/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [0.8.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.8.0/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [0.7.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.7.0/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [0.6.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.6.0/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [0.5.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.5.0/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [0.4.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.4.0/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [0.3.0](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.3.0/Google-Cloud-Video-Transcoder-V1-Encryption)\n- [0.2.2](/ruby/docs/reference/google-cloud-video-transcoder-v1/0.2.2/Google-Cloud-Video-Transcoder-V1-Encryption) \nReference documentation and code samples for the Transcoder V1 API class Google::Cloud::Video::Transcoder::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### #aes_128\n\n def aes_128() -\u003e ::Google::Cloud::Video::Transcoder::V1::Encryption::Aes128Encryption\n\n**Returns**\n\n- ([::Google::Cloud::Video::Transcoder::V1::Encryption::Aes128Encryption](./Google-Cloud-Video-Transcoder-V1-Encryption-Aes128Encryption)) --- Configuration for AES-128 encryption.\n\n\n Note: The following fields are mutually exclusive: `aes_128`, `sample_aes`, `mpeg_cenc`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #aes_128=\n\n def aes_128=(value) -\u003e ::Google::Cloud::Video::Transcoder::V1::Encryption::Aes128Encryption\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Video::Transcoder::V1::Encryption::Aes128Encryption](./Google-Cloud-Video-Transcoder-V1-Encryption-Aes128Encryption)) --- Configuration for AES-128 encryption.\n\n\nNote: The following fields are mutually exclusive: `aes_128`, `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::Transcoder::V1::Encryption::Aes128Encryption](./Google-Cloud-Video-Transcoder-V1-Encryption-Aes128Encryption)) --- Configuration for AES-128 encryption.\n\n\n Note: The following fields are mutually exclusive: `aes_128`, `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::Transcoder::V1::Encryption::DrmSystems\n\n**Returns**\n\n- ([::Google::Cloud::Video::Transcoder::V1::Encryption::DrmSystems](./Google-Cloud-Video-Transcoder-V1-Encryption-DrmSystems)) --- Required. DRM system(s) to use; at least one must be specified. If a DRM system is omitted, it is considered disabled.\n\n### #drm_systems=\n\n def drm_systems=(value) -\u003e ::Google::Cloud::Video::Transcoder::V1::Encryption::DrmSystems\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Video::Transcoder::V1::Encryption::DrmSystems](./Google-Cloud-Video-Transcoder-V1-Encryption-DrmSystems)) --- Required. DRM system(s) to use; at least one must be specified. If a DRM system is omitted, it is considered disabled. \n**Returns**\n\n- ([::Google::Cloud::Video::Transcoder::V1::Encryption::DrmSystems](./Google-Cloud-Video-Transcoder-V1-Encryption-DrmSystems)) --- Required. DRM system(s) to use; at least one must be specified. If a DRM system is omitted, it is considered disabled.\n\n### #id\n\n def id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Identifier for this set of encryption options.\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. \n**Returns**\n\n- (::String) --- Required. Identifier for this set of encryption options.\n\n### #mpeg_cenc\n\n def mpeg_cenc() -\u003e ::Google::Cloud::Video::Transcoder::V1::Encryption::MpegCommonEncryption\n\n**Returns**\n\n- ([::Google::Cloud::Video::Transcoder::V1::Encryption::MpegCommonEncryption](./Google-Cloud-Video-Transcoder-V1-Encryption-MpegCommonEncryption)) --- Configuration for MPEG Common Encryption (MPEG-CENC).\n\n\n Note: The following fields are mutually exclusive: `mpeg_cenc`, `aes_128`, `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::Transcoder::V1::Encryption::MpegCommonEncryption\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Video::Transcoder::V1::Encryption::MpegCommonEncryption](./Google-Cloud-Video-Transcoder-V1-Encryption-MpegCommonEncryption)) --- Configuration for MPEG Common Encryption (MPEG-CENC).\n\n\nNote: The following fields are mutually exclusive: `mpeg_cenc`, `aes_128`, `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::Transcoder::V1::Encryption::MpegCommonEncryption](./Google-Cloud-Video-Transcoder-V1-Encryption-MpegCommonEncryption)) --- Configuration for MPEG Common Encryption (MPEG-CENC).\n\n\n Note: The following fields are mutually exclusive: `mpeg_cenc`, `aes_128`, `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::Transcoder::V1::Encryption::SampleAesEncryption\n\n**Returns**\n\n- ([::Google::Cloud::Video::Transcoder::V1::Encryption::SampleAesEncryption](./Google-Cloud-Video-Transcoder-V1-Encryption-SampleAesEncryption)) --- Configuration for SAMPLE-AES encryption.\n\n\n Note: The following fields are mutually exclusive: `sample_aes`, `aes_128`, `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::Transcoder::V1::Encryption::SampleAesEncryption\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Video::Transcoder::V1::Encryption::SampleAesEncryption](./Google-Cloud-Video-Transcoder-V1-Encryption-SampleAesEncryption)) --- Configuration for SAMPLE-AES encryption.\n\n\nNote: The following fields are mutually exclusive: `sample_aes`, `aes_128`, `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::Transcoder::V1::Encryption::SampleAesEncryption](./Google-Cloud-Video-Transcoder-V1-Encryption-SampleAesEncryption)) --- Configuration for SAMPLE-AES encryption.\n\n\n Note: The following fields are mutually exclusive: `sample_aes`, `aes_128`, `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::Transcoder::V1::Encryption::SecretManagerSource\n\n**Returns**\n\n- ([::Google::Cloud::Video::Transcoder::V1::Encryption::SecretManagerSource](./Google-Cloud-Video-Transcoder-V1-Encryption-SecretManagerSource)) --- Keys are stored in Google Secret Manager.\n\n### #secret_manager_key_source=\n\n def secret_manager_key_source=(value) -\u003e ::Google::Cloud::Video::Transcoder::V1::Encryption::SecretManagerSource\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Video::Transcoder::V1::Encryption::SecretManagerSource](./Google-Cloud-Video-Transcoder-V1-Encryption-SecretManagerSource)) --- Keys are stored in Google Secret Manager. \n**Returns**\n\n- ([::Google::Cloud::Video::Transcoder::V1::Encryption::SecretManagerSource](./Google-Cloud-Video-Transcoder-V1-Encryption-SecretManagerSource)) --- Keys are stored in Google Secret Manager."]]