def convertType(type):
    """
    Converts given protobuf type in Swift type
    """
    mapper = { "google.protobuf.Empty": "SwiftProtobuf.Google_Protobuf_Empty",
    "string": "String", "double": "Double", "float": "Float", "int32": "Int32",
    "uint32": "UInt32", "uint64": "UInt64", "sint32": "Int32", "sint64": "Int64",
    "fixed32": "UInt32", "fixed64": "UInt64", "sfixed32": "Int32", "sfixed64": "Int64",
    "bool": "Bool", "bytes": "Data"}
    if type in mapper:
        return mapper[type]
    else:
        return type