[BindServiceMethod(typeof(Environments), "BindService")]
public abstract class Environments.EnvironmentsBaseReference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class Environments.EnvironmentsBase.
Base class for server-side implementations of Environments
Namespace
Google.Cloud.Dialogflow.V2Beta1Assembly
Google.Cloud.Dialogflow.V2Beta1.dll
Methods
CreateEnvironment(CreateEnvironmentRequest, ServerCallContext)
public virtual Task<Environment> CreateEnvironment(CreateEnvironmentRequest request, ServerCallContext context)Creates an agent environment.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateEnvironmentRequestThe request received from the client. |
context |
ServerCallContextThe 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). |
DeleteEnvironment(DeleteEnvironmentRequest, ServerCallContext)
public virtual Task<Empty> DeleteEnvironment(DeleteEnvironmentRequest request, ServerCallContext context)Deletes the specified agent environment.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEnvironmentRequestThe request received from the client. |
context |
ServerCallContextThe 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). |
GetEnvironment(GetEnvironmentRequest, ServerCallContext)
public virtual Task<Environment> GetEnvironment(GetEnvironmentRequest request, ServerCallContext context)Retrieves the specified agent environment.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEnvironmentRequestThe request received from the client. |
context |
ServerCallContextThe 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). |
GetEnvironmentHistory(GetEnvironmentHistoryRequest, ServerCallContext)
public virtual Task<EnvironmentHistory> GetEnvironmentHistory(GetEnvironmentHistoryRequest request, ServerCallContext context)Gets the history of the specified environment.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEnvironmentHistoryRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskEnvironmentHistory |
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 non-draft environments of the specified agent.
| Parameters | |
|---|---|
| Name | Description |
request |
ListEnvironmentsRequestThe request received from the client. |
context |
ServerCallContextThe 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). |
UpdateEnvironment(UpdateEnvironmentRequest, ServerCallContext)
public virtual Task<Environment> UpdateEnvironment(UpdateEnvironmentRequest request, ServerCallContext context)Updates the specified agent environment.
This method allows you to deploy new agent versions into the environment.
When an environment is pointed to a new agent version by setting
environment.agent_version, the environment is temporarily set to the
LOADING state. During that time, the environment keeps on serving the
previous version of the agent. After the new agent version is done loading,
the environment is set back to the RUNNING state.
You can use "-" as Environment ID in environment name to update version
in "draft" environment. WARNING: this will negate all recent changes to
draft and can't be undone. You may want to save the draft to a version
before calling this function.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateEnvironmentRequestThe request received from the client. |
context |
ServerCallContextThe 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). |