Example #1
0
        /// <summary>Snippet for GetFlowValidationResultAsync</summary>
        public async Task GetFlowValidationResultAsync()
        {
            // Snippet: GetFlowValidationResultAsync(string, CallSettings)
            // Additional: GetFlowValidationResultAsync(string, CancellationToken)
            // Create client
            FlowsClient flowsClient = await FlowsClient.CreateAsync();

            // Initialize request argument(s)
            string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/validationResult";
            // Make the request
            FlowValidationResult response = await flowsClient.GetFlowValidationResultAsync(name);

            // End snippet
        }
Example #2
0
        /// <summary>Snippet for GetFlowValidationResultAsync</summary>
        public async Task GetFlowValidationResultResourceNamesAsync()
        {
            // Snippet: GetFlowValidationResultAsync(FlowValidationResultName, CallSettings)
            // Additional: GetFlowValidationResultAsync(FlowValidationResultName, CancellationToken)
            // Create client
            FlowsClient flowsClient = await FlowsClient.CreateAsync();

            // Initialize request argument(s)
            FlowValidationResultName name = FlowValidationResultName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]");
            // Make the request
            FlowValidationResult response = await flowsClient.GetFlowValidationResultAsync(name);

            // End snippet
        }
Example #3
0
        /// <summary>Snippet for GetFlowValidationResultAsync</summary>
        public async Task GetFlowValidationResultRequestObjectAsync()
        {
            // Snippet: GetFlowValidationResultAsync(GetFlowValidationResultRequest, CallSettings)
            // Additional: GetFlowValidationResultAsync(GetFlowValidationResultRequest, CancellationToken)
            // Create client
            FlowsClient flowsClient = await FlowsClient.CreateAsync();

            // Initialize request argument(s)
            GetFlowValidationResultRequest request = new GetFlowValidationResultRequest
            {
                FlowValidationResultName = FlowValidationResultName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"),
                LanguageCode             = "",
            };
            // Make the request
            FlowValidationResult response = await flowsClient.GetFlowValidationResultAsync(request);

            // End snippet
        }