3.2.0 (latest) 3.1.0 3.0.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 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.13.0 1.12.0 1.11.0 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 class Environments.EnvironmentsClient : ClientBase<Environments.EnvironmentsClient>

Reference documentation and code samples for the Dialogflow v3 API class Environments.EnvironmentsClient.

Client for Environments

## 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)[Environments](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Environments.md.txt)[EnvironmentsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Environments.EnvironmentsClient.md.txt) \> Environments.EnvironmentsClient

## Inherited Members

[ClientBase\<Environments.EnvironmentsClient\>.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.Cx.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.md.txt)

## Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

## Constructors

### EnvironmentsClient()

    protected EnvironmentsClient()

Protected parameterless constructor to allow creation of test doubles.

### EnvironmentsClient(CallInvoker)

    public EnvironmentsClient(CallInvoker callInvoker)

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

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

### EnvironmentsClient(ChannelBase)

    public EnvironmentsClient(ChannelBase channel)

Creates a new client for Environments

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

### EnvironmentsClient(ClientBaseConfiguration)

    protected EnvironmentsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

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

## Methods

### CreateEnvironment(CreateEnvironmentRequest, CallOptions)

    public virtual Operation CreateEnvironment(CreateEnvironmentRequest request, CallOptions options)

Creates an \[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\] in the
specified \[Agent\]\[google.cloud.dialogflow.cx.v3.Agent\].

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: An empty [Struct
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
- `response`: \[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\]

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

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

### CreateEnvironment(CreateEnvironmentRequest, Metadata, DateTime?, CancellationToken)

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

Creates an \[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\] in the
specified \[Agent\]\[google.cloud.dialogflow.cx.v3.Agent\].

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: An empty [Struct
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
- `response`: \[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateEnvironmentRequest` 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. |

### CreateEnvironmentAsync(CreateEnvironmentRequest, CallOptions)

    public virtual AsyncUnaryCall<Operation> CreateEnvironmentAsync(CreateEnvironmentRequest request, CallOptions options)

Creates an \[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\] in the
specified \[Agent\]\[google.cloud.dialogflow.cx.v3.Agent\].

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: An empty [Struct
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
- `response`: \[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\]

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

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

### CreateEnvironmentAsync(CreateEnvironmentRequest, Metadata, DateTime?, CancellationToken)

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

Creates an \[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\] in the
specified \[Agent\]\[google.cloud.dialogflow.cx.v3.Agent\].

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: An empty [Struct
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
- `response`: \[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateEnvironmentRequest` 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. |

### 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. |

### DeleteEnvironment(DeleteEnvironmentRequest, CallOptions)

    public virtual Empty DeleteEnvironment(DeleteEnvironmentRequest request, CallOptions options)

Deletes the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

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

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

### DeleteEnvironment(DeleteEnvironmentRequest, Metadata, DateTime?, CancellationToken)

    public virtual Empty DeleteEnvironment(DeleteEnvironmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteEnvironmentRequest` 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** |
| `Empty` | The response received from the server. |

### DeleteEnvironmentAsync(DeleteEnvironmentRequest, CallOptions)

    public virtual AsyncUnaryCall<Empty> DeleteEnvironmentAsync(DeleteEnvironmentRequest request, CallOptions options)

Deletes the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

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

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

### DeleteEnvironmentAsync(DeleteEnvironmentRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Empty> DeleteEnvironmentAsync(DeleteEnvironmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteEnvironmentRequest` 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** |
| `AsyncUnaryCallEmpty` | The call object. |

### DeployFlow(DeployFlowRequest, CallOptions)

    public virtual Operation DeployFlow(DeployFlowRequest request, CallOptions options)

Deploys a flow to the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[DeployFlowMetadata\]\[google.cloud.dialogflow.cx.v3.DeployFlowMetadata\]
- `response`: \[DeployFlowResponse\]\[google.cloud.dialogflow.cx.v3.DeployFlowResponse\]

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

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

### DeployFlow(DeployFlowRequest, Metadata, DateTime?, CancellationToken)

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

Deploys a flow to the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[DeployFlowMetadata\]\[google.cloud.dialogflow.cx.v3.DeployFlowMetadata\]
- `response`: \[DeployFlowResponse\]\[google.cloud.dialogflow.cx.v3.DeployFlowResponse\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeployFlowRequest` 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. |

### DeployFlowAsync(DeployFlowRequest, CallOptions)

    public virtual AsyncUnaryCall<Operation> DeployFlowAsync(DeployFlowRequest request, CallOptions options)

Deploys a flow to the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[DeployFlowMetadata\]\[google.cloud.dialogflow.cx.v3.DeployFlowMetadata\]
- `response`: \[DeployFlowResponse\]\[google.cloud.dialogflow.cx.v3.DeployFlowResponse\]

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

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

### DeployFlowAsync(DeployFlowRequest, Metadata, DateTime?, CancellationToken)

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

Deploys a flow to the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[DeployFlowMetadata\]\[google.cloud.dialogflow.cx.v3.DeployFlowMetadata\]
- `response`: \[DeployFlowResponse\]\[google.cloud.dialogflow.cx.v3.DeployFlowResponse\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeployFlowRequest` 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. |

### GetEnvironment(GetEnvironmentRequest, CallOptions)

    public virtual Environment GetEnvironment(GetEnvironmentRequest request, CallOptions options)

Retrieves the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

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

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

### GetEnvironment(GetEnvironmentRequest, Metadata, DateTime?, CancellationToken)

    public virtual Environment GetEnvironment(GetEnvironmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetEnvironmentRequest` 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** |
| `Environment` | The response received from the server. |

### GetEnvironmentAsync(GetEnvironmentRequest, CallOptions)

    public virtual AsyncUnaryCall<Environment> GetEnvironmentAsync(GetEnvironmentRequest request, CallOptions options)

Retrieves the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

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

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

### GetEnvironmentAsync(GetEnvironmentRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<Environment> GetEnvironmentAsync(GetEnvironmentRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetEnvironmentRequest` 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** |
| `AsyncUnaryCallEnvironment` | The call object. |

### ListContinuousTestResults(ListContinuousTestResultsRequest, CallOptions)

    public virtual ListContinuousTestResultsResponse ListContinuousTestResults(ListContinuousTestResultsRequest request, CallOptions options)

Fetches a list of continuous test results for a given environment.

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

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

### ListContinuousTestResults(ListContinuousTestResultsRequest, Metadata, DateTime?, CancellationToken)

    public virtual ListContinuousTestResultsResponse ListContinuousTestResults(ListContinuousTestResultsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Fetches a list of continuous test results for a given environment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListContinuousTestResultsRequest` 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** |
| `ListContinuousTestResultsResponse` | The response received from the server. |

### ListContinuousTestResultsAsync(ListContinuousTestResultsRequest, CallOptions)

    public virtual AsyncUnaryCall<ListContinuousTestResultsResponse> ListContinuousTestResultsAsync(ListContinuousTestResultsRequest request, CallOptions options)

Fetches a list of continuous test results for a given environment.

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

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

### ListContinuousTestResultsAsync(ListContinuousTestResultsRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<ListContinuousTestResultsResponse> ListContinuousTestResultsAsync(ListContinuousTestResultsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Fetches a list of continuous test results for a given environment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListContinuousTestResultsRequest` 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** |
| `AsyncUnaryCallListContinuousTestResultsResponse` | The call object. |

### ListEnvironments(ListEnvironmentsRequest, CallOptions)

    public virtual ListEnvironmentsResponse ListEnvironments(ListEnvironmentsRequest request, CallOptions options)

Returns the list of all environments in the specified
\[Agent\]\[google.cloud.dialogflow.cx.v3.Agent\].

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

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

### ListEnvironments(ListEnvironmentsRequest, Metadata, DateTime?, CancellationToken)

    public virtual ListEnvironmentsResponse ListEnvironments(ListEnvironmentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the list of all environments in the specified
\[Agent\]\[google.cloud.dialogflow.cx.v3.Agent\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListEnvironmentsRequest` 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** |
| `ListEnvironmentsResponse` | The response received from the server. |

### ListEnvironmentsAsync(ListEnvironmentsRequest, CallOptions)

    public virtual AsyncUnaryCall<ListEnvironmentsResponse> ListEnvironmentsAsync(ListEnvironmentsRequest request, CallOptions options)

Returns the list of all environments in the specified
\[Agent\]\[google.cloud.dialogflow.cx.v3.Agent\].

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

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

### ListEnvironmentsAsync(ListEnvironmentsRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<ListEnvironmentsResponse> ListEnvironmentsAsync(ListEnvironmentsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the list of all environments in the specified
\[Agent\]\[google.cloud.dialogflow.cx.v3.Agent\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListEnvironmentsRequest` 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** |
| `AsyncUnaryCallListEnvironmentsResponse` | The call object. |

### LookupEnvironmentHistory(LookupEnvironmentHistoryRequest, CallOptions)

    public virtual LookupEnvironmentHistoryResponse LookupEnvironmentHistory(LookupEnvironmentHistoryRequest request, CallOptions options)

Looks up the history of the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

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

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

### LookupEnvironmentHistory(LookupEnvironmentHistoryRequest, Metadata, DateTime?, CancellationToken)

    public virtual LookupEnvironmentHistoryResponse LookupEnvironmentHistory(LookupEnvironmentHistoryRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Looks up the history of the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `LookupEnvironmentHistoryRequest` 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** |
| `LookupEnvironmentHistoryResponse` | The response received from the server. |

### LookupEnvironmentHistoryAsync(LookupEnvironmentHistoryRequest, CallOptions)

    public virtual AsyncUnaryCall<LookupEnvironmentHistoryResponse> LookupEnvironmentHistoryAsync(LookupEnvironmentHistoryRequest request, CallOptions options)

Looks up the history of the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

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

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

### LookupEnvironmentHistoryAsync(LookupEnvironmentHistoryRequest, Metadata, DateTime?, CancellationToken)

    public virtual AsyncUnaryCall<LookupEnvironmentHistoryResponse> LookupEnvironmentHistoryAsync(LookupEnvironmentHistoryRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Looks up the history of the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `LookupEnvironmentHistoryRequest` 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** |
| `AsyncUnaryCallLookupEnvironmentHistoryResponse` | The call object. |

### NewInstance(ClientBaseConfiguration)

    protected override Environments.EnvironmentsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

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

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `EnvironmentsEnvironmentsClient` |   |

**Overrides** Grpc.Core.ClientBase\<Google.Cloud.Dialogflow.Cx.V3.Environments.EnvironmentsClient\>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

### RunContinuousTest(RunContinuousTestRequest, CallOptions)

    public virtual Operation RunContinuousTest(RunContinuousTestRequest request, CallOptions options)

Kicks off a continuous test under the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[RunContinuousTestMetadata\]\[google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata\]
- `response`: \[RunContinuousTestResponse\]\[google.cloud.dialogflow.cx.v3.RunContinuousTestResponse\]

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

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

### RunContinuousTest(RunContinuousTestRequest, Metadata, DateTime?, CancellationToken)

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

Kicks off a continuous test under the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[RunContinuousTestMetadata\]\[google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata\]
- `response`: \[RunContinuousTestResponse\]\[google.cloud.dialogflow.cx.v3.RunContinuousTestResponse\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RunContinuousTestRequest` 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. |

### RunContinuousTestAsync(RunContinuousTestRequest, CallOptions)

    public virtual AsyncUnaryCall<Operation> RunContinuousTestAsync(RunContinuousTestRequest request, CallOptions options)

Kicks off a continuous test under the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[RunContinuousTestMetadata\]\[google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata\]
- `response`: \[RunContinuousTestResponse\]\[google.cloud.dialogflow.cx.v3.RunContinuousTestResponse\]

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

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

### RunContinuousTestAsync(RunContinuousTestRequest, Metadata, DateTime?, CancellationToken)

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

Kicks off a continuous test under the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[RunContinuousTestMetadata\]\[google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata\]
- `response`: \[RunContinuousTestResponse\]\[google.cloud.dialogflow.cx.v3.RunContinuousTestResponse\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RunContinuousTestRequest` 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. |

### UpdateEnvironment(UpdateEnvironmentRequest, CallOptions)

    public virtual Operation UpdateEnvironment(UpdateEnvironmentRequest request, CallOptions options)

Updates the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: An empty [Struct
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
- `response`: \[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\]

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

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

### UpdateEnvironment(UpdateEnvironmentRequest, Metadata, DateTime?, CancellationToken)

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

Updates the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: An empty [Struct
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
- `response`: \[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateEnvironmentRequest` 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. |

### UpdateEnvironmentAsync(UpdateEnvironmentRequest, CallOptions)

    public virtual AsyncUnaryCall<Operation> UpdateEnvironmentAsync(UpdateEnvironmentRequest request, CallOptions options)

Updates the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: An empty [Struct
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
- `response`: \[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\]

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

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

### UpdateEnvironmentAsync(UpdateEnvironmentRequest, Metadata, DateTime?, CancellationToken)

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

Updates the specified
\[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\].

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: An empty [Struct
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
- `response`: \[Environment\]\[google.cloud.dialogflow.cx.v3.Environment\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateEnvironmentRequest` 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. |