'Decode FetchResponse struct to FetchResponsePayloads
Arguments:
response: FetchResponse'

@classmethod
def decode_fetch_response(cls, response):

    return [kafka.structs.FetchResponsePayload(topic, partition, error, highwater_offset, [offset_and_msg for offset_and_msg in cls.decode_message_set(messages)]) for (topic, partitions) in response.topics for (partition, error, highwater_offset, messages) in partitions]
