# Live Stream V1 API - Class Google::Cloud::Video::LiveStream::V1::Encryption (v2.7.0)

2.7.0 (latest) 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.3.0 1.2.0 1.1.1 1.0.0 0.9.0 0.8.2 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Live Stream V1 API class Google::Cloud::Video::LiveStream::V1::Encryption.

Encryption settings.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #aes128

    def aes128() -> ::Google::Cloud::Video::LiveStream::V1::Encryption::Aes128Encryption

**Returns**

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


  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.

### #aes128=

    def aes128=(value) -> ::Google::Cloud::Video::LiveStream::V1::Encryption::Aes128Encryption

**Parameter**

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


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

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


  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.

### #drm_systems

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

**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::Encryption::DrmSystems](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Encryption-DrmSystems)) --- Required. Configuration for DRM systems.

### #drm_systems=

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

**Parameter**

- **value** ([::Google::Cloud::Video::LiveStream::V1::Encryption::DrmSystems](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Encryption-DrmSystems)) --- Required. Configuration for DRM systems.
**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::Encryption::DrmSystems](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Encryption-DrmSystems)) --- Required. Configuration for DRM systems.

### #id

    def id() -> ::String

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

### #id=

    def id=(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.

### #mpeg_cenc

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

**Returns**

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


  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.

### #mpeg_cenc=

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

**Parameter**

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


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

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


  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.

### #sample_aes

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

**Returns**

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


  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.

### #sample_aes=

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

**Parameter**

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


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

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


  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.

### #secret_manager_key_source

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

**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::Encryption::SecretManagerSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Encryption-SecretManagerSource)) --- For keys stored in Google Secret Manager.

### #secret_manager_key_source=

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

**Parameter**

- **value** ([::Google::Cloud::Video::LiveStream::V1::Encryption::SecretManagerSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Encryption-SecretManagerSource)) --- For keys stored in Google Secret Manager.
**Returns**

- ([::Google::Cloud::Video::LiveStream::V1::Encryption::SecretManagerSource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-live_stream-v1/latest/Google-Cloud-Video-LiveStream-V1-Encryption-SecretManagerSource)) --- For keys stored in Google Secret Manager.