4.34.0 (latest) 4.33.0 4.32.0 4.31.0 4.30.0 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 class EncryptionSpecService.EncryptionSpecServiceClient : ClientBase<EncryptionSpecService.EncryptionSpecServiceClient>

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

Client for EncryptionSpecService

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt)[EncryptionSpecService](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecService.md.txt)[EncryptionSpecServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.EncryptionSpecService.EncryptionSpecServiceClient.md.txt) \> EncryptionSpecService.EncryptionSpecServiceClient

## Inherited Members

[ClientBase\<EncryptionSpecService.EncryptionSpecServiceClient\>.WithHost(string)](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt#Grpc_Core_ClientBase_1_WithHost_System_String_) [ClientBase.CallInvoker](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt#Grpc_Core_ClientBase_CallInvoker) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [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.md.txt)

## Assembly

Google.Cloud.Dialogflow.V2.dll

## Constructors

### EncryptionSpecServiceClient()

    protected EncryptionSpecServiceClient()

Protected parameterless constructor to allow creation of test doubles.

### EncryptionSpecServiceClient(CallInvoker)

    public EncryptionSpecServiceClient(CallInvoker callInvoker)

Creates a new client for EncryptionSpecService that uses a custom `CallInvoker`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `callInvoker` | `CallInvoker` The callInvoker to use to make remote calls. |

### EncryptionSpecServiceClient(ChannelBase)

    public EncryptionSpecServiceClient(ChannelBase channel)

Creates a new client for EncryptionSpecService

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `ChannelBase` The channel to use to make remote calls. |

### EncryptionSpecServiceClient(ClientBaseConfiguration)

    protected EncryptionSpecServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` The client configuration. |

## Methods

### CreateLocationsClient()

    public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.md.txt) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `LocationsLocationsClient` | A new [Locations.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.Locations.LocationsClient.md.txt) for the same target as this client. |

### CreateOperationsClient()

    public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of [Operations.OperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operations.OperationsClient.md.txt) using the same call invoker as
this client.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationsOperationsClient` | A new Operations client for the same target as this client. |

### GetEncryptionSpec(GetEncryptionSpecRequest, CallOptions)

    public virtual EncryptionSpec GetEncryptionSpec(GetEncryptionSpecRequest request, CallOptions options)

Gets location-level encryption key specification.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetEncryptionSpecRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `EncryptionSpec` | The response received from the server. |

### GetEncryptionSpec(GetEncryptionSpecRequest, Metadata, DateTime?, CancellationToken)

    public virtual EncryptionSpec GetEncryptionSpec(GetEncryptionSpecRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets location-level encryption key specification.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetEncryptionSpecRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `EncryptionSpec` | The response received from the server. |

### GetEncryptionSpecAsync(GetEncryptionSpecRequest, CallOptions)

    public virtual AsyncUnaryCall<EncryptionSpec> GetEncryptionSpecAsync(GetEncryptionSpecRequest request, CallOptions options)

Gets location-level encryption key specification.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetEncryptionSpecRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallEncryptionSpec` | The call object. |

### GetEncryptionSpecAsync(GetEncryptionSpecRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<EncryptionSpec> GetEncryptionSpecAsync(GetEncryptionSpecRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets location-level encryption key specification.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetEncryptionSpecRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallEncryptionSpec` | The call object. |

### InitializeEncryptionSpec(InitializeEncryptionSpecRequest, CallOptions)

    public virtual Operation InitializeEncryptionSpec(InitializeEncryptionSpecRequest request, CallOptions options)

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` | `InitializeEncryptionSpecRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Operation` | The response received from the server. |

### InitializeEncryptionSpec(InitializeEncryptionSpecRequest, Metadata, DateTime?, CancellationToken)

    public virtual Operation InitializeEncryptionSpec(InitializeEncryptionSpecRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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` | `InitializeEncryptionSpecRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Operation` | The response received from the server. |

### InitializeEncryptionSpecAsync(InitializeEncryptionSpecRequest, CallOptions)

    public virtual AsyncUnaryCall<Operation> InitializeEncryptionSpecAsync(InitializeEncryptionSpecRequest request, CallOptions options)

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` | `InitializeEncryptionSpecRequest` The request to send to the server. |
| `options` | `CallOptions` The options for the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallOperation` | The call object. |

### InitializeEncryptionSpecAsync(InitializeEncryptionSpecRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Operation> InitializeEncryptionSpecAsync(InitializeEncryptionSpecRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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` | `InitializeEncryptionSpecRequest` The request to send to the server. |
| `headers` | `Metadata` The initial metadata to send with the call. This parameter is optional. |
| `deadline` | `System.DateTime` An optional deadline for the call. The call will be cancelled if deadline is hit. |
| `cancellationToken` | `CancellationToken` An optional token for canceling the call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AsyncUnaryCallOperation` | The call object. |

### NewInstance(ClientBaseConfiguration)

    protected override EncryptionSpecService.EncryptionSpecServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given `ClientBaseConfiguration`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `configuration` | `ClientBaseClientBaseConfiguration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `EncryptionSpecServiceEncryptionSpecServiceClient` |   |

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.Dialogflow.V2.EncryptionSpecService.EncryptionSpecServiceClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)