Class InstantiatingGrpcChannelProvider

  • All Implemented Interfaces:
    TransportChannelProvider

    @InternalExtensionOnly
    public final class InstantiatingGrpcChannelProvider
    extends Object
    implements TransportChannelProvider
    InstantiatingGrpcChannelProvider is a TransportChannelProvider which constructs a gRPC ManagedChannel 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.