Class ProtobufNativeSchema<T extends com.google.protobuf.GeneratedMessageV3>
java.lang.Object
org.apache.pulsar.client.impl.schema.AbstractSchema<T>
org.apache.pulsar.client.impl.schema.AbstractStructSchema<T>
org.apache.pulsar.client.impl.schema.ProtobufNativeSchema<T>
public class ProtobufNativeSchema<T extends com.google.protobuf.GeneratedMessageV3>
extends AbstractStructSchema<T>
A schema implementation to deal with protobuf generated messages.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.apache.pulsar.client.impl.schema.AbstractStructSchema
LOG, reader, schemaInfo, schemaInfoProvider, writer
Fields inherited from interface org.apache.pulsar.client.api.Schema
BOOL, BYTEBUFFER, BYTES, DATE, DOUBLE, FLOAT, INSTANT, INT16, INT32, INT64, INT8, LOCAL_DATE, LOCAL_DATE_TIME, LOCAL_TIME, STRING, TIME, TIMESTAMP
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.Descriptors.Descriptor
static <T extends com.google.protobuf.GeneratedMessageV3>
ProtobufNativeSchema<T>static <T extends com.google.protobuf.GeneratedMessageV3>
ProtobufNativeSchema<T>static <T> ProtobufNativeSchema
of
(SchemaDefinition<T> schemaDefinition) static <T> ProtobufNativeSchema
ofGenericClass
(Class<T> pojo, Map<String, String> properties) Methods inherited from class org.apache.pulsar.client.impl.schema.AbstractStructSchema
atSchemaVersion, decode, decode, decode, decode, decode, decode, encode, getReader, getSchemaInfo, setReader, setSchemaInfoProvider, setWriter
Methods inherited from class org.apache.pulsar.client.impl.schema.AbstractSchema
clone
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.pulsar.client.api.Schema
configureSchemaInfo, requireFetchingSchemaInfo, supportSchemaVersioning, validate
-
Field Details
-
PARSING_INFO_PROPERTY
- See Also:
-
-
Method Details
-
getProtobufNativeSchema
public com.google.protobuf.Descriptors.Descriptor getProtobufNativeSchema() -
getNativeSchema
-
of
public static <T extends com.google.protobuf.GeneratedMessageV3> ProtobufNativeSchema<T> of(Class<T> pojo) -
ofGenericClass
-
of
-
of
public static <T extends com.google.protobuf.GeneratedMessageV3> ProtobufNativeSchema<T> of(Class pojo, Map<String, String> properties)
-