public static final class InstantiatingHttpJsonChannelProvider.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
InstantiatingHttpJsonChannelProvider |
build() |
String |
getEndpoint() |
InstantiatingHttpJsonChannelProvider.Builder |
setEndpoint(String endpoint)
Sets the endpoint used to reach the service, eg "localhost:8080".
|
InstantiatingHttpJsonChannelProvider.Builder |
setExecutorProvider(com.google.api.gax.core.ExecutorProvider executorProvider)
Sets the ExecutorProvider for this TransportChannelProvider.
|
InstantiatingHttpJsonChannelProvider.Builder |
setHeaderProvider(com.google.api.gax.rpc.HeaderProvider headerProvider)
Sets the HeaderProvider for this TransportChannelProvider.
|
public InstantiatingHttpJsonChannelProvider.Builder setExecutorProvider(com.google.api.gax.core.ExecutorProvider executorProvider)
This is optional; if it is not provided, needsExecutor() will return true, meaning that an Executor must be provided when getChannel is called on the constructed TransportChannelProvider instance. Note: InstantiatingHttpJsonChannelProvider will automatically provide its own Executor in this circumstance when it calls getChannel.
public InstantiatingHttpJsonChannelProvider.Builder setHeaderProvider(com.google.api.gax.rpc.HeaderProvider headerProvider)
This is optional; if it is not provided, needsHeaders() will return true, meaning that headers must be provided when getChannel is called on the constructed TransportChannelProvider instance.
public InstantiatingHttpJsonChannelProvider.Builder setEndpoint(String endpoint)
public String getEndpoint()
public InstantiatingHttpJsonChannelProvider build()