- java.lang.Object
-
- swim.protobuf.Protobuf
-
public final class Protobuf extends Object
Factory for constructing Protocol Buffers decoders and encoders.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Decoder<T>
decodePayload(InputBuffer input, ProtobufMessageType<T,?> type)
static ProtobufDecoder
decoder()
static <T> Decoder<T>
decodeType(InputBuffer input, ProtobufType<T> type)
static <T> Decoder<T>
payloadDecoder(ProtobufMessageType<T,?> type)
static <T> Decoder<T>
typeDecoder(ProtobufType<T> type)
-
-
-
Method Detail
-
decoder
public static ProtobufDecoder decoder()
-
decodeType
public static <T> Decoder<T> decodeType(InputBuffer input, ProtobufType<T> type)
-
typeDecoder
public static <T> Decoder<T> typeDecoder(ProtobufType<T> type)
-
decodePayload
public static <T> Decoder<T> decodePayload(InputBuffer input, ProtobufMessageType<T,?> type)
-
payloadDecoder
public static <T> Decoder<T> payloadDecoder(ProtobufMessageType<T,?> type)
-
-