# Google Cloud Dialogflow v2 API - Class EncryptionSpecServiceClientImpl (4.30.0)

4.30.0 (latest) 4.29.0 4.28.0 4.27.0 4.26.0 4.25.0 4.24.0 4.23.0 4.22.0 4.21.0 4.20.0 4.19.0 4.18.0 4.17.0 4.16.0 4.15.0 4.14.0 4.13.0 4.12.0 4.11.0 4.10.0 4.9.0 4.8.0 4.7.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0

    public sealed class EncryptionSpecServiceClientImpl : EncryptionSpecServiceClient

Reference documentation and code samples for the Google Cloud Dialogflow v2 API class EncryptionSpecServiceClientImpl.

EncryptionSpecService client wrapper implementation, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [EncryptionSpecServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient) \> EncryptionSpecServiceClientImpl

## Inherited Members

[EncryptionSpecServiceClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_DefaultEndpoint) [EncryptionSpecServiceClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_DefaultScopes) [EncryptionSpecServiceClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_ServiceMetadata) [EncryptionSpecServiceClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_CreateAsync_System_Threading_CancellationToken_) [EncryptionSpecServiceClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_Create) [EncryptionSpecServiceClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_ShutdownDefaultChannelsAsync) [EncryptionSpecServiceClient.GetEncryptionSpecAsync(GetEncryptionSpecRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_GetEncryptionSpecAsync_Google_Cloud_Dialogflow_V2_GetEncryptionSpecRequest_System_Threading_CancellationToken_) [EncryptionSpecServiceClient.GetEncryptionSpec(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_GetEncryptionSpec_System_String_Google_Api_Gax_Grpc_CallSettings_) [EncryptionSpecServiceClient.GetEncryptionSpecAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_GetEncryptionSpecAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [EncryptionSpecServiceClient.GetEncryptionSpecAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_GetEncryptionSpecAsync_System_String_System_Threading_CancellationToken_) [EncryptionSpecServiceClient.GetEncryptionSpec(EncryptionSpecName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_GetEncryptionSpec_Google_Cloud_Dialogflow_V2_EncryptionSpecName_Google_Api_Gax_Grpc_CallSettings_) [EncryptionSpecServiceClient.GetEncryptionSpecAsync(EncryptionSpecName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_GetEncryptionSpecAsync_Google_Cloud_Dialogflow_V2_EncryptionSpecName_Google_Api_Gax_Grpc_CallSettings_) [EncryptionSpecServiceClient.GetEncryptionSpecAsync(EncryptionSpecName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_GetEncryptionSpecAsync_Google_Cloud_Dialogflow_V2_EncryptionSpecName_System_Threading_CancellationToken_) [EncryptionSpecServiceClient.InitializeEncryptionSpecAsync(InitializeEncryptionSpecRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_InitializeEncryptionSpecAsync_Google_Cloud_Dialogflow_V2_InitializeEncryptionSpecRequest_System_Threading_CancellationToken_) [EncryptionSpecServiceClient.PollOnceInitializeEncryptionSpec(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_PollOnceInitializeEncryptionSpec_System_String_Google_Api_Gax_Grpc_CallSettings_) [EncryptionSpecServiceClient.PollOnceInitializeEncryptionSpecAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_PollOnceInitializeEncryptionSpecAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [EncryptionSpecServiceClient.InitializeEncryptionSpec(EncryptionSpec, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_InitializeEncryptionSpec_Google_Cloud_Dialogflow_V2_EncryptionSpec_Google_Api_Gax_Grpc_CallSettings_) [EncryptionSpecServiceClient.InitializeEncryptionSpecAsync(EncryptionSpec, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_InitializeEncryptionSpecAsync_Google_Cloud_Dialogflow_V2_EncryptionSpec_Google_Api_Gax_Grpc_CallSettings_) [EncryptionSpecServiceClient.InitializeEncryptionSpecAsync(EncryptionSpec, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_InitializeEncryptionSpecAsync_Google_Cloud_Dialogflow_V2_EncryptionSpec_System_Threading_CancellationToken_) [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.Dialogflow.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2)

## Assembly

Google.Cloud.Dialogflow.V2.dll

## Remarks

Manages encryption spec settings for Dialogflow and Agent Assist.

## Constructors

### EncryptionSpecServiceClientImpl(EncryptionSpecServiceClient, EncryptionSpecServiceSettings, ILogger)

    public EncryptionSpecServiceClientImpl(EncryptionSpecService.EncryptionSpecServiceClient grpcClient, EncryptionSpecServiceSettings settings, ILogger logger)

Constructs a client wrapper for the EncryptionSpecService service, with the specified gRPC client and
settings.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecService.EncryptionSpecServiceClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceSettings` The base [EncryptionSpecServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceSettings) used within this client. |
| `logger` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger` Optional [ILogger](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger) to use within this client. |

## Properties

### GrpcClient

    public override EncryptionSpecService.EncryptionSpecServiceClient GrpcClient { get; }

The underlying gRPC EncryptionSpecService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecService.EncryptionSpecServiceClient` |   |

**Overrides** [EncryptionSpecServiceClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_GrpcClient)

### InitializeEncryptionSpecOperationsClient

    public override OperationsClient InitializeEncryptionSpecOperationsClient { get; }

The long-running operations client for `InitializeEncryptionSpec`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

**Overrides** [EncryptionSpecServiceClient.InitializeEncryptionSpecOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_InitializeEncryptionSpecOperationsClient)

### LocationsClient

    public override LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

**Overrides** [EncryptionSpecServiceClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_LocationsClient)

## Methods

### GetEncryptionSpec(GetEncryptionSpecRequest, CallSettings)

    public override EncryptionSpec GetEncryptionSpec(GetEncryptionSpecRequest request, CallSettings callSettings = null)

Gets location-level encryption key specification.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.GetEncryptionSpecRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpec` | The RPC response. |

**Overrides** [EncryptionSpecServiceClient.GetEncryptionSpec(GetEncryptionSpecRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_GetEncryptionSpec_Google_Cloud_Dialogflow_V2_GetEncryptionSpecRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetEncryptionSpecAsync(GetEncryptionSpecRequest, CallSettings)

    public override Task<EncryptionSpec> GetEncryptionSpecAsync(GetEncryptionSpecRequest request, CallSettings callSettings = null)

Gets location-level encryption key specification.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.GetEncryptionSpecRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpec` | A Task containing the RPC response. |

**Overrides** [EncryptionSpecServiceClient.GetEncryptionSpecAsync(GetEncryptionSpecRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_GetEncryptionSpecAsync_Google_Cloud_Dialogflow_V2_GetEncryptionSpecRequest_Google_Api_Gax_Grpc_CallSettings_)

### InitializeEncryptionSpec(InitializeEncryptionSpecRequest, CallSettings)

    public override Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> InitializeEncryptionSpec(InitializeEncryptionSpecRequest request, CallSettings callSettings = null)

Initializes a location-level encryption key specification. An error will
be thrown if the location has resources already created before the
initialization. Once the encryption specification is initialized at a
location, it is immutable and all newly created resources under the
location will be encrypted with the existing specification.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.InitializeEncryptionSpecRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.InitializeEncryptionSpecResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.InitializeEncryptionSpecMetadata` | The RPC response. |

**Overrides** [EncryptionSpecServiceClient.InitializeEncryptionSpec(InitializeEncryptionSpecRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_InitializeEncryptionSpec_Google_Cloud_Dialogflow_V2_InitializeEncryptionSpecRequest_Google_Api_Gax_Grpc_CallSettings_)

### InitializeEncryptionSpecAsync(InitializeEncryptionSpecRequest, CallSettings)

    public override Task<Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata>> InitializeEncryptionSpecAsync(InitializeEncryptionSpecRequest request, CallSettings callSettings = null)

Initializes a location-level encryption key specification. An error will
be thrown if the location has resources already created before the
initialization. Once the encryption specification is initialized at a
location, it is immutable and all newly created resources under the
location will be encrypted with the existing specification.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.InitializeEncryptionSpecRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.InitializeEncryptionSpecResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.InitializeEncryptionSpecMetadata` | A Task containing the RPC response. |

**Overrides** [EncryptionSpecServiceClient.InitializeEncryptionSpecAsync(InitializeEncryptionSpecRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecServiceClient#Google_Cloud_Dialogflow_V2_EncryptionSpecServiceClient_InitializeEncryptionSpecAsync_Google_Cloud_Dialogflow_V2_InitializeEncryptionSpecRequest_Google_Api_Gax_Grpc_CallSettings_)