Class ProtobufSchema<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.AvroBaseStructSchema<T>
org.apache.pulsar.client.impl.schema.ProtobufSchema<T>
public class ProtobufSchema<T extends com.google.protobuf.GeneratedMessageV3>
extends AvroBaseStructSchema<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.AvroBaseStructSchema
schema
Fields 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 TypeMethodDescriptionstatic <T extends com.google.protobuf.GeneratedMessageV3>
ProtobufSchema<T>static <T extends com.google.protobuf.GeneratedMessageV3>
ProtobufSchema<T>static <T> ProtobufSchema
of
(SchemaDefinition<T> schemaDefinition) static <T> ProtobufSchema
ofGenericClass
(Class<T> pojo, Map<String, String> properties) Methods inherited from class org.apache.pulsar.client.impl.schema.AvroBaseStructSchema
getAvroSchema, getNativeSchema
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
-
of
public static <T extends com.google.protobuf.GeneratedMessageV3> ProtobufSchema<T> of(Class<T> pojo) -
ofGenericClass
-
of
-
of
public static <T extends com.google.protobuf.GeneratedMessageV3> ProtobufSchema<T> of(Class pojo, Map<String, String> properties)
-