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

    [BindServiceMethod(typeof(Environments), "BindService")]
    public abstract class Environments.EnvironmentsBase

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

Base class for server-side implementations of Environments

## Inheritance

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

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

## Methods

### CreateEnvironment(CreateEnvironmentRequest, ServerCallContext)

    public virtual Task<Operation> CreateEnvironment(CreateEnvironmentRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperation` | The response to send back to the client (wrapped by a task). |

### DeleteEnvironment(DeleteEnvironmentRequest, ServerCallContext)

    public virtual Task<Empty> DeleteEnvironment(DeleteEnvironmentRequest request, ServerCallContext context)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteEnvironmentRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskEmpty` | The response to send back to the client (wrapped by a task). |

### DeployFlow(DeployFlowRequest, ServerCallContext)

    public virtual Task<Operation> DeployFlow(DeployFlowRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperation` | The response to send back to the client (wrapped by a task). |

### GetEnvironment(GetEnvironmentRequest, ServerCallContext)

    public virtual Task<Environment> GetEnvironment(GetEnvironmentRequest request, ServerCallContext context)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetEnvironmentRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskEnvironment` | The response to send back to the client (wrapped by a task). |

### ListContinuousTestResults(ListContinuousTestResultsRequest, ServerCallContext)

    public virtual Task<ListContinuousTestResultsResponse> ListContinuousTestResults(ListContinuousTestResultsRequest request, ServerCallContext context)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListContinuousTestResultsRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListContinuousTestResultsResponse` | The response to send back to the client (wrapped by a task). |

### ListEnvironments(ListEnvironmentsRequest, ServerCallContext)

    public virtual Task<ListEnvironmentsResponse> ListEnvironments(ListEnvironmentsRequest request, ServerCallContext context)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListEnvironmentsRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListEnvironmentsResponse` | The response to send back to the client (wrapped by a task). |

### LookupEnvironmentHistory(LookupEnvironmentHistoryRequest, ServerCallContext)

    public virtual Task<LookupEnvironmentHistoryResponse> LookupEnvironmentHistory(LookupEnvironmentHistoryRequest request, ServerCallContext context)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `LookupEnvironmentHistoryRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskLookupEnvironmentHistoryResponse` | The response to send back to the client (wrapped by a task). |

### RunContinuousTest(RunContinuousTestRequest, ServerCallContext)

    public virtual Task<Operation> RunContinuousTest(RunContinuousTestRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperation` | The response to send back to the client (wrapped by a task). |

### UpdateEnvironment(UpdateEnvironmentRequest, ServerCallContext)

    public virtual Task<Operation> UpdateEnvironment(UpdateEnvironmentRequest request, ServerCallContext context)

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 received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperation` | The response to send back to the client (wrapped by a task). |