# Transcoder V1 API - Class Google::Cloud::Video::Transcoder::V1::Encryption (v2.6.0)

2.6.0 (latest) 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.13.0 0.12.2 0.11.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.2 Reference documentation and code samples for the Transcoder V1 API class Google::Cloud::Video::Transcoder::V1::Encryption.

Encryption settings.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #aes_128

    def aes_128() -> ::Google::Cloud::Video::Transcoder::V1::Encryption::Aes128Encryption

**Returns**

- ([::Google::Cloud::Video::Transcoder::V1::Encryption::Aes128Encryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-Encryption-Aes128Encryption)) --- Configuration for AES-128 encryption.


  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.

### #aes_128=

    def aes_128=(value) -> ::Google::Cloud::Video::Transcoder::V1::Encryption::Aes128Encryption

**Parameter**

- **value** ([::Google::Cloud::Video::Transcoder::V1::Encryption::Aes128Encryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-Encryption-Aes128Encryption)) --- Configuration for AES-128 encryption.


  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.
**Returns**

- ([::Google::Cloud::Video::Transcoder::V1::Encryption::Aes128Encryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-Encryption-Aes128Encryption)) --- Configuration for AES-128 encryption.


  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.

### #drm_systems

    def drm_systems() -> ::Google::Cloud::Video::Transcoder::V1::Encryption::DrmSystems

**Returns**

- ([::Google::Cloud::Video::Transcoder::V1::Encryption::DrmSystems](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/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.

### #drm_systems=

    def drm_systems=(value) -> ::Google::Cloud::Video::Transcoder::V1::Encryption::DrmSystems

**Parameter**

- **value** ([::Google::Cloud::Video::Transcoder::V1::Encryption::DrmSystems](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/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.
**Returns**

- ([::Google::Cloud::Video::Transcoder::V1::Encryption::DrmSystems](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/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.

### #id

    def id() -> ::String

**Returns**

- (::String) --- Required. Identifier for this set of encryption options.

### #id=

    def id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Identifier for this set of encryption options.
**Returns**

- (::String) --- Required. Identifier for this set of encryption options.

### #mpeg_cenc

    def mpeg_cenc() -> ::Google::Cloud::Video::Transcoder::V1::Encryption::MpegCommonEncryption

**Returns**

- ([::Google::Cloud::Video::Transcoder::V1::Encryption::MpegCommonEncryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-Encryption-MpegCommonEncryption)) --- Configuration for MPEG Common Encryption (MPEG-CENC).


  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.

### #mpeg_cenc=

    def mpeg_cenc=(value) -> ::Google::Cloud::Video::Transcoder::V1::Encryption::MpegCommonEncryption

**Parameter**

- **value** ([::Google::Cloud::Video::Transcoder::V1::Encryption::MpegCommonEncryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-Encryption-MpegCommonEncryption)) --- Configuration for MPEG Common Encryption (MPEG-CENC).


  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.
**Returns**

- ([::Google::Cloud::Video::Transcoder::V1::Encryption::MpegCommonEncryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-Encryption-MpegCommonEncryption)) --- Configuration for MPEG Common Encryption (MPEG-CENC).


  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.

### #sample_aes

    def sample_aes() -> ::Google::Cloud::Video::Transcoder::V1::Encryption::SampleAesEncryption

**Returns**

- ([::Google::Cloud::Video::Transcoder::V1::Encryption::SampleAesEncryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-Encryption-SampleAesEncryption)) --- Configuration for SAMPLE-AES encryption.


  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.

### #sample_aes=

    def sample_aes=(value) -> ::Google::Cloud::Video::Transcoder::V1::Encryption::SampleAesEncryption

**Parameter**

- **value** ([::Google::Cloud::Video::Transcoder::V1::Encryption::SampleAesEncryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-Encryption-SampleAesEncryption)) --- Configuration for SAMPLE-AES encryption.


  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.
**Returns**

- ([::Google::Cloud::Video::Transcoder::V1::Encryption::SampleAesEncryption](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-Encryption-SampleAesEncryption)) --- Configuration for SAMPLE-AES encryption.


  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.

### #secret_manager_key_source

    def secret_manager_key_source() -> ::Google::Cloud::Video::Transcoder::V1::Encryption::SecretManagerSource

**Returns**

- ([::Google::Cloud::Video::Transcoder::V1::Encryption::SecretManagerSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-Encryption-SecretManagerSource)) --- Keys are stored in Google Secret Manager.

### #secret_manager_key_source=

    def secret_manager_key_source=(value) -> ::Google::Cloud::Video::Transcoder::V1::Encryption::SecretManagerSource

**Parameter**

- **value** ([::Google::Cloud::Video::Transcoder::V1::Encryption::SecretManagerSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-Encryption-SecretManagerSource)) --- Keys are stored in Google Secret Manager.
**Returns**

- ([::Google::Cloud::Video::Transcoder::V1::Encryption::SecretManagerSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-transcoder-v1/latest/Google-Cloud-Video-Transcoder-V1-Encryption-SecretManagerSource)) --- Keys are stored in Google Secret Manager.