public class GoogleCloudResourcePrefixInterceptor extends Object implements io.grpc.ClientInterceptor
Modifier and Type | Field and Description |
---|---|
static io.grpc.Metadata.Key<String> |
GRPC_RESOURCE_PREFIX_KEY
Constant
GRPC_RESOURCE_PREFIX_KEY |
Constructor and Description |
---|
GoogleCloudResourcePrefixInterceptor(String defaultValue)
Constructor for GoogleCloudResourcePrefixInterceptor.
|
Modifier and Type | Method and Description |
---|---|
<ReqT,RespT> |
interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method,
io.grpc.CallOptions callOptions,
io.grpc.Channel next) |
void |
updateHeaders(io.grpc.Metadata headers) |
public static final io.grpc.Metadata.Key<String> GRPC_RESOURCE_PREFIX_KEY
GRPC_RESOURCE_PREFIX_KEY
public <ReqT,RespT> io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)
interceptCall
in interface io.grpc.ClientInterceptor
public void updateHeaders(io.grpc.Metadata headers)