Uses of Class
com.google.api.gax.grpc.GrpcCallContext
-
Packages that use GrpcCallContext Package Description com.google.api.gax.grpc -
-
Uses of GrpcCallContext in com.google.api.gax.grpc
Methods in com.google.api.gax.grpc that return GrpcCallContext Modifier and Type Method Description GrpcCallContextGrpcResponseMetadata. addHandlers(ApiCallContext apiCallContext)Constructs a new call context from an existing ApiCallContext, and sets the CallOptions to add handlers to retrieve the headers and trailers, and make them available via the getMetadata and getTrailingMetadata methods.GrpcCallContextGrpcResponseMetadata. createContextWithHandlers()Constructs a new call context and sets the CallOptions to add handlers to retrieve the headers and trailers, and make them available via the getMetadata and getTrailingMetadata methods.static GrpcCallContextGrpcCallContext. createDefault()Returns an empty instance with a null channel and defaultCallOptions.GrpcCallContextGrpcTransportChannel. getEmptyCallContext()GrpcCallContextGrpcCallContext. nullToSelf(ApiCallContext inputContext)Returns inputContext cast toGrpcCallContext, or an emptyGrpcCallContextif inputContext is null.static GrpcCallContextGrpcCallContext. of(io.grpc.Channel channel, io.grpc.CallOptions callOptions)Returns an instance with the given channel andCallOptions.GrpcCallContextGrpcCallContext. withCallOptions(io.grpc.CallOptions newCallOptions)Returns a new instance with the call options set to the given call options.GrpcCallContextGrpcCallContext. withChannel(io.grpc.Channel newChannel)Returns a new instance with the channel set to the given channel.GrpcCallContextGrpcCallContext. withChannelAffinity(Integer affinity)GrpcCallContextGrpcCallContext. withCredentials(com.google.auth.Credentials newCredentials)GrpcCallContextGrpcCallContext. withExtraHeaders(Map<String,List<String>> extraHeaders)<T> GrpcCallContextGrpcCallContext. withOption(ApiCallContext.Key<T> key, T value)GrpcCallContextGrpcCallContext. withRequestParamsDynamicHeaderOption(String requestParams)GrpcCallContextGrpcCallContext. withRetryableCodes(Set<StatusCode.Code> retryableCodes)GrpcCallContextGrpcCallContext. withRetrySettings(RetrySettings retrySettings)GrpcCallContextGrpcCallContext. withStreamIdleTimeout(org.threeten.bp.Duration streamIdleTimeout)GrpcCallContextGrpcCallContext. withStreamWaitTimeout(org.threeten.bp.Duration streamWaitTimeout)GrpcCallContextGrpcCallContext. withTimeout(org.threeten.bp.Duration timeout)GrpcCallContextGrpcCallContext. withTracer(ApiTracer tracer)GrpcCallContextGrpcCallContext. withTransportChannel(TransportChannel inputChannel)
-