public class Marshallers
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T extends com.google.protobuf.Message> |
binaryProto()
Builds a Binary Content Mode marshaller to marshal cloud events as JSON for Kafka Transport
Binding
|
static <T extends com.google.protobuf.Message> |
structuredProto()
Builds a Structured Content Mode marshaller to marshal cloud event as JSON for Kafka Transport
Binding
|
public static <T extends com.google.protobuf.Message> io.cloudevents.format.builder.EventStep<io.cloudevents.v03.AttributesImpl,T,byte[],byte[]> binaryProto()
T
- The 'data' typeCloudEventImpl
and marshal as JSONBinaryMarshaller
public static <T extends com.google.protobuf.Message> io.cloudevents.format.builder.EventStep<io.cloudevents.v03.AttributesImpl,T,byte[],byte[]> structuredProto()
T
- The 'data' typeCloudEventImpl
and marshal as JSONStructuredMarshaller