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

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

            // End snippet
        }