Sets a custom option to be passed to client interceptors on the channel io.grpc.ClientInterceptor via the CallOptions parameter. @since 1.0.0 @param key the option being set @param value the value for the key
(CallOptions.Key<T> key, T value)
| 203 | * @param value the value for the key |
| 204 | */ |
| 205 | @ExperimentalApi("https://github.com/grpc/grpc-java/issues/1869") |
| 206 | public final <T> S withOption(CallOptions.Key<T> key, T value) { |
| 207 | return build(channel, callOptions.withOption(key, value)); |
| 208 | } |
| 209 | |
| 210 | /** |
| 211 | * Returns a new stub that has the given interceptors attached to the underlying channel. |
no test coverage detected