def flatten
      messages = struct.messages.map do |message| 
        if message.compressed?
          s = message.decompressed_value
          MessageSet.read_without_size(Protocol::ResponseBuffer.new(s)).flatten
        else
          message
        end
      end.flatten
    end
def flatten
      messages = struct.messages.map do |message| 
        if message.compressed?
          s = message.decompressed_value
          MessageSet.read_without_size(Protocol::ResponseBuffer.new(s)).flatten
        else
          message
        end
      end.flatten
    end
Builds an array of Message objects from the MessageStruct objects.
 Decompressing messages if necessary.

 @return [Array<Message>]