def get_field_names(self, type_name=None):
    '\n        :param str type_name:\n        :rtype: __generator[str]\n        '
    if (type_name is None):
        types = self.types.get_all()
    else:
        types = [self.types.get_by_name(type_name)]
    for type_ in types:
        for name in type_.metadata_type.dataset_fields:
            (yield name)
:param str type_name:
:rtype: __generator[str]
def get_field_names(self, type_name=None):
    '\n        :param str type_name:\n        :rtype: __generator[str]\n        '
    if (type_name is None):
        types = self.types.get_all()
    else:
        types = [self.types.get_by_name(type_name)]
    for type_ in types:
        for name in type_.metadata_type.dataset_fields:
            (yield name)