'Apache HttpClient 5 as transport option in Google Cloud Storage API

When using the Google Cloud Storage API in Java, we can create an instance of Storage using a builder while specifying some transport options, as follows:

Storage storage = StorageOptions.newBuilder()
     .setTransportOptions(myTransportOptions).build()
     .getService();

Is it possible to use an existing instance Apache HttpClient version 5 as transport options?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source