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

  • All Implemented Interfaces:
    org.apache.pulsar.client.api.schema.SchemaWriter<T>
    Direct Known Subclasses:
    ProtobufNativeWriter

    public class ProtobufWriter<T extends com.google.protobuf.GeneratedMessageV3>
    extends java.lang.Object
    implements org.apache.pulsar.client.api.schema.SchemaWriter<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      ProtobufWriter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] write​(T message)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProtobufWriter

        public ProtobufWriter()
    • Method Detail

      • write

        public byte[] write​(T message)
        Specified by:
        write in interface org.apache.pulsar.client.api.schema.SchemaWriter<T extends com.google.protobuf.GeneratedMessageV3>