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
schemaFields inherited from class org.apache.pulsar.client.impl.schema.AbstractStructSchema
LOG, reader, schemaInfo, schemaInfoProvider, writerFields 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> ProtobufSchemaof(SchemaDefinition<T> schemaDefinition) static <T> ProtobufSchemaofGenericClass(Class<T> pojo, Map<String, String> properties) Methods inherited from class org.apache.pulsar.client.impl.schema.AvroBaseStructSchema
getAvroSchema, getNativeSchemaMethods inherited from class org.apache.pulsar.client.impl.schema.AbstractStructSchema
atSchemaVersion, decode, decode, decode, decode, decode, decode, encode, getReader, getSchemaInfo, setReader, setSchemaInfoProvider, setWriterMethods inherited from class org.apache.pulsar.client.impl.schema.AbstractSchema
cloneMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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)
-