def AnnotateProperty(self, unused_api, prop, schema):
    if isinstance(prop.data_type, data_types.ArrayDataType):
      prop.SetTemplateValue('dataType', 'array')
      schema.SetTemplateValue('dataType', 'array')
      collection = self.language_model.ToMemberName(prop['wireName'], 0)
      schema.SetTemplateValue('collectionKey', collection)
    elif not schema.GetTemplateValue('dataType'):
      schema.SetTemplateValue('dataType', 'object')

    if isinstance(prop.data_type, data_types.MapDataType):
      prop.SetTemplateValue('dataType', 'map')
    self._SetTypeHint(prop)
Parse in the MailEntry from the XML definition.
dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/php_generator.py/PHPGenerator.AnnotateProperty--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/vendor/gdata/apps/migration/__init__.py/MailEntryFromString