# Google Cloud Video Live Stream V1 Client - Class Encryption (1.4.0)

1.4.0 (latest) 1.3.2 1.2.1 1.1.3 1.0.0 0.7.5 0.6.2 0.5.0 0.4.2 0.3.2 0.2.6 Reference documentation and code samples for the Google Cloud Video Live Stream V1 Client class Encryption.

Encryption settings.

Generated from protobuf message `google.cloud.video.livestream.v1.Encryption`

## Namespace

Google \\ Cloud \\ Video \\ LiveStream \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ id` | `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. |
| `↳ secret_manager_key_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.Encryption.SecretManagerSource` For keys stored in Google Secret Manager. |
| `↳ drm_systems` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.Encryption.DrmSystems` Required. Configuration for DRM systems. |
| `↳ aes128` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.Encryption.Aes128Encryption` Configuration for HLS AES-128 encryption. |
| `↳ sample_aes` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.Encryption.SampleAesEncryption` Configuration for HLS SAMPLE-AES encryption. |
| `↳ mpeg_cenc` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.Encryption.MpegCommonEncryption` Configuration for MPEG-Dash Common Encryption (MPEG-CENC). |

### getId

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** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setId

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSecretManagerKeySource

For keys stored in Google Secret Manager.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.Encryption.SecretManagerSource|null` |   |

### hasSecretManagerKeySource

### setSecretManagerKeySource

For keys stored in Google Secret Manager.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.Encryption.SecretManagerSource` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDrmSystems

Required. Configuration for DRM systems.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.Encryption.DrmSystems|null` |   |

### hasDrmSystems

### clearDrmSystems

### setDrmSystems

Required. Configuration for DRM systems.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.Encryption.DrmSystems` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAes128

Configuration for HLS AES-128 encryption.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.Encryption.Aes128Encryption|null` |   |

### hasAes128

### setAes128

Configuration for HLS AES-128 encryption.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.Encryption.Aes128Encryption` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSampleAes

Configuration for HLS SAMPLE-AES encryption.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.Encryption.SampleAesEncryption|null` |   |

### hasSampleAes

### setSampleAes

Configuration for HLS SAMPLE-AES encryption.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.Encryption.SampleAesEncryption` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMpegCenc

Configuration for MPEG-Dash Common Encryption (MPEG-CENC).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.Encryption.MpegCommonEncryption|null` |   |

### hasMpegCenc

### setMpegCenc

Configuration for MPEG-Dash Common Encryption (MPEG-CENC).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-video-live-stream/latest/V1.Encryption.MpegCommonEncryption` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSecretSource

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### getEncryptionMode

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |