Class GenericProtobufNativeRecord

java.lang.Object
org.apache.pulsar.client.impl.schema.generic.GenericProtobufNativeRecord
All Implemented Interfaces:
GenericObject, GenericRecord

public class GenericProtobufNativeRecord extends Object
  • Field Details

    • schemaVersion

      protected final byte[] schemaVersion
    • fields

      protected final List<Field> fields
  • Constructor Details

    • GenericProtobufNativeRecord

      protected GenericProtobufNativeRecord(byte[] schemaVersion, com.google.protobuf.Descriptors.Descriptor msgDesc, List<Field> fields, com.google.protobuf.DynamicMessage record)
  • Method Details

    • getField

      public Object getField(String fieldName)
    • getProtobufRecord

      public com.google.protobuf.DynamicMessage getProtobufRecord()
    • getNativeObject

      public Object getNativeObject()
    • getSchemaType

      public SchemaType getSchemaType()
    • getSchemaVersion

      public byte[] getSchemaVersion()
      Specified by:
      getSchemaVersion in interface GenericRecord
    • getFields

      public List<Field> getFields()
      Specified by:
      getFields in interface GenericRecord