1.11.0 (latest) 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class Encryption : IMessage<Encryption>, IEquatable<Encryption>, IDeepCloneable<Encryption>, IBufferMessage, IMessage

Reference documentation and code samples for the Live Stream v1 API class Encryption.

Encryption settings.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Encryption

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Encryption](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.Encryption.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Encryption](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.Encryption.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Encryption](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.Encryption.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Video.LiveStream.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.md.txt)

## Assembly

Google.Cloud.Video.LiveStream.V1.dll

## Constructors

### Encryption()

    public Encryption()

### Encryption(Encryption)

    public Encryption(Encryption other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `Encryption` |

## Properties

### Aes128

    public Encryption.Types.Aes128Encryption Aes128 { get; set; }

Configuration for HLS AES-128 encryption.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `EncryptionTypesAes128Encryption` |   |

### DrmSystems

    public Encryption.Types.DrmSystems DrmSystems { get; set; }

Required. Configuration for DRM systems.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `EncryptionTypesDrmSystems` |   |

### EncryptionModeCase

    public Encryption.EncryptionModeOneofCase EncryptionModeCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `EncryptionEncryptionModeOneofCase` |   |

### Id

    public string Id { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### MpegCenc

    public Encryption.Types.MpegCommonEncryption MpegCenc { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `EncryptionTypesMpegCommonEncryption` |   |

### SampleAes

    public Encryption.Types.SampleAesEncryption SampleAes { get; set; }

Configuration for HLS SAMPLE-AES encryption.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `EncryptionTypesSampleAesEncryption` |   |

### SecretManagerKeySource

    public Encryption.Types.SecretManagerSource SecretManagerKeySource { get; set; }

For keys stored in Google Secret Manager.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `EncryptionTypesSecretManagerSource` |   |

### SecretSourceCase

    public Encryption.SecretSourceOneofCase SecretSourceCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `EncryptionSecretSourceOneofCase` |   |