Class ProtobufSchema<T extends com.google.protobuf.GeneratedMessageV3>

  • All Implemented Interfaces:
    java.lang.Cloneable, org.apache.pulsar.client.api.Schema<T>

    public class ProtobufSchema<T extends com.google.protobuf.GeneratedMessageV3>
    extends AvroBaseStructSchema<T>
    A schema implementation to deal with protobuf generated messages.
    • Field Detail

      • PARSING_INFO_PROPERTY

        public static final java.lang.String PARSING_INFO_PROPERTY
        See Also:
        Constant Field Values
    • Method Detail

      • of

        public static <T extends com.google.protobuf.GeneratedMessageV3> ProtobufSchema<T> of​(java.lang.Class<T> pojo)
      • ofGenericClass

        public static <T> ProtobufSchema ofGenericClass​(java.lang.Class<T> pojo,
                                                        java.util.Map<java.lang.String,​java.lang.String> properties)
      • of

        public static <T> ProtobufSchema of​(org.apache.pulsar.client.api.schema.SchemaDefinition<T> schemaDefinition)
      • of

        public static <T extends com.google.protobuf.GeneratedMessageV3> ProtobufSchema<T> of​(java.lang.Class pojo,
                                                                                              java.util.Map<java.lang.String,​java.lang.String> properties)