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