def _AddEnumValues(descriptor, cls):
 for enum_type in descriptor.enum_types:
  setattr(cls, enum_type.name, enum_type_wrapper.EnumTypeWrapper(enum_type))
  for enum_value in enum_type.values:
   setattr(cls, enum_value.name, enum_value.number)

def _AddEnumValues ( descriptor , cls ) : for enum_type in descriptor . enum_types : setattr ( cls , enum_type . name , enum_type_wrapper . EnumTypeWrapper ( enum_type ) ) for enum_value in enum_type . values : setattr ( cls , enum_value . name , enum_value . number )
sets class-level attributes for all enum fields defined in this message .