@staticmethod<EOL><INDENT>def create_dict(event):<DEDENT>
data = dict()<EOL>for descriptor, value in event.ListFields():<EOL><INDENT>if descriptor.name == '<STR_LIT>':<EOL><INDENT>value = list(value)<EOL><DEDENT>elif descriptor.name == '<STR_LIT>':<EOL><INDENT>value = dict(((a.key, a.value) for a in value))<EOL><DEDENT>data[descriptor.name] = value<EOL><DEDENT>return data<EOL>
Translates an Event object to a dictionary of event attributes

        All attributes are included, so ``create_dict(create_event(input))``
        may return more attributes than were present in the input.

        :param event: A protocol buffer ``Event`` object
        :returns: A dictionary of event attributes