private static HttpRequest buildPatchRequest(HttpRequestFactory requestFactory, String baseUrl,
      String parametersString,
      HttpContent httpContent) throws IOException {
    return requestFactory.buildPatchRequest(
            new GenericUrl(baseUrl + "?" + parametersString), httpContent)
        // TODO(github.com/googleapis/google-http-java-client/issues/1316) stop using POST for our PATCH requests.
        .setRequestMethod("POST")
        .setHeaders(new HttpHeaders().set("X-HTTP-Method-Override", "PATCH"));
  }
GoogleMusicHttpApi makes HTTP requests to read and write to the public Google Music's "Music
Library" APIs, following its documentation at
https://developers.google.com/youtube/mediaconnect.

<p>Note that this is the lowest level of Google Music interaction - that is, you probably don't
want to use this class and are better off using something like a bit higher level like the Google
Music DTP Exporter and Importer instead.
extensions/data-transfer/portability-data-transfer-google/src/main/java/org/datatransferproject/datatransfer/google/music/GoogleMusicHttpApi.java