public interface GrpcMessageEncoder<T>
Modifier and Type | Field and Description |
---|---|
static GrpcMessageEncoder<Buffer> |
GZIP |
static GrpcMessageEncoder<Buffer> |
IDENTITY |
Modifier and Type | Method and Description |
---|---|
GrpcMessage |
encode(T msg) |
static <T extends com.google.protobuf.MessageLite> |
encoder()
Create an encoder for arbitrary message extending
MessageLite . |
static <T> GrpcMessageEncoder<T> |
marshaller(io.grpc.MethodDescriptor.Marshaller<T> desc) |
static final GrpcMessageEncoder<Buffer> IDENTITY
static final GrpcMessageEncoder<Buffer> GZIP
static <T extends com.google.protobuf.MessageLite> GrpcMessageEncoder<T> encoder()
MessageLite
.static <T> GrpcMessageEncoder<T> marshaller(io.grpc.MethodDescriptor.Marshaller<T> desc)
GrpcMessage encode(T msg)
Copyright © 2024 Eclipse. All rights reserved.