2.11.0 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0-beta02

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

Reference documentation and code samples for the Backup and DR Service v1 API class CustomerEncryptionKey.

A customer-supplied encryption key.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[CustomerEncryptionKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.CustomerEncryptionKey.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CustomerEncryptionKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.CustomerEncryptionKey.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[CustomerEncryptionKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.CustomerEncryptionKey.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.BackupDR.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BackupDR.V1/latest/Google.Cloud.BackupDR.V1.md.txt)

## Assembly

Google.Cloud.BackupDR.V1.dll

## Constructors

### CustomerEncryptionKey()

    public CustomerEncryptionKey()

### CustomerEncryptionKey(CustomerEncryptionKey)

    public CustomerEncryptionKey(CustomerEncryptionKey other)

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

## Properties

### HasKmsKeyName

    public bool HasKmsKeyName { get; }

Gets whether the "kms_key_name" field is set

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

### HasKmsKeyServiceAccount

    public bool HasKmsKeyServiceAccount { get; }

Gets whether the "kms_key_service_account" field is set

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

### HasRawKey

    public bool HasRawKey { get; }

Gets whether the "raw_key" field is set

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

### HasRsaEncryptedKey

    public bool HasRsaEncryptedKey { get; }

Gets whether the "rsa_encrypted_key" field is set

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

### KeyCase

    public CustomerEncryptionKey.KeyOneofCase KeyCase { get; }

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

### KmsKeyName

    public string KmsKeyName { get; set; }

Optional. The name of the encryption key that is stored in Google Cloud
KMS.

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

### KmsKeyServiceAccount

    public string KmsKeyServiceAccount { get; set; }

Optional. The service account being used for the encryption request for the
given KMS key. If absent, the Compute Engine default service account is
used.

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

### RawKey

    public string RawKey { get; set; }

Optional. Specifies a 256-bit customer-supplied
encryption key.

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

### RsaEncryptedKey

    public string RsaEncryptedKey { get; set; }

Optional. RSA-wrapped 2048-bit
customer-supplied encryption key to either encrypt or decrypt this
resource.

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