| Modifier and Type | Class and Description |
|---|---|
static class |
ProtobufSchema.ProtoBufParsingInfo |
| Modifier and Type | Field and Description |
|---|---|
static String |
PARSING_INFO_PROPERTY |
| Modifier and Type | Method and Description |
|---|---|
T |
decode(byte[] bytes) |
byte[] |
encode(T message) |
SchemaInfo |
getSchemaInfo() |
static <T extends com.google.protobuf.GeneratedMessageV3> |
of(Class<T> pojo) |
static <T extends com.google.protobuf.GeneratedMessageV3> |
of(Class<T> pojo,
Map<String,String> properties) |
static ProtobufSchema |
ofGenericClass(Class pojo,
Map<String,String> properties) |
public static final String PARSING_INFO_PROPERTY
public byte[] encode(T message)
public T decode(byte[] bytes)
public SchemaInfo getSchemaInfo()
getSchemaInfo in interface Schema<T extends com.google.protobuf.GeneratedMessageV3>public static <T extends com.google.protobuf.GeneratedMessageV3> ProtobufSchema<T> of(Class<T> pojo)
public static ProtobufSchema ofGenericClass(Class pojo, Map<String,String> properties)
public static <T extends com.google.protobuf.GeneratedMessageV3> ProtobufSchema<T> of(Class<T> pojo, Map<String,String> properties)
Copyright © 2017–2019 Apache Software Foundation. All rights reserved.