/// <summary>Snippet for DeleteIntentAsync</summary>
        public async Task DeleteIntentResourceNamesAsync()
        {
            // Snippet: DeleteIntentAsync(IntentName, CallSettings)
            // Additional: DeleteIntentAsync(IntentName, CancellationToken)
            // Create client
            IntentsClient intentsClient = await IntentsClient.CreateAsync();

            // Initialize request argument(s)
            IntentName name = IntentName.FromProjectLocationAgentIntent("[PROJECT]", "[LOCATION]", "[AGENT]", "[INTENT]");
            // Make the request
            await intentsClient.DeleteIntentAsync(name);

            // End snippet
        }
Exemple #2
0
        /// <summary>Snippet for DeleteIntentAsync</summary>
        public async Task DeleteIntentAsync()
        {
            // Snippet: DeleteIntentAsync(IntentName,CallSettings)
            // Additional: DeleteIntentAsync(IntentName,CancellationToken)
            // Create client
            IntentsClient intentsClient = await IntentsClient.CreateAsync();

            // Initialize request argument(s)
            IntentName name = new IntentName("[PROJECT]", "[INTENT]");
            // Make the request
            await intentsClient.DeleteIntentAsync(name);

            // End snippet
        }
        /// <summary>Snippet for DeleteIntentAsync</summary>
        public async Task DeleteIntentAsync()
        {
            // Snippet: DeleteIntentAsync(string, CallSettings)
            // Additional: DeleteIntentAsync(string, CancellationToken)
            // Create client
            IntentsClient intentsClient = await IntentsClient.CreateAsync();

            // Initialize request argument(s)
            string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/intents/[INTENT]";
            // Make the request
            await intentsClient.DeleteIntentAsync(name);

            // End snippet
        }
Exemple #4
0
        /// <summary>Snippet for DeleteIntentAsync</summary>
        public async Task DeleteIntentAsync_RequestObject()
        {
            // Snippet: DeleteIntentAsync(DeleteIntentRequest,CallSettings)
            // Additional: DeleteIntentAsync(DeleteIntentRequest,CancellationToken)
            // Create client
            IntentsClient intentsClient = await IntentsClient.CreateAsync();

            // Initialize request argument(s)
            DeleteIntentRequest request = new DeleteIntentRequest
            {
                IntentName = new IntentName("[PROJECT]", "[INTENT]"),
            };
            // Make the request
            await intentsClient.DeleteIntentAsync(request);

            // End snippet
        }