@BetaApi @InternalExtensionOnly public final class HttpJsonCallContext extends Object implements com.google.api.gax.rpc.ApiCallContext
HttpJsonCallContext is immutable in the sense that none of its methods modifies the
HttpJsonCallContext itself or the underlying data. Methods of the form withX return
copies of the object, but with one field changed. The immutability and thread safety of the
arguments solely depends on the arguments themselves.
| Modifier and Type | Method and Description |
|---|---|
static HttpJsonCallContext |
createDefault()
Returns an empty instance.
|
boolean |
equals(Object o) |
HttpJsonChannel |
getChannel() |
com.google.auth.Credentials |
getCredentials() |
org.threeten.bp.Instant |
getDeadline() |
Map<String,List<String>> |
getExtraHeaders() |
org.threeten.bp.Duration |
getStreamIdleTimeout() |
org.threeten.bp.Duration |
getStreamWaitTimeout() |
org.threeten.bp.Duration |
getTimeout() |
int |
hashCode() |
HttpJsonCallContext |
merge(com.google.api.gax.rpc.ApiCallContext inputCallContext) |
HttpJsonCallContext |
nullToSelf(com.google.api.gax.rpc.ApiCallContext inputContext)
Returns inputContext cast to
HttpJsonCallContext, or an empty HttpJsonCallContext if inputContext is null. |
HttpJsonCallContext |
withChannel(HttpJsonChannel newChannel) |
HttpJsonCallContext |
withCredentials(com.google.auth.Credentials newCredentials) |
HttpJsonCallContext |
withDeadline(org.threeten.bp.Instant newDeadline) |
com.google.api.gax.rpc.ApiCallContext |
withExtraHeaders(Map<String,List<String>> extraHeaders) |
com.google.api.gax.rpc.ApiCallContext |
withStreamIdleTimeout(org.threeten.bp.Duration streamIdleTimeout) |
com.google.api.gax.rpc.ApiCallContext |
withStreamWaitTimeout(org.threeten.bp.Duration streamWaitTimeout) |
HttpJsonCallContext |
withTimeout(org.threeten.bp.Duration timeout) |
HttpJsonCallContext |
withTransportChannel(com.google.api.gax.rpc.TransportChannel inputChannel) |
public static HttpJsonCallContext createDefault()
public HttpJsonCallContext nullToSelf(com.google.api.gax.rpc.ApiCallContext inputContext)
HttpJsonCallContext, or an empty HttpJsonCallContext if inputContext is null.nullToSelf in interface com.google.api.gax.rpc.ApiCallContextinputContext - the ApiCallContext to cast if it is not nullpublic HttpJsonCallContext merge(com.google.api.gax.rpc.ApiCallContext inputCallContext)
merge in interface com.google.api.gax.rpc.ApiCallContextpublic HttpJsonCallContext withCredentials(com.google.auth.Credentials newCredentials)
withCredentials in interface com.google.api.gax.rpc.ApiCallContextpublic HttpJsonCallContext withTransportChannel(com.google.api.gax.rpc.TransportChannel inputChannel)
withTransportChannel in interface com.google.api.gax.rpc.ApiCallContextpublic HttpJsonCallContext withTimeout(org.threeten.bp.Duration timeout)
withTimeout in interface com.google.api.gax.rpc.ApiCallContext@Nullable public org.threeten.bp.Duration getTimeout()
getTimeout in interface com.google.api.gax.rpc.ApiCallContextpublic com.google.api.gax.rpc.ApiCallContext withStreamWaitTimeout(@Nonnull org.threeten.bp.Duration streamWaitTimeout)
withStreamWaitTimeout in interface com.google.api.gax.rpc.ApiCallContext@Nullable public org.threeten.bp.Duration getStreamWaitTimeout()
getStreamWaitTimeout in interface com.google.api.gax.rpc.ApiCallContextpublic com.google.api.gax.rpc.ApiCallContext withStreamIdleTimeout(@Nonnull org.threeten.bp.Duration streamIdleTimeout)
withStreamIdleTimeout in interface com.google.api.gax.rpc.ApiCallContext@Nullable public org.threeten.bp.Duration getStreamIdleTimeout()
getStreamIdleTimeout in interface com.google.api.gax.rpc.ApiCallContext@BetaApi(value="The surface for extra headers is not stable yet and may change in the future.") public com.google.api.gax.rpc.ApiCallContext withExtraHeaders(Map<String,List<String>> extraHeaders)
withExtraHeaders in interface com.google.api.gax.rpc.ApiCallContext@BetaApi(value="The surface for extra headers is not stable yet and may change in the future.") public Map<String,List<String>> getExtraHeaders()
getExtraHeaders in interface com.google.api.gax.rpc.ApiCallContextpublic HttpJsonChannel getChannel()
public org.threeten.bp.Instant getDeadline()
public com.google.auth.Credentials getCredentials()
public HttpJsonCallContext withChannel(HttpJsonChannel newChannel)
public HttpJsonCallContext withDeadline(org.threeten.bp.Instant newDeadline)