/// <summary>Snippet for UpdateSpecialistPool</summary> public void UpdateSpecialistPool() { // Snippet: UpdateSpecialistPool(SpecialistPool, FieldMask, CallSettings) // Create client SpecialistPoolServiceClient specialistPoolServiceClient = SpecialistPoolServiceClient.Create(); // Initialize request argument(s) SpecialistPool specialistPool = new SpecialistPool(); FieldMask updateMask = new FieldMask(); // Make the request Operation <SpecialistPool, UpdateSpecialistPoolOperationMetadata> response = specialistPoolServiceClient.UpdateSpecialistPool(specialistPool, updateMask); // Poll until the returned long-running operation is complete Operation <SpecialistPool, UpdateSpecialistPoolOperationMetadata> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result SpecialistPool 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 <SpecialistPool, UpdateSpecialistPoolOperationMetadata> retrievedResponse = specialistPoolServiceClient.PollOnceUpdateSpecialistPool(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result SpecialistPool retrievedResult = retrievedResponse.Result; } // End snippet }