def METHOD_NAME(name: str, value: Any, schema: Dict[str, Any]) -> Any:
    typ: str = schema['type']
    mode: str = schema['mode']
    if typ in ('RECORD', 'STRUCT'):
        if mode == 'REPEATED':
            return [ResultsParser._parse_struct(schema, v['v']) for v in value]
        return ResultsParser._parse_struct(schema, value)
    if typ == 'STRING':
        return or_none(str, value)
    if typ in ('FLOAT', 'FLOAT64'):
        return or_none(float, value)
    if typ in ('INTEGER', 'INT64'):
        return or_none(int, value)
    if typ in ('BOOLEAN', 'BOOL'):
        return or_none(bool, value)
    if typ == 'TIMESTAMP':
        return int(or_none(float, value))
    # DATE, TIME, DATETIME
    raise NotImplementedError((name, value, typ, mode))