Uses of Class
io.grpc.Metadata.Key
-
Packages that use Metadata.Key Package Description io.grpc The gRPC core public API.io.grpc.grpclb io.grpc.internal Interfaces and implementations that are internal to gRPC.io.grpc.protobuf API for gRPC over Protocol Buffers, including tools for serializing and de-serializing protobuf messages.io.grpc.protobuf.services Service definitions and utilities with protobuf dependency for the pre-defined gRPC services.io.grpc.rls -
-
Uses of Metadata.Key in io.grpc
Subclasses of Metadata.Key in io.grpc Modifier and Type Class Description private static class
Metadata.AsciiKey<T>
private static class
Metadata.BinaryKey<T>
private static class
Metadata.LazyStreamBinaryKey<T>
A binary key for values which should be serialized lazily toInputStream
s.private static class
Metadata.TrustedAsciiKey<T>
Fields in io.grpc declared as Metadata.Key Modifier and Type Field Description static Metadata.Key<Status>
InternalStatus. CODE_KEY
Key to bind status code to trailing metadata.(package private) static Metadata.Key<Status>
Status. CODE_KEY
Key to bind status code to trailing metadata.private Metadata.Key<T>
Metadata.IterableAt. key
static Metadata.Key<java.lang.String>
InternalStatus. MESSAGE_KEY
Key to bind status message to trailing metadata.(package private) static Metadata.Key<java.lang.String>
Status. MESSAGE_KEY
Key to bind status message to trailing metadata.Methods in io.grpc that return Metadata.Key Modifier and Type Method Description static <T> Metadata.Key<T>
InternalMetadata. keyOf(java.lang.String name, InternalMetadata.TrustedAsciiMarshaller<T> marshaller)
static <T> Metadata.Key<T>
InternalMetadata. keyOf(java.lang.String name, Metadata.AsciiMarshaller<T> marshaller)
(package private) static <T> Metadata.Key<T>
Metadata.Key. of(java.lang.String name, boolean pseudo, Metadata.AsciiMarshaller<T> marshaller)
(package private) static <T> Metadata.Key<T>
Metadata.Key. of(java.lang.String name, boolean pseudo, Metadata.TrustedAsciiMarshaller<T> marshaller)
static <T> Metadata.Key<T>
Metadata.Key. of(java.lang.String name, Metadata.AsciiMarshaller<T> marshaller)
Creates a key for an ASCII header.static <T> Metadata.Key<T>
Metadata.Key. of(java.lang.String name, Metadata.BinaryMarshaller<T> marshaller)
Creates a key for a binary header.static <T> Metadata.Key<T>
Metadata.Key. of(java.lang.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.Key Modifier and Type Method Description boolean
Metadata. containsKey(Metadata.Key<?> key)
Returns true if a value is defined for the given key.(package private) static <T> Metadata.LazyValue<T>
Metadata.LazyValue. create(Metadata.Key<T> key, T value)
<T> void
Metadata. discardAll(Metadata.Key<T> key)
Remove all values for the given key without returning them.<T> T
Metadata. get(Metadata.Key<T> key)
Returns the last metadata entry added with the name 'name' parsed as T.<T> java.lang.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.private static <T> Metadata.BinaryStreamMarshaller<T>
Metadata.LazyValue. getBinaryStreamMarshaller(Metadata.Key<T> key)
<T> void
Metadata. put(Metadata.Key<T> key, T value)
Adds thekey, value
pair.<T> boolean
Metadata. remove(Metadata.Key<T> key, T value)
Removes the first occurrence ofvalue
forkey
.<T> java.lang.Iterable<T>
Metadata. removeAll(Metadata.Key<T> key)
Remove all values for the given key.(package private) <T2> T2
Metadata.LazyValue. toObject(Metadata.Key<T2> key)
private <T> T
Metadata. valueAsT(int i, Metadata.Key<T> key)
Method parameters in io.grpc with type arguments of type Metadata.Key Modifier and Type Method Description void
Metadata. merge(Metadata other, java.util.Set<Metadata.Key<?>> keys)
Merge values from the given set of keys into this set of metadata.Constructors in io.grpc with parameters of type Metadata.Key Constructor Description IterableAt(Metadata.Key<T> key, int startIdx)
-
Uses of Metadata.Key in io.grpc.grpclb
Fields in io.grpc.grpclb declared as Metadata.Key Modifier and Type Field Description static Metadata.Key<java.lang.String>
GrpclbConstants. TOKEN_METADATA_KEY
The 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.Key Modifier and Type Field Description static Metadata.Key<byte[]>
GrpcUtil. CONTENT_ACCEPT_ENCODING_KEY
Metadata.Key
for the stream's accepted content encoding header.static Metadata.Key<java.lang.String>
GrpcUtil. CONTENT_ENCODING_KEY
Metadata.Key
for the stream's content encoding header.(package private) static Metadata.Key<java.lang.String>
GrpcUtil. CONTENT_LENGTH_KEY
static Metadata.Key<java.lang.String>
GrpcUtil. CONTENT_TYPE_KEY
Metadata.Key
for the Content-Type request/response header.(package private) static Metadata.Key<java.lang.String>
RetriableStream. GRPC_PREVIOUS_RPC_ATTEMPTS
(package private) static Metadata.Key<java.lang.String>
RetriableStream. GRPC_RETRY_PUSHBACK_MS
private static Metadata.Key<java.lang.Integer>
Http2ClientStreamTransportState. HTTP2_STATUS
static Metadata.Key<byte[]>
GrpcUtil. MESSAGE_ACCEPT_ENCODING_KEY
Metadata.Key
for the accepted message encodings header.static Metadata.Key<java.lang.String>
GrpcUtil. MESSAGE_ENCODING_KEY
Metadata.Key
for the message encoding header.static Metadata.Key<java.lang.String>
GrpcUtil. TE_HEADER
Metadata.Key
for the Transfer encoding.static Metadata.Key<java.lang.Long>
GrpcUtil. TIMEOUT_KEY
Metadata.Key
for the timeout header.static Metadata.Key<java.lang.String>
GrpcUtil. USER_AGENT_KEY
Metadata.Key
for the Content-Type request/response header. -
Uses of Metadata.Key in io.grpc.protobuf
Fields in io.grpc.protobuf declared as Metadata.Key Modifier and Type Field Description private static Metadata.Key<com.google.rpc.Status>
StatusProto. STATUS_DETAILS_KEY
Methods in io.grpc.protobuf that return Metadata.Key Modifier and Type Method Description static <T extends com.google.protobuf.Message>
Metadata.Key<T>ProtoUtils. keyForProto(T instance)
Produce a metadata key for a generated protobuf type. -
Uses of Metadata.Key in io.grpc.protobuf.services
Fields in io.grpc.protobuf.services declared as Metadata.Key Modifier and Type Field Description (package private) static Metadata.Key<byte[]>
BinlogHelper. STATUS_DETAILS_KEY
-
Uses of Metadata.Key in io.grpc.rls
Fields in io.grpc.rls declared as Metadata.Key Modifier and Type Field Description (package private) static Metadata.Key<java.lang.String>
CachingRlsLbClient. RLS_DATA_KEY
A header will be added when RLS server respond with additional header data.
-