/// <summary>Snippet for BatchDeleteIntents</summary> public void BatchDeleteIntents_RequestObject() { // Snippet: BatchDeleteIntents(BatchDeleteIntentsRequest,CallSettings) // Create client IntentsClient intentsClient = IntentsClient.Create(); // Initialize request argument(s) BatchDeleteIntentsRequest request = new BatchDeleteIntentsRequest { ParentAsProjectAgentName = new ProjectAgentName("[PROJECT]"), Intents = { }, }; // Make the request Operation <Empty, Struct> response = intentsClient.BatchDeleteIntents(request); // Poll until the returned long-running operation is complete Operation <Empty, Struct> completedResponse = response.PollUntilCompleted(); // The long-running operation is now complete. // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <Empty, Struct> retrievedResponse = intentsClient.PollOnceBatchDeleteIntents(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // The long-running operation is now complete. } // End snippet }