コード例 #1
0
        /// <summary>Snippet for GetAgentValidationResultAsync</summary>
        public async Task GetAgentValidationResultResourceNamesAsync()
        {
            // Snippet: GetAgentValidationResultAsync(AgentValidationResultName, CallSettings)
            // Additional: GetAgentValidationResultAsync(AgentValidationResultName, CancellationToken)
            // Create client
            AgentsClient agentsClient = await AgentsClient.CreateAsync();

            // Initialize request argument(s)
            AgentValidationResultName name = AgentValidationResultName.FromProjectLocationAgent("[PROJECT]", "[LOCATION]", "[AGENT]");
            // Make the request
            AgentValidationResult response = await agentsClient.GetAgentValidationResultAsync(name);

            // End snippet
        }
コード例 #2
0
 /// <summary>Snippet for GetAgentValidationResult</summary>
 public void GetAgentValidationResultRequestObject()
 {
     // Snippet: GetAgentValidationResult(GetAgentValidationResultRequest, CallSettings)
     // Create client
     AgentsClient agentsClient = AgentsClient.Create();
     // Initialize request argument(s)
     GetAgentValidationResultRequest request = new GetAgentValidationResultRequest
     {
         AgentValidationResultName = AgentValidationResultName.FromProjectLocationAgent("[PROJECT]", "[LOCATION]", "[AGENT]"),
         LanguageCode = "",
     };
     // Make the request
     AgentValidationResult response = agentsClient.GetAgentValidationResult(request);
     // End snippet
 }
コード例 #3
0
        /// <summary>Snippet for GetAgentValidationResultAsync</summary>
        public async Task GetAgentValidationResultRequestObjectAsync()
        {
            // Snippet: GetAgentValidationResultAsync(GetAgentValidationResultRequest, CallSettings)
            // Additional: GetAgentValidationResultAsync(GetAgentValidationResultRequest, CancellationToken)
            // Create client
            AgentsClient agentsClient = await AgentsClient.CreateAsync();

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

            // End snippet
        }