@InternalApi public final class ApiCallContextOptions extends Object
ApiCallContext| Modifier and Type | Method and Description |
|---|---|
static ApiCallContextOptions |
getDefaultOptions() |
<T> T |
getOption(ApiCallContext.Key<T> key)
Get an option.
|
ApiCallContextOptions |
merge(ApiCallContextOptions newOptions)
Merge new options into existing ones.
|
<T> ApiCallContextOptions |
withOption(ApiCallContext.Key<T> key,
T value)
Add an option.
|
public static ApiCallContextOptions getDefaultOptions()
public <T> ApiCallContextOptions withOption(ApiCallContext.Key<T> key, T value)
public <T> T getOption(ApiCallContext.Key<T> key)
public ApiCallContextOptions merge(ApiCallContextOptions newOptions)