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

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

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

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

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

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

            // End snippet
        }