Class InstantiatingHttpJsonChannelProvider

java.lang.Object
com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider
All Implemented Interfaces:
TransportChannelProvider

@InternalExtensionOnly public final class InstantiatingHttpJsonChannelProvider extends Object implements TransportChannelProvider
InstantiatingHttpJsonChannelProvider is a TransportChannelProvider which constructs a ManagedHttpJsonChannel with a number of configured inputs every time getChannel(...) is called. These inputs include a port, a service address, and credentials.

The credentials can either be supplied directly (by providing a FixedCredentialsProvider to Builder.setCredentialsProvider()) or acquired implicitly from Application Default Credentials (by providing a GoogleCredentialsProvider to Builder.setCredentialsProvider()).

The client lib header and generator header values are used to form a value that goes into the http header of requests to the service.