/// <summary>Snippet for UpdateIntentAsync</summary> public async Task UpdateIntentAsync() { // Snippet: UpdateIntentAsync(Intent, FieldMask, CallSettings) // Additional: UpdateIntentAsync(Intent, FieldMask, CancellationToken) // Create client IntentsClient intentsClient = await IntentsClient.CreateAsync(); // Initialize request argument(s) Intent intent = new Intent(); FieldMask updateMask = new FieldMask(); // Make the request Intent response = await intentsClient.UpdateIntentAsync(intent, updateMask); // End snippet }
/// <summary>Snippet for UpdateIntentAsync</summary> public async Task UpdateIntentAsync1() { // Snippet: UpdateIntentAsync(Intent,string,CallSettings) // Additional: UpdateIntentAsync(Intent,string,CancellationToken) // Create client IntentsClient intentsClient = await IntentsClient.CreateAsync(); // Initialize request argument(s) Intent intent = new Intent(); string languageCode = ""; // Make the request Intent response = await intentsClient.UpdateIntentAsync(intent, languageCode); // End snippet }
/// <summary>Snippet for UpdateIntentAsync</summary> public async Task UpdateIntentAsync_RequestObject() { // Snippet: UpdateIntentAsync(UpdateIntentRequest,CallSettings) // Additional: UpdateIntentAsync(UpdateIntentRequest,CancellationToken) // Create client IntentsClient intentsClient = await IntentsClient.CreateAsync(); // Initialize request argument(s) UpdateIntentRequest request = new UpdateIntentRequest { Intent = new Intent(), }; // Make the request Intent response = await intentsClient.UpdateIntentAsync(request); // End snippet }