# Google Cloud Dialogflow v2beta1 API - Class AgentsClientImpl (1.0.0-beta30)

1.0.0-beta30 (latest) 1.0.0-beta29

    public sealed class AgentsClientImpl : AgentsClient

Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class AgentsClientImpl.

Agents client wrapper implementation, for convenient use.

## Inheritance

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

## Inherited Members

[AgentsClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_DefaultEndpoint) [AgentsClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_DefaultScopes) [AgentsClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ServiceMetadata) [AgentsClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_CreateAsync_System_Threading_CancellationToken_) [AgentsClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_Create) [AgentsClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ShutdownDefaultChannelsAsync) [AgentsClient.GetAgentAsync(GetAgentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_GetAgentAsync_Google_Cloud_Dialogflow_V2Beta1_GetAgentRequest_System_Threading_CancellationToken_) [AgentsClient.GetAgent(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_GetAgent_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetAgentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_GetAgentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetAgentAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_GetAgentAsync_System_String_System_Threading_CancellationToken_) [AgentsClient.GetAgent(ProjectName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_GetAgent_Google_Api_Gax_ResourceNames_ProjectName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetAgentAsync(ProjectName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_GetAgentAsync_Google_Api_Gax_ResourceNames_ProjectName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetAgentAsync(ProjectName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_GetAgentAsync_Google_Api_Gax_ResourceNames_ProjectName_System_Threading_CancellationToken_) [AgentsClient.GetAgent(LocationName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_GetAgent_Google_Api_Gax_ResourceNames_LocationName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetAgentAsync(LocationName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_GetAgentAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetAgentAsync(LocationName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_GetAgentAsync_Google_Api_Gax_ResourceNames_LocationName_System_Threading_CancellationToken_) [AgentsClient.SetAgentAsync(SetAgentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_SetAgentAsync_Google_Cloud_Dialogflow_V2Beta1_SetAgentRequest_System_Threading_CancellationToken_) [AgentsClient.SetAgent(Agent, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_SetAgent_Google_Cloud_Dialogflow_V2Beta1_Agent_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.SetAgentAsync(Agent, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_SetAgentAsync_Google_Cloud_Dialogflow_V2Beta1_Agent_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.SetAgentAsync(Agent, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_SetAgentAsync_Google_Cloud_Dialogflow_V2Beta1_Agent_System_Threading_CancellationToken_) [AgentsClient.DeleteAgentAsync(DeleteAgentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_DeleteAgentAsync_Google_Cloud_Dialogflow_V2Beta1_DeleteAgentRequest_System_Threading_CancellationToken_) [AgentsClient.DeleteAgent(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_DeleteAgent_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.DeleteAgentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_DeleteAgentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.DeleteAgentAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_DeleteAgentAsync_System_String_System_Threading_CancellationToken_) [AgentsClient.DeleteAgent(ProjectName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_DeleteAgent_Google_Api_Gax_ResourceNames_ProjectName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.DeleteAgentAsync(ProjectName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_DeleteAgentAsync_Google_Api_Gax_ResourceNames_ProjectName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.DeleteAgentAsync(ProjectName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_DeleteAgentAsync_Google_Api_Gax_ResourceNames_ProjectName_System_Threading_CancellationToken_) [AgentsClient.DeleteAgent(LocationName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_DeleteAgent_Google_Api_Gax_ResourceNames_LocationName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.DeleteAgentAsync(LocationName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_DeleteAgentAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.DeleteAgentAsync(LocationName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_DeleteAgentAsync_Google_Api_Gax_ResourceNames_LocationName_System_Threading_CancellationToken_) [AgentsClient.SearchAgents(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_SearchAgents_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.SearchAgentsAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_SearchAgentsAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.SearchAgents(ProjectName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_SearchAgents_Google_Api_Gax_ResourceNames_ProjectName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.SearchAgentsAsync(ProjectName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_SearchAgentsAsync_Google_Api_Gax_ResourceNames_ProjectName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.SearchAgents(LocationName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_SearchAgents_Google_Api_Gax_ResourceNames_LocationName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.SearchAgentsAsync(LocationName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_SearchAgentsAsync_Google_Api_Gax_ResourceNames_LocationName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.TrainAgentAsync(TrainAgentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_TrainAgentAsync_Google_Cloud_Dialogflow_V2Beta1_TrainAgentRequest_System_Threading_CancellationToken_) [AgentsClient.PollOnceTrainAgent(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_PollOnceTrainAgent_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.PollOnceTrainAgentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_PollOnceTrainAgentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.TrainAgent(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_TrainAgent_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.TrainAgentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_TrainAgentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.TrainAgentAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_TrainAgentAsync_System_String_System_Threading_CancellationToken_) [AgentsClient.TrainAgent(ProjectName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_TrainAgent_Google_Api_Gax_ResourceNames_ProjectName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.TrainAgentAsync(ProjectName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_TrainAgentAsync_Google_Api_Gax_ResourceNames_ProjectName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.TrainAgentAsync(ProjectName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_TrainAgentAsync_Google_Api_Gax_ResourceNames_ProjectName_System_Threading_CancellationToken_) [AgentsClient.TrainAgent(LocationName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_TrainAgent_Google_Api_Gax_ResourceNames_LocationName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.TrainAgentAsync(LocationName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_TrainAgentAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.TrainAgentAsync(LocationName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_TrainAgentAsync_Google_Api_Gax_ResourceNames_LocationName_System_Threading_CancellationToken_) [AgentsClient.ExportAgentAsync(ExportAgentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ExportAgentAsync_Google_Cloud_Dialogflow_V2Beta1_ExportAgentRequest_System_Threading_CancellationToken_) [AgentsClient.PollOnceExportAgent(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_PollOnceExportAgent_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.PollOnceExportAgentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_PollOnceExportAgentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.ExportAgent(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ExportAgent_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.ExportAgentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ExportAgentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.ExportAgentAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ExportAgentAsync_System_String_System_Threading_CancellationToken_) [AgentsClient.ExportAgent(ProjectName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ExportAgent_Google_Api_Gax_ResourceNames_ProjectName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.ExportAgentAsync(ProjectName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ExportAgentAsync_Google_Api_Gax_ResourceNames_ProjectName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.ExportAgentAsync(ProjectName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ExportAgentAsync_Google_Api_Gax_ResourceNames_ProjectName_System_Threading_CancellationToken_) [AgentsClient.ExportAgent(LocationName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ExportAgent_Google_Api_Gax_ResourceNames_LocationName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.ExportAgentAsync(LocationName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ExportAgentAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.ExportAgentAsync(LocationName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ExportAgentAsync_Google_Api_Gax_ResourceNames_LocationName_System_Threading_CancellationToken_) [AgentsClient.ImportAgentAsync(ImportAgentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ImportAgentAsync_Google_Cloud_Dialogflow_V2Beta1_ImportAgentRequest_System_Threading_CancellationToken_) [AgentsClient.PollOnceImportAgent(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_PollOnceImportAgent_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.PollOnceImportAgentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_PollOnceImportAgentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.RestoreAgentAsync(RestoreAgentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_RestoreAgentAsync_Google_Cloud_Dialogflow_V2Beta1_RestoreAgentRequest_System_Threading_CancellationToken_) [AgentsClient.PollOnceRestoreAgent(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_PollOnceRestoreAgent_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.PollOnceRestoreAgentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_PollOnceRestoreAgentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetValidationResultAsync(GetValidationResultRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_GetValidationResultAsync_Google_Cloud_Dialogflow_V2Beta1_GetValidationResultRequest_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.V2Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1)

## Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

## Remarks

Service for managing \[Agents\]\[google.cloud.dialogflow.v2beta1.Agent\].

## Constructors

### AgentsClientImpl(AgentsClient, AgentsSettings, ILogger)

    public AgentsClientImpl(Agents.AgentsClient grpcClient, AgentsSettings settings, ILogger logger)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `grpcClient` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Agentshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Agents.AgentsClient` The underlying gRPC client. |
| `settings` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsSettings` The base [AgentsSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsSettings) 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

### ExportAgentOperationsClient

    public override OperationsClient ExportAgentOperationsClient { get; }

The long-running operations client for `ExportAgent`.

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

**Overrides** [AgentsClient.ExportAgentOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ExportAgentOperationsClient)

### GrpcClient

    public override Agents.AgentsClient GrpcClient { get; }

The underlying gRPC Agents client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Agentshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Agents.AgentsClient` |   |

**Overrides** [AgentsClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_GrpcClient)

### ImportAgentOperationsClient

    public override OperationsClient ImportAgentOperationsClient { get; }

The long-running operations client for `ImportAgent`.

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

**Overrides** [AgentsClient.ImportAgentOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ImportAgentOperationsClient)

### 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** [AgentsClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_LocationsClient)

### RestoreAgentOperationsClient

    public override OperationsClient RestoreAgentOperationsClient { get; }

The long-running operations client for `RestoreAgent`.

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

**Overrides** [AgentsClient.RestoreAgentOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_RestoreAgentOperationsClient)

### TrainAgentOperationsClient

    public override OperationsClient TrainAgentOperationsClient { get; }

The long-running operations client for `TrainAgent`.

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

**Overrides** [AgentsClient.TrainAgentOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_TrainAgentOperationsClient)

## Methods

### DeleteAgent(DeleteAgentRequest, CallSettings)

    public override void DeleteAgent(DeleteAgentRequest request, CallSettings callSettings = null)

Deletes the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.DeleteAgentRequest` 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. |

**Overrides** [AgentsClient.DeleteAgent(DeleteAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_DeleteAgent_Google_Cloud_Dialogflow_V2Beta1_DeleteAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteAgentAsync(DeleteAgentRequest, CallSettings)

    public override Task DeleteAgentAsync(DeleteAgentRequest request, CallSettings callSettings = null)

Deletes the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.DeleteAgentRequest` 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` | A Task containing the RPC response. |

**Overrides** [AgentsClient.DeleteAgentAsync(DeleteAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_DeleteAgentAsync_Google_Cloud_Dialogflow_V2Beta1_DeleteAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### ExportAgent(ExportAgentRequest, CallSettings)

    public override Operation<ExportAgentResponse, Struct> ExportAgent(ExportAgentRequest request, CallSettings callSettings = null)

Exports the specified agent to a ZIP file.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
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`: \[ExportAgentResponse\]\[google.cloud.dialogflow.v2beta1.ExportAgentResponse\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ExportAgentRequest` 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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ExportAgentResponsehttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | The RPC response. |

**Overrides** [AgentsClient.ExportAgent(ExportAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ExportAgent_Google_Cloud_Dialogflow_V2Beta1_ExportAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### ExportAgentAsync(ExportAgentRequest, CallSettings)

    public override Task<Operation<ExportAgentResponse, Struct>> ExportAgentAsync(ExportAgentRequest request, CallSettings callSettings = null)

Exports the specified agent to a ZIP file.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
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`: \[ExportAgentResponse\]\[google.cloud.dialogflow.v2beta1.ExportAgentResponse\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ExportAgentRequest` 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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ExportAgentResponsehttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | A Task containing the RPC response. |

**Overrides** [AgentsClient.ExportAgentAsync(ExportAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ExportAgentAsync_Google_Cloud_Dialogflow_V2Beta1_ExportAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetAgent(GetAgentRequest, CallSettings)

    public override Agent GetAgent(GetAgentRequest request, CallSettings callSettings = null)

Retrieves the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.GetAgentRequest` 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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Agent` | The RPC response. |

**Overrides** [AgentsClient.GetAgent(GetAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_GetAgent_Google_Cloud_Dialogflow_V2Beta1_GetAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetAgentAsync(GetAgentRequest, CallSettings)

    public override Task<Agent> GetAgentAsync(GetAgentRequest request, CallSettings callSettings = null)

Retrieves the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.GetAgentRequest` 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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Agent` | A Task containing the RPC response. |

**Overrides** [AgentsClient.GetAgentAsync(GetAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_GetAgentAsync_Google_Cloud_Dialogflow_V2Beta1_GetAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetValidationResult(GetValidationResultRequest, CallSettings)

    public override ValidationResult GetValidationResult(GetValidationResultRequest request, CallSettings callSettings = null)

Gets agent validation result. Agent validation is performed during
training time and is updated automatically when training is completed.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.GetValidationResultRequest` 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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ValidationResult` | The RPC response. |

**Overrides** [AgentsClient.GetValidationResult(GetValidationResultRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_GetValidationResult_Google_Cloud_Dialogflow_V2Beta1_GetValidationResultRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetValidationResultAsync(GetValidationResultRequest, CallSettings)

    public override Task<ValidationResult> GetValidationResultAsync(GetValidationResultRequest request, CallSettings callSettings = null)

Gets agent validation result. Agent validation is performed during
training time and is updated automatically when training is completed.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.GetValidationResultRequest` 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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ValidationResult` | A Task containing the RPC response. |

**Overrides** [AgentsClient.GetValidationResultAsync(GetValidationResultRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_GetValidationResultAsync_Google_Cloud_Dialogflow_V2Beta1_GetValidationResultRequest_Google_Api_Gax_Grpc_CallSettings_)

### ImportAgent(ImportAgentRequest, CallSettings)

    public override Operation<Empty, Struct> ImportAgent(ImportAgentRequest request, CallSettings callSettings = null)

Imports the specified agent from a ZIP file.

Uploads new intents and entity types without deleting the existing ones.
Intents and entity types with the same name are replaced with the new
versions from
\[ImportAgentRequest\]\[google.cloud.dialogflow.v2beta1.ImportAgentRequest\].
After the import, the imported draft agent will be trained automatically
(unless disabled in agent settings). However, once the import is done,
training may not be completed yet. Please call
\[TrainAgent\]\[google.cloud.dialogflow.v2beta1.Agents.TrainAgent\] and wait
for the operation it returns in order to train explicitly.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
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`: An [Empty
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

The operation only tracks when importing is complete, not when it is done
training.

Note: You should always train an agent prior to sending it queries. See the
[training
documentation](https://cloud.google.com/dialogflow/es/docs/training).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ImportAgentRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | The RPC response. |

**Overrides** [AgentsClient.ImportAgent(ImportAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ImportAgent_Google_Cloud_Dialogflow_V2Beta1_ImportAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### ImportAgentAsync(ImportAgentRequest, CallSettings)

    public override Task<Operation<Empty, Struct>> ImportAgentAsync(ImportAgentRequest request, CallSettings callSettings = null)

Imports the specified agent from a ZIP file.

Uploads new intents and entity types without deleting the existing ones.
Intents and entity types with the same name are replaced with the new
versions from
\[ImportAgentRequest\]\[google.cloud.dialogflow.v2beta1.ImportAgentRequest\].
After the import, the imported draft agent will be trained automatically
(unless disabled in agent settings). However, once the import is done,
training may not be completed yet. Please call
\[TrainAgent\]\[google.cloud.dialogflow.v2beta1.Agents.TrainAgent\] and wait
for the operation it returns in order to train explicitly.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
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`: An [Empty
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

The operation only tracks when importing is complete, not when it is done
training.

Note: You should always train an agent prior to sending it queries. See the
[training
documentation](https://cloud.google.com/dialogflow/es/docs/training).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ImportAgentRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | A Task containing the RPC response. |

**Overrides** [AgentsClient.ImportAgentAsync(ImportAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_ImportAgentAsync_Google_Cloud_Dialogflow_V2Beta1_ImportAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### RestoreAgent(RestoreAgentRequest, CallSettings)

    public override Operation<Empty, Struct> RestoreAgent(RestoreAgentRequest request, CallSettings callSettings = null)

Restores the specified agent from a ZIP file.

Replaces the current agent version with a new one. All the intents and
entity types in the older version are deleted. After the restore, the
restored draft agent will be trained automatically (unless disabled in
agent settings). However, once the restore is done, training may not be
completed yet. Please call
\[TrainAgent\]\[google.cloud.dialogflow.v2beta1.Agents.TrainAgent\] and wait
for the operation it returns in order to train explicitly.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
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`: An [Empty
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

The operation only tracks when restoring is complete, not when it is done
training.

Note: You should always train an agent prior to sending it queries. See the
[training
documentation](https://cloud.google.com/dialogflow/es/docs/training).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.RestoreAgentRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | The RPC response. |

**Overrides** [AgentsClient.RestoreAgent(RestoreAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_RestoreAgent_Google_Cloud_Dialogflow_V2Beta1_RestoreAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### RestoreAgentAsync(RestoreAgentRequest, CallSettings)

    public override Task<Operation<Empty, Struct>> RestoreAgentAsync(RestoreAgentRequest request, CallSettings callSettings = null)

Restores the specified agent from a ZIP file.

Replaces the current agent version with a new one. All the intents and
entity types in the older version are deleted. After the restore, the
restored draft agent will be trained automatically (unless disabled in
agent settings). However, once the restore is done, training may not be
completed yet. Please call
\[TrainAgent\]\[google.cloud.dialogflow.v2beta1.Agents.TrainAgent\] and wait
for the operation it returns in order to train explicitly.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
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`: An [Empty
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

The operation only tracks when restoring is complete, not when it is done
training.

Note: You should always train an agent prior to sending it queries. See the
[training
documentation](https://cloud.google.com/dialogflow/es/docs/training).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.RestoreAgentRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | A Task containing the RPC response. |

**Overrides** [AgentsClient.RestoreAgentAsync(RestoreAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_RestoreAgentAsync_Google_Cloud_Dialogflow_V2Beta1_RestoreAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### SearchAgents(SearchAgentsRequest, CallSettings)

    public override PagedEnumerable<SearchAgentsResponse, Agent> SearchAgents(SearchAgentsRequest request, CallSettings callSettings = null)

Returns the list of agents.
Since there is at most one conversational agent per project, this method is
useful primarily for listing all agents across projects the caller has
access to. One can achieve that with a wildcard project collection id "-".
Refer to [List
Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SearchAgentsRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SearchAgentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Agent` | A pageable sequence of [Agent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Agent) resources. |

**Overrides** [AgentsClient.SearchAgents(SearchAgentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_SearchAgents_Google_Cloud_Dialogflow_V2Beta1_SearchAgentsRequest_Google_Api_Gax_Grpc_CallSettings_)

### SearchAgentsAsync(SearchAgentsRequest, CallSettings)

    public override PagedAsyncEnumerable<SearchAgentsResponse, Agent> SearchAgentsAsync(SearchAgentsRequest request, CallSettings callSettings = null)

Returns the list of agents.
Since there is at most one conversational agent per project, this method is
useful primarily for listing all agents across projects the caller has
access to. One can achieve that with a wildcard project collection id "-".
Refer to [List
Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SearchAgentsRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SearchAgentsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Agent` | A pageable asynchronous sequence of [Agent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Agent) resources. |

**Overrides** [AgentsClient.SearchAgentsAsync(SearchAgentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_SearchAgentsAsync_Google_Cloud_Dialogflow_V2Beta1_SearchAgentsRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetAgent(SetAgentRequest, CallSettings)

    public override Agent SetAgent(SetAgentRequest request, CallSettings callSettings = null)

Creates/updates the specified agent.

Note: You should always train an agent prior to sending it queries. See the
[training
documentation](https://cloud.google.com/dialogflow/es/docs/training).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SetAgentRequest` 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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Agent` | The RPC response. |

**Overrides** [AgentsClient.SetAgent(SetAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_SetAgent_Google_Cloud_Dialogflow_V2Beta1_SetAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### SetAgentAsync(SetAgentRequest, CallSettings)

    public override Task<Agent> SetAgentAsync(SetAgentRequest request, CallSettings callSettings = null)

Creates/updates the specified agent.

Note: You should always train an agent prior to sending it queries. See the
[training
documentation](https://cloud.google.com/dialogflow/es/docs/training).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.SetAgentRequest` 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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Agent` | A Task containing the RPC response. |

**Overrides** [AgentsClient.SetAgentAsync(SetAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_SetAgentAsync_Google_Cloud_Dialogflow_V2Beta1_SetAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### TrainAgent(TrainAgentRequest, CallSettings)

    public override Operation<Empty, Struct> TrainAgent(TrainAgentRequest request, CallSettings callSettings = null)

Trains the specified agent.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
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`: An [Empty
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

Note: You should always train an agent prior to sending it queries. See the
[training
documentation](https://cloud.google.com/dialogflow/es/docs/training).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.TrainAgentRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | The RPC response. |

**Overrides** [AgentsClient.TrainAgent(TrainAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_TrainAgent_Google_Cloud_Dialogflow_V2Beta1_TrainAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### TrainAgentAsync(TrainAgentRequest, CallSettings)

    public override Task<Operation<Empty, Struct>> TrainAgentAsync(TrainAgentRequest request, CallSettings callSettings = null)

Trains the specified agent.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
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`: An [Empty
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

Note: You should always train an agent prior to sending it queries. See the
[training
documentation](https://cloud.google.com/dialogflow/es/docs/training).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.TrainAgentRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | A Task containing the RPC response. |

**Overrides** [AgentsClient.TrainAgentAsync(TrainAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentsClient#Google_Cloud_Dialogflow_V2Beta1_AgentsClient_TrainAgentAsync_Google_Cloud_Dialogflow_V2Beta1_TrainAgentRequest_Google_Api_Gax_Grpc_CallSettings_)