Uses of Class
io.grpc.Metadata.Key
Packages that use Metadata.Key
Package
Description
The gRPC core public API.
Interfaces and implementations that are internal to gRPC.
API for gRPC over Protocol Buffers, including tools for serializing and de-serializing protobuf
messages.
-
Uses of Metadata.Key in io.grpc
Fields in io.grpc declared as Metadata.KeyModifier and TypeFieldDescriptionstatic final Metadata.Key<Status> InternalStatus.CODE_KEYKey to bind status code to trailing metadata.static final Metadata.Key<String> InternalStatus.MESSAGE_KEYKey to bind status message to trailing metadata.Methods in io.grpc that return Metadata.KeyModifier and TypeMethodDescriptionstatic <T> Metadata.Key<T> InternalMetadata.keyOf(String name, InternalMetadata.TrustedAsciiMarshaller<T> marshaller) static <T> Metadata.Key<T> InternalMetadata.keyOf(String name, Metadata.AsciiMarshaller<T> marshaller) static <T> Metadata.Key<T> Metadata.Key.of(String name, Metadata.AsciiMarshaller<T> marshaller) Creates a key for an ASCII header.static <T> Metadata.Key<T> Metadata.Key.of(String name, Metadata.BinaryMarshaller<T> marshaller) Creates a key for a binary header.static <T> Metadata.Key<T> Metadata.Key.of(String name, Metadata.BinaryStreamMarshaller<T> marshaller) Creates a key for a binary header, serializing to input streams.Methods in io.grpc with parameters of type Metadata.KeyModifier and TypeMethodDescriptionbooleanMetadata.containsKey(Metadata.Key<?> key) Returns true if a value is defined for the given key.<T> voidMetadata.discardAll(Metadata.Key<T> key) Remove all values for the given key without returning them.<T> TMetadata.get(Metadata.Key<T> key) Returns the last metadata entry added with the name 'name' parsed as T.<T> Iterable<T> Metadata.getAll(Metadata.Key<T> key) Returns all the metadata entries named 'name', in the order they were received, parsed as T, or null if there are none.<T> voidMetadata.put(Metadata.Key<T> key, T value) Adds thekey, valuepair.<T> booleanMetadata.remove(Metadata.Key<T> key, T value) Removes the first occurrence ofvalueforkey.<T> Iterable<T> Metadata.removeAll(Metadata.Key<T> key) Remove all values for the given key.Method parameters in io.grpc with type arguments of type Metadata.KeyModifier and TypeMethodDescriptionvoidMetadata.merge(Metadata other, Set<Metadata.Key<?>> keys) Merge values from the given set of keys into this set of metadata. -
Uses of Metadata.Key in io.grpc.grpclb
Fields in io.grpc.grpclb declared as Metadata.KeyModifier and TypeFieldDescriptionstatic final Metadata.Key<String> GrpclbConstants.TOKEN_METADATA_KEYThe opaque token given by the remote balancer for each returned server address. -
Uses of Metadata.Key in io.grpc.internal
Fields in io.grpc.internal declared as Metadata.KeyModifier and TypeFieldDescriptionstatic final Metadata.Key<byte[]> GrpcUtil.CONTENT_ACCEPT_ENCODING_KEYMetadata.Keyfor the stream's accepted content encoding header.static final Metadata.Key<String> GrpcUtil.CONTENT_ENCODING_KEYMetadata.Keyfor the stream's content encoding header.static final Metadata.Key<String> GrpcUtil.CONTENT_TYPE_KEYMetadata.Keyfor the Content-Type request/response header.static final Metadata.Key<byte[]> GrpcUtil.MESSAGE_ACCEPT_ENCODING_KEYMetadata.Keyfor the accepted message encodings header.static final Metadata.Key<String> GrpcUtil.MESSAGE_ENCODING_KEYMetadata.Keyfor the message encoding header.static final Metadata.Key<String> GrpcUtil.TE_HEADERMetadata.Keyfor the Transfer encoding.static final Metadata.Key<Long> GrpcUtil.TIMEOUT_KEYMetadata.Keyfor the timeout header.static final Metadata.Key<String> GrpcUtil.USER_AGENT_KEYMetadata.Keyfor the Content-Type request/response header. -
Uses of Metadata.Key in io.grpc.protobuf
Methods in io.grpc.protobuf that return Metadata.KeyModifier and TypeMethodDescriptionstatic <T extends com.google.protobuf.Message>
Metadata.Key<T> ProtoUtils.keyForProto(T instance) Produce a metadata key for a generated protobuf type.