Class GenericProtobufNativeRecord
java.lang.Object
org.apache.pulsar.client.impl.schema.generic.GenericProtobufNativeRecord
- All Implemented Interfaces:
org.apache.pulsar.client.api.schema.GenericObject,org.apache.pulsar.client.api.schema.GenericRecord
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<org.apache.pulsar.client.api.schema.Field>protected final byte[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGenericProtobufNativeRecord(byte[] schemaVersion, com.google.protobuf.Descriptors.Descriptor msgDesc, List<org.apache.pulsar.client.api.schema.Field> fields, com.google.protobuf.DynamicMessage record) -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.pulsar.client.api.schema.Field>com.google.protobuf.DynamicMessageorg.apache.pulsar.common.schema.SchemaTypebyte[]Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.client.api.schema.GenericRecord
getField
-
Field Details
-
schemaVersion
protected final byte[] schemaVersion -
fields
-
-
Constructor Details
-
GenericProtobufNativeRecord
protected GenericProtobufNativeRecord(byte[] schemaVersion, com.google.protobuf.Descriptors.Descriptor msgDesc, List<org.apache.pulsar.client.api.schema.Field> fields, com.google.protobuf.DynamicMessage record)
-
-
Method Details
-
getField
-
getProtobufRecord
public com.google.protobuf.DynamicMessage getProtobufRecord() -
getNativeObject
-
getSchemaType
public org.apache.pulsar.common.schema.SchemaType getSchemaType() -
getSchemaVersion
public byte[] getSchemaVersion()- Specified by:
getSchemaVersionin interfaceorg.apache.pulsar.client.api.schema.GenericRecord
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.pulsar.client.api.schema.GenericRecord
-