/// <summary>Snippet for ValidateAgent</summary>
 public void ValidateAgentRequestObject()
 {
     // Snippet: ValidateAgent(ValidateAgentRequest, CallSettings)
     // Create client
     AgentsClient agentsClient = AgentsClient.Create();
     // Initialize request argument(s)
     ValidateAgentRequest request = new ValidateAgentRequest
     {
         AgentName    = AgentName.FromProjectLocationAgent("[PROJECT]", "[LOCATION]", "[AGENT]"),
         LanguageCode = "",
     };
     // Make the request
     AgentValidationResult response = agentsClient.ValidateAgent(request);
     // End snippet
 }
        /// <summary>Snippet for ValidateAgentAsync</summary>
        public async Task ValidateAgentRequestObjectAsync()
        {
            // Snippet: ValidateAgentAsync(ValidateAgentRequest, CallSettings)
            // Additional: ValidateAgentAsync(ValidateAgentRequest, CancellationToken)
            // Create client
            AgentsClient agentsClient = await AgentsClient.CreateAsync();

            // Initialize request argument(s)
            ValidateAgentRequest request = new ValidateAgentRequest
            {
                AgentName    = AgentName.FromProjectLocationAgent("[PROJECT]", "[LOCATION]", "[AGENT]"),
                LanguageCode = "",
            };
            // Make the request
            AgentValidationResult response = await agentsClient.ValidateAgentAsync(request);

            // End snippet
        }