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

Reference documentation and code samples for the Observability v1 API class CmekSettings.

Settings for configuring CMEK for a bucket.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CmekSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Observability.V1/latest/Google.Cloud.Observability.V1.CmekSettings), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CmekSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Observability.V1/latest/Google.Cloud.Observability.V1.CmekSettings), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CmekSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Observability.V1/latest/Google.Cloud.Observability.V1.CmekSettings), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## 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.Observability.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Observability.V1/latest/Google.Cloud.Observability.V1)

## Assembly

Google.Cloud.Observability.V1.dll

## Constructors

### CmekSettings()

    public CmekSettings()

### CmekSettings(CmekSettings)

    public CmekSettings(CmekSettings other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Observability.V1/latest/Google.Cloud.Observability.V1.CmekSettings` |

## Properties

### KmsKey

    public string KmsKey { get; set; }

Optional. The resource name for the configured Cloud KMS key. The format
is:

    projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]

For example:

    projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### KmsKeyVersion

    public string KmsKeyVersion { get; set; }

Output only. The CryptoKeyVersion resource name for the configured Cloud
KMS key. The format is:

    projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION]

For example:

    projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key/cryptoKeyVersions/1

This read-only field is used to convey the specific configured
CryptoKeyVersion of the `kms_key` that has been configured. It is
populated when the CMEK settings are bound to a single key version.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ServiceAccountId

    public string ServiceAccountId { get; set; }

Output only. The service account used to access the key.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |