public class ProtoUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends com.google.protobuf.Message> |
keyForProto(T instance)
Produce a metadata key for a generated protobuf type.
|
static <T extends com.google.protobuf.MessageLite> |
marshaller(T defaultInstance)
Create a
Marshaller for protos of the same type as defaultInstance. |
public static <T extends com.google.protobuf.MessageLite> MethodDescriptor.Marshaller<T> marshaller(T defaultInstance)
Marshaller for protos of the same type as defaultInstance.public static <T extends com.google.protobuf.Message> Metadata.Key<T> keyForProto(T instance)