private ImportPlaylistItemRequest buildImportPlaylistItemRequest(
      MusicPlaylistItem playlistItem, String playlistId) {
    GooglePlaylistItem googlePlaylistItem = new GooglePlaylistItem();
    GoogleTrack googleTrack = new GoogleTrack();
    GoogleRelease googleRelease = new GoogleRelease();

    googleRelease.setIcpn(playlistItem.getTrack().getMusicRelease().getIcpnCode());
    googleRelease.setReleaseTitle(playlistItem.getTrack().getMusicRelease().getTitle());

    googleTrack.setIsrc(playlistItem.getTrack().getIsrcCode());
    googleTrack.setTitle(playlistItem.getTrack().getTitle());
    googleTrack.setArtistReferences(getArtists(playlistItem.getTrack().getByArtists()));
    googleTrack.setDuration(
        Durations.toString(Durations.fromMillis(playlistItem.getTrack().getDurationMillis())));
    if (playlistItem.getTrack().getIsExplicit()) {
      googleTrack.setExplicitType("EXPLICIT_TYPE_EXPLICIT");
    } else {
      googleTrack.setExplicitType("EXPLICIT_TYPE_NOT_EXPLICIT");
    }
    googleTrack.setReleaseReference(googleRelease);

    googlePlaylistItem.setTrack(googleTrack);
    googlePlaylistItem.setOrder(playlistItem.getOrder());

    return new ImportPlaylistItemRequest(playlistId, googlePlaylistItem);
  }
Summarizes result as a human-readable string. Empty string indicates no issues.
extensions/data-transfer/portability-data-transfer-google/src/main/java/org/datatransferproject/datatransfer/google/music/GoogleMusicImporter.java