/// <summary>Snippet for DeleteGlossary</summary> public void DeleteGlossary_RequestObject() { // Snippet: DeleteGlossary(DeleteGlossaryRequest,CallSettings) // Create client TranslationServiceClient translationServiceClient = TranslationServiceClient.Create(); // Initialize request argument(s) DeleteGlossaryRequest request = new DeleteGlossaryRequest { GlossaryName = new GlossaryName("[PROJECT]", "[LOCATION]", "[GLOSSARY]"), }; // Make the request Operation <DeleteGlossaryResponse, DeleteGlossaryMetadata> response = translationServiceClient.DeleteGlossary(request); // Poll until the returned long-running operation is complete Operation <DeleteGlossaryResponse, DeleteGlossaryMetadata> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result DeleteGlossaryResponse result = completedResponse.Result; // 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 <DeleteGlossaryResponse, DeleteGlossaryMetadata> retrievedResponse = translationServiceClient.PollOnceDeleteGlossary(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result DeleteGlossaryResponse retrievedResult = retrievedResponse.Result; } // End snippet }