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 sealed class AgentsClientImpl : AgentsClient

Reference documentation and code samples for the Dialogflow v3 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.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt) \> AgentsClientImpl

## Inherited Members

[AgentsClient.DefaultEndpoint](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_DefaultEndpoint) [AgentsClient.DefaultScopes](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_DefaultScopes) [AgentsClient.ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_ServiceMetadata) [AgentsClient.CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_CreateAsync_System_Threading_CancellationToken_) [AgentsClient.Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_Create) [AgentsClient.ShutdownDefaultChannelsAsync()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_ShutdownDefaultChannelsAsync) [AgentsClient.ListAgents(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_ListAgents_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.ListAgentsAsync(string, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_ListAgentsAsync_System_String_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.ListAgents(LocationName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_ListAgents_Google_Api_Gax_ResourceNames_LocationName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.ListAgentsAsync(LocationName, string, int?, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_ListAgentsAsync_Google_Api_Gax_ResourceNames_LocationName_System_String_System_Nullable_System_Int32__Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetAgentAsync(GetAgentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgentAsync_Google_Cloud_Dialogflow_Cx_V3_GetAgentRequest_System_Threading_CancellationToken_) [AgentsClient.GetAgent(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgent_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetAgentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetAgentAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgentAsync_System_String_System_Threading_CancellationToken_) [AgentsClient.GetAgent(AgentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgent_Google_Cloud_Dialogflow_Cx_V3_AgentName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetAgentAsync(AgentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgentAsync_Google_Cloud_Dialogflow_Cx_V3_AgentName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetAgentAsync(AgentName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgentAsync_Google_Cloud_Dialogflow_Cx_V3_AgentName_System_Threading_CancellationToken_) [AgentsClient.CreateAgentAsync(CreateAgentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_CreateAgentAsync_Google_Cloud_Dialogflow_Cx_V3_CreateAgentRequest_System_Threading_CancellationToken_) [AgentsClient.CreateAgent(string, Agent, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_CreateAgent_System_String_Google_Cloud_Dialogflow_Cx_V3_Agent_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.CreateAgentAsync(string, Agent, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_CreateAgentAsync_System_String_Google_Cloud_Dialogflow_Cx_V3_Agent_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.CreateAgentAsync(string, Agent, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_CreateAgentAsync_System_String_Google_Cloud_Dialogflow_Cx_V3_Agent_System_Threading_CancellationToken_) [AgentsClient.CreateAgent(LocationName, Agent, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_CreateAgent_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_Dialogflow_Cx_V3_Agent_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.CreateAgentAsync(LocationName, Agent, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_CreateAgentAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_Dialogflow_Cx_V3_Agent_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.CreateAgentAsync(LocationName, Agent, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_CreateAgentAsync_Google_Api_Gax_ResourceNames_LocationName_Google_Cloud_Dialogflow_Cx_V3_Agent_System_Threading_CancellationToken_) [AgentsClient.UpdateAgentAsync(UpdateAgentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_UpdateAgentAsync_Google_Cloud_Dialogflow_Cx_V3_UpdateAgentRequest_System_Threading_CancellationToken_) [AgentsClient.UpdateAgent(Agent, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_UpdateAgent_Google_Cloud_Dialogflow_Cx_V3_Agent_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.UpdateAgentAsync(Agent, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_UpdateAgentAsync_Google_Cloud_Dialogflow_Cx_V3_Agent_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.UpdateAgentAsync(Agent, FieldMask, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_UpdateAgentAsync_Google_Cloud_Dialogflow_Cx_V3_Agent_Google_Protobuf_WellKnownTypes_FieldMask_System_Threading_CancellationToken_) [AgentsClient.DeleteAgentAsync(DeleteAgentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_DeleteAgentAsync_Google_Cloud_Dialogflow_Cx_V3_DeleteAgentRequest_System_Threading_CancellationToken_) [AgentsClient.DeleteAgent(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_DeleteAgent_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.DeleteAgentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_DeleteAgentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.DeleteAgentAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_DeleteAgentAsync_System_String_System_Threading_CancellationToken_) [AgentsClient.DeleteAgent(AgentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_DeleteAgent_Google_Cloud_Dialogflow_Cx_V3_AgentName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.DeleteAgentAsync(AgentName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_DeleteAgentAsync_Google_Cloud_Dialogflow_Cx_V3_AgentName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.DeleteAgentAsync(AgentName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_DeleteAgentAsync_Google_Cloud_Dialogflow_Cx_V3_AgentName_System_Threading_CancellationToken_) [AgentsClient.ExportAgentAsync(ExportAgentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_ExportAgentAsync_Google_Cloud_Dialogflow_Cx_V3_ExportAgentRequest_System_Threading_CancellationToken_) [AgentsClient.PollOnceExportAgent(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_PollOnceExportAgent_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.PollOnceExportAgentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_PollOnceExportAgentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.RestoreAgentAsync(RestoreAgentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_RestoreAgentAsync_Google_Cloud_Dialogflow_Cx_V3_RestoreAgentRequest_System_Threading_CancellationToken_) [AgentsClient.PollOnceRestoreAgent(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_PollOnceRestoreAgent_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.PollOnceRestoreAgentAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_PollOnceRestoreAgentAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.ValidateAgentAsync(ValidateAgentRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_ValidateAgentAsync_Google_Cloud_Dialogflow_Cx_V3_ValidateAgentRequest_System_Threading_CancellationToken_) [AgentsClient.GetAgentValidationResultAsync(GetAgentValidationResultRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgentValidationResultAsync_Google_Cloud_Dialogflow_Cx_V3_GetAgentValidationResultRequest_System_Threading_CancellationToken_) [AgentsClient.GetAgentValidationResult(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgentValidationResult_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetAgentValidationResultAsync(string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgentValidationResultAsync_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetAgentValidationResultAsync(string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgentValidationResultAsync_System_String_System_Threading_CancellationToken_) [AgentsClient.GetAgentValidationResult(AgentValidationResultName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgentValidationResult_Google_Cloud_Dialogflow_Cx_V3_AgentValidationResultName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetAgentValidationResultAsync(AgentValidationResultName, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgentValidationResultAsync_Google_Cloud_Dialogflow_Cx_V3_AgentValidationResultName_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetAgentValidationResultAsync(AgentValidationResultName, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgentValidationResultAsync_Google_Cloud_Dialogflow_Cx_V3_AgentValidationResultName_System_Threading_CancellationToken_) [AgentsClient.GetGenerativeSettingsAsync(GetGenerativeSettingsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetGenerativeSettingsAsync_Google_Cloud_Dialogflow_Cx_V3_GetGenerativeSettingsRequest_System_Threading_CancellationToken_) [AgentsClient.GetGenerativeSettings(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetGenerativeSettings_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetGenerativeSettingsAsync(string, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetGenerativeSettingsAsync_System_String_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetGenerativeSettingsAsync(string, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetGenerativeSettingsAsync_System_String_System_String_System_Threading_CancellationToken_) [AgentsClient.GetGenerativeSettings(AgentGenerativeSettingsName, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetGenerativeSettings_Google_Cloud_Dialogflow_Cx_V3_AgentGenerativeSettingsName_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetGenerativeSettingsAsync(AgentGenerativeSettingsName, string, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetGenerativeSettingsAsync_Google_Cloud_Dialogflow_Cx_V3_AgentGenerativeSettingsName_System_String_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.GetGenerativeSettingsAsync(AgentGenerativeSettingsName, string, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetGenerativeSettingsAsync_Google_Cloud_Dialogflow_Cx_V3_AgentGenerativeSettingsName_System_String_System_Threading_CancellationToken_) [AgentsClient.UpdateGenerativeSettingsAsync(UpdateGenerativeSettingsRequest, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_UpdateGenerativeSettingsAsync_Google_Cloud_Dialogflow_Cx_V3_UpdateGenerativeSettingsRequest_System_Threading_CancellationToken_) [AgentsClient.UpdateGenerativeSettings(GenerativeSettings, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_UpdateGenerativeSettings_Google_Cloud_Dialogflow_Cx_V3_GenerativeSettings_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.UpdateGenerativeSettingsAsync(GenerativeSettings, FieldMask, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_UpdateGenerativeSettingsAsync_Google_Cloud_Dialogflow_Cx_V3_GenerativeSettings_Google_Protobuf_WellKnownTypes_FieldMask_Google_Api_Gax_Grpc_CallSettings_) [AgentsClient.UpdateGenerativeSettingsAsync(GenerativeSettings, FieldMask, CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_UpdateGenerativeSettingsAsync_Google_Cloud_Dialogflow_Cx_V3_GenerativeSettings_Google_Protobuf_WellKnownTypes_FieldMask_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.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

## Remarks

Service for managing \[Agents\]\[google.cloud.dialogflow.cx.v3.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` | `AgentsAgentsClient` The underlying gRPC client. |
| `settings` | `AgentsSettings` The base [AgentsSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsSettings.md.txt) used within this client. |
| `logger` | `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** |
| `OperationsClient` |   |

**Overrides** [AgentsClient.ExportAgentOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_ExportAgentOperationsClient)

### GrpcClient

    public override Agents.AgentsClient GrpcClient { get; }

The underlying gRPC Agents client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AgentsAgentsClient` |   |

**Overrides** [AgentsClient.GrpcClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GrpcClient)

### LocationsClient

    public override LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.md.txt) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LocationsClient` |   |

**Overrides** [AgentsClient.LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_LocationsClient)

### RestoreAgentOperationsClient

    public override OperationsClient RestoreAgentOperationsClient { get; }

The long-running operations client for `RestoreAgent`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OperationsClient` |   |

**Overrides** [AgentsClient.RestoreAgentOperationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_RestoreAgentOperationsClient)

## Methods

### CreateAgent(CreateAgentRequest, CallSettings)

    public override Agent CreateAgent(CreateAgentRequest request, CallSettings callSettings = null)

Creates an agent in the specified location.

Note: You should always train flows prior to sending them queries. See the
[training
documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateAgentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Agent` | The RPC response. |

**Overrides** [AgentsClient.CreateAgent(CreateAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_CreateAgent_Google_Cloud_Dialogflow_Cx_V3_CreateAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### CreateAgentAsync(CreateAgentRequest, CallSettings)

    public override Task<Agent> CreateAgentAsync(CreateAgentRequest request, CallSettings callSettings = null)

Creates an agent in the specified location.

Note: You should always train flows prior to sending them queries. See the
[training
documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateAgentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskAgent` | A Task containing the RPC response. |

**Overrides** [AgentsClient.CreateAgentAsync(CreateAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_CreateAgentAsync_Google_Cloud_Dialogflow_Cx_V3_CreateAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### DeleteAgent(DeleteAgentRequest, CallSettings)

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

Deletes the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteAgentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` 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.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_DeleteAgent_Google_Cloud_Dialogflow_Cx_V3_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` | `DeleteAgentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Task` | A Task containing the RPC response. |

**Overrides** [AgentsClient.DeleteAgentAsync(DeleteAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_DeleteAgentAsync_Google_Cloud_Dialogflow_Cx_V3_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 binary file.

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`: \[ExportAgentResponse\]\[google.cloud.dialogflow.cx.v3.ExportAgentResponse\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ExportAgentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationExportAgentResponseStruct` | The RPC response. |

**Overrides** [AgentsClient.ExportAgent(ExportAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_ExportAgent_Google_Cloud_Dialogflow_Cx_V3_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 binary file.

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`: \[ExportAgentResponse\]\[google.cloud.dialogflow.cx.v3.ExportAgentResponse\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ExportAgentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationExportAgentResponseStruct` | A Task containing the RPC response. |

**Overrides** [AgentsClient.ExportAgentAsync(ExportAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_ExportAgentAsync_Google_Cloud_Dialogflow_Cx_V3_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` | `GetAgentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Agent` | The RPC response. |

**Overrides** [AgentsClient.GetAgent(GetAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgent_Google_Cloud_Dialogflow_Cx_V3_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` | `GetAgentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskAgent` | A Task containing the RPC response. |

**Overrides** [AgentsClient.GetAgentAsync(GetAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgentAsync_Google_Cloud_Dialogflow_Cx_V3_GetAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetAgentValidationResult(GetAgentValidationResultRequest, CallSettings)

    public override AgentValidationResult GetAgentValidationResult(GetAgentValidationResultRequest request, CallSettings callSettings = null)

Gets the latest agent validation result. Agent validation is performed
when ValidateAgent is called.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetAgentValidationResultRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AgentValidationResult` | The RPC response. |

**Overrides** [AgentsClient.GetAgentValidationResult(GetAgentValidationResultRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgentValidationResult_Google_Cloud_Dialogflow_Cx_V3_GetAgentValidationResultRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetAgentValidationResultAsync(GetAgentValidationResultRequest, CallSettings)

    public override Task<AgentValidationResult> GetAgentValidationResultAsync(GetAgentValidationResultRequest request, CallSettings callSettings = null)

Gets the latest agent validation result. Agent validation is performed
when ValidateAgent is called.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetAgentValidationResultRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskAgentValidationResult` | A Task containing the RPC response. |

**Overrides** [AgentsClient.GetAgentValidationResultAsync(GetAgentValidationResultRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetAgentValidationResultAsync_Google_Cloud_Dialogflow_Cx_V3_GetAgentValidationResultRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetGenerativeSettings(GetGenerativeSettingsRequest, CallSettings)

    public override GenerativeSettings GetGenerativeSettings(GetGenerativeSettingsRequest request, CallSettings callSettings = null)

Gets the generative settings for the agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetGenerativeSettingsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GenerativeSettings` | The RPC response. |

**Overrides** [AgentsClient.GetGenerativeSettings(GetGenerativeSettingsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetGenerativeSettings_Google_Cloud_Dialogflow_Cx_V3_GetGenerativeSettingsRequest_Google_Api_Gax_Grpc_CallSettings_)

### GetGenerativeSettingsAsync(GetGenerativeSettingsRequest, CallSettings)

    public override Task<GenerativeSettings> GetGenerativeSettingsAsync(GetGenerativeSettingsRequest request, CallSettings callSettings = null)

Gets the generative settings for the agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetGenerativeSettingsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskGenerativeSettings` | A Task containing the RPC response. |

**Overrides** [AgentsClient.GetGenerativeSettingsAsync(GetGenerativeSettingsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_GetGenerativeSettingsAsync_Google_Cloud_Dialogflow_Cx_V3_GetGenerativeSettingsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListAgents(ListAgentsRequest, CallSettings)

    public override PagedEnumerable<ListAgentsResponse, Agent> ListAgents(ListAgentsRequest request, CallSettings callSettings = null)

Returns the list of all agents in the specified location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListAgentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedEnumerableListAgentsResponseAgent` | A pageable sequence of [Agent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Agent.md.txt) resources. |

**Overrides** [AgentsClient.ListAgents(ListAgentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_ListAgents_Google_Cloud_Dialogflow_Cx_V3_ListAgentsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ListAgentsAsync(ListAgentsRequest, CallSettings)

    public override PagedAsyncEnumerable<ListAgentsResponse, Agent> ListAgentsAsync(ListAgentsRequest request, CallSettings callSettings = null)

Returns the list of all agents in the specified location.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListAgentsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `PagedAsyncEnumerableListAgentsResponseAgent` | A pageable asynchronous sequence of [Agent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Agent.md.txt) resources. |

**Overrides** [AgentsClient.ListAgentsAsync(ListAgentsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_ListAgentsAsync_Google_Cloud_Dialogflow_Cx_V3_ListAgentsRequest_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 binary file.

Replaces the current agent with a new one. Note that all existing resources
in agent (e.g. intents, entity types, flows) will be removed.

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`: An [Empty
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

Note: You should always train flows prior to sending them queries. See the
[training
documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RestoreAgentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `OperationEmptyStruct` | The RPC response. |

**Overrides** [AgentsClient.RestoreAgent(RestoreAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_RestoreAgent_Google_Cloud_Dialogflow_Cx_V3_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 binary file.

Replaces the current agent with a new one. Note that all existing resources
in agent (e.g. intents, entity types, flows) will be removed.

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`: An [Empty
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

Note: You should always train flows prior to sending them queries. See the
[training
documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `RestoreAgentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperationEmptyStruct` | A Task containing the RPC response. |

**Overrides** [AgentsClient.RestoreAgentAsync(RestoreAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_RestoreAgentAsync_Google_Cloud_Dialogflow_Cx_V3_RestoreAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateAgent(UpdateAgentRequest, CallSettings)

    public override Agent UpdateAgent(UpdateAgentRequest request, CallSettings callSettings = null)

Updates the specified agent.

Note: You should always train flows prior to sending them queries. See the
[training
documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateAgentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Agent` | The RPC response. |

**Overrides** [AgentsClient.UpdateAgent(UpdateAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_UpdateAgent_Google_Cloud_Dialogflow_Cx_V3_UpdateAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateAgentAsync(UpdateAgentRequest, CallSettings)

    public override Task<Agent> UpdateAgentAsync(UpdateAgentRequest request, CallSettings callSettings = null)

Updates the specified agent.

Note: You should always train flows prior to sending them queries. See the
[training
documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateAgentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskAgent` | A Task containing the RPC response. |

**Overrides** [AgentsClient.UpdateAgentAsync(UpdateAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_UpdateAgentAsync_Google_Cloud_Dialogflow_Cx_V3_UpdateAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateGenerativeSettings(UpdateGenerativeSettingsRequest, CallSettings)

    public override GenerativeSettings UpdateGenerativeSettings(UpdateGenerativeSettingsRequest request, CallSettings callSettings = null)

Updates the generative settings for the agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateGenerativeSettingsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `GenerativeSettings` | The RPC response. |

**Overrides** [AgentsClient.UpdateGenerativeSettings(UpdateGenerativeSettingsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_UpdateGenerativeSettings_Google_Cloud_Dialogflow_Cx_V3_UpdateGenerativeSettingsRequest_Google_Api_Gax_Grpc_CallSettings_)

### UpdateGenerativeSettingsAsync(UpdateGenerativeSettingsRequest, CallSettings)

    public override Task<GenerativeSettings> UpdateGenerativeSettingsAsync(UpdateGenerativeSettingsRequest request, CallSettings callSettings = null)

Updates the generative settings for the agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UpdateGenerativeSettingsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskGenerativeSettings` | A Task containing the RPC response. |

**Overrides** [AgentsClient.UpdateGenerativeSettingsAsync(UpdateGenerativeSettingsRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_UpdateGenerativeSettingsAsync_Google_Cloud_Dialogflow_Cx_V3_UpdateGenerativeSettingsRequest_Google_Api_Gax_Grpc_CallSettings_)

### ValidateAgent(ValidateAgentRequest, CallSettings)

    public override AgentValidationResult ValidateAgent(ValidateAgentRequest request, CallSettings callSettings = null)

Validates the specified agent and creates or updates validation results.
The agent in draft version is validated. Please call this API after the
training is completed to get the complete validation results.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ValidateAgentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `AgentValidationResult` | The RPC response. |

**Overrides** [AgentsClient.ValidateAgent(ValidateAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_ValidateAgent_Google_Cloud_Dialogflow_Cx_V3_ValidateAgentRequest_Google_Api_Gax_Grpc_CallSettings_)

### ValidateAgentAsync(ValidateAgentRequest, CallSettings)

    public override Task<AgentValidationResult> ValidateAgentAsync(ValidateAgentRequest request, CallSettings callSettings = null)

Validates the specified agent and creates or updates validation results.
The agent in draft version is validated. Please call this API after the
training is completed to get the complete validation results.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `ValidateAgentRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `CallSettings` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskAgentValidationResult` | A Task containing the RPC response. |

**Overrides** [AgentsClient.ValidateAgentAsync(ValidateAgentRequest, CallSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.AgentsClient.md.txt#Google_Cloud_Dialogflow_Cx_V3_AgentsClient_ValidateAgentAsync_Google_Cloud_Dialogflow_Cx_V3_ValidateAgentRequest_Google_Api_Gax_Grpc_CallSettings_)